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 Franz Fehringer <fe...@isogmbh.de> on 2005/11/23 10:41:54 UTC

AW: wsdl2ws strange warnings and results (repost)

Attached is a complete example.
To be specific: The point is not warnings (which could be harmless in
principle), but completely corrupt source code getting generated like
class >t_Warning_Description;
(note the gt sign)

greetings

Franz
  -----Ursprungliche Nachricht-----
  Von: Franz Fehringer [mailto:feh@isogmbh.de]
  Gesendet: Donnerstag, 10. November 2005 10:33
  An: HAWKINSJ@uk.ibm.com; Apache AXIS C Developers List
  Betreff: AW: wsdl2ws strange warnings and results


  Hello John,

  The problem is that wsdl2ws cannot cope with element tags without type
attributes.
  So instead of

    <xsd:element name="ErrorResponse">
      <xsd:annotation>
        <xsd:documentation>Describes any errors that occur during system
operation.</xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="Error" type="t_Error" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>

  i have to write

   <xsd:element name="ErrorResponse" type="t_ErrorResponse">
    <xsd:annotation>
     <xsd:documentation>Describes any errors that occur during system
operation.</xsd:documentation>
    </xsd:annotation>
   </xsd:element>

  with an appropriate type definition of t_ErrorResponse.
  wsdl2java does not suffer from this problem, but in this special case
generates Java code with invalid throw declarations
  (the throw declaration says that a t_Error[] can be thrown which doesn't
compile because arrays are not Throwables).

  regards

  Franz
    -----Ursprungliche Nachricht-----
    Von: John Hawkins [mailto:HAWKINSJ@uk.ibm.com]
    Gesendet: Mittwoch, 9. November 2005 09:47
    An: Apache AXIS C Developers List
    Betreff: Re: wsdl2ws strange warnings and results



    Hi Franz,

    the "ignoring anonymous type" message is to be ignored by you too. This
is normal and it means that we are not going to create a seperate class for
this type. The naming convention is the way WSDL2Ws understands this logic.
(I'm just about to remove this message as we've had many people asking about
it !)

    Now, the fact that you're getting the ">" in source too will be a bug.
It could be that you have refs in your wsdl - which aren't supported yet
(I'm literally looking into this now) Or, some other bug. If you look at
your wsdl and the types that have the ">" in front of them you should be
able to see what's different about them compared to the others which appear
to work OK. Is your WSDL RPC or doc/literal ?




          "Franz Fehringer" <fe...@isogmbh.de>
          08/11/2005 14:46 Please respond to
                "Apache AXIS C Developers List"


         To "Apache AXIS C Developers List" <ax...@ws.apache.org>
                cc
                Subject wsdl2ws strange warnings and results







    Hello,

    I get strange warnings and class definitions in using wsdl2ws.
    My Axis (C/C++) version is 1.5.
    I execute java -cp "%AXISCCLASSPATH%;%CLASSPATH%"
    org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -lc++ -mgnu -sclient
    PegsTour.wsdl
    (files are attached).
    The warnings are
    ignoring anonymous type >ErrorResponse

    ignoring anonymous type >_LoginRequest_Expiry

    ignoring anonymous type >_LoginResponse_Expiry

    ignoring anonymous type >LoginResponse

    ignoring anonymous type >LoginRequest

    ignoring anonymous type >t_Warning_Description

    ignoring anonymous type >_LoginResponse_SessionToken

    Note the spurious greaterthan sign in front.
    This gt sign also spoils the generated sources, for example

    class >t_Warning_Description;

    What is wrong?

    Thanks in advance

    Franz

    Dr. Franz Fehringer (Dipl. Math.)
    ____________________________________
    ISO Software Systeme
    Eichendorffstrasse 29
    90491 Nuremberg
    Germany

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

    mailto:feh@isogmbh.de
    http://www.isogmbh.de


AW: wsdl2ws strange warnings and results (repost)

Posted by Franz Fehringer <fe...@isogmbh.de>.
Since the .cmd file got not through:

java -cp "%AXISCCLASSPATH%;%CLASSPATH%"
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -sclient PegsTour.wsdl

resulting in

D:\projekte\Pegasus\2.10.1>java -cp
"C:\Programme\axis-c-1-5-win32\lib\axis\wsdl2ws.jar;C:\Programme\axis-c-1-5-
win32\li
b\axisjava\axis.jar;C:\Programme\axis-c-1-5-win32\lib\axisjava\axis-ant.jar;
C:\Programme\axis-c-1-5-win32\lib\axisjava\c
ommons-discovery.jar;C:\Programme\axis-c-1-5-win32\lib\axisjava\commons-logg
ing.jar;C:\Programme\axis-c-1-5-win32\lib\ax
isjava\jaxrpc.jar;C:\Programme\axis-c-1-5-win32\lib\axisjava\saaj.jar;C:\Pro
gramme\axis-c-1-5-win32\lib\axisjava\wsdl4j.
jar;.;C:\Programme\Saxon\saxon8.jar;C:\Programme\Tomcat
5.5\common\lib\servlet-api.jar;C:\Programme\Tomcat 5.5\common\li
b\jsp-api.jar;C:\Programme\Tomcat
5.5\common\lib\activation.jar;C:\Programme\Tomcat
5.5\common\lib\mail.jar;C:\Programme
\Tomcat
5.5\common\lib\xmlsec.jar;C:\Programme\logging-log4j-1.2.12\dist\lib\log4j-1
.2.12.jar;C:\Programme\junit3.8.1\ju
nit.jar" org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -sclient PegsTour.wsdl
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.

How do i get rid of the log4j warning btw?

  -----Ursprungliche Nachricht-----
Von: Franz Fehringer [mailto:feh@isogmbh.de]
Gesendet: Mittwoch, 23. November 2005 10:42
An: HAWKINSJ@uk.ibm.com; Apache AXIS C Developers List
Betreff: AW: wsdl2ws strange warnings and results (repost)


  Attached is a complete example.
  To be specific: The point is not warnings (which could be harmless in
principle), but completely corrupt source code getting generated like
  class >t_Warning_Description;
  (note the gt sign)

  greetings

  Franz
    -----Ursprungliche Nachricht-----
    Von: Franz Fehringer [mailto:feh@isogmbh.de]
    Gesendet: Donnerstag, 10. November 2005 10:33
    An: HAWKINSJ@uk.ibm.com; Apache AXIS C Developers List
    Betreff: AW: wsdl2ws strange warnings and results


    Hello John,

    The problem is that wsdl2ws cannot cope with element tags without type
attributes.
    So instead of

      <xsd:element name="ErrorResponse">
        <xsd:annotation>
          <xsd:documentation>Describes any errors that occur during system
operation.</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Error" type="t_Error" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

    i have to write

     <xsd:element name="ErrorResponse" type="t_ErrorResponse">
      <xsd:annotation>
       <xsd:documentation>Describes any errors that occur during system
operation.</xsd:documentation>
      </xsd:annotation>
     </xsd:element>

    with an appropriate type definition of t_ErrorResponse.
    wsdl2java does not suffer from this problem, but in this special case
generates Java code with invalid throw declarations
    (the throw declaration says that a t_Error[] can be thrown which doesn't
compile because arrays are not Throwables).

    regards

    Franz
      -----Ursprungliche Nachricht-----
      Von: John Hawkins [mailto:HAWKINSJ@uk.ibm.com]
      Gesendet: Mittwoch, 9. November 2005 09:47
      An: Apache AXIS C Developers List
      Betreff: Re: wsdl2ws strange warnings and results



      Hi Franz,

      the "ignoring anonymous type" message is to be ignored by you too.
This is normal and it means that we are not going to create a seperate class
for this type. The naming convention is the way WSDL2Ws understands this
logic. (I'm just about to remove this message as we've had many people
asking about it !)

      Now, the fact that you're getting the ">" in source too will be a bug.
It could be that you have refs in your wsdl - which aren't supported yet
(I'm literally looking into this now) Or, some other bug. If you look at
your wsdl and the types that have the ">" in front of them you should be
able to see what's different about them compared to the others which appear
to work OK. Is your WSDL RPC or doc/literal ?




            "Franz Fehringer" <fe...@isogmbh.de>
            08/11/2005 14:46 Please respond to
                  "Apache AXIS C Developers List"


           To "Apache AXIS C Developers List" <ax...@ws.apache.org>
                  cc
                  Subject wsdl2ws strange warnings and results







      Hello,

      I get strange warnings and class definitions in using wsdl2ws.
      My Axis (C/C++) version is 1.5.
      I execute java -cp "%AXISCCLASSPATH%;%CLASSPATH%"
      org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -lc++ -mgnu -sclient
      PegsTour.wsdl
      (files are attached).
      The warnings are
      ignoring anonymous type >ErrorResponse

      ignoring anonymous type >_LoginRequest_Expiry

      ignoring anonymous type >_LoginResponse_Expiry

      ignoring anonymous type >LoginResponse

      ignoring anonymous type >LoginRequest

      ignoring anonymous type >t_Warning_Description

      ignoring anonymous type >_LoginResponse_SessionToken

      Note the spurious greaterthan sign in front.
      This gt sign also spoils the generated sources, for example

      class >t_Warning_Description;

      What is wrong?

      Thanks in advance

      Franz

      Dr. Franz Fehringer (Dipl. Math.)
      ____________________________________
      ISO Software Systeme
      Eichendorffstrasse 29
      90491 Nuremberg
      Germany

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

      mailto:feh@isogmbh.de
      http://www.isogmbh.de