Stephen_Seltzer
18 years agoNew Contributor
Failed to get SOAP Version of request
Given the following:
soapUI 2.0
jboss 4.2.0
Jakarta Commons HTTP client
java version "1.5.0_07"
I have an application that is sending a message via HTTPClient using PostMethod. I have set up a mock service in soapUI using the wsdl for the webservice. To debug I have put out the message being sent to the console. When I copy that message, paste it into a request in soapUI, and submit it to the mock service, it works. When I submit the request via HTTPClient.executeMethod(), I get an error in the soapUI logs indicating that it Failed to get SOAP Version of request.
I have:
1)Ensured that the message is valid as indicated above
2)Set the HttpVersion in the HttpClientParams of the HTTPClient.
After my call, I get the following back from soapUI (appropriate given the error):
Any suggestions? I cannot figure out where/how to set the SOAP version.
Here is the full error text from the error log:
soapUI 2.0
jboss 4.2.0
Jakarta Commons HTTP client
java version "1.5.0_07"
I have an application that is sending a message via HTTPClient using PostMethod. I have set up a mock service in soapUI using the wsdl for the webservice. To debug I have put out the message being sent to the console. When I copy that message, paste it into a request in soapUI, and submit it to the mock service, it works. When I submit the request via HTTPClient.executeMethod(), I get an error in the soapUI logs indicating that it Failed to get SOAP Version of request.
I have:
1)Ensured that the message is valid as indicated above
2)Set the HttpVersion in the HttpClientParams of the HTTPClient.
After my call, I get the following back from soapUI (appropriate given the error):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>java.lang.Exception: Failed to get SOAP Version of request</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Post Request Status: HTTP/1.1 500 Internal Server Error
Any suggestions? I cannot figure out where/how to set the SOAP version.
Here is the full error text from the error log:
2008-01-02 15:08:04,281 ERROR [errorlog] com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException
com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:264)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:50)
at com.eviware.soapui.monitor.MockEngine$ServerHandler.handle(MockEngine.java:236)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.initSoapVersion(WsdlMockRequest.java:96)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.<init>(WsdlMockRequest.java:87)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:147)
... 11 more
2008-01-02 15:08:04,297 WARN [jetty] EXCEPTION
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion$Utils.getSoapVersionForContentType(SoapVersion.java:81)
at com.eviware.soapui.monitor.MockEngine$ServerHandler.handle(MockEngine.java:243)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)