Loading ...
Sorry, an error occurred while loading the content.

2408Re: [soaplite] Returning objects: SOAP::Lite server -> .NET client

Expand Messages
  • Dave Hodson
    Feb 22, 2003
    • 0 Attachment
      Bruno

      Can you post a few snippets of your server and client
      code?

      Dave


      --- Bruno Connelly <bruno@...> wrote:
      > Hello.
      >
      > I've read through the threads I can find about
      > SOAP::Lite server/.NET
      > client interop and almost have everything just about
      > functional.
      >
      > The only thing that I'm still having issues with is
      > returning an
      > object to a .NET client (all other returns seem to
      > work fine). The
      > XML payload my SOAP::Lite server generates causes
      > the .NET client to
      > throw an exception as such:
      >
      > There is an error in XML document (1, 584). -->
      > Cannot assign object
      > of type System.Xml.XmlNode[] to an object of type
      > Blah.foo.
      >
      > It appears that the .NET client is expecting the
      > SOAP body portion of
      > the XML payload something like:
      >
      > <soap:Body
      >
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      > <tns:echoFooResponse>
      > <echoFooResult href="#id1" />
      > </tns:echoFooResponse>
      > <q1:foo id="id1" xsi:type="q1:foo"
      >
      > xmlns:q1="http://domain.com/SOAPTest/encodedTypes">
      > <a xsi:type="xsd:string">string</a>
      > <b xsi:type="xsd:string">string</b>
      > </q1:foo>
      > </soap:Body>
      >
      > While the SOAP::Lite server's return looks like:
      >
      > <SOAP-ENV:Body>
      > <namesp1:echoFooResponse
      > xmlns:namesp1="http://domain.com/SOAPTest">
      > <foo xsi:type="namesp2:foo">
      > <a xsi:type="xsd:string">string</a>
      > <b xsi:type="xsd:string">string</b>
      > </foo>
      > </namesp1:echoFooResponse>
      > </SOAP-ENV:Body>
      >
      > The biggest difference I can see is the fact that
      > the value portion of
      > the payload exists outside of the <...Response>
      > element in what the
      > .NET side is expecting.
      >
      > If anyone has any ideas whatsoever on how I need to
      > change my approach
      > (either on the SOAP::Lite or .NET side) to make
      > everything coalescent,
      > I'd be much obliged.
      >
      > Thanks for your time,
      >
      > b.
      > --
      > /* Bruno Connelly, <bruno@...> */
      >
      >


      __________________________________________________
      Do you Yahoo!?
      Yahoo! Tax Center - forms, calculators, tips, more
      http://taxes.yahoo.com/
    • Show all 4 messages in this topic