File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Problem Parameter Order Axis1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem Parameter Order Axis1.4" Watch "Problem Parameter Order Axis1.4" New topic
Author

Problem Parameter Order Axis1.4

Jacques deMolay
Greenhorn

Joined: Mar 13, 2007
Posts: 1
Hello, I built a Java Web Service(Tomcat 6.0, Axis1.4) which has 7 methods. Several methods accepts strings parameters. Now I would like to test the service by calling it from my browser with the following url

http://localhost:8080/axis/DefaultNamespace/CalleGIT.jws?method=cEntSing&provinc=provincia&municip=municipio&entidco=entidco&entidsi=entidsi

CalleGIT.cEntSing.Parametro provincia����������� >> entidadco��� �would be provincia
CalleGIT.cEntSing.Parametro municipio���������� >> provincia����� would be municipio
CalleGIT.cEntSing.Parametro entidadColectiva >> entidadsi���� would be entidadco
CalleGIT.cEntSing.Parametro�entidadSingular� >> municipio��� wolud be entidadsi


Since the assignment should depent on the name of the passed parameter I cannot understand why this happens. I then called the service with completely different parameter names

http://localhost:8080/axis/DefaultNamespace/CalleGIT.jws?method=cEntSing&p4=provincia&p3=municipio&p2=entidco&p1=entidsi

Output is ok



CODE

public class CalleGIT {

public String cEntSing(String provinc,String municip,String entidco,String entidsi) {
System.out.println("CalleGIT.cEntSing.Parametro provincia >>" + provinc);
System.out.println("CalleGIT.cEntSing.Parametro municipio >>" + municip);
System.out.println("CalleGIT.cEntSing.Parametro entidadColectiva>> " + entidco);
System.out.println("CalleGIT.cEntSing.Parametro entidadSingular >> " + entidsi);
return "retorno cEntSing";
}




Any ideas what could be wrong here?

King Regards

-Jacques de Molay-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Parameter Order Axis1.4