Anne, I meant I used the -uw option in step 3 below which generates the input parameter as String now but the output parameter is a wrapped Response Object which is causing problems when I invoke the service using php. I get a boolean output instead of String because of this.
Thanks Harish -----Original Message----- From: Harish Hirasave [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 1:31 PM To: axis-user@ws.apache.org Subject: RE: Question axis 2 Java2WSDL tool Hi Anne, I am using axis 2-1.1.1 and not axis 1.x. I am migrating from axis 1.2 to axis 2 -1.1.1. I did the following. 1. Created a Pojo 2. Generated a wsdl using Java2WSDL. This is where I am having problems as axis 2 is generating request and response objects and not basic java objects as parameters. The Java2WSDL tool does not have an option to generate wsdl as unwrapped which I want as the client that uses my wsdl is a non java client like php. 3. Generated stub and skeleton using WSDL2Java. This has a -ur option but does not seem to be working. Thanks Harish -----Original Message----- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 8:03 PM To: axis-user@ws.apache.org Subject: Re: Question axis 2 Java2WSDL tool In Axis 1.x, you must specify style="unwrapped" in the WSDD, or you must ensure that the WSDL conforms to the wrapped doc/literal convention. On 1/16/07, Harish Hirasave <[EMAIL PROTECTED]> wrote: > Hello Anne, > > I could not find this feature of automatic unwrapping. The Java2WSDL and > WSDL2Java in axis2-1.1.1 work in the same way as the axis2-1.1. The code > gets generated wrapped and I am unable to un wrap the classes and get > return types as basic java objects. Please tell how this feature of > unwrapping has been implemented and how to use it. > > Thanks > Harish > > -----Original Message----- > From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] > Sent: Friday, January 12, 2007 7:06 AM > To: axis-user@ws.apache.org > Subject: Re: Question axis 2 Java2WSDL tool > > Try using Axis2 1.1.1. What you're looking for is automatic > "unwrapping" of the wrapper element, and that has only recently been > implemented. > > Anne > > On 1/11/07, Harish Hirasave <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I want document literal style but not wrapped. I am trying to convert > an > > application from axis 1.2 to axis 2.1 and hence would like to use > document > > literal but I don't want the wrapper objects as the client that would > use > > the service will not be a java client. Is there a way I can do this? > > > > > > > > ________________________________ > > > > > > From: Manoj Khangaonkar [mailto:[EMAIL PROTECTED] > > Sent: Thursday, January 11, 2007 3:18 PM > > To: axis-user@ws.apache.org > > Subject: Re: Question axis 2 Java2WSDL tool > > > > > > > > > > > > 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 <[EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]