HighTechTalks DotNet Forums  

"Restoring data into SoapMapper anyType failed" error

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss "Restoring data into SoapMapper anyType failed" error in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default "Restoring data into SoapMapper anyType failed" error - 06-25-2006 , 08:54 PM






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?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.