| Casper Bang 2005-03-03, 4:02 pm |
| I set up a Document-Literal(wrapped) WebService on a Oracle container
(J2EE 1.4/JAX-RPC) and made a basic method which I can invoke from a
browser or Java client.
Java prototype: public org.w3c.dom.Element getIsPrime( org.w3c.dom.Element);
My goal is then to be able to access it from .NET client as well for
true interoperability. I used MS's wsdl tool to generate the C# stub.
The stub works for simple method calls where a string is supplied as
argument but the beforementioned getIsPrime which supplies an XmlElement
generates an error on the server (NullPointerException). It then came to
my attention that the stub prototype uses object where I would have
assumed XmlElement:
object getIsPrime( object );
Why is this? Is it the wsdl tool which can not generate XmlElement's? (I
thought though that .NET was Document based) or what could possible be
wrong? For references, my wsdl can be found here:
http://www.qqsoft.dk/MyWebService1.xml
Any help or pointers greatly appreciated, thanks,
Casper
|