AnsweredAssumed Answered

Http error 500 while calling .Net webservice from GEL script

Question asked by sanjay.surendranath1.1 on Mar 2, 2011
Latest reply on Apr 7, 2014 by viral.shah.1
Hi All,

I am facing some issues in calling a .Net webservice from my GEL script and it returns the below error. However, i am able to call a java based webservice successfully using the same code by changing the endpoint and the soap body in the below code. I would highly appreciate any help in resolving this.

[color=#CC2323]BPM-0704: An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:14:112: <soap:invoke> Failed to send a SOAP message generated to 'http://eavqadotnet301/CMServices/ContractSvc.asmx'.HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.gel.tags.soap.InvokeTag.doTag[color]

Below is the GEL script i am using

<gel:script

xmlns:core="jelly:core"

xmlns:fileutil="jelly:com.ca.clarity.services.utils.FileUtilsTagLibrary"

xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"

xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"

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


<soap:invoke endpoint="http://website.com/WSClarityMobileApp/MobileData.asmx" var="xogdata">



<soap:message>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://tempuri.org/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

<soap:Header/>





<soap:Body>



<tns:GetData>






<tns:value>4</tns:value>


</tns:GetData>


</soap:Body>





</soap:Envelope>





</soap:message>

</soap:invoke>



<gel:set asString="true"

select="$xogdata" var="printme"/>

<gel:log level="info" message="XOG RESPONSE = ${printme}"/>

</gel:script>

Outcomes