Re: Writing Java Webservice for a given .NET client
- From: The Ghost In The Machine <ewill@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 May 2006 16:00:04 GMT
In comp.lang.java.advocacy, Oliver Wong
<owong@xxxxxxxxxxxxxx>
wrote
on Mon, 29 May 2006 18:21:04 GMT
<kYGeg.2547$sK6.259@edtnps90>:
"VJ" <contactvictorj@xxxxxxxxx> wrote in message
news:1148690430.611071.216450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have code for a .net webservice and a .net client for it that work
fine. I want to write a Java webservice that could be consumed by the
same client w/o changing any code (just the url). The problem is that
the c# service exposes a function which takes an out parameter. Since
Java doesn't have out parameters does anyone know how I would write a
Java function such that when I pass to java2wsdl or a similar tool it
would generate the correct wsdl?
I.e. the section of the wsdl that I'm concerned about is:
<s:element name="FunctionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="FunctionResult"
type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="outParameter"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
there needs to be 2 elements in the response, the return value and the
out parameter.
Any input appriciated.
I'm not familiar with the .NET architecture, but since you're writing a
webservice, essentially what's happening is that the client makes an HTTP
request, and the server sends an XML document in response, right?
So just have your Java program/servlet/JSP script/whatever produce an
XML document in the same format.
- Oliver
And there are a fair number of methods by which
one can accomplish that. AFAICT, a popular one is
a JBoss/Struts/StrutsCX combination, for example.
Castor is a nice addition but their download area is
slightly unreliable right now.
http://www.jboss.org/
http://struts.apache.org/index.html
http://it.cappuccinonet.com/strutscx/index.php
http://www.castor.org/
--
#191, ewill3@xxxxxxxxxxxxx
Windows Vista. Because it's time to refresh your hardware. Trust us.
.
- References:
- Writing Java Webservice for a given .NET client
- From: VJ
- Re: Writing Java Webservice for a given .NET client
- From: Oliver Wong
- Writing Java Webservice for a given .NET client
- Prev by Date: Re: Linux now shipping Sun's Java software ?
- Next by Date: Re: Linux now shipping Sun's Java software ?
- Previous by thread: Re: Writing Java Webservice for a given .NET client
- Next by thread: Re: OT: FUTBOL!!!! The world cup live on your small devices
- Index(es):
Relevant Pages
|