Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 13293 invoked from network); 11 Jan 2007 21:18:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2007 21:18:50 -0000 Received: (qmail 26072 invoked by uid 500); 11 Jan 2007 21:18:49 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 26023 invoked by uid 500); 11 Jan 2007 21:18:48 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 26012 invoked by uid 99); 11 Jan 2007 21:18:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 13:18:48 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of khangaonkar@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 13:18:39 -0800 Received: by wx-out-0506.google.com with SMTP id h28so597137wxd for ; Thu, 11 Jan 2007 13:18:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UPfdr/mf0vqZXi4s2n+CXt7HJFxTc8bLpJG/YlGDfe+R66R/+RAdRW4H3uEgL275FUObsjbPDFqakluSvi6PAvjjj3zgHUS5Dz9S+rOUf6ikhH4lowLzMYsV4WfN34AmnlZX68+Cbu2QBT49GQh+WiLNa40hWjvAw2GpkRmzzPw= Received: by 10.90.49.19 with SMTP id w19mr1382204agw.1168550298664; Thu, 11 Jan 2007 13:18:18 -0800 (PST) Received: by 10.90.96.5 with HTTP; Thu, 11 Jan 2007 13:18:18 -0800 (PST) Message-ID: <541aa82a0701111318u171f9b7eo8d8bb45f2ce245de@mail.gmail.com> Date: Thu, 11 Jan 2007 13:18:18 -0800 From: "Manoj Khangaonkar" To: axis-user@ws.apache.org Subject: Re: Question axis 2 Java2WSDL tool In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27612_18427119.1168550298629" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_27612_18427119.1168550298629 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 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 > > > ------=_Part_27612_18427119.1168550298629 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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 <harish.hirasave@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



------=_Part_27612_18427119.1168550298629--