You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rabiya (JIRA)" <ax...@ws.apache.org> on 2007/10/05 12:54:50 UTC

[jira] Commented: (AXIS-2636) Problem Parameter order

    [ https://issues.apache.org/jira/browse/AXIS-2636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532619 ] 

Rabiya commented on AXIS-2636:
------------------------------

Hello,

I had a similar issue with my setup using string and Long parameters. I have worked around the issue by specifying the parameters in the alphabetic order in the service implementation.

So to say the method signature for your application should change to :
public String cEntSing(String entidco, String entidsi, String provinc, String municip)

With the above signature, you can access the service using any order in the url for the above parameters.

~ Rabiya

> Problem Parameter order 
> ------------------------
>
>                 Key: AXIS-2636
>                 URL: https://issues.apache.org/jira/browse/AXIS-2636
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>         Environment: Windows XP ,Tomcat 4.1,  Axis 1.4, Java
>            Reporter: Diego Sanchez
>            Priority: Critical
>             Fix For: 1.4
>
>
> Hello, 
> I have a webservice which has several methods. Some methods accepts several string parameters as input.  I deployed the service to the tomcat 4.1 container. Everything seems to be fine. Now I would like to test the service by calling it from my browser with the following url
> http://localhost:8080/axis/services/CalleGIT.jws?method=cEntSing&provinc=provincia&municip=municipio&entidco=entidadco&entidsi=entidadsi
> It first writes out  the transferred parameters but the assignment is not corrent. The output is
> Calling cEntSing method with provincia entidadco and municipio provincia and entidadco entidadsi and entidadsi municipio
> However, the same url but with distinct parameter name  (p4,p3,p2,p1) is OK
> http://localhost:8080/axis/services/CalleGIT.jws?method=cEntSing&p4=provincia&p3=municipio&p2=entidadco&p1=entidadsi
> Calling cEntSing method with provincia provincia and municipio municipio and entidadco entidadco and entidadsi entidadsi
> CODE
> public class CallEGIT {
> ......
> public String cEntSing(String provinc, String municip, String entidco, String entidsi) {
> System.out.println("Calling cEntSing method with provincia " + provinc+ " and municipio " + municip + "and entidadco " + entidco + " and entidadsi " + entidsi);  
> }
> }
> WSSDD (partly)
>      <<operation name="cEntSing" qname="operNS:services.cEntSing" xmlns:operNS="http://services" returnQName="cEntSingReturn" returnType="rtns:string" xmlns:rtns="http://services" >
>        <parameter name="provinc"   type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>        <parameter name="municip"   type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>        <parameter name="entidco"   type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>        <parameter name="entidsi"   type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>      </operation>
>  
> Any ideas what could be wrong here?
> Diego Sanchez

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org