You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Peter <li...@gmail.com> on 2006/12/18 01:56:01 UTC

problems with wsdl2java,need help!

hallo all, I have a problem when using wsdl2java, it looks like following

D:\test>java org.apache.axis.wsdl.WSDL2Java province2.wsdl
java.lang.NullPointerException
        at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess
(JavaBeanWriter.
java:295)
        at org.apache.axis.wsdl.toJava.JavaBeanWriter.<init>(
JavaBeanWriter.java
:160)
        at org.apache.axis.wsdl.toJava.JavaTypeWriter.getBeanWriter
(JavaTypeWrit
er.java:174)
        at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(
JavaTypeWriter.java
:89)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.getGenerator
(JavaGen
eratorFactory.java:318)
        at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:545)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
        at java.lang.Thread.run(Unknown Source)

the wsdl file is in the attachment

any idea about how to solve it !

thank you very much

Re: problems with wsdl2java,need help!

Posted by Martin Gainty <mg...@hotmail.com>.
Glad to hear..Keep me apprised on your progress

Martin --
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
  ----- Original Message ----- 
  From: Peter 
  To: axis-user@ws.apache.org ; Martin Gainty 
  Sent: Tuesday, December 19, 2006 12:01 AM
  Subject: Re: problems with wsdl2java,need help!


  thanks I have found that the wsdl file is not correct


  On 12/18/06, Martin Gainty <mg...@hotmail.com> wrote: 
    Your best bet here is to start small with something that you know works such as interopTest.wsdl 
    and add one type at a time..literally start with 
    <wsdl:definition>
     <schema ...>
      <complexType name="ThisWorksSoDontTouchIt">
              <element name="varString" type="string"/>
              <element name="varInt" type="int"/>
              <element name="varFloat" type="float"/> 
      </complexType>
     </schema>
    </wsdl:definition>
    add 1 element of a xsd primitive such as string or int or float
    get that working
    construct ComplexType (ThisWorksSoDontTouchIt) and add that 1 ComplexType element in 
    get that working
    you see the pattern..

    What you have now had so many errors that it could take days to verify all of the incorrect namespances or improperly specified or constructed complexTypes

    HTH,
    M-
    --------------------------------------------------------------------------- 
    This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. 
    --------------------------------------------------------------------------- 
    Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. 
      ----- Original Message ----- 
      From: Peter 
      To: axis-user@ws.apache.org 
      Sent: Sunday, December 17, 2006 7:56 PM
      Subject: problems with wsdl2java,need help!

       
      hallo all, I have a problem when using wsdl2java, it looks like following 

      D:\test>java org.apache.axis.wsdl.WSDL2Java province2.wsdl
      java.lang.NullPointerException
              at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess(JavaBeanWriter.
      java:295)
              at org.apache.axis.wsdl.toJava.JavaBeanWriter <init>(JavaBeanWriter.java
      :160)
              at org.apache.axis.wsdl.toJava.JavaTypeWriter.getBeanWriter(JavaTypeWrit
      er.java:174)
              at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(JavaTypeWriter.java 
      :89)
              at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.getGenerator(JavaGen
      eratorFactory.java:318)
              at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:545)
              at org.apache.axis.wsdl.gen.Parser.generate (Parser.java:432)
              at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
              at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
              at java.lang.Thread.run(Unknown Source) 

      the wsdl file is in the attachment

      any idea about how to solve it !

      thank you very much 
       


--------------------------------------------------------------------------


      ---------------------------------------------------------------------
      To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
      For additional commands, e-mail: axis-user-help@ws.apache.org 




Re: problems with wsdl2java,need help!

Posted by Peter <li...@gmail.com>.
thanks I have found that the wsdl file is not correct

On 12/18/06, Martin Gainty <mg...@hotmail.com> wrote:
>
>  Your best bet here is to start small with something that you know
> works such as interopTest.wsdl
> and add one type at a time..literally start with
> <wsdl:definition>
>  <schema ...>
>   <complexType name="ThisWorksSoDontTouchIt">
>           <element name="varString" type="string"/>
>           <element name="varInt" type="int"/>
>           <element name="varFloat" type="float"/>
>   </complexType>
>  </schema>
> </wsdl:definition>
> add 1 element of a xsd primitive such as string or int or float
> get that working
> construct ComplexType (ThisWorksSoDontTouchIt) and add that 1 ComplexType
> element in
> get that working
> you see the pattern..
>
> What you have now had so many errors that it could take days to verify all
> of the incorrect namespances or improperly specified or constructed
> complexTypes
>
> HTH,
> M-
> ---------------------------------------------------------------------------
>
> This e-mail message (including attachments, if any) is intended for the
> use of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure. If you are not the intended recipient, you are notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.
> ---------------------------------------------------------------------------
>
> Le présent message électronique (y compris les pièces qui y sont annexées,
> le cas échéant) s'adresse au destinataire indiqué et peut contenir des
> renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> destinataire de ce document, nous vous signalons qu'il est strictement
> interdit de le diffuser, de le distribuer ou de le reproduire.
>
>  ----- Original Message -----
> *From:* Peter <li...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Sunday, December 17, 2006 7:56 PM
> *Subject:* problems with wsdl2java,need help!
>
>
> hallo all, I have a problem when using wsdl2java, it looks like following
>
> D:\test>java org.apache.axis.wsdl.WSDL2Java province2.wsdl
> java.lang.NullPointerException
>         at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess
> (JavaBeanWriter.
> java:295)
>         at org.apache.axis.wsdl.toJava.JavaBeanWriter <init>(
> JavaBeanWriter.java
> :160)
>         at org.apache.axis.wsdl.toJava.JavaTypeWriter.getBeanWriter
> (JavaTypeWrit
> er.java:174)
>         at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(
> JavaTypeWriter.java
> :89)
>         at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.getGenerator
> (JavaGen
> eratorFactory.java:318)
>         at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:545)
>         at org.apache.axis.wsdl.gen.Parser.generate (Parser.java:432)
>         at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>         at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java
> :362)
>         at java.lang.Thread.run(Unknown Source)
>
> the wsdl file is in the attachment
>
> any idea about how to solve it !
>
> thank you very much
>
>
> ------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: problems with wsdl2java,need help!

Posted by Martin Gainty <mg...@hotmail.com>.
Your best bet here is to start small with something that you know works such as interopTest.wsdl 
and add one type at a time..literally start with 
<wsdl:definition>
 <schema ...>
  <complexType name="ThisWorksSoDontTouchIt">
          <element name="varString" type="string"/>
          <element name="varInt" type="int"/>
          <element name="varFloat" type="float"/>
  </complexType>
 </schema>
</wsdl:definition>
add 1 element of a xsd primitive such as string or int or float
get that working
construct ComplexType (ThisWorksSoDontTouchIt) and add that 1 ComplexType element in 
get that working
you see the pattern..

What you have now had so many errors that it could take days to verify all of the incorrect namespances or improperly specified or constructed complexTypes

HTH,
M-
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
  ----- Original Message ----- 
  From: Peter 
  To: axis-user@ws.apache.org 
  Sent: Sunday, December 17, 2006 7:56 PM
  Subject: problems with wsdl2java,need help!


  hallo all, I have a problem when using wsdl2java, it looks like following 

  D:\test>java org.apache.axis.wsdl.WSDL2Java province2.wsdl
  java.lang.NullPointerException
          at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess(JavaBeanWriter.
  java:295)
          at org.apache.axis.wsdl.toJava.JavaBeanWriter <init>(JavaBeanWriter.java
  :160)
          at org.apache.axis.wsdl.toJava.JavaTypeWriter.getBeanWriter(JavaTypeWrit
  er.java:174)
          at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(JavaTypeWriter.java 
  :89)
          at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.getGenerator(JavaGen
  eratorFactory.java:318)
          at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:545)
          at org.apache.axis.wsdl.gen.Parser.generate (Parser.java:432)
          at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
          at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
          at java.lang.Thread.run(Unknown Source) 

  the wsdl file is in the attachment

  any idea about how to solve it !

  thank you very much 
   


------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
  For additional commands, e-mail: axis-user-help@ws.apache.org