You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Samisa Abeysinghe <sa...@yahoo.com> on 2004/08/10 08:58:33 UTC

Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Hi All,
    While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I got into
trouble with the tool generating code with 'operator' keyword.

    I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is handled
in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)

   This made many problems go away with this WSDL file.
   However I still get problems related to the inclusion of non existant files. (see below)

Thanks,
Samisa...


Inquire.h:31:29: tModelKey_Array.h: No such file or directory
Inquire.h:52:30: serviceKey_Array.h: No such file or directory
Inquire.h:68:33: findQualifier_Array.h: No such file or directory
Inquire.h:74:31: businessKey_Array.h: No such file or directory
Inquire.h:76:30: bindingKey_Array.h: No such file or directory
Inquire.h:94:34: uploadRegister_Array.h: No such file or directory




		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by ni...@opensource.lk.
Hi Samisa,

As SOAP message do not correspond to the WSDL due to the fix to handle
ANON_TOKEN similar to the way it is handled in Axis Java code I am working
on reverting the tool.

Regards,
Nithya.

> Hi All,
>     While trying to compile the generated code for the UDDI WSDL file
> (inquire_v2.wsdl) I got into
> trouble with the tool generating code with 'operator' keyword.
>
>     I fixed this and also inclided the code to handle ANON_TOKEN similar
> to the way it is handled
> in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
>
>    This made many problems go away with this WSDL file.
>    However I still get problems related to the inclusion of non existant
> files. (see below)
>
> Thanks,
> Samisa...
>
>
> Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> Inquire.h:68:33: findQualifier_Array.h: No such file or directory
Inquire.h:74:31: businessKey_Array.h: No such file or directory
> Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>
>




RE: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
--- Susantha Kumara <su...@opensource.lk> wrote:

> What kind of problems are we getting with complex types ?

In base sample client's SOAPStruct

in place of: 
xsd__string varString;
now comes:
xsd__string SOAPStruct_varString;

Simply speaking there would be a prefix for all data members.

This is not a problem; hence need no fix.

>. Does this
> happen for both rpc and doc/lit  styles ?
>

Logically yes.


The real problems are with inquire_v2.wsdl.
If you could try this WSDL with code generation tool you will experiance many problems that I
reported over the past few days.

Samisa...
 
> Susantha
> 
> > -----Original Message-----
> > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > Sent: Wednesday, August 11, 2004 3:41 PM
> > To: Apache AXIS C Developers List
> > Subject: Re: [keyword conflicts]Skeletons and stubs are generating for
> > inquire_v2.wsdl
> > 
> > With this fix, you will run into problems with the existing samples.
> > In case of complex types, you may be required to change the field
> names in
> > the user written code.
> > 
> > Thanks,
> > Samisa...
> > 
> > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > 
> > > Hi All,
> > >     While trying to compile the generated code for the UDDI WSDL
> file
> > (inquire_v2.wsdl) I got
> > > into
> > > trouble with the tool generating code with 'operator' keyword.
> > >
> > >     I fixed this and also inclided the code to handle ANON_TOKEN
> similar
> > to the way it is
> > > handled
> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
> file)
> > >
> > >    This made many problems go away with this WSDL file.
> > >    However I still get problems related to the inclusion of non
> existant
> > files. (see below)
> > >
> > > Thanks,
> > > Samisa...
> > >
> > >
> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > http://promotions.yahoo.com/new_mail
> > >
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> > http://promotions.yahoo.com/new_mail
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

RE: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Susantha Kumara <su...@opensource.lk>.
What kind of problems are we getting with complex types ?. Does this
happen for both rpc and doc/lit  styles ?

Susantha

> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: Wednesday, August 11, 2004 3:41 PM
> To: Apache AXIS C Developers List
> Subject: Re: [keyword conflicts]Skeletons and stubs are generating for
> inquire_v2.wsdl
> 
> With this fix, you will run into problems with the existing samples.
> In case of complex types, you may be required to change the field
names in
> the user written code.
> 
> Thanks,
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >     While trying to compile the generated code for the UDDI WSDL
file
> (inquire_v2.wsdl) I got
> > into
> > trouble with the tool generating code with 'operator' keyword.
> >
> >     I fixed this and also inclided the code to handle ANON_TOKEN
similar
> to the way it is
> > handled
> > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
file)
> >
> >    This made many problems go away with this WSDL file.
> >    However I still get problems related to the inclusion of non
existant
> files. (see below)
> >
> > Thanks,
> > Samisa...
> >
> >
> > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
> > http://promotions.yahoo.com/new_mail
> >
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail


Re: [keyword conflicts]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
With this fix, you will run into problems with the existing samples.
In case of complex types, you may be required to change the field names in the user written code.

Thanks,
Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>     While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I got
> into
> trouble with the tool generating code with 'operator' keyword.
> 
>     I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is
> handled
> in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> 
>    This made many problems go away with this WSDL file.
>    However I still get problems related to the inclusion of non existant files. (see below)
> 
> Thanks,
> Samisa...
> 
> 
> Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> Inquire.h:74:31: businessKey_Array.h: No such file or directory
> Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

RE: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Adrian Dick <ad...@uk.ibm.com>.



Hi,

I reported this problem to the mailing list a short time back
(http://marc.theaimsgroup.com/?l=axis-c-dev&m=108809605901664&w=2).
I don't know if it's of any help but at that time I found the problem came
when invoking symbolTable.getTypeEntry of Axis Java from
org.apache.axis.wsdl.symbolTable.SchemaUtils#getContainedAttributeTypes.
Taking a quick look now I see this class has had major refactoring, but the
same method is still invoked, albeit from addAttributeToVector().

Perhaps someone more knowledgable, than I, in this particular area will be
able to understand what exactly is causing the problem.

Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)
WebSphere MQ and ESB Development
Tel: +44-(0)-1962-819212
Notes: Adrian Dick/UK/IBM@IBMGB


                                                                           
             "Amila                                                        
             Rathnayake"                                                   
             <amilar@opensourc                                          To 
             e.lk>                     "'Apache AXIS C Developers List'"   
                                       <ax...@ws.apache.org>          
             13-08-04 12:59                                             cc 
                                                                           
                                                                   Subject 
             Please respond to         RE: [with -wnonwrapped              
              "Apache AXIS C           option]Skeletons and stubs are      
             Developers List"          generating for inquire_v2.wsdl      
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Hi Samisa,

I looked into this and checked the wsdl as well.

In the imported xsd of http://www.uddi.org/schema/uddi_v2.xsd in
inquire_v2.wsdl
the type description has defined as follows.

<xsd:complexType name="description">
  <xsd:simpleContent>
    <xsd:extension base="string">
      <xsd:attribute ref="xml:lang" />
    </xsd:extension>
  </xsd:simpleContent>
</xsd:complexType>

According to this definition it is not just having a simple type in it.
So my understanding is without generating a separate class for
description, it would not be possible to populate the relevant object
for that type.

But I also agree with you that there is a problem in generated class for
this. Since it doesn't have anything related to the other elements in
the data type "description".

Thanks,
Amila.



> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: Thursday, August 12, 2004 1:08 PM
> To: Apache AXIS C Developers List
> Subject: RE: [with -wnonwrapped option]Skeletons and stubs are
generating
> for inquire_v2.wsdl
>
> Amila,
>    This is the problem. If you look into those methods in
description.cpp
> you will notice that
> there are semantic errors. (even though it compiles)
>    Looking into the WSDL, I think description could be handled using
C++
> string type.
>    Hence we do not need this class at all, nor the description_Array
> class.
>    'description' is just an example. There could be other cases like
this.
>
> Samisa...
>
> --- Amila Rathnayake <am...@opensource.lk> wrote:
>
> > Hi Samisa,
> >
> > In the description header file I have got only the constructor and
> > destructor. But in the cpp I have got all the other global methods
that
> > are required to serialize, DeSerialize, Create, Delete and GetSize
of
> > the object of that data type. So I think this is not a problem. But
due
> > to other problems it can't still be compiled.
> >
> > Thanks,
> > Amila.
> >
> > > -----Original Message-----
> > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > > Sent: Thursday, August 12, 2004 11:11 AM
> > > To: Apache AXIS C Developers List
> > > Subject: RE: [with -wnonwrapped option]Skeletons and stubs are
> > generating
> > > for inquire_v2.wsdl
> > >
> > >
> > > --- Amila Rathnayake <am...@opensource.lk> wrote:
> > >
> > > > Hi Samisa,
> > > >
> > > > I also tried to generate skeletons and stubs for
inquire_v2.wsdl.
> > When I
> > > > compiled them I also got so many errors as you said.
> > > >
> > > > I generated in both styles wrapped and non-wrapped but in both I
> > haven't
> > > > got your earlier problem that generation of empty classes with
only
> > the
> > > > constructor and destructor. But I only checked in the class
> > > > "description" that you have mentioned in your mail. I couldn't
check
> > in
> > > > all the classes as it has generated so many classes.
> > > >
> > >
> > > What is the contect you get in description.h file?
> > > Samisa...
> > >
> > > > For the other problem, I think yes. According to my knowledge
you
> > should
> > > > be able to generate in non-wrapped style for wrapped style wsdl.
But
> > > > other way round will not be working. If any of you have some
> > different
> > > > idea on this please correct.
> > > >
> > > > You can use non-wrapped option for wsdl's in doc-lit style.
> > > > The wsdl that you are using is a doc-lit one and is in wrapped
> > style.
> > > >
> > > > Thanks,
> > > > Amila.
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > > > > Sent: Tuesday, August 10, 2004 5:59 PM
> > > > > To: Apache AXIS C Developers List
> > > > > Subject: Re: [with -wnonwrapped option]Skeletons and stubs are
> > > > generating
> > > > > for inquire_v2.wsdl
> > > > >
> > > > > I tried using the -wnonwrapped option to see if the problems
would
> > go
> > > > > away.
> > > > > (because I have complex types with names <xsd:complexType
> > > > > name="description">)
> > > > >
> > > > > This lead to me more errors. :-(
> > > > >
> > > > > Is it wrong to use -wnonwrapped for this WSDL?
> > > > > Please advice!
> > > > >
> > > > > Samisa...
> > > > >
> > > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > > >
> > > > > > Hi All,
> > > > > >     I am trying to get the WSDL2Ws tool working for this
WSDL
> > file.
> > > > > >
> > > > > > I see that some classes have only constructor and
destructor.
> > > > > >
> > > > > > e.g.
> > > > > > class description
> > > > > > {
> > > > > > public:
> > > > > >         description();
> > > > > >         ~description();
> > > > > > };
> > > > > >
> > > > > > Where the XSD file has
> > > > > >         <xsd:element name="description"
> > type="uddi:description"/>
> > > > > >         <xsd:complexType name="description">
> > > > > >                 <xsd:simpleContent>
> > > > > >                         <xsd:extension base="string">
> > > > > >                                 <xsd:attribute
ref="xml:lang"/>
> > > > > >                         </xsd:extension>
> > > > > >                 </xsd:simpleContent>
> > > > > >         </xsd:complexType>
> > > > > >
> > > > > > I am a bit confused why there is a class with no data
members at
> > > > all.
> > > > > >
> > > > > > Could someone please help me understand this.
> > > > > >
> > > > > > Thanks,
> > > > > > Samisa...
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > > > >
> > > > > > > Hi All,
> > > > > > >     While trying to compile the generated code for the
UDDI
> > WSDL
> > > > file
> > > > > (inquire_v2.wsdl) I got
> > > > > > > into
> > > > > > > trouble with the tool generating code with 'operator'
keyword.
> > > > > > >
> > > > > > >     I fixed this and also inclided the code to handle
> > ANON_TOKEN
> > > > > similar to the way it is
> > > > > > > handled
> > > > > > > in Axis Java code. (in
> > org/apache/axis/wsdl/wsdl2ws/info/Type.java
> > > > > file)
> > > > > > >
> > > > > > >    This made many problems go away with this WSDL file.
> > > > > > >    However I still get problems related to the inclusion
of
> > non
> > > > > existant files. (see below)
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Samisa...
> > > > > > >
> > > > > > >
> > > > > > > Inquire.h:31:29: tModelKey_Array.h: No such file or
directory
> > > > > > > Inquire.h:52:30: serviceKey_Array.h: No such file or
directory
> > > > > > > Inquire.h:68:33: findQualifier_Array.h: No such file or
> > directory
> > > > > > > Inquire.h:74:31: businessKey_Array.h: No such file or
> > directory
> > > > > > > Inquire.h:76:30: bindingKey_Array.h: No such file or
directory
> > > > > > > Inquire.h:94:34: uploadRegister_Array.h: No such file or
> > directory
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > __________________________________
> > > > > > > Do you Yahoo!?
> > > > > > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > > > > > http://promotions.yahoo.com/new_mail
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > > > > http://promotions.yahoo.com/new_mail
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > Yahoo! Mail - 50x more storage than other providers!
> > > > > http://promotions.yahoo.com/new_mail
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - You care about security. So do we.
> > > http://promotions.yahoo.com/new_mail
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail




RE: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Amila Rathnayake <am...@opensource.lk>.
Hi Samisa,

I looked into this and checked the wsdl as well.

In the imported xsd of http://www.uddi.org/schema/uddi_v2.xsd in
inquire_v2.wsdl 
the type description has defined as follows.

<xsd:complexType name="description">
  <xsd:simpleContent>
    <xsd:extension base="string">
      <xsd:attribute ref="xml:lang" /> 
    </xsd:extension>
  </xsd:simpleContent>
</xsd:complexType>

According to this definition it is not just having a simple type in it.
So my understanding is without generating a separate class for
description, it would not be possible to populate the relevant object
for that type. 

But I also agree with you that there is a problem in generated class for
this. Since it doesn't have anything related to the other elements in
the data type "description".

Thanks,
Amila.



> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: Thursday, August 12, 2004 1:08 PM
> To: Apache AXIS C Developers List
> Subject: RE: [with -wnonwrapped option]Skeletons and stubs are
generating
> for inquire_v2.wsdl
> 
> Amila,
>    This is the problem. If you look into those methods in
description.cpp
> you will notice that
> there are semantic errors. (even though it compiles)
>    Looking into the WSDL, I think description could be handled using
C++
> string type.
>    Hence we do not need this class at all, nor the description_Array
> class.
>    'description' is just an example. There could be other cases like
this.
> 
> Samisa...
> 
> --- Amila Rathnayake <am...@opensource.lk> wrote:
> 
> > Hi Samisa,
> >
> > In the description header file I have got only the constructor and
> > destructor. But in the cpp I have got all the other global methods
that
> > are required to serialize, DeSerialize, Create, Delete and GetSize
of
> > the object of that data type. So I think this is not a problem. But
due
> > to other problems it can't still be compiled.
> >
> > Thanks,
> > Amila.
> >
> > > -----Original Message-----
> > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > > Sent: Thursday, August 12, 2004 11:11 AM
> > > To: Apache AXIS C Developers List
> > > Subject: RE: [with -wnonwrapped option]Skeletons and stubs are
> > generating
> > > for inquire_v2.wsdl
> > >
> > >
> > > --- Amila Rathnayake <am...@opensource.lk> wrote:
> > >
> > > > Hi Samisa,
> > > >
> > > > I also tried to generate skeletons and stubs for
inquire_v2.wsdl.
> > When I
> > > > compiled them I also got so many errors as you said.
> > > >
> > > > I generated in both styles wrapped and non-wrapped but in both I
> > haven't
> > > > got your earlier problem that generation of empty classes with
only
> > the
> > > > constructor and destructor. But I only checked in the class
> > > > "description" that you have mentioned in your mail. I couldn't
check
> > in
> > > > all the classes as it has generated so many classes.
> > > >
> > >
> > > What is the contect you get in description.h file?
> > > Samisa...
> > >
> > > > For the other problem, I think yes. According to my knowledge
you
> > should
> > > > be able to generate in non-wrapped style for wrapped style wsdl.
But
> > > > other way round will not be working. If any of you have some
> > different
> > > > idea on this please correct.
> > > >
> > > > You can use non-wrapped option for wsdl's in doc-lit style.
> > > > The wsdl that you are using is a doc-lit one and is in wrapped
> > style.
> > > >
> > > > Thanks,
> > > > Amila.
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > > > > Sent: Tuesday, August 10, 2004 5:59 PM
> > > > > To: Apache AXIS C Developers List
> > > > > Subject: Re: [with -wnonwrapped option]Skeletons and stubs are
> > > > generating
> > > > > for inquire_v2.wsdl
> > > > >
> > > > > I tried using the -wnonwrapped option to see if the problems
would
> > go
> > > > > away.
> > > > > (because I have complex types with names <xsd:complexType
> > > > > name="description">)
> > > > >
> > > > > This lead to me more errors. :-(
> > > > >
> > > > > Is it wrong to use -wnonwrapped for this WSDL?
> > > > > Please advice!
> > > > >
> > > > > Samisa...
> > > > >
> > > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > > >
> > > > > > Hi All,
> > > > > >     I am trying to get the WSDL2Ws tool working for this
WSDL
> > file.
> > > > > >
> > > > > > I see that some classes have only constructor and
destructor.
> > > > > >
> > > > > > e.g.
> > > > > > class description
> > > > > > {
> > > > > > public:
> > > > > >         description();
> > > > > >         ~description();
> > > > > > };
> > > > > >
> > > > > > Where the XSD file has
> > > > > >         <xsd:element name="description"
> > type="uddi:description"/>
> > > > > >         <xsd:complexType name="description">
> > > > > >                 <xsd:simpleContent>
> > > > > >                         <xsd:extension base="string">
> > > > > >                                 <xsd:attribute
ref="xml:lang"/>
> > > > > >                         </xsd:extension>
> > > > > >                 </xsd:simpleContent>
> > > > > >         </xsd:complexType>
> > > > > >
> > > > > > I am a bit confused why there is a class with no data
members at
> > > > all.
> > > > > >
> > > > > > Could someone please help me understand this.
> > > > > >
> > > > > > Thanks,
> > > > > > Samisa...
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > > > >
> > > > > > > Hi All,
> > > > > > >     While trying to compile the generated code for the
UDDI
> > WSDL
> > > > file
> > > > > (inquire_v2.wsdl) I got
> > > > > > > into
> > > > > > > trouble with the tool generating code with 'operator'
keyword.
> > > > > > >
> > > > > > >     I fixed this and also inclided the code to handle
> > ANON_TOKEN
> > > > > similar to the way it is
> > > > > > > handled
> > > > > > > in Axis Java code. (in
> > org/apache/axis/wsdl/wsdl2ws/info/Type.java
> > > > > file)
> > > > > > >
> > > > > > >    This made many problems go away with this WSDL file.
> > > > > > >    However I still get problems related to the inclusion
of
> > non
> > > > > existant files. (see below)
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Samisa...
> > > > > > >
> > > > > > >
> > > > > > > Inquire.h:31:29: tModelKey_Array.h: No such file or
directory
> > > > > > > Inquire.h:52:30: serviceKey_Array.h: No such file or
directory
> > > > > > > Inquire.h:68:33: findQualifier_Array.h: No such file or
> > directory
> > > > > > > Inquire.h:74:31: businessKey_Array.h: No such file or
> > directory
> > > > > > > Inquire.h:76:30: bindingKey_Array.h: No such file or
directory
> > > > > > > Inquire.h:94:34: uploadRegister_Array.h: No such file or
> > directory
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > __________________________________
> > > > > > > Do you Yahoo!?
> > > > > > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > > > > > http://promotions.yahoo.com/new_mail
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > > > > http://promotions.yahoo.com/new_mail
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > Yahoo! Mail - 50x more storage than other providers!
> > > > > http://promotions.yahoo.com/new_mail
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - You care about security. So do we.
> > > http://promotions.yahoo.com/new_mail
> >
> >
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail


RE: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Amila,
   This is the problem. If you look into those methods in description.cpp you will notice that
there are semantic errors. (even though it compiles)
   Looking into the WSDL, I think description could be handled using C++ string type.
   Hence we do not need this class at all, nor the description_Array class.
   'description' is just an example. There could be other cases like this.

Samisa...

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

> Hi Samisa,
> 
> In the description header file I have got only the constructor and
> destructor. But in the cpp I have got all the other global methods that
> are required to serialize, DeSerialize, Create, Delete and GetSize of
> the object of that data type. So I think this is not a problem. But due
> to other problems it can't still be compiled.
> 
> Thanks,
> Amila.
> 
> > -----Original Message-----
> > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > Sent: Thursday, August 12, 2004 11:11 AM
> > To: Apache AXIS C Developers List
> > Subject: RE: [with -wnonwrapped option]Skeletons and stubs are
> generating
> > for inquire_v2.wsdl
> > 
> > 
> > --- Amila Rathnayake <am...@opensource.lk> wrote:
> > 
> > > Hi Samisa,
> > >
> > > I also tried to generate skeletons and stubs for inquire_v2.wsdl.
> When I
> > > compiled them I also got so many errors as you said.
> > >
> > > I generated in both styles wrapped and non-wrapped but in both I
> haven't
> > > got your earlier problem that generation of empty classes with only
> the
> > > constructor and destructor. But I only checked in the class
> > > "description" that you have mentioned in your mail. I couldn't check
> in
> > > all the classes as it has generated so many classes.
> > >
> > 
> > What is the contect you get in description.h file?
> > Samisa...
> > 
> > > For the other problem, I think yes. According to my knowledge you
> should
> > > be able to generate in non-wrapped style for wrapped style wsdl. But
> > > other way round will not be working. If any of you have some
> different
> > > idea on this please correct.
> > >
> > > You can use non-wrapped option for wsdl's in doc-lit style.
> > > The wsdl that you are using is a doc-lit one and is in wrapped
> style.
> > >
> > > Thanks,
> > > Amila.
> > >
> > >
> > > > -----Original Message-----
> > > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > > > Sent: Tuesday, August 10, 2004 5:59 PM
> > > > To: Apache AXIS C Developers List
> > > > Subject: Re: [with -wnonwrapped option]Skeletons and stubs are
> > > generating
> > > > for inquire_v2.wsdl
> > > >
> > > > I tried using the -wnonwrapped option to see if the problems would
> go
> > > > away.
> > > > (because I have complex types with names <xsd:complexType
> > > > name="description">)
> > > >
> > > > This lead to me more errors. :-(
> > > >
> > > > Is it wrong to use -wnonwrapped for this WSDL?
> > > > Please advice!
> > > >
> > > > Samisa...
> > > >
> > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > >
> > > > > Hi All,
> > > > >     I am trying to get the WSDL2Ws tool working for this WSDL
> file.
> > > > >
> > > > > I see that some classes have only constructor and destructor.
> > > > >
> > > > > e.g.
> > > > > class description
> > > > > {
> > > > > public:
> > > > >         description();
> > > > >         ~description();
> > > > > };
> > > > >
> > > > > Where the XSD file has
> > > > >         <xsd:element name="description"
> type="uddi:description"/>
> > > > >         <xsd:complexType name="description">
> > > > >                 <xsd:simpleContent>
> > > > >                         <xsd:extension base="string">
> > > > >                                 <xsd:attribute ref="xml:lang"/>
> > > > >                         </xsd:extension>
> > > > >                 </xsd:simpleContent>
> > > > >         </xsd:complexType>
> > > > >
> > > > > I am a bit confused why there is a class with no data members at
> > > all.
> > > > >
> > > > > Could someone please help me understand this.
> > > > >
> > > > > Thanks,
> > > > > Samisa...
> > > > >
> > > > >
> > > > >
> > > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > > >
> > > > > > Hi All,
> > > > > >     While trying to compile the generated code for the UDDI
> WSDL
> > > file
> > > > (inquire_v2.wsdl) I got
> > > > > > into
> > > > > > trouble with the tool generating code with 'operator' keyword.
> > > > > >
> > > > > >     I fixed this and also inclided the code to handle
> ANON_TOKEN
> > > > similar to the way it is
> > > > > > handled
> > > > > > in Axis Java code. (in
> org/apache/axis/wsdl/wsdl2ws/info/Type.java
> > > > file)
> > > > > >
> > > > > >    This made many problems go away with this WSDL file.
> > > > > >    However I still get problems related to the inclusion of
> non
> > > > existant files. (see below)
> > > > > >
> > > > > > Thanks,
> > > > > > Samisa...
> > > > > >
> > > > > >
> > > > > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > > > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > > > > Inquire.h:68:33: findQualifier_Array.h: No such file or
> directory
> > > > > > Inquire.h:74:31: businessKey_Array.h: No such file or
> directory
> > > > > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > > > > Inquire.h:94:34: uploadRegister_Array.h: No such file or
> directory
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > > > > http://promotions.yahoo.com/new_mail
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > > > http://promotions.yahoo.com/new_mail
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Mail - 50x more storage than other providers!
> > > > http://promotions.yahoo.com/new_mail
> > >
> > >
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> > http://promotions.yahoo.com/new_mail
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

RE: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Amila Rathnayake <am...@opensource.lk>.
Hi Samisa,

In the description header file I have got only the constructor and
destructor. But in the cpp I have got all the other global methods that
are required to serialize, DeSerialize, Create, Delete and GetSize of
the object of that data type. So I think this is not a problem. But due
to other problems it can't still be compiled.

Thanks,
Amila.

> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: Thursday, August 12, 2004 11:11 AM
> To: Apache AXIS C Developers List
> Subject: RE: [with -wnonwrapped option]Skeletons and stubs are
generating
> for inquire_v2.wsdl
> 
> 
> --- Amila Rathnayake <am...@opensource.lk> wrote:
> 
> > Hi Samisa,
> >
> > I also tried to generate skeletons and stubs for inquire_v2.wsdl.
When I
> > compiled them I also got so many errors as you said.
> >
> > I generated in both styles wrapped and non-wrapped but in both I
haven't
> > got your earlier problem that generation of empty classes with only
the
> > constructor and destructor. But I only checked in the class
> > "description" that you have mentioned in your mail. I couldn't check
in
> > all the classes as it has generated so many classes.
> >
> 
> What is the contect you get in description.h file?
> Samisa...
> 
> > For the other problem, I think yes. According to my knowledge you
should
> > be able to generate in non-wrapped style for wrapped style wsdl. But
> > other way round will not be working. If any of you have some
different
> > idea on this please correct.
> >
> > You can use non-wrapped option for wsdl's in doc-lit style.
> > The wsdl that you are using is a doc-lit one and is in wrapped
style.
> >
> > Thanks,
> > Amila.
> >
> >
> > > -----Original Message-----
> > > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > > Sent: Tuesday, August 10, 2004 5:59 PM
> > > To: Apache AXIS C Developers List
> > > Subject: Re: [with -wnonwrapped option]Skeletons and stubs are
> > generating
> > > for inquire_v2.wsdl
> > >
> > > I tried using the -wnonwrapped option to see if the problems would
go
> > > away.
> > > (because I have complex types with names <xsd:complexType
> > > name="description">)
> > >
> > > This lead to me more errors. :-(
> > >
> > > Is it wrong to use -wnonwrapped for this WSDL?
> > > Please advice!
> > >
> > > Samisa...
> > >
> > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > >
> > > > Hi All,
> > > >     I am trying to get the WSDL2Ws tool working for this WSDL
file.
> > > >
> > > > I see that some classes have only constructor and destructor.
> > > >
> > > > e.g.
> > > > class description
> > > > {
> > > > public:
> > > >         description();
> > > >         ~description();
> > > > };
> > > >
> > > > Where the XSD file has
> > > >         <xsd:element name="description"
type="uddi:description"/>
> > > >         <xsd:complexType name="description">
> > > >                 <xsd:simpleContent>
> > > >                         <xsd:extension base="string">
> > > >                                 <xsd:attribute ref="xml:lang"/>
> > > >                         </xsd:extension>
> > > >                 </xsd:simpleContent>
> > > >         </xsd:complexType>
> > > >
> > > > I am a bit confused why there is a class with no data members at
> > all.
> > > >
> > > > Could someone please help me understand this.
> > > >
> > > > Thanks,
> > > > Samisa...
> > > >
> > > >
> > > >
> > > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > > >
> > > > > Hi All,
> > > > >     While trying to compile the generated code for the UDDI
WSDL
> > file
> > > (inquire_v2.wsdl) I got
> > > > > into
> > > > > trouble with the tool generating code with 'operator' keyword.
> > > > >
> > > > >     I fixed this and also inclided the code to handle
ANON_TOKEN
> > > similar to the way it is
> > > > > handled
> > > > > in Axis Java code. (in
org/apache/axis/wsdl/wsdl2ws/info/Type.java
> > > file)
> > > > >
> > > > >    This made many problems go away with this WSDL file.
> > > > >    However I still get problems related to the inclusion of
non
> > > existant files. (see below)
> > > > >
> > > > > Thanks,
> > > > > Samisa...
> > > > >
> > > > >
> > > > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > > > Inquire.h:68:33: findQualifier_Array.h: No such file or
directory
> > > > > Inquire.h:74:31: businessKey_Array.h: No such file or
directory
> > > > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > > > Inquire.h:94:34: uploadRegister_Array.h: No such file or
directory
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > > > http://promotions.yahoo.com/new_mail
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > > http://promotions.yahoo.com/new_mail
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - 50x more storage than other providers!
> > > http://promotions.yahoo.com/new_mail
> >
> >
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail


RE: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
--- Amila Rathnayake <am...@opensource.lk> wrote:

> Hi Samisa,
> 
> I also tried to generate skeletons and stubs for inquire_v2.wsdl. When I
> compiled them I also got so many errors as you said.
> 
> I generated in both styles wrapped and non-wrapped but in both I haven't
> got your earlier problem that generation of empty classes with only the
> constructor and destructor. But I only checked in the class
> "description" that you have mentioned in your mail. I couldn't check in
> all the classes as it has generated so many classes.
> 

What is the contect you get in description.h file?
Samisa...

> For the other problem, I think yes. According to my knowledge you should
> be able to generate in non-wrapped style for wrapped style wsdl. But
> other way round will not be working. If any of you have some different
> idea on this please correct.
> 
> You can use non-wrapped option for wsdl's in doc-lit style.
> The wsdl that you are using is a doc-lit one and is in wrapped style.
> 
> Thanks,
> Amila.
> 
> 
> > -----Original Message-----
> > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > Sent: Tuesday, August 10, 2004 5:59 PM
> > To: Apache AXIS C Developers List
> > Subject: Re: [with -wnonwrapped option]Skeletons and stubs are
> generating
> > for inquire_v2.wsdl
> > 
> > I tried using the -wnonwrapped option to see if the problems would go
> > away.
> > (because I have complex types with names <xsd:complexType
> > name="description">)
> > 
> > This lead to me more errors. :-(
> > 
> > Is it wrong to use -wnonwrapped for this WSDL?
> > Please advice!
> > 
> > Samisa...
> > 
> > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > 
> > > Hi All,
> > >     I am trying to get the WSDL2Ws tool working for this WSDL file.
> > >
> > > I see that some classes have only constructor and destructor.
> > >
> > > e.g.
> > > class description
> > > {
> > > public:
> > >         description();
> > >         ~description();
> > > };
> > >
> > > Where the XSD file has
> > >         <xsd:element name="description" type="uddi:description"/>
> > >         <xsd:complexType name="description">
> > >                 <xsd:simpleContent>
> > >                         <xsd:extension base="string">
> > >                                 <xsd:attribute ref="xml:lang"/>
> > >                         </xsd:extension>
> > >                 </xsd:simpleContent>
> > >         </xsd:complexType>
> > >
> > > I am a bit confused why there is a class with no data members at
> all.
> > >
> > > Could someone please help me understand this.
> > >
> > > Thanks,
> > > Samisa...
> > >
> > >
> > >
> > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > >
> > > > Hi All,
> > > >     While trying to compile the generated code for the UDDI WSDL
> file
> > (inquire_v2.wsdl) I got
> > > > into
> > > > trouble with the tool generating code with 'operator' keyword.
> > > >
> > > >     I fixed this and also inclided the code to handle ANON_TOKEN
> > similar to the way it is
> > > > handled
> > > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
> > file)
> > > >
> > > >    This made many problems go away with this WSDL file.
> > > >    However I still get problems related to the inclusion of non
> > existant files. (see below)
> > > >
> > > > Thanks,
> > > > Samisa...
> > > >
> > > >
> > > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > > > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > > http://promotions.yahoo.com/new_mail
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > http://promotions.yahoo.com/new_mail
> > >
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> > http://promotions.yahoo.com/new_mail
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

RE: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Amila Rathnayake <am...@opensource.lk>.
Hi Samisa,

I also tried to generate skeletons and stubs for inquire_v2.wsdl. When I
compiled them I also got so many errors as you said.

I generated in both styles wrapped and non-wrapped but in both I haven't
got your earlier problem that generation of empty classes with only the
constructor and destructor. But I only checked in the class
"description" that you have mentioned in your mail. I couldn't check in
all the classes as it has generated so many classes.

For the other problem, I think yes. According to my knowledge you should
be able to generate in non-wrapped style for wrapped style wsdl. But
other way round will not be working. If any of you have some different
idea on this please correct.

You can use non-wrapped option for wsdl's in doc-lit style.
The wsdl that you are using is a doc-lit one and is in wrapped style.

Thanks,
Amila.


> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: Tuesday, August 10, 2004 5:59 PM
> To: Apache AXIS C Developers List
> Subject: Re: [with -wnonwrapped option]Skeletons and stubs are
generating
> for inquire_v2.wsdl
> 
> I tried using the -wnonwrapped option to see if the problems would go
> away.
> (because I have complex types with names <xsd:complexType
> name="description">)
> 
> This lead to me more errors. :-(
> 
> Is it wrong to use -wnonwrapped for this WSDL?
> Please advice!
> 
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >     I am trying to get the WSDL2Ws tool working for this WSDL file.
> >
> > I see that some classes have only constructor and destructor.
> >
> > e.g.
> > class description
> > {
> > public:
> >         description();
> >         ~description();
> > };
> >
> > Where the XSD file has
> >         <xsd:element name="description" type="uddi:description"/>
> >         <xsd:complexType name="description">
> >                 <xsd:simpleContent>
> >                         <xsd:extension base="string">
> >                                 <xsd:attribute ref="xml:lang"/>
> >                         </xsd:extension>
> >                 </xsd:simpleContent>
> >         </xsd:complexType>
> >
> > I am a bit confused why there is a class with no data members at
all.
> >
> > Could someone please help me understand this.
> >
> > Thanks,
> > Samisa...
> >
> >
> >
> > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> >
> > > Hi All,
> > >     While trying to compile the generated code for the UDDI WSDL
file
> (inquire_v2.wsdl) I got
> > > into
> > > trouble with the tool generating code with 'operator' keyword.
> > >
> > >     I fixed this and also inclided the code to handle ANON_TOKEN
> similar to the way it is
> > > handled
> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java
> file)
> > >
> > >    This made many problems go away with this WSDL file.
> > >    However I still get problems related to the inclusion of non
> existant files. (see below)
> > >
> > > Thanks,
> > > Samisa...
> > >
> > >
> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > http://promotions.yahoo.com/new_mail
> > >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> > http://promotions.yahoo.com/new_mail
> >
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail


Re: [with -wnonwrapped option]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
I tried using the -wnonwrapped option to see if the problems would go away.
(because I have complex types with names <xsd:complexType name="description">)

This lead to me more errors. :-(

Is it wrong to use -wnonwrapped for this WSDL?
Please advice!

Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>     I am trying to get the WSDL2Ws tool working for this WSDL file.
> 
> I see that some classes have only constructor and destructor.
>  
> e.g.
> class description
> {
> public:
>         description();
>         ~description();
> };
> 
> Where the XSD file has
>         <xsd:element name="description" type="uddi:description"/>
>         <xsd:complexType name="description">
>                 <xsd:simpleContent>
>                         <xsd:extension base="string">
>                                 <xsd:attribute ref="xml:lang"/>
>                         </xsd:extension>
>                 </xsd:simpleContent>
>         </xsd:complexType>
> 
> I am a bit confused why there is a class with no data members at all.
> 
> Could someone please help me understand this.
> 
> Thanks,
> Samisa...
> 
> 
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >     While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I got
> > into
> > trouble with the tool generating code with 'operator' keyword.
> > 
> >     I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is
> > handled
> > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> > 
> >    This made many problems go away with this WSDL file.
> >    However I still get problems related to the inclusion of non existant files. (see below)
> > 
> > Thanks,
> > Samisa...
> > 
> > 
> > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> > 
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
> > http://promotions.yahoo.com/new_mail 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

Re: [Generated Clsss Content]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
    I am trying to get the WSDL2Ws tool working for this WSDL file.

I see that some classes have only constructor and destructor.
 
e.g.
class description
{
public:
        description();
        ~description();
};

Where the XSD file has
        <xsd:element name="description" type="uddi:description"/>
        <xsd:complexType name="description">
                <xsd:simpleContent>
                        <xsd:extension base="string">
                                <xsd:attribute ref="xml:lang"/>
                        </xsd:extension>
                </xsd:simpleContent>
        </xsd:complexType>

I am a bit confused why there is a class with no data members at all.

Could someone please help me understand this.

Thanks,
Samisa...



--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>     While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I got
> into
> trouble with the tool generating code with 'operator' keyword.
> 
>     I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is
> handled
> in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> 
>    This made many problems go away with this WSDL file.
>    However I still get problems related to the inclusion of non existant files. (see below)
> 
> Thanks,
> Samisa...
> 
> 
> Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> Inquire.h:74:31: businessKey_Array.h: No such file or directory
> Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail 
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

Re: [using itoa]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Yes Adrian, sprintf would do.
Thanks,
Samisa...

--- Adrian Dick <ad...@uk.ibm.com> wrote:

> 
> 
> 
> 
> 
> Apologies, my fault.   I was convinced I had tested this on Linux ... but
> obviously not.
> 
> Would the following be a better alternative?
> writer.write("\t\tsprintf(buffer,\"%d\", Value"+1+");\n");
> 
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
> 
> 
> 
>                                                                            
>              Samisa Abeysinghe                                             
>              <samisa_abeysingh                                             
>              e@yahoo.com>                                               To 
>                                        Apache AXIS C Developers List       
>              11-08-04 09:45            <ax...@ws.apache.org>          
>                                                                         cc 
>                                                                            
>              Please respond to                                     Subject 
>               "Apache AXIS C           Re: [using itoa]Skeletons and stubs 
>              Developers List"          are generating for inquire_v2.wsdl  
>                                                                            
>                                                                            
>                                                                            
>                                                                            
>                                                                            
>                                                                            
> 
> 
> 
> 
> Hi All,
>    In the ClientStubWriter class of the WDL2Ws tool I see a funtion named
> 'itoa' being hard coded.
> 
> src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:293:
> 
>              writer.write("\t\titoa( Value"+i+", buffer, 10);\n");
> 
>    Please note that there is no 'itoa' on Linux/Unix platforms (onlt atoi
> is there).
> 
>    Can someone help fix this please.
> Regards,
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >     While trying to compile the generated code for the UDDI WSDL file
> (inquire_v2.wsdl) I got
> > into
> > trouble with the tool generating code with 'operator' keyword.
> >
> >     I fixed this and also inclided the code to handle ANON_TOKEN similar
> to the way it is
> > handled
> > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> >
> >    This made many problems go away with this WSDL file.
> >    However I still get problems related to the inclusion of non existant
> files. (see below)
> >
> > Thanks,
> > Samisa...
> >
> >
> > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
> > http://promotions.yahoo.com/new_mail
> >
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
> 
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

Re: [using itoa]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Adrian Dick <ad...@uk.ibm.com>.




Apologies, my fault.   I was convinced I had tested this on Linux ... but
obviously not.

Would the following be a better alternative?
writer.write("\t\tsprintf(buffer,\"%d\", Value"+1+");\n");

Regards,
Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)



                                                                           
             Samisa Abeysinghe                                             
             <samisa_abeysingh                                             
             e@yahoo.com>                                               To 
                                       Apache AXIS C Developers List       
             11-08-04 09:45            <ax...@ws.apache.org>          
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
              "Apache AXIS C           Re: [using itoa]Skeletons and stubs 
             Developers List"          are generating for inquire_v2.wsdl  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi All,
   In the ClientStubWriter class of the WDL2Ws tool I see a funtion named
'itoa' being hard coded.

src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:293:

             writer.write("\t\titoa( Value"+i+", buffer, 10);\n");

   Please note that there is no 'itoa' on Linux/Unix platforms (onlt atoi
is there).

   Can someone help fix this please.
Regards,
Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>     While trying to compile the generated code for the UDDI WSDL file
(inquire_v2.wsdl) I got
> into
> trouble with the tool generating code with 'operator' keyword.
>
>     I fixed this and also inclided the code to handle ANON_TOKEN similar
to the way it is
> handled
> in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
>
>    This made many problems go away with this WSDL file.
>    However I still get problems related to the inclusion of non existant
files. (see below)
>
> Thanks,
> Samisa...
>
>
> Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> Inquire.h:74:31: businessKey_Array.h: No such file or directory
> Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail



RE: [Including non existant headers]Skeletons and stubs are generating for inquire_v2.wsdl - Trying to fix [FYI]

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Cool!!! Thanks for helping Susantha.

So I do not have to commit my *ugly* fix :-)

Samisa...


--- Susantha Kumara <su...@opensource.lk> wrote:

> Hi Samisa,
> 
> I see there are 2 problems you have come across.
> 
> 1. Inclusion of non-existent headers + Refering to non-existent array
> types.	My opinion to solve this problem is to generate a typedef for an
> array for each xsd:simpleType in the same place where a typedef for that
> simpleType is generated.
> 	Ex:
> 	<xsd:simpleType name="tModelKey">
> 		<xsd:restriction base="string"/>
> 	</xsd:simpleType>
> 
> 	The generated tModelKey.h has
> 	typedef xsd__string tModelKey;
> 
> 	we have to generate a typedef for an array in the next line so
> that tModelKey.h contain,
> 	typedef xsd__string tModelKey;
> 	typedef xsd__string_Array tModelKey_Array;	
> 
> 2. Types with no data members
> 	This is because
> 	a. The complexTypes with xsd:simpleContent is not supported
> correctly.
> 	b. The WSDL2Ws tool does not understand the reserved prefix
> 'xml' and the types defined in xml namespace
> (http://www.w3.org/XML/1998/namespace.html)
> 
> 	Ex1: See following complexType 
> 
> 	<xsd:complexType name="email">
> 		<xsd:simpleContent>
> 			<xsd:extension base="string">
> 				<xsd:attribute name="useType"
> type="string" use="optional"/>
> 			</xsd:extension>
> 		</xsd:simpleContent>
> 	</xsd:complexType>
> 
> But email.h created is ,
> 
> class email
> {
> public:
> 	xsd__string useType;
> 	email();
> 	~email();
> };
> 		
> But this should be,
> 
> class email
> {
> public:
> 	xsd__string _email;
> 	xsd__string useType;
> 	email();
> 	~email();
> };
> 
> 	Ex2: If we see the complexType
> 
> 	<xsd:complexType name="name">
> 		<xsd:simpleContent>
> 			<xsd:extension base="string">
> 				<xsd:attribute ref="xml:lang"
> use="optional"/>
> 			</xsd:extension>
> 		</xsd:simpleContent>
> 	</xsd:complexType>
> 
> The generated type looks 
> 
> class name
> {
> public:
> 	name();
> 	~name();
> };
> 
> but should be like,
> 
> class name
> {
> public:
> 	xsd__string _name;
> 	name();
> 	~name();
> };
> 
> So I am having a look at the WSDL2Ws code and try to fix it ASAP.
> 
> Susantha,
> 
> > -----Original Message-----
> > From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> > Sent: Thursday, August 12, 2004 7:21 AM
> > To: Apache AXIS C Developers List
> > Subject: Re: [Including non existant headers]Skeletons and stubs are
> > generating for inquire_v2.wsdl
> > 
> > Does anyone have any thoughts on this? Please...
> > Samisa...
> > 
> > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > 
> > > Hi All,
> > >     I managed to fix the inclusion of non existant problem with a
> *very*
> > ugly fix :-(
> > >
> > >     What I did was to generate a dummy header file so that the
> compiler
> > would not complain.
> > >     The real fix would have been to remove the inclution of a header
> > that reffers to an array of
> > > simple type. However, because the tool already generate some headers
> for
> > simple types and
> > > include
> > > them here and there, it is time consuming to remove it all together
> (I
> > infact tried removing
> > > referances to invalid headers, in the process ran into more
> problems)
> > >     The tool already generates some dummy headers when the type is
> > string (this is without my
> > > fix). (And you get classes with no data members)
> > >
> > > e.g.
> > > description.h had:
> > > class description
> > > {
> > > public:
> > >         description();
> > >         ~description();
> > > };
> > > description_Array.h had:
> > > typedef struct description_ArrayTag
> > > {
> > >         description* m_Array;
> > >         int m_Size;
> > > } description_Array;
> > >
> > > The tModelKey. had:
> > > typedef xsd__string tModelKey;
> > >
> > > Those were being generated prior to the hack.
> > >
> > > So I generated:
> > > typedef struct tModelKey_ArrayTag
> > > {
> > >         xsd__string* m_Array;
> > >         int m_Size;
> > > } tModelKey_Array;
> > >
> > > This make the header file problem go away. However, as this is not
> the
> > correct way to fix it, I
> > > did not commit it.
> > >
> > > Fixing this properly would mean to restructure/refactor the tool
> which
> > would take up some time.
> > > Hence if the community is OK with this fix for the time being I
> could
> > commit it, so that those
> > > who
> > > are interested could try out complex WSDL files such as this UDDI
> WSDL.
> > > (because there could be other unseen problems that could be revealed
> > once we actually run the
> > > client/service and test. Up to now I was stuck with code generation
> and
> > compilation.)
> > >
> > > Any thoughts? Please...
> > >
> > > Thanks,
> > > Samisa...
> > >
> > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > >
> > > > Hi All,
> > > >    In the ClientStubWriter class of the WDL2Ws tool I see a
> funtion
> > named 'itoa' being hard
> > > > coded.
> > > >
> > > >
> >
> src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:
> 29
> > 3:
> > >
> > > >
> > > >              writer.write("\t\titoa( Value"+i+", buffer, 10);\n");
> > > >
> > > >    Please note that there is no 'itoa' on Linux/Unix platforms
> (onlt
> 
=== message truncated ===



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

RE: [Including non existant headers]Skeletons and stubs are generating for inquire_v2.wsdl - Trying to fix [FYI]

Posted by Susantha Kumara <su...@opensource.lk>.
Hi Samisa,

I see there are 2 problems you have come across.

1. Inclusion of non-existent headers + Refering to non-existent array
types.	My opinion to solve this problem is to generate a typedef for an
array for each xsd:simpleType in the same place where a typedef for that
simpleType is generated.
	Ex:
	<xsd:simpleType name="tModelKey">
		<xsd:restriction base="string"/>
	</xsd:simpleType>

	The generated tModelKey.h has
	typedef xsd__string tModelKey;

	we have to generate a typedef for an array in the next line so
that tModelKey.h contain,
	typedef xsd__string tModelKey;
	typedef xsd__string_Array tModelKey_Array;	

2. Types with no data members
	This is because
	a. The complexTypes with xsd:simpleContent is not supported
correctly.
	b. The WSDL2Ws tool does not understand the reserved prefix
'xml' and the types defined in xml namespace
(http://www.w3.org/XML/1998/namespace.html)

	Ex1: See following complexType 

	<xsd:complexType name="email">
		<xsd:simpleContent>
			<xsd:extension base="string">
				<xsd:attribute name="useType"
type="string" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>

But email.h created is ,

class email
{
public:
	xsd__string useType;
	email();
	~email();
};
		
But this should be,

class email
{
public:
	xsd__string _email;
	xsd__string useType;
	email();
	~email();
};

	Ex2: If we see the complexType

	<xsd:complexType name="name">
		<xsd:simpleContent>
			<xsd:extension base="string">
				<xsd:attribute ref="xml:lang"
use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>

The generated type looks 

class name
{
public:
	name();
	~name();
};

but should be like,

class name
{
public:
	xsd__string _name;
	name();
	~name();
};

So I am having a look at the WSDL2Ws code and try to fix it ASAP.

Susantha,

> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa_abeysinghe@yahoo.com]
> Sent: Thursday, August 12, 2004 7:21 AM
> To: Apache AXIS C Developers List
> Subject: Re: [Including non existant headers]Skeletons and stubs are
> generating for inquire_v2.wsdl
> 
> Does anyone have any thoughts on this? Please...
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >     I managed to fix the inclusion of non existant problem with a
*very*
> ugly fix :-(
> >
> >     What I did was to generate a dummy header file so that the
compiler
> would not complain.
> >     The real fix would have been to remove the inclution of a header
> that reffers to an array of
> > simple type. However, because the tool already generate some headers
for
> simple types and
> > include
> > them here and there, it is time consuming to remove it all together
(I
> infact tried removing
> > referances to invalid headers, in the process ran into more
problems)
> >     The tool already generates some dummy headers when the type is
> string (this is without my
> > fix). (And you get classes with no data members)
> >
> > e.g.
> > description.h had:
> > class description
> > {
> > public:
> >         description();
> >         ~description();
> > };
> > description_Array.h had:
> > typedef struct description_ArrayTag
> > {
> >         description* m_Array;
> >         int m_Size;
> > } description_Array;
> >
> > The tModelKey. had:
> > typedef xsd__string tModelKey;
> >
> > Those were being generated prior to the hack.
> >
> > So I generated:
> > typedef struct tModelKey_ArrayTag
> > {
> >         xsd__string* m_Array;
> >         int m_Size;
> > } tModelKey_Array;
> >
> > This make the header file problem go away. However, as this is not
the
> correct way to fix it, I
> > did not commit it.
> >
> > Fixing this properly would mean to restructure/refactor the tool
which
> would take up some time.
> > Hence if the community is OK with this fix for the time being I
could
> commit it, so that those
> > who
> > are interested could try out complex WSDL files such as this UDDI
WSDL.
> > (because there could be other unseen problems that could be revealed
> once we actually run the
> > client/service and test. Up to now I was stuck with code generation
and
> compilation.)
> >
> > Any thoughts? Please...
> >
> > Thanks,
> > Samisa...
> >
> > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> >
> > > Hi All,
> > >    In the ClientStubWriter class of the WDL2Ws tool I see a
funtion
> named 'itoa' being hard
> > > coded.
> > >
> > >
>
src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:
29
> 3:
> >
> > >
> > >              writer.write("\t\titoa( Value"+i+", buffer, 10);\n");
> > >
> > >    Please note that there is no 'itoa' on Linux/Unix platforms
(onlt
> atoi is there).
> > >
> > >    Can someone help fix this please.
> > > Regards,
> > > Samisa...
> > >
> > > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > >
> > > > Hi All,
> > > >     While trying to compile the generated code for the UDDI WSDL
> file (inquire_v2.wsdl) I
> > got
> > > > into
> > > > trouble with the tool generating code with 'operator' keyword.
> > > >
> > > >     I fixed this and also inclided the code to handle ANON_TOKEN
> similar to the way it is
> > > > handled
> > > > in Axis Java code. (in
org/apache/axis/wsdl/wsdl2ws/info/Type.java
> file)
> > > >
> > > >    This made many problems go away with this WSDL file.
> > > >    However I still get problems related to the inclusion of non
> existant files. (see below)
> > > >
> > > > Thanks,
> > > > Samisa...
> > > >
> > > >
> > > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > > Inquire.h:68:33: findQualifier_Array.h: No such file or
directory
> > > > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > > Inquire.h:94:34: uploadRegister_Array.h: No such file or
directory
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > > http://promotions.yahoo.com/new_mail
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > http://promotions.yahoo.com/new_mail
> > >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> > http://promotions.yahoo.com/new_mail
> >
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail


Re: [Including non existant headers]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Does anyone have any thoughts on this? Please...
Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>     I managed to fix the inclusion of non existant problem with a *very* ugly fix :-(
> 
>     What I did was to generate a dummy header file so that the compiler would not complain.
>     The real fix would have been to remove the inclution of a header that reffers to an array of
> simple type. However, because the tool already generate some headers for simple types and
> include
> them here and there, it is time consuming to remove it all together (I infact tried removing
> referances to invalid headers, in the process ran into more problems)
>     The tool already generates some dummy headers when the type is string (this is without my
> fix). (And you get classes with no data members)
> 
> e.g.
> description.h had:
> class description
> {
> public:
>         description();
>         ~description();
> };
> description_Array.h had:
> typedef struct description_ArrayTag
> {
>         description* m_Array;
>         int m_Size;
> } description_Array;
> 
> The tModelKey. had:
> typedef xsd__string tModelKey;
> 
> Those were being generated prior to the hack.
> 
> So I generated:
> typedef struct tModelKey_ArrayTag
> {
>         xsd__string* m_Array;
>         int m_Size;
> } tModelKey_Array;
> 
> This make the header file problem go away. However, as this is not the correct way to fix it, I
> did not commit it. 
> 
> Fixing this properly would mean to restructure/refactor the tool which would take up some time.
> Hence if the community is OK with this fix for the time being I could commit it, so that those
> who
> are interested could try out complex WSDL files such as this UDDI WSDL.
> (because there could be other unseen problems that could be revealed once we actually run the
> client/service and test. Up to now I was stuck with code generation and compilation.)
> 
> Any thoughts? Please...
> 
> Thanks,
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >    In the ClientStubWriter class of the WDL2Ws tool I see a funtion named 'itoa' being hard
> > coded.
> > 
> > src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:293:                  
>  
> >  
> >              writer.write("\t\titoa( Value"+i+", buffer, 10);\n");
> > 
> >    Please note that there is no 'itoa' on Linux/Unix platforms (onlt atoi is there).
> > 
> >    Can someone help fix this please.
> > Regards,
> > Samisa...
> > 
> > --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> > 
> > > Hi All,
> > >     While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I
> got
> > > into
> > > trouble with the tool generating code with 'operator' keyword.
> > > 
> > >     I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is
> > > handled
> > > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> > > 
> > >    This made many problems go away with this WSDL file.
> > >    However I still get problems related to the inclusion of non existant files. (see below)
> > > 
> > > Thanks,
> > > Samisa...
> > > 
> > > 
> > > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> > > 
> > > 
> > > 
> > > 
> > > 		
> > > __________________________________
> > > Do you Yahoo!?
> > > Read only the mail you want - Yahoo! Mail SpamGuard.
> > > http://promotions.yahoo.com/new_mail 
> > > 
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> > http://promotions.yahoo.com/new_mail 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

Re: [Including non existant headers]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
    I managed to fix the inclusion of non existant problem with a *very* ugly fix :-(

    What I did was to generate a dummy header file so that the compiler would not complain.
    The real fix would have been to remove the inclution of a header that reffers to an array of
simple type. However, because the tool already generate some headers for simple types and include
them here and there, it is time consuming to remove it all together (I infact tried removing
referances to invalid headers, in the process ran into more problems)
    The tool already generates some dummy headers when the type is string (this is without my
fix). (And you get classes with no data members)

e.g.
description.h had:
class description
{
public:
        description();
        ~description();
};
description_Array.h had:
typedef struct description_ArrayTag
{
        description* m_Array;
        int m_Size;
} description_Array;

The tModelKey. had:
typedef xsd__string tModelKey;

Those were being generated prior to the hack.

So I generated:
typedef struct tModelKey_ArrayTag
{
        xsd__string* m_Array;
        int m_Size;
} tModelKey_Array;

This make the header file problem go away. However, as this is not the correct way to fix it, I
did not commit it. 

Fixing this properly would mean to restructure/refactor the tool which would take up some time.
Hence if the community is OK with this fix for the time being I could commit it, so that those who
are interested could try out complex WSDL files such as this UDDI WSDL.
(because there could be other unseen problems that could be revealed once we actually run the
client/service and test. Up to now I was stuck with code generation and compilation.)

Any thoughts? Please...

Thanks,
Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>    In the ClientStubWriter class of the WDL2Ws tool I see a funtion named 'itoa' being hard
> coded.
> 
> src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:293:                    
>  
>              writer.write("\t\titoa( Value"+i+", buffer, 10);\n");
> 
>    Please note that there is no 'itoa' on Linux/Unix platforms (onlt atoi is there).
> 
>    Can someone help fix this please.
> Regards,
> Samisa...
> 
> --- Samisa Abeysinghe <sa...@yahoo.com> wrote:
> 
> > Hi All,
> >     While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I got
> > into
> > trouble with the tool generating code with 'operator' keyword.
> > 
> >     I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is
> > handled
> > in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> > 
> >    This made many problems go away with this WSDL file.
> >    However I still get problems related to the inclusion of non existant files. (see below)
> > 
> > Thanks,
> > Samisa...
> > 
> > 
> > Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> > Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> > Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> > Inquire.h:74:31: businessKey_Array.h: No such file or directory
> > Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> > Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> > 
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
> > http://promotions.yahoo.com/new_mail 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

Re: [using itoa]Skeletons and stubs are generating for inquire_v2.wsdl

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi All,
   In the ClientStubWriter class of the WDL2Ws tool I see a funtion named 'itoa' being hard coded.

src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java:293:                      
             writer.write("\t\titoa( Value"+i+", buffer, 10);\n");

   Please note that there is no 'itoa' on Linux/Unix platforms (onlt atoi is there).

   Can someone help fix this please.
Regards,
Samisa...

--- Samisa Abeysinghe <sa...@yahoo.com> wrote:

> Hi All,
>     While trying to compile the generated code for the UDDI WSDL file (inquire_v2.wsdl) I got
> into
> trouble with the tool generating code with 'operator' keyword.
> 
>     I fixed this and also inclided the code to handle ANON_TOKEN similar to the way it is
> handled
> in Axis Java code. (in org/apache/axis/wsdl/wsdl2ws/info/Type.java file)
> 
>    This made many problems go away with this WSDL file.
>    However I still get problems related to the inclusion of non existant files. (see below)
> 
> Thanks,
> Samisa...
> 
> 
> Inquire.h:31:29: tModelKey_Array.h: No such file or directory
> Inquire.h:52:30: serviceKey_Array.h: No such file or directory
> Inquire.h:68:33: findQualifier_Array.h: No such file or directory
> Inquire.h:74:31: businessKey_Array.h: No such file or directory
> Inquire.h:76:30: bindingKey_Array.h: No such file or directory
> Inquire.h:94:34: uploadRegister_Array.h: No such file or directory
> 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail 
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail