Hello John,
 
First i have to say that
  • The anonymous type warnings are gone.
  • I did not yet try to compile the generated C++ sources.
The remaining wsdl2ws error diagnostics are due to the following deficiencies:
  • In the type definition below, wsdl2ws does not detect that a t_NonNegativeInt should spring into existence.
        <xsd:simpleType xmlns="http://www.pegs-pegstour.com/API/XMLSchema/1.0.1" name="t_Age">
            <xsd:restriction base="t_NonNegativeInt"/>
        </xsd:simpleType>
    Instead it generates an empty class.
    This could be theoretically OK if an appropriate typedef would be remembered i.e. every time a t_Age is referenced in WSDL a reference to t_NonNegativeInt would be generated in C++.
    But source code inspection shows that references to t_Age are generated where a t_NonNegativeInt was intended and this is clearly an error.
    Additionally wrong source code is generated saying pSZ->serialize(">", NULL); in t_Age.cpp.
    The diagnostics btw is
    Possible error in class t_Age: class with no attributes....................
  • wsdl2ws throws an error if a type suffering from the first problem is used as type for an attribute i.e. this second error is inherited from the first.
    If i substitute all references to t_Age and t_BookingNumber with references to t_NonNegativeInt (and delete the definitions themselves) the generation goes through without errors and warnings.
What i wonder is why the first problem is with the C++ but apparently not with the Java generator or the other way round: Can the Java generation for this case be copied over to the C++ generation?
As a last question: is there a simple substitution for
    <xsd:simpleType xmlns="http://www.pegs-pegstour.com/API/XMLSchema/1.0.1" name="t_Age">
        <xsd:restriction base="t_NonNegativeInt"/>
    </xsd:simpleType>
which would
  • say that t_Age is simply another name for t_NonNegativeInt
  • correctly be processed by wsdl2ws
???
 
Merry christmas
 
Franz
 

-----Ursprüngliche Nachricht-----
Von: John Hawkins [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 23. Dezember 2005 11:25
An: Franz Fehringer; [email protected]
Betreff: Re: AW: AW: AXISCPP-753 status (also relevant for Java Axis)?


Hi Franz,

I agree with Nadir - C support is very limited. We've just changed the memory model and I'm amazed that C stubs work at all !

Re the anonymous types and the other issues you have with PegsTour.wsdl - Anonymous types are types that are effectively only used inside other types so we don't (or shouldn't) generate classes for them. I agree that there appear to be some issues with even attempting to create classes for the types you discuss. But, is this actually stopping the code from compiling or running? (I haven't tried and not likely to get the time in the near future.)

regards,
John.



"Franz Fehringer" <[EMAIL PROTECTED]>

22/12/2005 14:32

To
John Hawkins/UK/[EMAIL PROTECTED], <[email protected]>, <[email protected]>
cc
Subject
AW: AW: AXISCPP-753 status (also relevant for Java Axis)?





Hello John,
 
With a little testing i got the following somehow strange result:
  • For the PruebasBug example attached to AXISCPP-753 source code generation goes well for C++ and for C.
  • For my PegsTour.wsdl with C++ source code generation the AXISCPP-753 problem does not show up anymore.
  • For my PegsTour.wsdl with with C source code generation lots of "ignoring anonymous type >t_BookingAgreementLine_SpecialSell" reappear?!
What is going on here?
Is perhaps C source code generation not as good supported as C++ source code generation (or not actively mantained at all)?
 
Greetings
 
Franz
 
-----Ursprüngliche Nachricht-----
Von:
John Hawkins [mailto:[EMAIL PROTECTED]
Gesendet:
Donnerstag, 22. Dezember 2005 14:19
An:
[email protected]; [email protected]
Betreff:
Re: AW: AXISCPP-753 status (also relevant for Java Axis)?


Hi,


OK, I've just fixed the AXIS-CPP 753 issue.

You can take the source from svn or wait for binaries from the overnight build.



regards,

John.



"Franz Fehringer" <[EMAIL PROTECTED]>

20/12/2005 17:34

Please respond to
axis-dev


To
"Apache AXIS C User List" <[email protected]>, John Hawkins/UK/[EMAIL PROTECTED], <[email protected]>
cc
"Apache AXIS C Developers List" <[email protected]>, "[EMAIL PROTECTED] Apache. Org" <[email protected]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject
AW: AXISCPP-753 status (also relevant for Java Axis)?







As a last try i did

svn co
http://svn.apache.org/repos/asf/webservices/axis/trunk axis
and the problem still persists (both C/C++ and Java).

 

Franz

-----Ursprüngliche Nachricht-----
Von:
Franz Fehringer [mailto:[EMAIL PROTECTED]
Gesendet:
Dienstag, 20. Dezember 2005 16:19
An:
[EMAIL PROTECTED] ibm. com; [email protected]; Apache AXIS C User List
Cc:
Apache AXIS C Developers List; [EMAIL PROTECTED] Apache. Org; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff:
AW: AXISCPP-753 status (also relevant for Java Axis)?


Hello John,

 

On http://ws.apache.org/axis/interim.html
i can only find the CVS snapshots already known to me.
After some guessing i navigated to
http://svn.apache.org/snapshots/ws-axis/ and downloaded ws-axis_20051220113410.tar.gz but only to discover that AXISCPP-753 is still not resolved in this drop.
If this is resolved in the latest svn sources, how do i get access to these sources?

Is anonymous access to the svn repository possible (how?)?

 

Greetings

 

Franz

 
-----Ursprüngliche Nachricht-----
Von:
John Hawkins [mailto:[EMAIL PROTECTED]
Gesendet:
Dienstag, 20. Dezember 2005 14:48
An:
Apache AXIS C User List
Cc:
Apache AXIS C Developers List; axis-c-user; [email protected]; [EMAIL PROTECTED] Apache. Org; [EMAIL PROTECTED]
Betreff:
Re: AXISCPP-753 status (also relevant for Java Axis)?



Hi Franz,


I think you'll find that this is the cvs source. You need the svn source and I believe that this problem (AXISCPP 753) is fixed in the latest source -> http://ws.apache.org/axis/interim.html


regards,

John.




"Franz Fehringer" <[EMAIL PROTECTED]>

20/12/2005 11:53

Please respond to
"Apache AXIS C User List"


To
<[EMAIL PROTECTED]>, "Apache AXIS C Developers List" <[email protected]>, "axis-c-user" <[email protected]>
cc
"[EMAIL PROTECTED] Apache. Org" <[email protected]>, John Hawkins/UK/[EMAIL PROTECTED], <[email protected]>
Subject
AXISCPP-753 status (also relevant for Java Axis)?









Hello,

Yesterday i made a test regarding the status of AXISCPP-753 using the
attached PruebasBug example.
To this end i downloaded the ws-axis_20051219052135.tar.gz source code
snapshot and first built the Java Version with JDK 1.5.0_06 and afterwards
the C/C++ Version with MSVC6SP6 and JDK 1.5.0_06 using the jars made in the
first step.
The problem still persists, i.e. there is a spurious warning "ignoring
anonymous type >PruebaDatosCabecera" and corrupt source code is generated
(referring to >PruebaDatosCabecera*; note the gt sign).
What i want to point out specifically is that the Java Generator wsdl2java
also fails on this example only with another symptom (but also generating
spurious gt signs, see below).
What are the prospects for solving this bug?
Will Axis C/C++ 1.6 and/or Axis Java 1.4 be able to cope with anonymous
complexTypes i.e. will AXISCPP-753 be solved?
Is the lack of support of anonymous complexTypes recognized as a bug in the
Java version of Axis, i.e. is there a JIRA isssue for it?
Due to this deficiency i cannot make productive use of Axis, since i have to
completely rewrite all customer delivered WSDLs (anonymous complexTypes are
all over there) and i think it is a severe shortcoming in general terms
also.

Best regards and thanks for looking into this issue

Franz

P.S.

The wrong generated Java source code lines are (note again the gt sign)

PruebaDatosCabecera.java:        typeDesc.setXmlType(new
javax.xml.namespace.QName("http://www.abysal.com/soap/PruebasBug.wsdl",
">PruebaDatosCabecera"));
PruebasBugBindingStub.java:        param = new
org.apache.axis.description.ParameterDesc(new
javax.xml.namespace.QName("http://www.abysal.com/soap/PruebasBug.wsdl",
"PruebaDatosCabecera"), org.apache.axis.description.ParameterDesc.IN, new
javax.xml.namespace.QName("http://www.abysal.com/soap/PruebasBug.wsdl",
">PruebaDatosCabecera"),
com.abysal.www.soap.PruebasBug_wsdl.PruebaDatosCabecera.class, false,
false);
PruebasBugBindingStub.java:            qName = new
javax.xml.namespace.QName("http://www.abysal.com/soap/PruebasBug.wsdl",
">PruebaDatosCabecera");



Dr. Franz Fehringer (Dipl. Math.)
____________________________________
ISO Software Systeme
Eichendorffstrasse 29
90491 Nürnberg
Deutschland

Tel. : +49/(911) - 99594-0
Fax  : +49/(911) - 99594-580

mailto:[EMAIL PROTECTED]
http://www.isogmbh.de



Reply via email to