SOAP-Lite - Using XMLDoc as a tag

Posted on Thu Jul 10 18:09:46 2008 by hembreed
Using XMLDoc as a tag
I'm using SOAP::Lite tools to process the WSDL at https://xml.staging.mypublicinfo.com/IDSWebServices/IDSEnrollmentActivation.asmx?WSDL It's Document Literal so the WSDL doesn't really say anything. The Developer says I must send a payload like this:
<ProcessAffiliateIDSEnrollment xmlns="http://tempuri.org/"> <XMLDoc> <Request> <RequestSource xsi:type="xsd:string">CYD</RequestSource> <Product> <PackageID xsi:type="xsd:int">48</PackageID> <ProductUser>
... So I create an XML string like so:
my $pdata = q|<XMLDoc><Request> <RequestSource>CYD</RequestSource> <Product> <PackageID>48</Package +ID> <ProductUser> ...
call the method (using SOAP::XML::Client::DotNet)
if( $rh->fetch({ 'method' => 'ProcessAffiliateIDSEnrollment', 'xml'=> $pdata, } ))
It causes SOAP::Lite to die with this error:
> SOAP::Data::new: () > Element 'XMLDoc' can't be allowed in valid XML message. Died. at /usr/lib/perl5/site_perl/5.8.8/S +OAP/Lite.pm line 1383. > SOAP::Data::DESTROY: ()
If I go to Lite.pm and comment out the code at line 1383, everything works. My question is why? is there a spec somewhere that the DotNet folks are ignoring? Is it a bug? What might happen if I leave it commented out?
Write a response