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



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

.



Relevant Pages

  • Re: how to return xml document from a web service
    ... what specific XML you expect. ... If you have a schema that defines what you expect, ... The second issue with this approach is that XML is not a string. ... >> methods from the wire transport. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • my first Tck/Tk program... and an XML question
    ... program which takes an XML Schema file, ... a basic XML tree and allows the user to save it. ... proc open_schema { ...
    (comp.lang.tcl)
  • RE: Data Insertion
    ... >The physical database structure is already in place. ... >I can determine the XML file and whether it contains a schema. ... In this particular case XML Schema is used to create a DataSet schema (set ... you're probably wondering how it's possible to load XML without XML ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: GEDOM as a database format
    ... format for meaning, that is, structure. ... If at least a basic XML schema is agreed on and XML used in any fashion, ... mothers: the autosomal/X mother and the mitochondrial mother .. ...
    (soc.genealogy.computing)
  • [ANN] New XML Editor in Visual Studio 2005 Beta 1
    ... Full syntax coloring for all XML and DTD syntax. ... Intellisense based on any DTD, ... Schema picker dialog for overriding schemas used for validation, which is then remembered as a document property in your solution. ... Goto Definition command for navigating between elements and their associated DTD, XDR or XSD schema definitions. ...
    (microsoft.public.dotnet.xml)