AnsweredAssumed Answered

Failed to send a SOAP message generated

Question asked by joni.campos on May 14, 2018
Latest reply on May 16, 2018 by joni.campos

Hi I am trying to call the login SDM WebService to do an integration with CA PPM.

 

 

Calling WebWervice with SOAP UI 

We can connect to the SDM WebService with success using SOAP UI ( which is running inside the CA PPM Server).

 

This is the SOAP we are using.:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

<soapenv:Header/>

<soapenv:Body>

<ser:login>

<username><USERNAME></username>

<password><PASSWORD</password>

</ser:login>

</soapenv:Body>

</soapenv:Envelope>

 

And I get the correct response returning the <sid>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<loginResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

<loginReturn xmlns="">1809969298</loginReturn>

</loginResponse>

</soapenv:Body>

</soapenv:Envelope>

 

 

Calling SDM Webservice using Gel Script

But when we put it inside the Gel Script to run it from a CA PPM process:

 

<gel:script xmlns:core="jelly:core" xmlns:file="jelly:com.niku.union.gel.FileTagLibrary" xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"

xmlns:q="http://www.niku.com/xog/Query" xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"

xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sql="jelly:sql"

xmlns:util="jelly:util" xmlns:xog="http://www.niku.com/xog" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 

 

<soap:invoke endpoint="http://<OUR_SERVER>/axis/services/USD_R11_WebService" var="auth"> <soap:message>

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

xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk" var="auth">

 

<soapenv:Body>

<ser:login>

<username><USERNAME></username>

<password><PASSWORD</password>

</ser:login>

</soapenv:Body>

</soapenv:Envelope>

</soap:message>

</soap:invoke>

</gel:script>

 

We get this message process error:

 

SOAP message generated to 'http://<OUR_SERVER>/axis/services/USD_R11_WebService'.HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:76) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at com.niku.union.gel.GELScript.run(GELScript.java:67) at com.niku.union.gel.GELController.invoke(GELController.java:74) at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:63) at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:72) ... 11 more Root cause java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:63) at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:72) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)

at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at com.niku.union.gel.GELScript.run(GELScript.java:67) at com.niku.union.gel.GELController.invoke(GELController.java:74) at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

org.apache.commons.jelly.JellyTagException: null:5:93: <soap:invoke> Failed to send a SOAP message generated to 'http://<OUR_SERVER>/axis/services/USD_R11_WebService'.HTTP Error: Status-Code: 500: Internal Server Error

at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:76)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)

at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)

at com.niku.union.gel.GELScript.run(GELScript.java:67)

at com.niku.union.gel.GELController.invoke(GELController.java:74)

at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error

at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316)

at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88)

at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:63)

at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:72)

... 11 more

Root cause

java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error

at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316)

at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88)
at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:63)
at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:72)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at com.niku.union.gel.GELScript.run(GELScript.java:67)
at com.niku.union.gel.GELController.invoke(GELController.java:74)
at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

 

Any Idea of what is going wrong ?

Outcomes