This is what I get in the browser window:

<ns:getVersionResponse>
    <ns:return>
Hello I am Axis2 test service ,null,  My version is 1.3
</ns:return>
</ns:getVersionResponse>


As you see, param1 shows up as null.

My services.xml is defined as:


<service name="AxisTest" scope="application">

    <description>
        This service is to get the running Axis version
    </description>

    <messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only";
                         class="
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out";
                         class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </messageReceivers>

    <parameter name="ServiceClass">sample.axisversion.AxisTest</parameter>

</service>


I really have to make this work to approve Axis2 for our project.
Thank you very much for your help!!!



On 9/17/07, Deepal jayasinghe <[EMAIL PROTECTED]> wrote:
>
>
> > Could someone please guide me. I have modified the Version sample to
> accept a parameter as follows:
> >
> >
> >
> > public class AxisTest {
> >
> >
> >     public String getVersion(String param1) throws Exception {
> >         return "Hello I am Axis2 test service ," + param1 + ", " +
> >
> >                 " My version is " +
> org.apache.axis2.Version.getVersionText();
> >
> >     }
> > }
> >
> > The parameter is passed in the URL as follows:
> > http://localhost:8080/axis2/services/AxisTest/getVersion?param1=Check
> >
> >
> >
> > The parameter is not passed to the method. What do I need to do to pass
> parameters?
> What did you get in the response ? did you get a SOAP fault ?
>
> Thanks
> Deepal
> >
> >
> > I new to Axis2. I do appreciate your time to help me.
> >
> > Best Regards.
> > --
> > Anas Mughal
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Anas Mughal

Reply via email to