Page 2 of 2

Re: Monitor Web Service

Posted: Tue Jan 26, 2016 9:08 am
by jkinning
Getting a 500 on that one.

Code: Select all

./check_http -H eisiibl1d -p 7080 -k "Content-Type: text/xml;charset=UTF-8" -k 'SOAPAction:ping' -r 'INL11D-EIS_IS-PolicyServices-UP1234' -T text/xml -t 10 -m 512 -u '/wsfg/EntService/Policy/PolicyServicesPing?wsdl' -v -P'%3Csoapenv%3AEnvelope%20xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%20xmlns%3Apol%3D%22http%3A%2F%2Fwww.site.com%2FPolicyServicesPing%2F%22%3E%0A%20%20%20%3Csoapenv%3AHeader%2F%3E%0A%20%20%20%3Csoapenv%3ABody%3E%0A%20%20%20%20%20%20%3Cpol%3APolicyServicesPingData%3E%0A%20%20%20%20%20%20%20%20%20%3C!--Optional%3A--%3E%0A%20%20%20%20%20%20%20%20%20%3Cpol%3APolicyServicesPingRequestMessage%3E%3C%2Fpol%3APolicyServicesPingRequestMessage%3E%0A%20%20%20%20%20%20%3C%2Fpol%3APolicyServicesPingData%3E%0A%20%20%20%3C%2Fsoapenv%3ABody%3E%0A%3C%2Fsoapenv%3AEnvelope%3E'
POST /wsfg/EntService/Policy/PolicyServicesPing?wsdl HTTP/1.1
User-Agent: check_http/v1.5 (nagios-plugins 1.5)
Connection: close
Host: eisiibl1d:7080
Content-Type: text/xml;charset=UTF-8
SOAPAction:ping
Content-Type: text/xml
Content-Length: 596

%3Csoapenv%3AEnvelope%20xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%20xmlns%3Apol%3D%22http%3A%2F%2Fwww.site.com%2FPolicyServicesPing%2F%22%3E%0A%20%20%20%3Csoapenv%3AHeader%2F%3E%0A%20%20%20%3Csoapenv%3ABody%3E%0A%20%20%20%20%20%20%3Cpol%3APolicyServicesPingData%3E%0A%20%20%20%20%20%20%20%20%20%3C!--Optional%3A--%3E%0A%20%20%20%20%20%20%20%20%20%3Cpol%3APolicyServicesPingRequestMessage%3E%3C%2Fpol%3APolicyServicesPingRequestMessage%3E%0A%20%20%20%20%20%20%3C%2Fpol%3APolicyServicesPingData%3E%0A%20%20%20%3C%2Fsoapenv%3ABody%3E%0A%3C%2Fsoapenv%3AEnvelope%3E

http://eisiibl1d:7080/wsfg/EntService/Policy/PolicyServicesPing?wsdl is 2802 characters
STATUS: HTTP/1.1 500 Internal Server Error
**** HEADER ****
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Content-Length: 2621
Date: Tue, 26 Jan 2016 14:06:27 GMT
Connection: close
**** CONTENT ****
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>Exception during creation of SOAP envelope</faultstring><detail><Exception>org.apache.axis2.AxisFault: Exception during creation of SOAP envelope
        at com.ibm.broker.axis2.Axis2Invoker.invokeAxis2(Unknown Source)
        at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(Unknown Source)
        at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(Unknown Source)
Caused by: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x25) was found in the prolog of the document.
        at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:293)
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:154)
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:140)
        at com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(Unknown Source)
        at com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(Unknown Source)
        ... 3 more
Caused by: javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x25) was found in the prolog of the document.
        at com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwWrappedXMLStreamException(StAXMessageProvider.java:76)
        at com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.produceFatalErrorEvent(XMLStreamReaderImpl.java:2008)
        at com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.produceFatalErrorEvent(JAXBXMLStreamReader.java:356)
        at com.ibm.xml.xlxp2.scan.DocumentScanner.reportFatalError(DocumentScanner.java:4871)
        at com.ibm.xml.xlxp2.scan.DocumentScanner.reportFatalError(DocumentScanner.java:1212)
        at com.ibm.xml.xlxp2.scan.DocumentScanner.scanProlog(DocumentScanner.java:1777)
        at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner.java:1323)
        at com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:581)
        at com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderProxyImpl.next(XMLInputFactoryImpl.java:183)
        at com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderProxy.next(WSSXMLInputFactory.java:55)
        at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:672)
        at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
        ... 8 more
</Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - pattern not found - 2802 bytes in 0.009 second response time |time=0.009046s;;;0.000000 size=2802B;512;0;0

Re: Monitor Web Service

Posted: Tue Jan 26, 2016 5:44 pm
by tmcdonald
This is going to be a little difficult to do over the forums - can you open a ticket for this? We might need to do a remote, preferably with the developer present so he can make sure we are posting the right data.

Re: Monitor Web Service

Posted: Wed Jan 27, 2016 7:29 am
by jkinning
Where or how do I open a ticket? Just send an email to [email protected]?

Thanks.

Re: Monitor Web Service

Posted: Wed Jan 27, 2016 11:32 am
by rkennedy
The email is actually [email protected] - yes, just send an email in. Let us know once you have sent an email in on this thread, and we will confirm it.

Re: Monitor Web Service

Posted: Wed Jan 27, 2016 12:06 pm
by jkinning
Email sent.

Re: Monitor Web Service

Posted: Wed Jan 27, 2016 12:56 pm
by tmcdonald
Ticket received, locking thread.

Re: Monitor Web Service

Posted: Thu Jan 28, 2016 2:10 pm
by tmcdonald
Resolved in ticket. Sent as plain XML instead of URL-encoding, and changed SOAP message to include correct URL.