You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by David Thielen <da...@windward.net> on 2004/04/20 21:52:28 UTC
Asking again: Document/literal client app (from WSDL2Java) doesn't work
_____
From: David Thielen [mailto:david@windward.net]
Sent: Sunday, April 18, 2004 1:29 PM
To: axis-user@ws.apache.org
Subject: RE: Document/literal client app (from WSDL2Java) doesn't work
And to follow up, I removed the "-y DOCUMENT -u LITERAL" from the Java2WSDL
call and now it all works fine. (Except that I need document/literal for
.net interoperability.)
Thanks - dave
_____
From: David Thielen [mailto:david@windward.net]
Sent: Sunday, April 18, 2004 1:24 PM
To: Axis Users
Subject: Document/literal client app (from WSDL2Java) doesn't work
Hi;
I created a server using:
java org.apache.axis.wsdl.Java2WSDL -o adder.wsdl -y DOCUMENT -u LITERAL -T
1.2 -l"http://localhost:8080/axis/services/Adder" -n
"http://www.thielen.com/" -p"Adder" "http://www.thielen.com/" Adder.Service1
java org.apache.axis.wsdl.WSDL2Java -o server -N"http://www.thielen.com/"
"Adder" -s -T 1.2 adder.wsdl
And then created a client using:
java org.apache.axis.wsdl.WSDL2Java -o jclient -N"http://www.thielen.com/"
"Adder" -T 1.2 http://localhost:8080/axis/services/Adder?wsdl
The api is very simple:
public int Add(int num1, int num2);
public String HelloWorld();
But the results are very weird. The soap body sent over for HelloWorld is
fine and works:
<soapenv:Body>
<HelloWorld xmlns="http://www.thielen.com/"/>
</soapenv:Body>
But for Add - it doesn't have the method name:
<soapenv:Body>
<in0 xmlns="http://www.thielen.com/">1</in0>
<in1 xmlns="http://www.thielen.com/">2</in1>
</soapenv:Body>
Any idea what's going on and how to fix? (To totally test, in undeployed the
server, rebooted, deployed, and ran it again. So I'm 99% sure it's not
pointing at the wrong code.)
Thanks - dave