"Restoring data into SoapMapper anyType failed" error

L

lonnie.lewis

Hi all,
I'm a consumer of a web service which is defining an output parameter
as an "xsd:anyType":

<message name="MyTransaction.IsWebServicesDataValid">
...
<part name="varDisplayMessage" type="xsd:anyType"/>
<part name="varErrorOccurred" type="xsd:anyType"/>
<part name="varErrorDescription" type="xsd:anyType"/>
</message>

When I import the WSDL (as a web reference), the resulting signature
appears as "ref object varDisplayMessage", etc. I have some sample code
using Visual Basic that uses a simple Variant type to pass this. I
can't figure out how to do this in C#. When I define an object as:

object DisplayMessage = null;

and pass it as:

ref DisplayMessage

I get an error showing: "Restoring data into SoapMapper anyType
failed"

What am I doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top