axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject RE: Supporting for Non-Wrapped WSDL's
Date Thu, 05 Aug 2004 13:26:53 GMT
Any luck with the list of links that I sent earlier?

Samisa...

--- Amila Rathnayake <amilar@opensource.lk> wrote:

> 
> 
> Hi,
> 
> If any of you have come across a simple non-wrapped style wsdl please
> send it to me for further testing.
> 
> Thanks and Regards,
> Amila Rathnayake.
> 
> 
> 
> > -----Original Message-----
> > From: Amila Rathnayake [mailto:amilar@opensource.lk]
> > Sent: Thursday, August 05, 2004 7:20 PM
> > To: 'Apache AXIS C Developers List'
> > Subject: RE: Supporting for Non-Wrapped WSDL's
> > 
> > 
> > 
> > Hi All,
> > 
> > I have amended the GatewayWebService.wsdl that I've sent you early and
> > make it a valid non-wrapped wsdl. The earlier one had 2 parts in a
> > message body.
> > 
> > Here I am sending the new wsdl and can somebody check this and say
> > whether this is a valid wsdl.
> > 
> > I have generated the server side and client side by using the latest
> > axis jars and with -wnonwrapped command line option. The generated
> code
> > seems to be ok. I compiled the server and client as well and it
> compiled
> > without any errors.
> > 
> > Thanks and Regards,
> > Amila Rathnayake.
> > 
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Amila Rathnayake [mailto:amilar@opensource.lk]
> > > Sent: Wednesday, August 04, 2004 6:33 PM
> > > To: 'Apache AXIS C Developers List'
> > > Cc: sanjiva@opensource.lk
> > > Subject: RE: Supporting for Non-Wrapped WSDL's
> > >
> > >
> > >
> > > Hi All,
> > >
> > > I still have two problems to clarify with my implementation of
> > > non-wrapped style wsdl support.
> > >
> > >
> > > 1).
> > >
> > > Theoretically in wrapped style wsdl's we can have same name for
> > > operation name and parameter name for that operation. But if we have
> > the
> > > same name for operation and parameter in non-wrapped wsdl, is it a
> > > valid/correct wsdl?
> > >
> > > Please clarify me if anybody has an idea on this.
> > >
> > >
> > > 2).
> > >
> > > In the stub header at the client side, it adds the code for include
> > > header files for arrays defined in the complex types. But actually
> > that
> > > array represents a simple type and therefore it will not generate
> > > separate class for that type. Then it will give errors at the
> > > compilation since it can't find the particular header file.
> > >
> > > For example ;
> > >
> > > <s:complexType name="Thing" final="restriction">
> > >   <s:sequence>
> > >     <s:element ref="s0:aThing" minOccurs="0" maxOccurs="unbounded"/>
> > >     <s:element ref="s0:otherData" minOccurs="0"
> > maxOccurs="unbounded"/>
> > >   </s:sequence>
> > > </s:complexType>
> > >
> > > But actually aThing is a simple type
> > >
> > >           <s:simpleType name="aThing">
> > >               <s:restriction base="s:string">
> > >                   <s:maxLength value="255"/>
> > >               </s:restriction>
> > >           </s:simpleType>
> > >
> > > I have to work on this and have to stop the adding of lines to
> include
> > > the header files for arrays in complex types and those arrays are
> > > actually simple types and that is defined in other place of the
> wsdl.
> > >
> > > Thanks and regards,
> > > Amila.
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Amila Rathnayake [mailto:amilar@opensource.lk]
> > > > Sent: Wednesday, August 04, 2004 3:39 PM
> > > > To: 'Apache AXIS C Developers List'
> > > > Subject: RE: Supporting for Non-Wrapped WSDL's
> > > >
> > > >
> > > >
> > > > Hi All,
> > > >
> > > > I regret to say that still nobody has commented on my issue and I
> > > really
> > > > want your comments on this to make sure that the generated code
> for
> > > > non-wrapped style is correct. I have generated both the server
> side
> > > and
> > > > client side. I also checked the differences in generated codes for
> > > > server and client sides in both wrapped and non-wrapped styles and
> > it
> > > > looks correct for me. But still your comments on this are really
> > > > appreciated.
> > > >
> > > > I am sending the relevant diff file for the changes I've made on
> > > > WSDL2Ws.java and you can apply this patch and test for non-wrapped
> > > style
> > > > wsdl's.
> > > >
> > > > With this change you can give a command line argument to generate
> in
> > > > non-wrapped style. If you don't give any command line argument for
> > the
> > > > wsdl2ws tool it will generate for wrapped style by default.
> > > >
> > > > For example for client side ;
> > > >
> > > > Java -classpath ./wsdl2ws.jar;%classpath%
> > > > org.apache.axis.wsdl.wsdl2ws.WSDL2Ws <*.wsdl> -o./ClientOut -lc++
> > > > -sclient -wnonwrapped
> > > >
> > > > -w wrapping style of the WSDL (wrapped|nonwrapped) - default is
> > > wrapped
> > > >
> > > > Please try this out and send your comments.
> > > >
> > > > Thanks and Regards,
> > > > Amila Rathnayake.
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Amila Rathnayake [mailto:amilar@opensource.lk]
> > > > > Sent: Tuesday, August 03, 2004 6:37 PM
> > > > > To: 'Apache AXIS C Developers List'
> > > > > Subject: RE: Supporting for Non-Wrapped WSDL's
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Hi All,
> > > > >
> > > > > Theoretically it should be able to generate valid skeletons and
> > > stubs
> > > > in
> > > > > the non-wrapped style by even using a wrapped style wsdl's.
> > > > >
> > > > > So that I have used a wrapped style wsdl and generated server
> > > > skeletons
> > > > > in the non-wrapped style.
> > > > >
> > > > > I have added the relevant wrapped style wsdl here with and
> > following
> > > > are
> > > > > the differences between wrapped style code generation and
> > > non-wrapped
> > > > > style code generation by using the same wsdl file.
> > > > >
> > > > > Here I have given only the places where the generated code is
> > > > different
> > > > > in two styles. Except the following all the other files and
> codes
> > > > > generated by the wsdl2ws tool are same.
> > > > >
> > > > > By looking at the following codes you can find the differences
> > > between
> > > > > the code generation in two styles.
> > > > >
> > > > > thing.h and thing.cpp
> > > > > ======================
> > > > > in wrapped style
> > > > > ------------------
> > > > > void find_aThing(aThing Value0, AXIS_OUT_PARAM aThing_Array*
> > > > OutValue0,
> > > > > AXIS_OUT_PARAM otherData_Array* OutValue1);
> > > > >
> 
=== message truncated ===



		
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

Mime
View raw message