For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > March 2005 > wsdl tool not able to generate XmlElement as parameter?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author wsdl tool not able to generate XmlElement as parameter?
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com