cancel
Showing results for 
Search instead for 
Did you mean: 

Error Invoking Web Service Action: null

Former Member
0 Kudos

I am using the WEBSERVICE action in the BLS to access a third party system. I am getting an error during execution: [ERROR]: Error Invoking Web Service Action: null. I cannot find any messages in any of the logs. Even though the action fails, the remote WebService processes properly. My basis guy seems to think that it is related to SOAP incompatibilities/versions. Any other ideas floating around out there? Any other methods to troubleshoot? The external application uses Document-Literal Style web services and conforms to WS-I Basic Profile.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If I remember correctly, there's a trace flag on the Web Service action that you can set via an incoming link (set it to true), which will print out more detailed data to the log(s) (though not the xMII log, if I recall, but the J2EE engine log).

Former Member
0 Kudos

Thanks Rick. I'll dig a little further.

Former Member
0 Kudos

All -

Here is a trace. My remote web service returns an empty SOAP body upon success (SOAP envelope only). Is this causing the Null Pointer Exception??

PS - I am also getting a lot of "WARNING: received an illegal cookie" messages. Is this a problem.

[Wed Mar 19 16:38:08 EDT 2008] <?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope ...xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body> ...blah, blah...</soap:Body>

</soap:Envelope>

[Wed Mar 19 16:39:09 EDT 2008] java.lang.NullPointerException

[Wed Mar 19 16:39:09 EDT 2008] at org.apache.commons.httpclient.HttpMethodBase.getStatusCode(HttpMethodBase.java:590)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.webservice.SoapClient.invoke(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.actions.webservice.WebServiceAction.RawInvoke(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.actions.webservice.WebServiceAction.Invoke(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.core.Action.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.engine.TransactionEngine.Execute(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.xacute.services.Runner.doGet(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

[Wed Mar 19 16:39:09 EDT 2008] at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispatcher.java:638)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:236)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.SERequestDispatcher.internalForward(SERequestDispatcher.java:283)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:96)

[Wed Mar 19 16:39:09 EDT 2008] at com.lighthammer.cms.system.CMSFilter.doFilter(Unknown Source)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:60)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ApplicationInfo.filterApplRequest(ApplicationInfo.java:2159)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInfo.java:1823)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.java:937)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1091)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:973)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204)

[Wed Mar 19 16:39:09 EDT 2008] at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:487)

[Wed Mar 19 16:39:10 EDT 2008] WARNING: received an illegal cookie name: $Version

[Wed Mar 19 16:39:10 EDT 2008] Cookie: $Version=0; JSESSIONID=mZrFUwEbv-vJKx8dds2Swq6k9k; $Path=/Lighthammer, $Version=0; JSESSIONPROXY=mZrFUwEbv-vJKx8dds2Swq6k9k; $Path=/

[Wed Mar 19 16:39:10 EDT 2008] User-Agent: Jakarta Commons-HttpClient/2.0.2

[Wed Mar 19 16:39:10 EDT 2008] WARNING: received an illegal cookie name: $Path

[Wed Mar 19 16:39:10 EDT 2008] Cookie: $Version=0; JSESSIONID=mZrFUwEbv-vJKx8dds2Swq6k9k; $Path=/Lighthammer, $Version=0; JSESSIONPROXY=mZrFUwEbv-vJKx8dds2Swq6k9k; $Path=/

[Wed Mar 19 16:39:10 EDT 2008] User-Agent: Jakarta Commons-HttpClient/2.0.2

[Wed Mar 19 16:39:10 EDT 2008] WARNING: received an illegal cookie name: $Path

[Wed Mar 19 16:39:10 EDT 2008] Cookie: $Version=0; JSESSIONID=mZrFUwEbv-vJKx8dds2Swq6k9k; $Path=/Lighthammer, $Version=0; JSESSIONPROXY=mZrFUwEbv-vJKx8dds2Swq6k9k; $Path=/

[Wed Mar 19 16:39:10 EDT 2008] User-Agent: Jakarta Commons-HttpClient/2.0.2

Former Member
0 Kudos

Yes, I think the empty body is causing the error. What does the WSDL look like?

Former Member
0 Kudos

The WSDL

<?xml version="1.0" encoding="UTF-8" ?>

- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mxws="http://www.mro.com/mx/wsdl" xmlns:mxint="http://www.mro.com/mx/integration" targetNamespace="http://www.mro.com/mx/wsdl" name="MXWOInterface">

- <types>

- <xsd:schema>

<xsd:import namespace="http://www.mro.com/mx/integration" schemaLocation="http://cisvrmaxtst01/meaweb/schema/Interfaces/MXWOInterface.xsd" />

</xsd:schema>

</types>

- <message name="MXWOInterface">

<part name="input" element="mxint:MXWOInterface" />

</message>

<message name="MXWOInterfaceResponse" />

- <portType name="MXWOInterfacePortType">

- <operation name="processDocument">

<input message="mxws:MXWOInterface" />

<output message="mxws:MXWOInterfaceResponse" />

</operation>

</portType>

- <binding name="MXWOInterfaceBinding" type="mxws:MXWOInterfacePortType">

<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

- <operation name="processDocument">

<soap:operation style="document" />

- <input>

<soap:body use="literal" />

</input>

- <output>

<soap:body use="literal" />

</output>

</operation>

</binding>

- <service name="MXWOInterface">

- <port name="MXWOInterfacePort" binding="mxws:MXWOInterfaceBinding">

<soap:address location="http://cisvrmaxtst01/meaweb/services/MXWOInterface" />

</port>

</service>

</definitions>

Former Member
0 Kudos

The empty response message is definitely the cause, but that was fixed in a patch in version 11.5 (I know, because I coded it - perhaps it never made it into version 12.0?). Check with the SAP xMII team (I'm no longer with SAP).

Rick

Former Member
0 Kudos

Rick-

Thanks for your help. We are on 11.5 but may not be on the latest rev. / patch. I will look into it.

Answers (0)