HighTechTalks DotNet Forums  

error generating ... Xml document (when calling web service)

Dotnet XML microsoft.public.dotnet.xml


Discuss error generating ... Xml document (when calling web service) in the Dotnet XML forum.



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

Default error generating ... Xml document (when calling web service) - 06-29-2006 , 03:38 PM






Hello,

I have an XML file that is on my file system. I want to read the file
into memory and call a web service with it.

When I do, the VB complains:
"there was an error generating the XML document".

I see a lot of posts regarding serialization of classes. I am not that
familiar with serialization. Can I not just send the object to the web
service?

Right now I do this in the client:

Dim objXML as new XMLDocument
objXML.Load (MyFile)

....

then the web service call looks like this:

Dim WebService As New WebService.MyFunction
WebService.Submit(objXML) <-- here is where the problem occurs.

my Submit method accepts one arguement byVal as XMLDocument. I took
away my try.. catch block to see what type of error I would get, and in
my client program I have this in the file called reference.map:

Public Sub Submit(ByVal objXMLDocument As System.Xml.XmlNode)
Me.Invoke("Submit", New Object() {objXMLDocument})
End Sub

But in the web service itself - my Submit() Sub takes an argument
called XMLDocument.
I don't understand why these are different. I have tried updating the
web service, but the method signatures are different.

Is this a factor, or am I looking in the wrong direction?

Rob


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: error generating ... Xml document (when calling web service) - 06-29-2006 , 06:22 PM






Never mind- I fixed my own problem.

Since the xml document is a file, I just read it into a string. then I
passed it to my web service, converted the string to XML and now I can
process it.

....
rob


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.