Click here to get back home

trouble sending XML payload in SOAP::Lite -> .NET

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
trouble sending XML payload in SOAP::Lite -> .NET jims 01-11-2006
Get Chitika Premium
Posted by jims on January 11, 2006, 10:45 am
Please log in for more thread options


Hi. I've been pulling my hair out here.

I'm interacting with a web service that has two methods. One takes a
simple string arg and returns an XML payload. I've got that working,
having worked through the SOAP::Lite -> .NET gotchas.

Now I'm trying to get the next method to work. In this one, the .NET
provided sample request would look like:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<PutSatelliteInsolationData xmlns="http://www.myserver.com">
<insolationData>
<xsd:schema>
SCHEMA
</xsd:schema>
XML
</insolationData>
</PutSatelliteInsolationData>
</soap:Body>
</soap:Envelope>

When I use the same code that worked for the first method but
substitute a schema for SCHEMA and an xml block (that conforms to
SCHEMA) for XML, I get all sorts of trouble.

If I use SOAP::Lite (+trace => debug) I see that all my xml has its '<'
characters escaped to &lt; I've seen posts that say this is no problem
and the proper way to do things but I'm not sure. In any event I don't
know how to turn on or off this behavior. The server responds that
"Object reference not set to an instance of an object."

I've also tried SOAP::Lite::Simple::DotNet but that does strange things
to my SCHEMA namespaces no matter what the value of strip_default_xmlns
is. For example the schema line:

<xs:schema xmlns:xs="blah">

gets translated into

<xs:schema xs="blah">

and I get a namespace error on "xs".

Can somebody shed some light on this or point me to a page that
discusses uploading XML to .Net servers from SOAP::Lite? I've found a
paucity of examples of SOAP::Lite that involve a client sending xml as
a method argument.

Thanks,

Jim



Similar ThreadsPosted
SOAP::Lite : Problem of # sign added by SOAP::Lite in the sent SOAPActionstring November 5, 2004, 8:45 pm
SOAP::Lite WSDL method with multiple soap:body parts February 16, 2005, 3:32 pm
Writing a HTML/ASP SOAP client for a SOAP::Lite destination March 16, 2005, 5:19 pm
Having trouble installing MIME::Lite module July 6, 2006, 4:25 pm
Help with SOAP::Lite January 19, 2005, 11:35 pm
SOAP::Lite March 3, 2005, 6:13 am
Using SOAP::Lite and .NET November 16, 2005, 2:12 pm
SOAP::Lite March 5, 2007, 4:26 am
use SOAP::Lite +autodispatch ??? November 23, 2004, 3:12 am
SOAP::Lite weirdness April 6, 2006, 8:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap