You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Harish Hirasave <ha...@parago.com> on 2007/01/11 21:05:08 UTC

Question axis 2 Java2WSDL tool

Hi,

 

I have a pojo from which I am trying a generate a wsdl. The pojo has the
method 

 

public String getEligibleIVRPromotions(String phone)

        throws RemoteException

    {

        String errorMsg =
"IVRServiceSoapBindingImpl.getEligibleIVRPromotions(String):";

        String xml = null;

        return xml;

    }

 

This method returns a String object.

 

When I convert it to wsdl using the java2WSDL tool the wsdl method gets
generated with a getEligibleIVRPromotionsRequest Object as input and
getEligibleIVRPromotionsResponse Object as the return object.

 

How do I prevent this and  make the method return a String object and
not a wrapper object getEligibleIVRPromotionsResponse? Attached is the
wsdl. Please help.

 

 

 

Thanks

Harish


Re: Question axis 2 Java2WSDL tool

Posted by Manoj Khangaonkar <kh...@gmail.com>.
Harish,

By default , AXIS2 java2WSDL generates what is called doc lit wrapped style
WSDL.

My guess is you want RPC lit style WSDL - like below


<wsdl:message name="getEligibleIVRPromotionsResponseMessage">

<wsdl:part name="part1" element="xsd:string"/>

</wsdl:message>
I think AXIS2 java2WSDL does not support this ( not 100% sure) --- You might
want to try using the original AXIS java2WSDL - You typically pass in the
WSDL
style as a command line parameter.

In the original java2WSDL you could say java2WSDL -style rpc .............

in AXIS2 , you would java2WSDL -st ---- but I am not sure what the supported
values are.

Mj


On 1/11/07, Harish Hirasave <ha...@parago.com> wrote:
>
>  Hi,
>
>
>
> I have a pojo from which I am trying a generate a wsdl. The pojo has the
> method
>
>
>
> public String getEligibleIVRPromotions(String phone)
>
>         throws RemoteException
>
>     {
>
>         String errorMsg = "
> IVRServiceSoapBindingImpl.getEligibleIVRPromotions(String):";
>
>         String xml = null;
>
>         return xml;
>
>     }
>
>
>
> This method returns a String object.
>
>
>
> When I convert it to wsdl using the java2WSDL tool the wsdl method gets
> generated with a getEligibleIVRPromotionsRequest Object as input and
> getEligibleIVRPromotionsResponse Object as the return object.
>
>
>
> How do I prevent this and  make the method return a String object and not
> a wrapper object getEligibleIVRPromotionsResponse? Attached is the wsdl.
> Please help.
>
>
>
>
>
>
>
> Thanks
>
> Harish
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>