15 Jun 2012 11:17
Handling Soap request with Yaws
Hi,
I run yaws webserver such that is accepts soap requests via post and have to process it.
I have got the wsdl and wrote the hrl,
below is the request I am getting via post. But I am facing error in server side.
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sub="http://SubscriptionEngine.ibm.com">
<soapenv:Header/>
<soapenv:Body>
<sub:notificationToCP>
<notificationRespDTO>
<xactionId>0</xactionId>
<errorCode>1</errorCode>
<errorMsg>Success</errorMsg>
<temp1>33</temp1>
<temp2>0</temp2>
<temp3>0</temp3>
<lowBalance>0.0</lowBalance>
<amount>1.0</amount>
<chargigTime>2011-10-04T15:45:40.890Z</chargigTime>
<msisdn>9999999999</msisdn>
<productId>111</productId>
</notificationRespDTO>
</sub:notificationToCP>
</soapenv:Body>
</soapenv:Envelope>
and the error is
Reason: {function_clause,
[{string,strip_left,
[<<"<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sub=\"http://xxxxxxxxxxxxxxxx.com\"> <soapenv:Header/> <soapenv:Body> <sub:notificationToCP> <notificationRespDTO> <xactionId>0</xactionId> <errorCode>1</errorCode> <errorMsg>Success</errorMsg> <temp1>33</temp1> <temp2>0</temp2> <temp3>0</temp3> <lowBalance>0.0</lowBalance> <amount>1.0</amount> <chargigTime>2011-10-04T15:45:40.890Z</chargigTime> <msisdn>9999999999</msisdn> <productId>111</productId> </notificationRespDTO> </sub:notificationToCP> </soapenv:Body></soapenv:Envelope>">>,
32],
[{file,"string.erl"},{line,331}]},
{yaws_soap_lib,parseWsdls,4,
[{file,"yaws_soap_lib.erl"},{line,347}]},
{yaws_soap_lib,initModel2,5,
[{file,"yaws_soap_lib.erl"},{line,328}]},
{m2,out,1,
Thanks,
Marutha
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Erlyaws-list mailing list Erlyaws-list@... https://lists.sourceforge.net/lists/listinfo/erlyaws-list
RSS Feed