<div>hi,</div>
<div> </div>
<div>I am using SOAP::lite and the module from the <a href="http://stubmaker.pl">stubmaker.pl</a> to invoke SOAP APIs from WSDL.<br> <br>my original SOAP request looks like the following<br>==============================<br>
&lt;?xml version = &quot;1.0&quot; encoding = &quot;UTF-8&quot; ?&gt;<br>&lt;soapenv:Envelope xmlns:soapenv=&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>&quot; <br>
xmlns:xsd=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; <br>xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
  &lt;soapenv:Header&gt;<br>    &lt;USER soapenv:mustUnderstand=&quot;0&quot; xsi:type=&quot;xsd:string&quot;&gt;admin&lt;/USER&gt;<br>    &lt;PASSWORD soapenv:mustUnderstand=&quot;0&quot; xsi:type=&quot;xsd:string&quot;&gt;admin&lt;/PASSWORD&gt;<br>
    &lt;SYSTEMUSER soapenv:mustUnderstand=&quot;0&quot; xsi:type=&quot;xsd:string&quot;/&gt;<br>  &lt;/soapenv:Header&gt;<br>  &lt;soapenv:Body&gt;<br>    &lt;ns1:getNewGroup <br>xmlns:ns1=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/NewGroupService">http://www.xyznet.com/sms/smsapi/r08_00/NewGroupService</a>&quot; <br>
soapenv:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot;&gt;<br>      &lt;in0 href=&quot;#id0&quot;/&gt;<br>      &lt;in1 href=&quot;#id1&quot;/&gt;<br>
    &lt;/ns1:getNewGroup&gt;<br>    &lt;multiRef xmlns:soapenc=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; <br>xmlns:ns2=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/model">http://www.xyznet.com/sms/smsapi/r08_00/model</a>&quot; id=&quot;id1&quot; <br>
soapenc:root=&quot;0&quot; <br>soapenv:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; <br>xsi:type=&quot;ns2:NewGroupKey&quot;&gt;<br>      &lt;internalId xsi:type=&quot;xsd:string&quot;&gt;16789900&lt;/internalId&gt;<br>
    &lt;/multiRef&gt;<br>    &lt;multiRef xmlns:ns3=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/model">http://www.xyznet.com/sms/smsapi/r08_00/model</a>&quot; <br>xmlns:soapenc=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; id=&quot;id0&quot; <br>
soapenc:root=&quot;0&quot; <br>soapenv:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; <br>xsi:type=&quot;ns3:PartKey&quot;&gt;<br>      &lt;internalId xsi:type=&quot;xsd:string&quot;&gt;15&lt;/internalId&gt;<br>
      &lt;name xsi:type=&quot;xsd:string&quot; xsi:nil=&quot;true&quot;/&gt;<br>    &lt;/multiRef&gt;<br>  &lt;/soapenv:Body&gt;<br>&lt;/soapenv:Envelope&gt;</div>
<div> </div>
<div> </div>
<div>My Perl module from <a href="http://stubmaker.pl">stubmaker.pl</a> that contains the above section looks like the following<br>=================================================================<br>my %methods = (<br>
getNewGroup =&gt; {<br>    endpoint =&gt; &#39;<a href="http://10.3.1.5/smsapi/services/SMSAPI/r08_00/NewGroupService">http://10.3.1.5/smsapi/services/SMSAPI/r08_00/NewGroupService</a>&#39;,<br>    soapaction =&gt; &#39;&#39;,<br>
    namespace =&gt; &#39;<a href="http://www.xyznet.com/sms/smsapi/r08_00/NewGroupService">http://www.xyznet.com/sms/smsapi/r08_00/NewGroupService</a>&#39;,<br>    parameters =&gt; [<br>      SOAP::Data-&gt;new(name =&gt; &#39;in0&#39;, type =&gt; &#39;tns1:PartKey&#39;, attr =&gt; {}),<br>
      SOAP::Data-&gt;new(name =&gt; &#39;in1&#39;, type =&gt; &#39;tns1:NewGroupKey&#39;, attr =&gt; {}),<br>    ], # end parameters<br>  }, # end getNewGroup</div>
<div> </div>
<div> </div>
<div>My Perl script looks like as follows</div>
<div>=========================</div>
<div> </div>
<div>#!/ats/usr/perl -w</div>
<div>use SOAP::Lite +trace =&gt; &#39;debug&#39;;<br>use Data::Dumper;</div>
<div>use SMSAPIService_r08_00_NewGroupService qw(:all);</div>
<div>my $obj = new SMSAPIService_r08_00_NewGroupService;<br>$obj -&gt; use_prefix(0);<br>$obj-&gt;readable(1);<br>$obj-&gt;want_som(1);<br>$obj-&gt;multirefinplace(1);</div>
<div>my $response = $obj-&gt;getNewGroup(En);</div>
<div> </div>
<div>My POST request&lt;-&gt;response looks as follows</div>
<div>=========================</div>
<div> </div>
<div> use_prefix has been deprecated. if you wish to turn off or on the use of a default namespace, then please use either ns(uri) or default_ns(uri) at /ats/langs/perl_5.8.7/lib/site_perl/5.8.7/SOAP/Lite.pm line 887.<br>
URI is not provided as an attribute for method (authenticate)<br>SOAP::Transport::HTTP::Client::send_receive: POST <a href="http://10.3.1.5/smsapi/services/SMSAPI/r08_00/GroupGroupService">http://10.3.1.5/smsapi/services/SMSAPI/r08_00/GroupGroupService</a> HTTP/1.1<br>
Accept: text/xml<br>Accept: multipart/*<br>Accept: application/soap<br>Content-Length: 985<br>Content-Type: text/xml; charset=utf-8<br>SOAPAction: &quot;&quot;</div>
<div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;soap:Envelope <br>    xmlns:wsdlsoap=&quot;<a href="http://schemas.xmlsoap.org/wsdl/soap/">http://schemas.xmlsoap.org/wsdl/soap/</a>&quot; <br>
    xmlns:apachesoap=&quot;<a href="http://xml.apache.org/xml-soap">http://xml.apache.org/xml-soap</a>&quot; <br>    soap:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; <br>
    xmlns:soap=&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>&quot; <br>    xmlns:tns1=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/model">http://www.xyznet.com/sms/smsapi/r08_00/model</a>&quot; <br>
    xmlns:impl=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/GroupGroupService">http://www.xyznet.com/sms/smsapi/r08_00/GroupGroupService</a>&quot; <br>    xmlns:wsdl=&quot;<a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>&quot; <br>
    xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot; <br>    xmlns:soapenc=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; <br>
    xmlns:xsd=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot;&gt;<br>  &lt;soap:Header&gt;<br>    &lt;USER xsi:type=&quot;xsd:string&quot;&gt;admin&lt;/USER&gt;</div>
<div>    &lt;PASSWORD xsi:type=&quot;xsd:string&quot;&gt;admin&lt;/PASSWORD&gt;<br>  &lt;/soap:Header&gt;</div>
<div>  &lt;soap:Body&gt;<br>    &lt;impl:getNewGroup&gt;<br>      &lt;in0 xsi:nil=&quot;true&quot; xsi:type=&quot;tns1:PartKey&quot; InternalId=&quot;15&quot; /&gt;<br>          &lt;/impl:getNewGroup&gt;<br>  &lt;/soap:Body&gt;<br>
&lt;/soap:Envelope&gt;<br>SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error<br>Connection: close<br>Date: Tue, 22 Dec 2009 14:49:49 GMT<br>Server: Apache-Coyote/1.1<br>Content-Type: text/xml;charset=utf-8<br>
Client-Date: Tue, 22 Dec 2009 14:49:57 GMT<br>Client-Peer: <a href="http://10.3.1.5:80">10.3.1.5:80</a><br>Client-Response-Num: 1</div>
<div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;soapenv:Envelope xmlns:soapenv=&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>&quot; xmlns:xsd=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
 &lt;soapenv:Body&gt;<br>  &lt;soapenv:Fault&gt;<br>   &lt;faultcode&gt;soapenv:Server.generalException&lt;/faultcode&gt;<br>   &lt;faultstring&gt;&lt;/faultstring&gt;<br>   &lt;detail&gt;<br>    &lt;ns1:fault href=&quot;#id0&quot; xmlns:ns1=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/GroupGroupService%22/">http://www.xyznet.com/sms/smsapi/r08_00/GroupGroupService&quot;/</a>&gt;<br>
    &lt;ns2:exceptionName xmlns:ns2=&quot;<a href="http://xml.apache.org/axis/%22%3Ecom.xyz.sms.api.r08_00.model.SMSAPIInternalException%3C/ns2:exceptionName">http://xml.apache.org/axis/&quot;&gt;com.xyz.sms.api.r08_00.model.SMSAPIInternalException&lt;/ns2:exceptionName</a>&gt;<br>
   &lt;/detail&gt;<br>  &lt;/soapenv:Fault&gt;<br>  &lt;multiRef id=&quot;id0&quot; soapenc:root=&quot;0&quot; soapenv:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xsi:type=&quot;ns3:SMSAPIInternalException&quot; xmlns:soapenc=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xmlns:ns3=&quot;<a href="http://www.xyznet.com/sms/smsapi/r08_00/model">http://www.xyznet.com/sms/smsapi/r08_00/model</a>&quot;&gt;<br>
   &lt;errorMessage xsi:type=&quot;xsd:string&quot;&gt;Group Group Key cannot be null<br>(com.xyz.sms.common.SMSException: no user message defined)&lt;/errorMessage&gt;<br>   &lt;errorCode xsi:type=&quot;xsd:int&quot;&gt;-9999&lt;/errorCode&gt;<br>
   &lt;messageKey xsi:type=&quot;xsd:string&quot; xsi:nil=&quot;true&quot;/&gt;<br>  &lt;/multiRef&gt;<br> &lt;/soapenv:Body&gt;<br>&lt;/soapenv:Envelope&gt;</div>
<div> </div>
<div> </div>
<div>========================================</div>
<div>I am unable to construct the SOAP xml body as in my original request wherin multiRef body content is observed and further I get 500 server error.</div>
<div>Can you please help me to recreate my request using the module generated by stubmaker?</div>
<div> </div>
<div>regards,</div>
<div>Naresh</div>
<div> </div>
<div> </div>