473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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

Jun 29 '06 #1
1 2997
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

Jun 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: SQLScott | last post by:
I have a Web Service in which I am trying to pass an XMLDocument as a parameter to one of the methods. I would like to use the XMLTextReader to read the XML but I am getting the following error: ...
3
by: Raed Sawalha | last post by:
Hello when I serialize an object an error generated using this function public string SerializeObject(object oClassObject,System.Type oClassType) { XmlSerializer oSerializer = new...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
0
by: Ahmad Atawneh | last post by:
I have the following problem: i have a client (windows service) calling a web service using an 128kbps connection line. The client will frequently send records of approximately 300KB to the web...
2
by: RichardG | last post by:
I have an object data class that Inherits from a java class and implements System.Runtime.Serialization.ISerializable as I only need to transfer across three properties, string, array of objects...
0
by: Nick | last post by:
Hi all, We currently have a web service developed in Java, which we're calling from a dot net coded windows form. this web service is returning an object of type abc (say). Now, when we try and...
2
by: Pablo | last post by:
We are calling a web service running in IIS 6.0 (Windows 2003 Server) When we call a web service method to send a large xml document (2Mb) obtain an http error 413 (entity too large) We have...
0
Sakalicek
by: Sakalicek | last post by:
Hi all, I have following problem in my application. I have Web Service and project which uses methods from this Web Service. I created proxy WsProxy by wsdl.exe and put it into that project. But...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.