I've generated classes for use in visual studio .net (c#), based on a given xsd schema that defines a genericMessage (with the xsd.exe-tool). Now I want to send a message to a web service that accepts this genericMessage-xml. In my main application I create an instance of the genericMessage class and try to send it: WebService.WebMethod(genericMessage-instance)
But the compiler complains that I have given the WebMethod invalid arguments.
And if I use the genericMessage class from the Web Reference to the Web Service and pass it to the web method, the program compiles, but when I test it, I get a missing dependencies error. (the Web Service I try to contact is written in java)
I don't understand why this doesn't work. When I invoke the web method it should create an xml and pass that to the web service right?
Can someone help?