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 "Roberto (JIRA)" <ji...@apache.org> on 2007/04/22 11:23:15 UTC

[jira] Resolved: (AXIS2-2576) WebService dosn't work wih parameter in the method

     [ https://issues.apache.org/jira/browse/AXIS2-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roberto resolved AXIS2-2576.
----------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.1

> WebService dosn't work wih parameter in the method
> --------------------------------------------------
>
>                 Key: AXIS2-2576
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2576
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.1.1
>         Environment: windows xp. Last version of axis2.war (april 21, 2007)
>            Reporter: Roberto
>            Priority: Critical
>             Fix For: 1.1.1
>
>
> Hi experts (Im a newbie),
> I got a little problems that I cannot solve by myself... I got this simple
> service:
> public class StockService {
>    private String datiBack=null;
>    public String getAvailability(){
>    //public String getAvailability(String strType){
>      datiBack = "Sembra funzionare";
>      return datiBack;
>    }
> }
> I compile it I create an .aar file I upload it in Axis2 everything works
> properly I make the request thru browser
> http://localhost:8080/axis2/services/StockService/getAvailability
> and I got the "Sembra funzionare" wrapped in soap tag.
> If I uncomment & change the getAvailability method with the one that need
> a String parameter, I compile everything I upload in Axis2, same as
> before, everything is ok but when I make the request
> http://localhost:8080/axis2/rest/StockService/getAvailability?strType=Nylon
> I got this back:
> <soapenv:Fault>
>  <faultcode/>
>    <faultstring>
>      Required element null defined in the schema can not be found in the
> request
>    </faultstring>
>    <detail/>
> </soapenv:Fault>
> The same problem is following the POJO example under the quickstart guide (http://ws.apache.org/axis2/1_1_1/quickstartguide.html#deploy)
> So if somebody can explain me that could be great
> Thanx in adavance
> Ciao
> Roberto

-- 
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