p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Web Services (http://p2p.wrox.com/forumdisplay.php?f=102)
-   -   Help - Restoring data into SoapMapper failed error (http://p2p.wrox.com/showthread.php?t=30900)

Chinns June 27th, 2005 02:31 PM

Help - Restoring data into SoapMapper failed error
 
Hello folks,

I'm getting following error message in the reference.vb (created using add web feature of VS.Net) when invoking
the our vendor web service which was created using Soap Toolkit 1.0.

 An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in
 system.web.services.dll Additional information: SoapMapper: Restoring data into SoapMapper

Inventory.ListInventory.XMLQuery failed

 I'm passing XML as an input, Here is code, where I'm getting the error,

<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/action/Inventory.ListInventory",
 RequestNamespace:="http://tempuri.org/message/",
 ResponseNamespace:="http://tempuri.org/message/") _

 Public Function ListInventory(ByVal XMLQuery As Object) As
 <System.Xml.Serialization.SoapElementAttribute("Re sult") Object

 ' ------I'm getting error in the line below
     Dim results() As Object = Me.Invoke("ListInventory", New Object() {Nothing, XMLQuery})

     Return CType(results(0), Object)

 End Function

I was able to consume above web service using soap toolkit 3.0 using vb 6.0, but i'm getting when consuming above web service using dot net windows application.

Web Service functions take a NodeList as their payload rather than a complete XML document. So we convert this NodeList object consisting of all children nodes of the main XML Document Node and pass it to the web service method.

Any help will be highly appreciated.

Thanks in advance
-Chinns




All times are GMT -4. The time now is 04:05 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.