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