On 11/1/07, Kiran Sriram <[EMAIL PROTECTED]> wrote:
>
> Hi Anne,
>
> If I define void types as complex types then it is generating server
> skeleton/client stubs properly with out any errors.
> but then if you see the method signatures of the methods with void return
> types there is an object by name "Set_PortalVariableResponse" as return type
> instead of void. That object is not having any properties inside though.
> This is happening even though i use "-uw" (for unwrapping) as an option for
> Axis2 WSDL2Java tool.
>

Axis2 unwrapping does not support empty response unwrapping.  if you want it
to appear void you can remove the whole part  element from the message
element

i.e
<message name="somting">
   <part name='test' element="test" />  -- remove this.
<message>

Amila.

Thanks,
> Kiran
> ------------------------------
>
> > Date: Wed, 31 Oct 2007 21:29:04 -0400
> > From: [EMAIL PROTECTED]
> > To: axis-user@ws.apache.org
> > Subject: Re: Axis2 WSDL2Java error during service skeliton/stub
> generation
> >
> > You should define a void like this:
> >
> > <xsd:element name="set_PortalVariableResponse">
> > <xsd:complexType/>
> > </xsd:element>
> >
> > If you don't define the type, then the element can contain anything.
> > This definition specifies that the element contains nothing.
> >
> > Anne
> >
> > On 10/31/07, Kiran Sriram <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Anne,
> > >
> > > this basically for void return type of a method. .Net is not having
> any
> > > problem with that.
> > >
> > > but Axis2 WSDL2Java is not generating client or server side code.
> > >
> > > Kiran
> > > ________________________________
> > >
> > > > Date: Tue, 30 Oct 2007 08:28:03 -0400
> > > > From: [EMAIL PROTECTED]
> > > > To: axis-user@ws.apache.org
> > > > Subject: Re: FW: Axis2 WSDL2Java error during service skeliton/stub
> > > generation
> > >
> > > >
> > > > What I meant to say is:
> > > >
> > > > You have an _element_ defined in the schema:
> > > >
> > > > <xsd:element name="set_PortalVariableResponse"/>
> > > >
> > > > As the message says, it has no type defined. You need to specify its
> > > > schema type.
> > > >
> > > > Anne
> > > >
> > > > On 10/29/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> > > > > You have a type defined in the schema:
> > > > >
> > > > > <xsd:element name="set_PortalVariableResponse"/>
> > > > >
> > > > > As the message says, it has no type defined. You need to specify
> its
> > > > > schema type.
> > > > >
> > > > > Anne
> > > > >
> > > > > On 10/26/07, Kiran Kumar Sriram <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > Here is the WSDL file attached with this mail.
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: [EMAIL PROTECTED]
> > > > > > To: axis-user@ws.apache.org
> > > > > > Subject: Axis2 WSDL2Java error during service skeliton/stub
> generation
> > > > > > Date: Fri, 26 Oct 2007 10:34:30 -0400
> > > > > >
> > > > > >
> > > > > > Hello All
> > > > > >
> > > > > > I am getting this error when i try to generate Service Skeleton
> code
> > > from a
> > > > > > WSDL file. This is a new service and we are trying to go in WSDL
> first
> > > > > > approach. We need wsdl to be in Document/literal Wrapped style
> in
> > > order to
> > > > > > be interoperable with .Net framework. .Net generated client
> stubs with
> > > out
> > > > > > any problem but Axis2 WSDL2Java is giving this exception during
> > > service
> > > > > > skeleton and client generation times. This is pretty simple WSDL
> file
> > > with
> > > > > > just two methods in it. We are trying to generate skeleton and
> clients
> > > in
> > > > > > UNWrapped mode.
> > > > > >
> > > > > > C:\Code\Axis14ClientTest\Axis14ClientTest1>java.exe
> > > > > > -Djava.ext.dirs=C:\Softwares
> > > > > > \axis2-1.3-bin\axis2-1.3\lib; org.apache.axis2.wsdl.WSDL2Java -s
> -ss
> > > -uw -sd
> > > > > > -d
> > > > > > adb -uri PCMConnection.wsdl
> > > > > > log4j:WARN No appenders could be found for logger
> > > > > > (org.apache.axis2.description.
> > > > > > WSDL11ToAllAxisServicesBuilder).
> > > > > > log4j:WARN Please initialize the log4j system properly.
> > > > > > Exception in thread "main"
> > > > > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > :
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > > > > > Can not determine the s
> > > > > > chema type for the set_PortalVariableResponse
> > > > > > at
> > > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > > > > > ationEngine.java:265)
> > > > > > at
> > > > > >
> > > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> > > > > > at
> > > > > >
> > > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> > > > > > Caused by:
> > > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Can
> > > > > > not determ
> > > > > > ine the schema type for the set_PortalVariableResponse
> > > > > > at
> > > > > >
> > > org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk
> > > > > >
> > > > > >
> > > > > > I have attached WSDL file with this mail. Just to let you know
> .Net is
> > > fine
> > > > > > with this WSDL but not Axis2 WSDL2Java tool.
> > > > > >
> > > > > > Any help is greatly appreciated.
> > > > > >
> > > > > > Thank you,
> > > > > >
> > > > > > Kiran
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > Peek-a-boo FREE Tricks & Treats for You! Get 'em!
> > > > > > ________________________________
> > > > > > Climb to the top of the charts! Play Star Shuffle: the word
> scramble
> > > > > > challenge with star power. Play Now!
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > 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]
> > > >
> > >
> > >
> > > ________________________________
> > > Help yourself to FREE treats served up daily at the Messenger Café.
> Stop by
> > > today!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ------------------------------
> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get
> it 
> now!<http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033>
>



-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to