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

 

Reply via email to