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 yu...@gmail.com on 2006/08/13 12:21:09 UTC

[Axis2]Unable to use WSDL2JAVA.

Hi, there.

Everytime when I'm trying to use WSDL2JAVA util to generate client stubs I'm getting exception:

Exception in thread "main" java.lang.NoSuchMethodError: javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
	at org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:369)
	at org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)
	at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)

method getExtensionAttributes in ProtType interface doesn't presents in the wsdl1.5.2 anymore.

Any idea how to resolve this issue?

Thanks,
Yura.

--
This message was sent on behalf of yura.tkachenko@gmail.com at openSubscriber.com
http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
ok, I will try.

2006/8/16, Davanum Srinivas <da...@gmail.com>:
>
> Completely agree with Anne.
>
> -- dims
>
> On 8/16/06, Anne Thomas Manes <at...@gmail.com> wrote:
> > I understand that it works with Axis1 -- Axis1 is more tolerant of
> > WSDL errors than many systems. For example, it allows you to reference
> > types from your message parts when using document style. It also
> > doesn't require that you import a schema if the schema appears
> > in-line. But these are bugs in Axis1 that cause interoperability
> > problems with other systems.
> >
> > Axis2 is more rigorous when it comes to WSDL validity. And that's a good
> thing.
> >
> > The fix to your problem is quite simple. Add the <xsd:import>
> > statement to your WSDL.
> >
> > Anne
> >
> > On 8/16/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > >
> > > Hi, Anne
> > >
> > > I can say definitely this wsdl worked perfect for Axis 1.3, I used cmd
> line:
> > >
> > > WSDL2Java d:\some_path\territory.wsdl
> > >
> > > And proxy classes generates without any warnings, errors. And I tried
> also
> > > another wsdl code generator processor .NET 2.0. I only has warnings,
> but
> > > proxy classes also generates. So as I can see Axis2 uses this warning
> > > (according .NET 2.0) as fatal error and throwing exception. I think
> it's not
> > > good. It would be high appriciated if it will be fixed and worked as
> in Axis
> > > 1.3.
> > >
> > >
> > > 2006/8/16, Anne Thomas Manes <at...@gmail.com>:
> > > > Axis 1.4 should have generated an exception for this WSDL. It isn't
> valid.
> > > > You cannot add any additional configuration information. You must
> make
> > > > the WSDL valid.
> > > >
> > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > >
> > > > > Anne,
> > > > >
> > > > > but why the same wsdl worked for Axis 1.4 ? Can I add some
> configuration
> > > > > param without change primary wsdl file?
> > > > >
> > > > >
> > > > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > > > >
> > > > > Yura,
> > > > >
> > > > > No, please don't reopen the JIRA. As Dims says, the latest build
> > > > > throws an informative exception. Your problem is caused by the
> fact
> > > > > that you do not import your second schema
> > > > > (targetNamespace="urn:/crmondemand/xml/territory") into
> > > the
> > > > > first
> > > > > schema, therefore Axis cannot find elements/types with a prefix of
> > > > > xsdLocal1. Add this line to the first schema:
> > > > >
> > > > >             <xsd:import
> > > > > namespace="urn:/crmondemand/xml/territory"/>
> > > > >
> > > > > Anne
> > > > >
> > > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > > >
> > > > > > I have in wsdl *element*:
> > > > > >
> > > > > >
> > > > > >
> > > > > > <xsd:element name="ListOfTerritory"
> > > > > > type="xsdLocal1:ListOfTerritory"></xsd:element>
> > > > > >
> > > > > > <xsd:complexType
> > > > > > name="ListOfTerritory"><xsd:sequence><xsd:element
> > > > > > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > > > > type="xsdLocal1:Territory"></xsd:element>
> > > > > >
> > > > > > </xsd:sequence>
> > > > > >
> > > > > > </xsd:complexType>Should I reopen bug
> > > > > > http://issues.apache.org/jira/browse/AXIS2-1026  ?
> > > > >  >
> > > > > >
> > > > > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > > > > > Yura,
> > > > > > >
> > > > > > > Your exception says that it cannot find an *element* called
> > > > >  > > "ListOfTerritory". In your last message you showed us a
> > > *complexType*
> > > > > > > called ListOfTerritory". Is there also an element with this
> name? If
> > > > > > > not, then that is the cause of your problem.
> > > > > > >
> > > > > > > I'm with Derek -- the tool should never throw a NPE, so please
> > > update
> > > > > > > the JIRA with sufficient information so that Dims and crew can
> > > define
> > > > > > > a better exception for this type of WSDL error.
> > > > > > >
> > > > > > > Anne
> > > > > > >
> > > > > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > > > > >
> > > > > > > > Ok, here is exception from bug:
> > > > > > > >
> > > > > > > > Caused by:
> > > > > > > >
> > > org.apache.axis2.schema.SchemaCompilationException:
> > > > > > > > Referenced element
> > > > > > > >
> > > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > > > > > found!
> > > > > > > >         at
> > > > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > > > (SchemaCompiler.java
> > > > > > > > :1446)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processParticle
> > > > > (SchemaCompiler.java:1318)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > (SchemaCompiler.java:846)
> > > > > > > >         at
> > > > > > > >
> > > > >  >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > > > > > > (SchemaCompiler.java :791)
> > > > > > > >         at
> > > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > > > > > (SchemaCompiler.java:775)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java:475)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java
> > > > > > :446)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java
> :308)
> > > > > > > >         at
> > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > > > (SchemaCompiler.java:230)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> > > > > :77)
> > > > > > > >         ... 8 more
> > > > > > > >
> > > > > > > > And in the territory description of the ListOfTerritory
> presents.
> > > > > > > > <xsd:complexType name="ListOfTerritory">
> > > > >  > > >  <xsd:sequence>
> > > > > > > >   <xsd:element name="Territory" maxOccurs="unbounded"
> > > minOccurs="0"
> > > > > > > > type="xsdLocal1:Territory" />
> > > > > > > >  </xsd:sequence>
> > > > > > > > </xsd:complexType>
> > > > > > > >
> > > > > > > > BTW I think any wsdl which worked with Axis 1.3 should
> always work
> > > > > with
> > > > > > > > Axis2, am I right?
> > > > > > > > Also for generate stubs using this wsdl in Axis 1.3, I'm
> used
> > > property
> > > > > > file
> > > > > > > > with package mappings. Is it possible to use this property
> file in
> > > the
> > > > > > > > WSDL2JAVA in Axis2 1.0 ?
> > > > > > > >
> > > > > > > >
> > > > > > > > 2006/8/15, Davanum Srinivas < davanum@gmail.com >:
> > > > > > > > > Bug is closed :) see comments in the bug report.
> > > > > > > > >
> > > > > > > > > thanks,
> > > > > > > > > dims
> > > > > > > > >
> > > > > > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com >
> wrote:
> > > > > > > > > >
> > > > > > > > > > I'm using 1.0, the same issue and for nightly build. I
> logged
> > > bug
> > > > > at
> > > > > > > > JIRA:
> > > > > > > > > >
> > > > > > > > > >
> > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > > > > > >
> > > > >  > > > > > 2006/8/14, Ajith Ranabahu < ajith.ranabahu@gmail.com>:
> > > > > > > > > > > Hi,
> > > > > > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please
> check with
> > > the
> > > > > > > > > > > latest nightlies. if the problem persists please file
> a Jira
> > > > > > (attach
> > > > > > > > > > > the WSDL as well)
> > > > > > > > > > >
> > > > >  > > > > > > Ajith
> > > > > > > > > > >
> > > > > > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Yura:
> > > > > > > > > > > >
> > > > > > > > > > > > WSDL2Java should never throw a NullPointerException.
> If it
> > > is
> > > > >  > sent
> > > > > > > > > > invalid
> > > > > > > > > > > > data, it should always throw an exception containing
> an
> > > > > > informative
> > > > > > > > > > error
> > > > > > > > > > > > message instead. Please file a JIRA so that this
> issue is
> > > > > fixed.
> > > > > > > > > > > >
> > > > > > > > > > > > Thank you.
> > > > > > > > > > > >
> > > > > > > > > > > > Derek
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From: Yura Tkachenko [mailto:
> yura.tkachenko@gmail.com ]
> > > > > > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Hello, Martin
> > > > > > > > > > > >
> > > > > > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file
> not
> > > > > Wsdl2Java
> > > > > > > > class
> > > > > > > > > > > > everything was all right, but for Siebel CRM
> Ondemand
> > > Service
> > > > > > wsdl
> > > > > > > > I'm
> > > > > > > > > > > > always getting exception:
> > > > > > > > > > > >
> > > > > > > > > > > > Exception in thread "main"
> > > > > > > > > > > >
> > > > > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > > > > > : java.lang.RuntimeException :
> > > > > > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > > > > > : java.lang.NullPointerException
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > > > > (CodeGener
> > > > > > > > > > > > ationEngine.java:185)
> > > > > > > > > > > >         at
> > > > > > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > > > > > (WSDL2Code.java :32)
> > > > > > > > > > > >         at
> > > > > > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > (WSDL2Java.java
> > > > > > > > > > :21)
> > > > > > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > > > > > (Simp
> > > > > > > > > > > > leDBExtension.java :117)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > > > > (CodeGener
> > > > > > > > > > > > ationEngine.java:140)
> > > > > > > > > > > >         ... 2 more
> > > > > > > > > > > > Caused by:
> > > > > > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompilationException :
> > > > > > > > > > > > java.lang.NullPoi
> > > > > > > > > > > > nterException
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > > > > > ( SchemaCompiler.java:18
> > > > > > > > > > > > 6)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > > > > > leDBExtension.java :70)
> > > > > > > > > > > >         ... 3 more
> > > > > > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > (SchemaCompiler.
> > > > > > > > > > > > java:360)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > > > > > (SchemaCompiler.
> > > > > > > > > > > > java:344)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > >  > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > > > > > java:410)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > (SchemaCompiler.
> > > > > > > > > > > > java:334)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.process
> > > > > > > > (SchemaCompiler.java:91
> > > > > > > > > > > > 5)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > > > > > .java:878)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > > > > > (SchemaCompi
> > > > > > > > > > > > ler.java:643)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > > > > (SchemaCompiler.j
> > > > > > > > > > > > ava:579)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > > > (SchemaCompiler.
> > > > > > > > > > > > java:366)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > (SchemaCompiler.
> > > > > > > > > > > > java:344)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > >  > > > > > ( SchemaCompiler.java:22
> > > > > > > > > > > > 6)
> > > > > > > > > > > >         at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > > > > > 1)
> > > > > > > > > > > >         ... 4 more
> > > > > > > > > > > >
> > > > > > > > > > > > Don't know what does it means, but for Axis 1.3 I'm
> used
> > > also
> > > > > > > > > > > > NstoPkg.properties file to generate stubs. Axis2
> doesn't
> > > used
> > > > > > this
> > > > > > > > file
> > > > > > > > > > or I
> > > > > > > > > > > > missed some parameter, here is my command line:
> > > > > > > > > > > >
> > > > > > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > > > > > >
> > > > > > > > > > > > Let me know if you need some additional info.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > > Yura.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 2006/8/13, Martin Gainty < mgainty@hotmail.com >:
> > > > > > > > > > > > > Good Afternoon Yura-
> > > > > > > > > > > > >
> > > > > > > > > > > > > Your WSDL will need to identify the method which
> will
> > > > > process
> > > > > > the
> > > > > > > > > > Request
> > > > > > > > > > > > > in this example the wsdl:operation name="" is the
> method
> > > > > > > > > > > > >
> > > > > > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > > > > > - <wsdl:operation name="getSelectFromZip"
> > > > > parameterOrder="in0
> > > > > > in1
> > > > > > > > > > in2">
> > > > > > > > > > > > > <wsdl:input
> > > > > > > > message="impl:getSelectFromZipRequest"
> > > > > > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > > > > > <wsdl:output
> > > > > > > > message="impl:getSelectFromZipResponse"
> > > > > > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > > > > > </wsdl:operation>
> > > > > > > > > > > > > </wsdl:portType>
> > > > >  > > > > > > > >
> > > > > > > > > > > > > Anyone else?
> > > > > > > > > > > > > Martin --
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > *********************************************************************
> > > > > > > > > > > > > This email message and any files transmitted with
> it
> > > contain
> > > > > > > > > > confidential
> > > > > > > > > > > > > information intended only for the person(s) to
> whom this
> > > > > email
> > > > > > > > message
> > > > > > > > > > is
> > > > > > > > > > > > > addressed.  If you have received this email
> message in
> > > > > error,
> > > > > > > > please
> > > > > > > > > > > > notify
> > > > > > > > > > > > > the sender immediately by telephone or email and
> destroy
> > > the
> > > > > > > > original
> > > > > > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ----- Original Message -----
> > > > > > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Hi, there.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util
> to
> > > > > generate
> > > > > > > > client
> > > > > > > > > > stubs
> > > > > > > > > > > > I'm getting exception:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Exception in thread "main"
> > > java.lang.NoSuchMethodError:
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > > > > > ( WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding
> > > (WSDL2AxisServiceBuilder.java
> > > > > > > > > > :299)
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > > > > > (WSDL2AxisServiceBuilder.java :238)
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > > > > > .<init>(CodeGenerationEngine.java :87)
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > (WSDL2Code.java:32)
> > > > > > > > > > > > > > at
> > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > > > > > at
> > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> > > > >  > (Native
> > > > > > > > > > > > Method)
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > > > > (NativeMethodAccessorImpl.java:39)
> > > > > > > > > > > > > > at
> > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java
> :585)
> > > > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > method getExtensionAttributes in ProtType
> interface
> > > > > doesn't
> > > > > > > > presents
> > > > > > > > > > in
> > > > > > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thanks,
> > > > > > > > > > > > > > Yura.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > This message was sent on behalf of
> > > > > yura.tkachenko@gmail.com
> > > > > > at
> > > > > > > > > > > > openSubscriber.com
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > > > > > For additional commands, e-mail:
> > > > > > axis-user-help@ws.apache.org
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > > Yura.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Ajith Ranabahu
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > > For additional commands, e-mail:
> > > axis-user-help@ws.apache.org
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Thanks,
> > > > > > > > > > Yura.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web
> Service
> > > > > > Developers)
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > >
> > > > > > >
> > > > >  >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > >
> > > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks,
> > > > > Yura.
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > >  Yura.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Yura.

Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Davanum Srinivas <da...@gmail.com>.
Completely agree with Anne.

-- dims

On 8/16/06, Anne Thomas Manes <at...@gmail.com> wrote:
> I understand that it works with Axis1 -- Axis1 is more tolerant of
> WSDL errors than many systems. For example, it allows you to reference
> types from your message parts when using document style. It also
> doesn't require that you import a schema if the schema appears
> in-line. But these are bugs in Axis1 that cause interoperability
> problems with other systems.
>
> Axis2 is more rigorous when it comes to WSDL validity. And that's a good thing.
>
> The fix to your problem is quite simple. Add the <xsd:import>
> statement to your WSDL.
>
> Anne
>
> On 8/16/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > Hi, Anne
> >
> > I can say definitely this wsdl worked perfect for Axis 1.3, I used cmd line:
> >
> > WSDL2Java d:\some_path\territory.wsdl
> >
> > And proxy classes generates without any warnings, errors. And I tried also
> > another wsdl code generator processor .NET 2.0. I only has warnings, but
> > proxy classes also generates. So as I can see Axis2 uses this warning
> > (according .NET 2.0) as fatal error and throwing exception. I think it's not
> > good. It would be high appriciated if it will be fixed and worked as in Axis
> > 1.3.
> >
> >
> > 2006/8/16, Anne Thomas Manes <at...@gmail.com>:
> > > Axis 1.4 should have generated an exception for this WSDL. It isn't valid.
> > > You cannot add any additional configuration information. You must make
> > > the WSDL valid.
> > >
> > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > >
> > > > Anne,
> > > >
> > > > but why the same wsdl worked for Axis 1.4 ? Can I add some configuration
> > > > param without change primary wsdl file?
> > > >
> > > >
> > > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > > >
> > > > Yura,
> > > >
> > > > No, please don't reopen the JIRA. As Dims says, the latest build
> > > > throws an informative exception. Your problem is caused by the fact
> > > > that you do not import your second schema
> > > > (targetNamespace="urn:/crmondemand/xml/territory") into
> > the
> > > > first
> > > > schema, therefore Axis cannot find elements/types with a prefix of
> > > > xsdLocal1. Add this line to the first schema:
> > > >
> > > >             <xsd:import
> > > > namespace="urn:/crmondemand/xml/territory"/>
> > > >
> > > > Anne
> > > >
> > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > >
> > > > > I have in wsdl *element*:
> > > > >
> > > > >
> > > > >
> > > > > <xsd:element name="ListOfTerritory"
> > > > > type="xsdLocal1:ListOfTerritory"></xsd:element>
> > > > >
> > > > > <xsd:complexType
> > > > > name="ListOfTerritory"><xsd:sequence><xsd:element
> > > > > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > > > type="xsdLocal1:Territory"></xsd:element>
> > > > >
> > > > > </xsd:sequence>
> > > > >
> > > > > </xsd:complexType>Should I reopen bug
> > > > > http://issues.apache.org/jira/browse/AXIS2-1026  ?
> > > >  >
> > > > >
> > > > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > > > > Yura,
> > > > > >
> > > > > > Your exception says that it cannot find an *element* called
> > > >  > > "ListOfTerritory". In your last message you showed us a
> > *complexType*
> > > > > > called ListOfTerritory". Is there also an element with this name? If
> > > > > > not, then that is the cause of your problem.
> > > > > >
> > > > > > I'm with Derek -- the tool should never throw a NPE, so please
> > update
> > > > > > the JIRA with sufficient information so that Dims and crew can
> > define
> > > > > > a better exception for this type of WSDL error.
> > > > > >
> > > > > > Anne
> > > > > >
> > > > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > > > >
> > > > > > > Ok, here is exception from bug:
> > > > > > >
> > > > > > > Caused by:
> > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException:
> > > > > > > Referenced element
> > > > > > >
> > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > > > > found!
> > > > > > >         at
> > > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > > (SchemaCompiler.java
> > > > > > > :1446)
> > > > > > >         at
> > > > > > >
> > > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle
> > > > (SchemaCompiler.java:1318)
> > > > > > >         at
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > (SchemaCompiler.java:846)
> > > > > > >         at
> > > > > > >
> > > >  >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > > > > > (SchemaCompiler.java :791)
> > > > > > >         at
> > > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processSchema
> > > > > (SchemaCompiler.java:775)
> > > > > > >         at
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
> > > > > > >         at
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java
> > > > > :446)
> > > > > > >         at
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> > > > > > >         at
> > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > > (SchemaCompiler.java:230)
> > > > > > >         at
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> > > > :77)
> > > > > > >         ... 8 more
> > > > > > >
> > > > > > > And in the territory description of the ListOfTerritory presents.
> > > > > > > <xsd:complexType name="ListOfTerritory">
> > > >  > > >  <xsd:sequence>
> > > > > > >   <xsd:element name="Territory" maxOccurs="unbounded"
> > minOccurs="0"
> > > > > > > type="xsdLocal1:Territory" />
> > > > > > >  </xsd:sequence>
> > > > > > > </xsd:complexType>
> > > > > > >
> > > > > > > BTW I think any wsdl which worked with Axis 1.3 should always work
> > > > with
> > > > > > > Axis2, am I right?
> > > > > > > Also for generate stubs using this wsdl in Axis 1.3, I'm used
> > property
> > > > > file
> > > > > > > with package mappings. Is it possible to use this property file in
> > the
> > > > > > > WSDL2JAVA in Axis2 1.0 ?
> > > > > > >
> > > > > > >
> > > > > > > 2006/8/15, Davanum Srinivas < davanum@gmail.com >:
> > > > > > > > Bug is closed :) see comments in the bug report.
> > > > > > > >
> > > > > > > > thanks,
> > > > > > > > dims
> > > > > > > >
> > > > > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com > wrote:
> > > > > > > > >
> > > > > > > > > I'm using 1.0, the same issue and for nightly build. I logged
> > bug
> > > > at
> > > > > > > JIRA:
> > > > > > > > >
> > > > > > > > >
> > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > > > > >
> > > >  > > > > > 2006/8/14, Ajith Ranabahu < ajith.ranabahu@gmail.com>:
> > > > > > > > > > Hi,
> > > > > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with
> > the
> > > > > > > > > > latest nightlies. if the problem persists please file a Jira
> > > > > (attach
> > > > > > > > > > the WSDL as well)
> > > > > > > > > >
> > > >  > > > > > > Ajith
> > > > > > > > > >
> > > > > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Yura:
> > > > > > > > > > >
> > > > > > > > > > > WSDL2Java should never throw a NullPointerException. If it
> > is
> > > >  > sent
> > > > > > > > > invalid
> > > > > > > > > > > data, it should always throw an exception containing an
> > > > > informative
> > > > > > > > > error
> > > > > > > > > > > message instead. Please file a JIRA so that this issue is
> > > > fixed.
> > > > > > > > > > >
> > > > > > > > > > > Thank you.
> > > > > > > > > > >
> > > > > > > > > > > Derek
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > From: Yura Tkachenko [mailto: yura.tkachenko@gmail.com ]
> > > > > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Hello, Martin
> > > > > > > > > > >
> > > > > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not
> > > > Wsdl2Java
> > > > > > > class
> > > > > > > > > > > everything was all right, but for Siebel CRM Ondemand
> > Service
> > > > > wsdl
> > > > > > > I'm
> > > > > > > > > > > always getting exception:
> > > > > > > > > > >
> > > > > > > > > > > Exception in thread "main"
> > > > > > > > > > >
> > > > > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > > > > : java.lang.RuntimeException :
> > > > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > > > > : java.lang.NullPointerException
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > > > (CodeGener
> > > > > > > > > > > ationEngine.java:185)
> > > > > > > > > > >         at
> > > > > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > > > > (WSDL2Code.java :32)
> > > > > > > > > > >         at
> > > > > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > (WSDL2Java.java
> > > > > > > > > :21)
> > > > > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > > > > (Simp
> > > > > > > > > > > leDBExtension.java :117)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > > > (CodeGener
> > > > > > > > > > > ationEngine.java:140)
> > > > > > > > > > >         ... 2 more
> > > > > > > > > > > Caused by:
> > > > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompilationException :
> > > > > > > > > > > java.lang.NullPoi
> > > > > > > > > > > nterException
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > > > > ( SchemaCompiler.java:18
> > > > > > > > > > > 6)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > > > > leDBExtension.java :70)
> > > > > > > > > > >         ... 3 more
> > > > > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > > > > > > > > java:360)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > > > > (SchemaCompiler.
> > > > > > > > > > > java:344)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > >  > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > > > > java:410)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > (SchemaCompiler.
> > > > > > > > > > > java:334)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > org.apache.axis2.schema.SchemaCompiler.process
> > > > > > > (SchemaCompiler.java:91
> > > > > > > > > > > 5)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > > > > .java:878)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > > > > (SchemaCompi
> > > > > > > > > > > ler.java:643)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > > > (SchemaCompiler.j
> > > > > > > > > > > ava:579)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > > (SchemaCompiler.
> > > > > > > > > > > java:366)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > (SchemaCompiler.
> > > > > > > > > > > java:344)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > >  > > > > > ( SchemaCompiler.java:22
> > > > > > > > > > > 6)
> > > > > > > > > > >         at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > > > > 1)
> > > > > > > > > > >         ... 4 more
> > > > > > > > > > >
> > > > > > > > > > > Don't know what does it means, but for Axis 1.3 I'm used
> > also
> > > > > > > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't
> > used
> > > > > this
> > > > > > > file
> > > > > > > > > or I
> > > > > > > > > > > missed some parameter, here is my command line:
> > > > > > > > > > >
> > > > > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > > > > >
> > > > > > > > > > > Let me know if you need some additional info.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > > Yura.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2006/8/13, Martin Gainty < mgainty@hotmail.com >:
> > > > > > > > > > > > Good Afternoon Yura-
> > > > > > > > > > > >
> > > > > > > > > > > > Your WSDL will need to identify the method which will
> > > > process
> > > > > the
> > > > > > > > > Request
> > > > > > > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > > > > > > >
> > > > > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > > > > - <wsdl:operation name="getSelectFromZip"
> > > > parameterOrder="in0
> > > > > in1
> > > > > > > > > in2">
> > > > > > > > > > > > <wsdl:input
> > > > > > > message="impl:getSelectFromZipRequest"
> > > > > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > > > > <wsdl:output
> > > > > > > message="impl:getSelectFromZipResponse"
> > > > > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > > > > </wsdl:operation>
> > > > > > > > > > > > </wsdl:portType>
> > > >  > > > > > > > >
> > > > > > > > > > > > Anyone else?
> > > > > > > > > > > > Martin --
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > *********************************************************************
> > > > > > > > > > > > This email message and any files transmitted with it
> > contain
> > > > > > > > > confidential
> > > > > > > > > > > > information intended only for the person(s) to whom this
> > > > email
> > > > > > > message
> > > > > > > > > is
> > > > > > > > > > > > addressed.  If you have received this email message in
> > > > error,
> > > > > > > please
> > > > > > > > > > > notify
> > > > > > > > > > > > the sender immediately by telephone or email and destroy
> > the
> > > > > > > original
> > > > > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > ----- Original Message -----
> > > > > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > > Hi, there.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to
> > > > generate
> > > > > > > client
> > > > > > > > > stubs
> > > > > > > > > > > I'm getting exception:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Exception in thread "main"
> > java.lang.NoSuchMethodError:
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > > > > ( WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding
> > (WSDL2AxisServiceBuilder.java
> > > > > > > > > :299)
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > > > > (WSDL2AxisServiceBuilder.java :238)
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > > > > .<init>(CodeGenerationEngine.java :87)
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > (WSDL2Code.java:32)
> > > > > > > > > > > > > at
> > org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > > > > at
> > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> > > >  > (Native
> > > > > > > > > > > Method)
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > > > (NativeMethodAccessorImpl.java:39)
> > > > > > > > > > > > > at
> > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > > > > >
> > > > > > > > > > > > > method getExtensionAttributes in ProtType interface
> > > > doesn't
> > > > > > > presents
> > > > > > > > > in
> > > > > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks,
> > > > > > > > > > > > > Yura.
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > This message was sent on behalf of
> > > > yura.tkachenko@gmail.com
> > > > > at
> > > > > > > > > > > openSubscriber.com
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > > > > For additional commands, e-mail:
> > > > > axis-user-help@ws.apache.org
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Thanks,
> > > > > > > > > > > Yura.
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Ajith Ranabahu
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Thanks,
> > > > > > > > > Yura.
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > > > > Developers)
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Thanks,
> > > > > > > Yura.
> > > > > >
> > > > > >
> > > >  >
> > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks,
> > > > > Yura.
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > >
> > > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> >
> > --
> > Thanks,
> >  Yura.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Anne Thomas Manes <at...@gmail.com>.
I understand that it works with Axis1 -- Axis1 is more tolerant of
WSDL errors than many systems. For example, it allows you to reference
types from your message parts when using document style. It also
doesn't require that you import a schema if the schema appears
in-line. But these are bugs in Axis1 that cause interoperability
problems with other systems.

Axis2 is more rigorous when it comes to WSDL validity. And that's a good thing.

The fix to your problem is quite simple. Add the <xsd:import>
statement to your WSDL.

Anne

On 8/16/06, Yura Tkachenko <yu...@gmail.com> wrote:
>
> Hi, Anne
>
> I can say definitely this wsdl worked perfect for Axis 1.3, I used cmd line:
>
> WSDL2Java d:\some_path\territory.wsdl
>
> And proxy classes generates without any warnings, errors. And I tried also
> another wsdl code generator processor .NET 2.0. I only has warnings, but
> proxy classes also generates. So as I can see Axis2 uses this warning
> (according .NET 2.0) as fatal error and throwing exception. I think it's not
> good. It would be high appriciated if it will be fixed and worked as in Axis
> 1.3.
>
>
> 2006/8/16, Anne Thomas Manes <at...@gmail.com>:
> > Axis 1.4 should have generated an exception for this WSDL. It isn't valid.
> > You cannot add any additional configuration information. You must make
> > the WSDL valid.
> >
> > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > >
> > > Anne,
> > >
> > > but why the same wsdl worked for Axis 1.4 ? Can I add some configuration
> > > param without change primary wsdl file?
> > >
> > >
> > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > >
> > > Yura,
> > >
> > > No, please don't reopen the JIRA. As Dims says, the latest build
> > > throws an informative exception. Your problem is caused by the fact
> > > that you do not import your second schema
> > > (targetNamespace="urn:/crmondemand/xml/territory") into
> the
> > > first
> > > schema, therefore Axis cannot find elements/types with a prefix of
> > > xsdLocal1. Add this line to the first schema:
> > >
> > >             <xsd:import
> > > namespace="urn:/crmondemand/xml/territory"/>
> > >
> > > Anne
> > >
> > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > >
> > > > I have in wsdl *element*:
> > > >
> > > >
> > > >
> > > > <xsd:element name="ListOfTerritory"
> > > > type="xsdLocal1:ListOfTerritory"></xsd:element>
> > > >
> > > > <xsd:complexType
> > > > name="ListOfTerritory"><xsd:sequence><xsd:element
> > > > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > > type="xsdLocal1:Territory"></xsd:element>
> > > >
> > > > </xsd:sequence>
> > > >
> > > > </xsd:complexType>Should I reopen bug
> > > > http://issues.apache.org/jira/browse/AXIS2-1026  ?
> > >  >
> > > >
> > > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > > > Yura,
> > > > >
> > > > > Your exception says that it cannot find an *element* called
> > >  > > "ListOfTerritory". In your last message you showed us a
> *complexType*
> > > > > called ListOfTerritory". Is there also an element with this name? If
> > > > > not, then that is the cause of your problem.
> > > > >
> > > > > I'm with Derek -- the tool should never throw a NPE, so please
> update
> > > > > the JIRA with sufficient information so that Dims and crew can
> define
> > > > > a better exception for this type of WSDL error.
> > > > >
> > > > > Anne
> > > > >
> > > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > > >
> > > > > > Ok, here is exception from bug:
> > > > > >
> > > > > > Caused by:
> > > > > >
> org.apache.axis2.schema.SchemaCompilationException:
> > > > > > Referenced element
> > > > > >
> {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > > > found!
> > > > > >         at
> > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > (SchemaCompiler.java
> > > > > > :1446)
> > > > > >         at
> > > > > >
> > > >
> org.apache.axis2.schema.SchemaCompiler.processParticle
> > > (SchemaCompiler.java:1318)
> > > > > >         at
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > (SchemaCompiler.java:846)
> > > > > >         at
> > > > > >
> > >  >
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > > > > (SchemaCompiler.java :791)
> > > > > >         at
> > > > > >
> org.apache.axis2.schema.SchemaCompiler.processSchema
> > > > (SchemaCompiler.java:775)
> > > > > >         at
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
> > > > > >         at
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java
> > > > :446)
> > > > > >         at
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> > > > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > (SchemaCompiler.java:230)
> > > > > >         at
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> > > :77)
> > > > > >         ... 8 more
> > > > > >
> > > > > > And in the territory description of the ListOfTerritory presents.
> > > > > > <xsd:complexType name="ListOfTerritory">
> > >  > > >  <xsd:sequence>
> > > > > >   <xsd:element name="Territory" maxOccurs="unbounded"
> minOccurs="0"
> > > > > > type="xsdLocal1:Territory" />
> > > > > >  </xsd:sequence>
> > > > > > </xsd:complexType>
> > > > > >
> > > > > > BTW I think any wsdl which worked with Axis 1.3 should always work
> > > with
> > > > > > Axis2, am I right?
> > > > > > Also for generate stubs using this wsdl in Axis 1.3, I'm used
> property
> > > > file
> > > > > > with package mappings. Is it possible to use this property file in
> the
> > > > > > WSDL2JAVA in Axis2 1.0 ?
> > > > > >
> > > > > >
> > > > > > 2006/8/15, Davanum Srinivas < davanum@gmail.com >:
> > > > > > > Bug is closed :) see comments in the bug report.
> > > > > > >
> > > > > > > thanks,
> > > > > > > dims
> > > > > > >
> > > > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com > wrote:
> > > > > > > >
> > > > > > > > I'm using 1.0, the same issue and for nightly build. I logged
> bug
> > > at
> > > > > > JIRA:
> > > > > > > >
> > > > > > > >
> http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > > > >
> > >  > > > > > 2006/8/14, Ajith Ranabahu < ajith.ranabahu@gmail.com>:
> > > > > > > > > Hi,
> > > > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with
> the
> > > > > > > > > latest nightlies. if the problem persists please file a Jira
> > > > (attach
> > > > > > > > > the WSDL as well)
> > > > > > > > >
> > >  > > > > > > Ajith
> > > > > > > > >
> > > > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Yura:
> > > > > > > > > >
> > > > > > > > > > WSDL2Java should never throw a NullPointerException. If it
> is
> > >  > sent
> > > > > > > > invalid
> > > > > > > > > > data, it should always throw an exception containing an
> > > > informative
> > > > > > > > error
> > > > > > > > > > message instead. Please file a JIRA so that this issue is
> > > fixed.
> > > > > > > > > >
> > > > > > > > > > Thank you.
> > > > > > > > > >
> > > > > > > > > > Derek
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: Yura Tkachenko [mailto: yura.tkachenko@gmail.com ]
> > > > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Hello, Martin
> > > > > > > > > >
> > > > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not
> > > Wsdl2Java
> > > > > > class
> > > > > > > > > > everything was all right, but for Siebel CRM Ondemand
> Service
> > > > wsdl
> > > > > > I'm
> > > > > > > > > > always getting exception:
> > > > > > > > > >
> > > > > > > > > > Exception in thread "main"
> > > > > > > > > >
> > > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > > > : java.lang.RuntimeException :
> > > > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > > > : java.lang.NullPointerException
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > > (CodeGener
> > > > > > > > > > ationEngine.java:185)
> > > > > > > > > >         at
> > > > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > > > (WSDL2Code.java :32)
> > > > > > > > > >         at
> > > > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > (WSDL2Java.java
> > > > > > > > :21)
> > > > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > > > (Simp
> > > > > > > > > > leDBExtension.java :117)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > > (CodeGener
> > > > > > > > > > ationEngine.java:140)
> > > > > > > > > >         ... 2 more
> > > > > > > > > > Caused by:
> > > > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompilationException :
> > > > > > > > > > java.lang.NullPoi
> > > > > > > > > > nterException
> > > > > > > > > >         at
> > > > > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > > > ( SchemaCompiler.java:18
> > > > > > > > > > 6)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > > > leDBExtension.java :70)
> > > > > > > > > >         ... 3 more
> > > > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > (SchemaCompiler.
> > > > > > > > > > java:360)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > >
> org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > > > (SchemaCompiler.
> > > > > > > > > > java:344)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > >  > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > > > java:410)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> > > > > > > > > > java:334)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> org.apache.axis2.schema.SchemaCompiler.process
> > > > > > (SchemaCompiler.java:91
> > > > > > > > > > 5)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > > > .java:878)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > > > (SchemaCompi
> > > > > > > > > > ler.java:643)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > > (SchemaCompiler.j
> > > > > > > > > > ava:579)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > >
> org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > (SchemaCompiler.
> > > > > > > > > > java:366)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > (SchemaCompiler.
> > > > > > > > > > java:344)
> > > > > > > > > >         at
> > > > > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.compile
> > >  > > > > > ( SchemaCompiler.java:22
> > > > > > > > > > 6)
> > > > > > > > > >         at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > > > 1)
> > > > > > > > > >         ... 4 more
> > > > > > > > > >
> > > > > > > > > > Don't know what does it means, but for Axis 1.3 I'm used
> also
> > > > > > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't
> used
> > > > this
> > > > > > file
> > > > > > > > or I
> > > > > > > > > > missed some parameter, here is my command line:
> > > > > > > > > >
> > > > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > > > >
> > > > > > > > > > Let me know if you need some additional info.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > > Yura.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2006/8/13, Martin Gainty < mgainty@hotmail.com >:
> > > > > > > > > > > Good Afternoon Yura-
> > > > > > > > > > >
> > > > > > > > > > > Your WSDL will need to identify the method which will
> > > process
> > > > the
> > > > > > > > Request
> > > > > > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > > > > > >
> > > > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > > > - <wsdl:operation name="getSelectFromZip"
> > > parameterOrder="in0
> > > > in1
> > > > > > > > in2">
> > > > > > > > > > > <wsdl:input
> > > > > > message="impl:getSelectFromZipRequest"
> > > > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > > > <wsdl:output
> > > > > > message="impl:getSelectFromZipResponse"
> > > > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > > > </wsdl:operation>
> > > > > > > > > > > </wsdl:portType>
> > >  > > > > > > > >
> > > > > > > > > > > Anyone else?
> > > > > > > > > > > Martin --
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> *********************************************************************
> > > > > > > > > > > This email message and any files transmitted with it
> contain
> > > > > > > > confidential
> > > > > > > > > > > information intended only for the person(s) to whom this
> > > email
> > > > > > message
> > > > > > > > is
> > > > > > > > > > > addressed.  If you have received this email message in
> > > error,
> > > > > > please
> > > > > > > > > > notify
> > > > > > > > > > > the sender immediately by telephone or email and destroy
> the
> > > > > > original
> > > > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ----- Original Message -----
> > > > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > Hi, there.
> > > > > > > > > > > >
> > > > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to
> > > generate
> > > > > > client
> > > > > > > > stubs
> > > > > > > > > > I'm getting exception:
> > > > > > > > > > > >
> > > > > > > > > > > > Exception in thread "main"
> java.lang.NoSuchMethodError:
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > > > ( WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding
> (WSDL2AxisServiceBuilder.java
> > > > > > > > :299)
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > > > (WSDL2AxisServiceBuilder.java :238)
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > > > .<init>(CodeGenerationEngine.java :87)
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > (WSDL2Code.java:32)
> > > > > > > > > > > > at
> org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > > > at
> > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> > >  > (Native
> > > > > > > > > > Method)
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > > (NativeMethodAccessorImpl.java:39)
> > > > > > > > > > > > at
> > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > > > >
> > > > > > > > > > > > method getExtensionAttributes in ProtType interface
> > > doesn't
> > > > > > presents
> > > > > > > > in
> > > > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > > > >
> > > > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > > Yura.
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > This message was sent on behalf of
> > > yura.tkachenko@gmail.com
> > > > at
> > > > > > > > > > openSubscriber.com
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > > > For additional commands, e-mail:
> > > > axis-user-help@ws.apache.org
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Thanks,
> > > > > > > > > > Yura.
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Ajith Ranabahu
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > > > Developers)
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > >
> > > > >
> > >  >
> > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
> ---------------------------------------------------------------------
> > >
> > > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Yura.
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
>
> --
> Thanks,
>  Yura.

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
Hi, Anne

I can say definitely this wsdl worked perfect for Axis 1.3, I used cmd line:

WSDL2Java d:\some_path\territory.wsdl

And proxy classes generates without any warnings, errors. And I tried also
another wsdl code generator processor .NET 2.0. I only has warnings, but
proxy classes also generates. So as I can see Axis2 uses this warning
(according .NET 2.0) as fatal error and throwing exception. I think it's not
good. It would be high appriciated if it will be fixed and worked as in Axis
1.3.


2006/8/16, Anne Thomas Manes <at...@gmail.com>:
>
> Axis 1.4 should have generated an exception for this WSDL. It isn't valid.
> You cannot add any additional configuration information. You must make
> the WSDL valid.
>
> On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > Anne,
> >
> > but why the same wsdl worked for Axis 1.4 ? Can I add some configuration
> > param without change primary wsdl file?
> >
> >
> > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > >
> > Yura,
> >
> > No, please don't reopen the JIRA. As Dims says, the latest build
> > throws an informative exception. Your problem is caused by the fact
> > that you do not import your second schema
> > (targetNamespace="urn:/crmondemand/xml/territory") into the
> > first
> > schema, therefore Axis cannot find elements/types with a prefix of
> > xsdLocal1. Add this line to the first schema:
> >
> >             <xsd:import
> > namespace="urn:/crmondemand/xml/territory"/>
> >
> > Anne
> >
> > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > >
> > > I have in wsdl *element*:
> > >
> > >
> > >
> > > <xsd:element name="ListOfTerritory"
> > > type="xsdLocal1:ListOfTerritory"></xsd:element>
> > >
> > > <xsd:complexType
> > > name="ListOfTerritory"><xsd:sequence><xsd:element
> > > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > type="xsdLocal1:Territory"></xsd:element>
> > >
> > > </xsd:sequence>
> > >
> > > </xsd:complexType>Should I reopen bug
> > > http://issues.apache.org/jira/browse/AXIS2-1026  ?
> >  >
> > >
> > > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > > Yura,
> > > >
> > > > Your exception says that it cannot find an *element* called
> >  > > "ListOfTerritory". In your last message you showed us a
> *complexType*
> > > > called ListOfTerritory". Is there also an element with this name? If
> > > > not, then that is the cause of your problem.
> > > >
> > > > I'm with Derek -- the tool should never throw a NPE, so please
> update
> > > > the JIRA with sufficient information so that Dims and crew can
> define
> > > > a better exception for this type of WSDL error.
> > > >
> > > > Anne
> > > >
> > > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > > >
> > > > > Ok, here is exception from bug:
> > > > >
> > > > > Caused by:
> > > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > > Referenced element
> > > > > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > > found!
> > > > >         at
> > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > (SchemaCompiler.java
> > > > > :1446)
> > > > >         at
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processParticle
> > (SchemaCompiler.java:1318)
> > > > >         at
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > (SchemaCompiler.java:846)
> > > > >         at
> > > > >
> >  >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > > > (SchemaCompiler.java:791)
> > > > >         at
> > > > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > > (SchemaCompiler.java:775)
> > > > >         at
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java:475)
> > > > >         at
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java
> > > :446)
> > > > >         at
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> > > > >         at
> > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > (SchemaCompiler.java:230)
> > > > >         at
> > > > >
> > >
> > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> > :77)
> > > > >         ... 8 more
> > > > >
> > > > > And in the territory description of the ListOfTerritory presents.
> > > > > <xsd:complexType name="ListOfTerritory">
> >  > > >  <xsd:sequence>
> > > > >   <xsd:element name="Territory" maxOccurs="unbounded"
> minOccurs="0"
> > > > > type="xsdLocal1:Territory" />
> > > > >  </xsd:sequence>
> > > > > </xsd:complexType>
> > > > >
> > > > > BTW I think any wsdl which worked with Axis 1.3 should always work
> > with
> > > > > Axis2, am I right?
> > > > > Also for generate stubs using this wsdl in Axis 1.3, I'm used
> property
> > > file
> > > > > with package mappings. Is it possible to use this property file in
> the
> > > > > WSDL2JAVA in Axis2 1.0 ?
> > > > >
> > > > >
> > > > > 2006/8/15, Davanum Srinivas < davanum@gmail.com >:
> > > > > > Bug is closed :) see comments in the bug report.
> > > > > >
> > > > > > thanks,
> > > > > > dims
> > > > > >
> > > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > > > > >
> > > > > > > I'm using 1.0, the same issue and for nightly build. I logged
> bug
> > at
> > > > > JIRA:
> > > > > > >
> > > > > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > > >
> >  > > > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > > > > Hi,
> > > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with
> the
> > > > > > > > latest nightlies. if the problem persists please file a Jira
> > > (attach
> > > > > > > > the WSDL as well)
> > > > > > > >
> >  > > > > > > Ajith
> > > > > > > >
> > > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Yura:
> > > > > > > > >
> > > > > > > > > WSDL2Java should never throw a NullPointerException. If it
> is
> >  > sent
> > > > > > > invalid
> > > > > > > > > data, it should always throw an exception containing an
> > > informative
> > > > > > > error
> > > > > > > > > message instead. Please file a JIRA so that this issue is
> > fixed.
> > > > > > > > >
> > > > > > > > > Thank you.
> > > > > > > > >
> > > > > > > > > Derek
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hello, Martin
> > > > > > > > >
> > > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not
> > Wsdl2Java
> > > > > class
> > > > > > > > > everything was all right, but for Siebel CRM Ondemand
> Service
> > > wsdl
> > > > > I'm
> > > > > > > > > always getting exception:
> > > > > > > > >
> > > > > > > > > Exception in thread "main"
> > > > > > > > >
> > > > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > > : java.lang.RuntimeException :
> > > > > > > > >
> > > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > > : java.lang.NullPointerException
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > (CodeGener
> > > > > > > > > ationEngine.java:185)
> > > > > > > > >         at
> > > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > > (WSDL2Code.java :32)
> > > > > > > > >         at
> > > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > > (WSDL2Java.java
> > > > > > > :21)
> > > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > > (Simp
> > > > > > > > > leDBExtension.java :117)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > > (CodeGener
> > > > > > > > > ationEngine.java:140)
> > > > > > > > >         ... 2 more
> > > > > > > > > Caused by:
> > > > > > > > >
> > > org.apache.axis2.schema.SchemaCompilationException :
> > > > > > > > > java.lang.NullPoi
> > > > > > > > > nterException
> > > > > > > > >         at
> > > > > > > > >
> > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > > (SchemaCompiler.java:18
> > > > > > > > > 6)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > > leDBExtension.java :70)
> > > > > > > > >         ... 3 more
> > > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > (SchemaCompiler.
> > > > > > > > > java:360)
> > > > > > > > >         at
> > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > > (SchemaCompiler.
> > > > > > > > > java:344)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> >  > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > > java:410)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > > java:334)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > > (SchemaCompiler.java:91
> > > > > > > > > 5)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > > .java:878)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > > (SchemaCompi
> > > > > > > > > ler.java:643)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > (SchemaCompiler.j
> > > > > > > > > ava:579)
> > > > > > > > >         at
> > > > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > (SchemaCompiler.
> > > > > > > > > java:366)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > (SchemaCompiler.
> > > > > > > > > java:344)
> > > > > > > > >         at
> > > > > > > > >
> > org.apache.axis2.schema.SchemaCompiler.compile
> >  > > > > > (SchemaCompiler.java:22
> > > > > > > > > 6)
> > > > > > > > >         at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > > 1)
> > > > > > > > >         ... 4 more
> > > > > > > > >
> > > > > > > > > Don't know what does it means, but for Axis 1.3 I'm used
> also
> > > > > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't
> used
> > > this
> > > > > file
> > > > > > > or I
> > > > > > > > > missed some parameter, here is my command line:
> > > > > > > > >
> > > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > > >
> > > > > > > > > Let me know if you need some additional info.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > Yura.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2006/8/13, Martin Gainty < mgainty@hotmail.com >:
> > > > > > > > > > Good Afternoon Yura-
> > > > > > > > > >
> > > > > > > > > > Your WSDL will need to identify the method which will
> > process
> > > the
> > > > > > > Request
> > > > > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > > > > >
> > > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > > - <wsdl:operation name="getSelectFromZip"
> > parameterOrder="in0
> > > in1
> > > > > > > in2">
> > > > > > > > > > <wsdl:input
> > > > > message="impl:getSelectFromZipRequest"
> > > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > > <wsdl:output
> > > > > message="impl:getSelectFromZipResponse"
> > > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > > </wsdl:operation>
> > > > > > > > > > </wsdl:portType>
> >  > > > > > > > >
> > > > > > > > > > Anyone else?
> > > > > > > > > > Martin --
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > *********************************************************************
> > > > > > > > > > This email message and any files transmitted with it
> contain
> > > > > > > confidential
> > > > > > > > > > information intended only for the person(s) to whom this
> > email
> > > > > message
> > > > > > > is
> > > > > > > > > > addressed.  If you have received this email message in
> > error,
> > > > > please
> > > > > > > > > notify
> > > > > > > > > > the sender immediately by telephone or email and destroy
> the
> > > > > original
> > > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ----- Original Message -----
> > > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > Hi, there.
> > > > > > > > > > >
> > > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to
> > generate
> > > > > client
> > > > > > > stubs
> > > > > > > > > I'm getting exception:
> > > > > > > > > > >
> > > > > > > > > > > Exception in thread "main" java.lang.NoSuchMethodError
> :
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > > at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > > at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(
> WSDL2AxisServiceBuilder.java
> > > > > > > :299)
> > > > > > > > > > > at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > > (WSDL2AxisServiceBuilder.java :238)
> > > > > > > > > > > at
> > > > > > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > > .<init>(CodeGenerationEngine.java :87)
> > > > > > > > > > > at
> > > > > > > > >
> > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > (WSDL2Code.java:32)
> > > > > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > > at
> > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> >  > (Native
> > > > > > > > > Method)
> > > > > > > > > > > at
> > > > > > > > >
> > > > > > >
> > > > >
> > > sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> > > > > > > > > > > at
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > > > at
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > > >
> > > > > > > > > > > method getExtensionAttributes in ProtType interface
> > doesn't
> > > > > presents
> > > > > > > in
> > > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > > >
> > > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > > Yura.
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > This message was sent on behalf of
> > yura.tkachenko@gmail.com
> > > at
> > > > > > > > > openSubscriber.com
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> > ---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > > For additional commands, e-mail:
> > > axis-user-help@ws.apache.org
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Thanks,
> > > > > > > > > Yura.
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Ajith Ranabahu
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > >
> > >
> > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Thanks,
> > > > > > > Yura.
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > > Developers)
> > > > > >
> > > > > >
> > > > >
> > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks,
> > > > > Yura.
> > > >
> > > >
> >  >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Yura.
> >
> > ---------------------------------------------------------------------
> >
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Yura.

Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Anne Thomas Manes <at...@gmail.com>.
Axis 1.4 should have generated an exception for this WSDL. It isn't valid.
You cannot add any additional configuration information. You must make
the WSDL valid.

On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
>
> Anne,
>
> but why the same wsdl worked for Axis 1.4 ? Can I add some configuration
> param without change primary wsdl file?
>
>
> 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> >
> Yura,
>
> No, please don't reopen the JIRA. As Dims says, the latest build
> throws an informative exception. Your problem is caused by the fact
> that you do not import your second schema
> (targetNamespace="urn:/crmondemand/xml/territory") into the
> first
> schema, therefore Axis cannot find elements/types with a prefix of
> xsdLocal1. Add this line to the first schema:
>
>             <xsd:import
> namespace="urn:/crmondemand/xml/territory"/>
>
> Anne
>
> On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > I have in wsdl *element*:
> >
> >
> >
> > <xsd:element name="ListOfTerritory"
> > type="xsdLocal1:ListOfTerritory"></xsd:element>
> >
> > <xsd:complexType
> > name="ListOfTerritory"><xsd:sequence><xsd:element
> > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > type="xsdLocal1:Territory"></xsd:element>
> >
> > </xsd:sequence>
> >
> > </xsd:complexType>Should I reopen bug
> > http://issues.apache.org/jira/browse/AXIS2-1026  ?
>  >
> >
> > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > Yura,
> > >
> > > Your exception says that it cannot find an *element* called
>  > > "ListOfTerritory". In your last message you showed us a *complexType*
> > > called ListOfTerritory". Is there also an element with this name? If
> > > not, then that is the cause of your problem.
> > >
> > > I'm with Derek -- the tool should never throw a NPE, so please update
> > > the JIRA with sufficient information so that Dims and crew can define
> > > a better exception for this type of WSDL error.
> > >
> > > Anne
> > >
> > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > >
> > > > Ok, here is exception from bug:
> > > >
> > > > Caused by:
> > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > Referenced element
> > > > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > found!
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.process
> > (SchemaCompiler.java
> > > > :1446)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle
> (SchemaCompiler.java:1318)
> > > >         at
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > (SchemaCompiler.java:846)
> > > >         at
> > > >
>  >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > > (SchemaCompiler.java:791)
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > (SchemaCompiler.java:775)
> > > >         at
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
> > > >         at
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java
> > :446)
> > > >         at
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> > > >         at
> > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:230)
> > > >         at
> > > >
> >
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> :77)
> > > >         ... 8 more
> > > >
> > > > And in the territory description of the ListOfTerritory presents.
> > > > <xsd:complexType name="ListOfTerritory">
>  > > >  <xsd:sequence>
> > > >   <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > > type="xsdLocal1:Territory" />
> > > >  </xsd:sequence>
> > > > </xsd:complexType>
> > > >
> > > > BTW I think any wsdl which worked with Axis 1.3 should always work
> with
> > > > Axis2, am I right?
> > > > Also for generate stubs using this wsdl in Axis 1.3, I'm used property
> > file
> > > > with package mappings. Is it possible to use this property file in the
> > > > WSDL2JAVA in Axis2 1.0 ?
> > > >
> > > >
> > > > 2006/8/15, Davanum Srinivas < davanum@gmail.com >:
> > > > > Bug is closed :) see comments in the bug report.
> > > > >
> > > > > thanks,
> > > > > dims
> > > > >
> > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > > > >
> > > > > > I'm using 1.0, the same issue and for nightly build. I logged bug
> at
> > > > JIRA:
> > > > > >
> > > > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > >
>  > > > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > > > Hi,
> > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > > > > > > latest nightlies. if the problem persists please file a Jira
> > (attach
> > > > > > > the WSDL as well)
> > > > > > >
>  > > > > > > Ajith
> > > > > > >
> > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Yura:
> > > > > > > >
> > > > > > > > WSDL2Java should never throw a NullPointerException. If it is
>  > sent
> > > > > > invalid
> > > > > > > > data, it should always throw an exception containing an
> > informative
> > > > > > error
> > > > > > > > message instead. Please file a JIRA so that this issue is
> fixed.
> > > > > > > >
> > > > > > > > Thank you.
> > > > > > > >
> > > > > > > > Derek
> > > > > > > >
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello, Martin
> > > > > > > >
> > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not
> Wsdl2Java
> > > > class
> > > > > > > > everything was all right, but for Siebel CRM Ondemand Service
> > wsdl
> > > > I'm
> > > > > > > > always getting exception:
> > > > > > > >
> > > > > > > > Exception in thread "main"
> > > > > > > >
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > : java.lang.RuntimeException :
> > > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > : java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > (CodeGener
> > > > > > > > ationEngine.java:185)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > (WSDL2Code.java :32)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > (WSDL2Java.java
> > > > > > :21)
> > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > (Simp
> > > > > > > > leDBExtension.java :117)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > (CodeGener
> > > > > > > > ationEngine.java:140)
> > > > > > > >         ... 2 more
> > > > > > > > Caused by:
> > > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException :
> > > > > > > > java.lang.NullPoi
> > > > > > > > nterException
> > > > > > > >         at
> > > > > > > >
> org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > (SchemaCompiler.java:18
> > > > > > > > 6)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > leDBExtension.java :70)
> > > > > > > >         ... 3 more
> > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> > > > > > > > java:360)
> > > > > > > >         at
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > (SchemaCompiler.
> > > > > > > > java:344)
> > > > > > > >         at
> > > > > > > >
> > > > > >
>  > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:410)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:334)
> > > > > > > >         at
> > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > (SchemaCompiler.java:91
> > > > > > > > 5)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > .java:878)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > (SchemaCompi
> > > > > > > > ler.java:643)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processSchema
> (SchemaCompiler.j
> > > > > > > > ava:579)
> > > > > > > >         at
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > (SchemaCompiler.
> > > > > > > > java:366)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > > > > > java:344)
> > > > > > > >         at
> > > > > > > >
> org.apache.axis2.schema.SchemaCompiler.compile
>  > > > > > (SchemaCompiler.java:22
> > > > > > > > 6)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > 1)
> > > > > > > >         ... 4 more
> > > > > > > >
> > > > > > > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't used
> > this
> > > > file
> > > > > > or I
> > > > > > > > missed some parameter, here is my command line:
> > > > > > > >
> > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > >
> > > > > > > > Let me know if you need some additional info.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > > >
> > > > > > > > 2006/8/13, Martin Gainty < mgainty@hotmail.com >:
> > > > > > > > > Good Afternoon Yura-
> > > > > > > > >
> > > > > > > > > Your WSDL will need to identify the method which will
> process
> > the
> > > > > > Request
> > > > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > > > >
> > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > - <wsdl:operation name="getSelectFromZip"
> parameterOrder="in0
> > in1
> > > > > > in2">
> > > > > > > > > <wsdl:input
> > > > message="impl:getSelectFromZipRequest"
> > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > <wsdl:output
> > > > message="impl:getSelectFromZipResponse"
> > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > </wsdl:operation>
> > > > > > > > > </wsdl:portType>
>  > > > > > > > >
> > > > > > > > > Anyone else?
> > > > > > > > > Martin --
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
> *********************************************************************
> > > > > > > > > This email message and any files transmitted with it contain
> > > > > > confidential
> > > > > > > > > information intended only for the person(s) to whom this
> email
> > > > message
> > > > > > is
> > > > > > > > > addressed.  If you have received this email message in
> error,
> > > > please
> > > > > > > > notify
> > > > > > > > > the sender immediately by telephone or email and destroy the
> > > > original
> > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ----- Original Message -----
> > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > Hi, there.
> > > > > > > > > >
> > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to
> generate
> > > > client
> > > > > > stubs
> > > > > > > > I'm getting exception:
> > > > > > > > > >
> > > > > > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > > > > > >
> > > > > >
> > > >
> >
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java
> > > > > > :299)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > (WSDL2AxisServiceBuilder.java :238)
> > > > > > > > > > at
> > > > > > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > .<init>(CodeGenerationEngine.java :87)
> > > > > > > > > > at
> > > > > > > >
> > > > org.apache.axis2.wsdl.WSDL2Code.main
> > (WSDL2Code.java:32)
> > > > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > at
> > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
>  > (Native
> > > > > > > > Method)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> > > > > > > > > > at
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> >
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > >
> > > > > > > > > > method getExtensionAttributes in ProtType interface
> doesn't
> > > > presents
> > > > > > in
> > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > >
> > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > > Yura.
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > This message was sent on behalf of
> yura.tkachenko@gmail.com
> > at
> > > > > > > > openSubscriber.com
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
> ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Ajith Ranabahu
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > >
> > > > >
> > > > > --
> > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > Developers)
> > > > >
> > > > >
> > > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
>  >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
> --
> Thanks,
> Yura.

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
Anne,

but why the same wsdl worked for Axis 1.4 ? Can I add some configuration
param without change primary wsdl file?


2006/8/15, Anne Thomas Manes <at...@gmail.com>:
>
> Yura,
>
> No, please don't reopen the JIRA. As Dims says, the latest build
> throws an informative exception. Your problem is caused by the fact
> that you do not import your second schema
> (targetNamespace="urn:/crmondemand/xml/territory") into the first
> schema, therefore Axis cannot find elements/types with a prefix of
> xsdLocal1. Add this line to the first schema:
>
>             <xsd:import namespace="urn:/crmondemand/xml/territory"/>
>
> Anne
>
> On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > I have in wsdl *element*:
> >
> >
> >
> > <xsd:element name="ListOfTerritory"
> > type="xsdLocal1:ListOfTerritory"></xsd:element>
> >
> > <xsd:complexType
> > name="ListOfTerritory"><xsd:sequence><xsd:element
> > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > type="xsdLocal1:Territory"></xsd:element>
> >
> > </xsd:sequence>
> >
> > </xsd:complexType>Should I reopen bug
> > http://issues.apache.org/jira/browse/AXIS2-1026  ?
> >
> >
> > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > Yura,
> > >
> > > Your exception says that it cannot find an *element* called
> > > "ListOfTerritory". In your last message you showed us a *complexType*
> > > called ListOfTerritory". Is there also an element with this name? If
> > > not, then that is the cause of your problem.
> > >
> > > I'm with Derek -- the tool should never throw a NPE, so please update
> > > the JIRA with sufficient information so that Dims and crew can define
> > > a better exception for this type of WSDL error.
> > >
> > > Anne
> > >
> > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > >
> > > > Ok, here is exception from bug:
> > > >
> > > > Caused by:
> > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > Referenced element
> > > > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > found!
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.process
> > (SchemaCompiler.java
> > > > :1446)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(
> SchemaCompiler.java:1318)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > (SchemaCompiler.java:846)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > > (SchemaCompiler.java:791)
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.processSchema
> > (SchemaCompiler.java:775)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java:475)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java
> > :446)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> > > >         at
> > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:230)
> > > >         at
> > > >
> > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> :77)
> > > >         ... 8 more
> > > >
> > > > And in the territory description of the ListOfTerritory presents.
> > > > <xsd:complexType name="ListOfTerritory">
> > > >  <xsd:sequence>
> > > >   <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > > type="xsdLocal1:Territory" />
> > > >  </xsd:sequence>
> > > > </xsd:complexType>
> > > >
> > > > BTW I think any wsdl which worked with Axis 1.3 should always work
> with
> > > > Axis2, am I right?
> > > > Also for generate stubs using this wsdl in Axis 1.3, I'm used
> property
> > file
> > > > with package mappings. Is it possible to use this property file in
> the
> > > > WSDL2JAVA in Axis2 1.0 ?
> > > >
> > > >
> > > > 2006/8/15, Davanum Srinivas <davanum@gmail.com >:
> > > > > Bug is closed :) see comments in the bug report.
> > > > >
> > > > > thanks,
> > > > > dims
> > > > >
> > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > > > >
> > > > > > I'm using 1.0, the same issue and for nightly build. I logged
> bug at
> > > > JIRA:
> > > > > >
> > > > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > >
> > > > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > > > Hi,
> > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with
> the
> > > > > > > latest nightlies. if the problem persists please file a Jira
> > (attach
> > > > > > > the WSDL as well)
> > > > > > >
> > > > > > > Ajith
> > > > > > >
> > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Yura:
> > > > > > > >
> > > > > > > > WSDL2Java should never throw a NullPointerException. If it
> is
> > sent
> > > > > > invalid
> > > > > > > > data, it should always throw an exception containing an
> > informative
> > > > > > error
> > > > > > > > message instead. Please file a JIRA so that this issue is
> fixed.
> > > > > > > >
> > > > > > > > Thank you.
> > > > > > > >
> > > > > > > > Derek
> > > > > > > >
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello, Martin
> > > > > > > >
> > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not
> Wsdl2Java
> > > > class
> > > > > > > > everything was all right, but for Siebel CRM Ondemand
> Service
> > wsdl
> > > > I'm
> > > > > > > > always getting exception:
> > > > > > > >
> > > > > > > > Exception in thread "main"
> > > > > > > >
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > : java.lang.RuntimeException :
> > > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > : java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > (CodeGener
> > > > > > > > ationEngine.java:185)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > (WSDL2Code.java:32)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > (WSDL2Java.java
> > > > > > :21)
> > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > (Simp
> > > > > > > > leDBExtension.java:117)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > (CodeGener
> > > > > > > > ationEngine.java:140)
> > > > > > > >         ... 2 more
> > > > > > > > Caused by:
> > > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException:
> > > > > > > > java.lang.NullPoi
> > > > > > > > nterException
> > > > > > > >         at
> > > > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > (SchemaCompiler.java:18
> > > > > > > > 6)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > leDBExtension.java :70)
> > > > > > > >         ... 3 more
> > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:360)
> > > > > > > >         at
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > (SchemaCompiler.
> > > > > > > > java:344)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:410)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:334)
> > > > > > > >         at
> > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > (SchemaCompiler.java:91
> > > > > > > > 5)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > .java:878)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > (SchemaCompi
> > > > > > > > ler.java:643)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > > > > > ava:579)
> > > > > > > >         at
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > (SchemaCompiler.
> > > > > > > > java:366)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > > > > > java:344)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > (SchemaCompiler.java:22
> > > > > > > > 6)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > 1)
> > > > > > > >         ... 4 more
> > > > > > > >
> > > > > > > > Don't know what does it means, but for Axis 1.3 I'm used
> also
> > > > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't
> used
> > this
> > > > file
> > > > > > or I
> > > > > > > > missed some parameter, here is my command line:
> > > > > > > >
> > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > >
> > > > > > > > Let me know if you need some additional info.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > > >
> > > > > > > > 2006/8/13, Martin Gainty <mgainty@hotmail.com >:
> > > > > > > > > Good Afternoon Yura-
> > > > > > > > >
> > > > > > > > > Your WSDL will need to identify the method which will
> process
> > the
> > > > > > Request
> > > > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > > > >
> > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > - <wsdl:operation name="getSelectFromZip"
> parameterOrder="in0
> > in1
> > > > > > in2">
> > > > > > > > > <wsdl:input
> > > > message="impl:getSelectFromZipRequest"
> > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > <wsdl:output
> > > > message="impl:getSelectFromZipResponse"
> > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > </wsdl:operation>
> > > > > > > > > </wsdl:portType>
> > > > > > > > >
> > > > > > > > > Anyone else?
> > > > > > > > > Martin --
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > *********************************************************************
> > > > > > > > > This email message and any files transmitted with it
> contain
> > > > > > confidential
> > > > > > > > > information intended only for the person(s) to whom this
> email
> > > > message
> > > > > > is
> > > > > > > > > addressed.  If you have received this email message in
> error,
> > > > please
> > > > > > > > notify
> > > > > > > > > the sender immediately by telephone or email and destroy
> the
> > > > original
> > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ----- Original Message -----
> > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > Hi, there.
> > > > > > > > > >
> > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to
> generate
> > > > client
> > > > > > stubs
> > > > > > > > I'm getting exception:
> > > > > > > > > >
> > > > > > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > > > > > >
> > > > > >
> > > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(
> WSDL2AxisServiceBuilder.java
> > > > > > :299)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > > > > > at
> > > > > > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > .<init>(CodeGenerationEngine.java:87)
> > > > > > > > > > at
> > > > > > > >
> > > > org.apache.axis2.wsdl.WSDL2Code.main
> > (WSDL2Code.java:32)
> > > > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > at
> > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> > (Native
> > > > > > > > Method)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > > > > > > > > at
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > >
> > > > > > > > > > method getExtensionAttributes in ProtType interface
> doesn't
> > > > presents
> > > > > > in
> > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > >
> > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > > Yura.
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > This message was sent on behalf of
> yura.tkachenko@gmail.com
> > at
> > > > > > > > openSubscriber.com
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Ajith Ranabahu
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > >
> > > > >
> > > > > --
> > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > Developers)
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Yura.

RE: [Axis2]Unable to use WSDL2JAVA.

Posted by Derek <de...@crc-corp.com>.
Agreed, it looks like the null pointer bug is already fixed.

I did, however, just file a new JIRA on the fact that the generated error
message is missing a space and is a bit ungrammatical:

http://issues.apache.org/jira/browse/AXIS2-1037

Derek

> -----Original Message-----
> From: Anne Thomas Manes [mailto:atmanes@gmail.com] 
> Sent: Tuesday, August 15, 2006 10:19 AM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> 
> 
> Yura,
> 
> No, please don't reopen the JIRA. As Dims says, the latest 
> build throws an informative exception. Your problem is caused 
> by the fact that you do not import your second schema
> (targetNamespace="urn:/crmondemand/xml/territory") into the 
> first schema, therefore Axis cannot find elements/types with 
> a prefix of xsdLocal1. Add this line to the first schema:
> 
>              <xsd:import namespace="urn:/crmondemand/xml/territory"/>
> 
> Anne
> 
> On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > I have in wsdl *element*:
> >
> >
> >
> > <xsd:element name="ListOfTerritory" 
> > type="xsdLocal1:ListOfTerritory"></xsd:element>
> >
> > <xsd:complexType name="ListOfTerritory"><xsd:sequence><xsd:element
> > name="Territory" maxOccurs="unbounded" minOccurs="0"
> > type="xsdLocal1:Territory"></xsd:element>
> >
> > </xsd:sequence>
> >
> > </xsd:complexType>Should I reopen bug 
> > http://issues.apache.org/jira/browse/AXIS2-1026  ?
> >
> >
> > 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > > Yura,
> > >
> > > Your exception says that it cannot find an *element* called 
> > > "ListOfTerritory". In your last message you showed us a 
> > > *complexType* called ListOfTerritory". Is there also an 
> element with 
> > > this name? If not, then that is the cause of your problem.
> > >
> > > I'm with Derek -- the tool should never throw a NPE, so please 
> > > update the JIRA with sufficient information so that Dims and crew 
> > > can define a better exception for this type of WSDL error.
> > >
> > > Anne
> > >
> > > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > > >
> > > > Ok, here is exception from bug:
> > > >
> > > > Caused by:
> > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > Referenced element 
> > > > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> > found!
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.process
> > (SchemaCompiler.java
> > > > :1446)
> > > >         at
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.
> > java:1318)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > (SchemaCompiler.java:846)
> > > >         at
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaTy
> > pe
> > > > (SchemaCompiler.java:791)
> > > >         at org.apache.axis2.schema.SchemaCompiler.processSchema
> > (SchemaCompiler.java:775)
> > > >         at
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.j
> > ava:475)
> > > >         at
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.j
> > ava
> > :446)
> > > >         at
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308
> > )
> > > >         at
> > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:230)
> > > >         at
> > > >
> > 
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:
> > 77)
> > > >         ... 8 more
> > > >
> > > > And in the territory description of the ListOfTerritory 
> presents. 
> > > > <xsd:complexType name="ListOfTerritory">  <xsd:sequence>
> > > >   <xsd:element name="Territory" maxOccurs="unbounded" 
> minOccurs="0"
> > > > type="xsdLocal1:Territory" />
> > > >  </xsd:sequence>
> > > > </xsd:complexType>
> > > >
> > > > BTW I think any wsdl which worked with Axis 1.3 should 
> always work 
> > > > with Axis2, am I right? Also for generate stubs using 
> this wsdl in 
> > > > Axis 1.3, I'm used property
> > file
> > > > with package mappings. Is it possible to use this 
> property file in 
> > > > the WSDL2JAVA in Axis2 1.0 ?
> > > >
> > > >
> > > > 2006/8/15, Davanum Srinivas <davanum@gmail.com >:
> > > > > Bug is closed :) see comments in the bug report.
> > > > >
> > > > > thanks,
> > > > > dims
> > > > >
> > > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > > > >
> > > > > > I'm using 1.0, the same issue and for nightly 
> build. I logged 
> > > > > > bug at
> > > > JIRA:
> > > > > >
> > > > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > > >
> > > > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > > > Hi,
> > > > > > > Is this 1.0 or the latest SVN ? if its 1.o please 
> check with 
> > > > > > > the latest nightlies. if the problem persists 
> please file a 
> > > > > > > Jira
> > (attach
> > > > > > > the WSDL as well)
> > > > > > >
> > > > > > > Ajith
> > > > > > >
> > > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Yura:
> > > > > > > >
> > > > > > > > WSDL2Java should never throw a 
> NullPointerException. If it 
> > > > > > > > is
> > sent
> > > > > > invalid
> > > > > > > > data, it should always throw an exception containing an
> > informative
> > > > > > error
> > > > > > > > message instead. Please file a JIRA so that 
> this issue is 
> > > > > > > > fixed.
> > > > > > > >
> > > > > > > > Thank you.
> > > > > > > >
> > > > > > > > Derek
> > > > > > > >
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > > To: axis-user@ws.apache.org
> > > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello, Martin
> > > > > > > >
> > > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not 
> > > > > > > > Wsdl2Java
> > > > class
> > > > > > > > everything was all right, but for Siebel CRM Ondemand 
> > > > > > > > Service
> > wsdl
> > > > I'm
> > > > > > > > always getting exception:
> > > > > > > >
> > > > > > > > Exception in thread "main"
> > > > > > > >
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > > : java.lang.RuntimeException :
> > > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException
> > > > > > > > : java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > (CodeGener
> > > > > > > > ationEngine.java:185)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > (WSDL2Code.java:32)
> > > > > > > >         at
> > > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > > (WSDL2Java.java
> > > > > > :21)
> > > > > > > > Caused by: java.lang.RuntimeException: 
> > > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > > Exception: java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> > (Simp
> > > > > > > > leDBExtension.java:117)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > > (CodeGener
> > > > > > > > ationEngine.java:140)
> > > > > > > >         ... 2 more
> > > > > > > > Caused by:
> > > > > > > >
> > org.apache.axis2.schema.SchemaCompilationException:
> > > > > > > > java.lang.NullPoi
> > > > > > > > nterException
> > > > > > > >         at 
> org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > (SchemaCompiler.java:18
> > > > > > > > 6)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > > leDBExtension.java :70)
> > > > > > > >         ... 3 more
> > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:360)
> > > > > > > >         at
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > > (SchemaCompiler.
> > > > > > > > java:344)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:410)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > > java:334)
> > > > > > > >         at
> > > > > > > >
> > > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > > (SchemaCompiler.java:91
> > > > > > > > 5)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > > .java:878)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > > (SchemaCompi
> > > > > > > > ler.java:643)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > > ype(SchemaCompiler.java:594)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > > > > > ava:579)
> > > > > > > >         at
> > > > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > (SchemaCompiler.
> > > > > > > > java:366)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > > > > > java:344)
> > > > > > > >         at 
> org.apache.axis2.schema.SchemaCompiler.compile
> > > > > > (SchemaCompiler.java:22
> > > > > > > > 6)
> > > > > > > >         at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > > 1)
> > > > > > > >         ... 4 more
> > > > > > > >
> > > > > > > > Don't know what does it means, but for Axis 1.3 
> I'm used 
> > > > > > > > also NstoPkg.properties file to generate stubs. Axis2 
> > > > > > > > doesn't used
> > this
> > > > file
> > > > > > or I
> > > > > > > > missed some parameter, here is my command line:
> > > > > > > >
> > > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > > >
> > > > > > > > Let me know if you need some additional info.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > > >
> > > > > > > > 2006/8/13, Martin Gainty <mgainty@hotmail.com >:
> > > > > > > > > Good Afternoon Yura-
> > > > > > > > >
> > > > > > > > > Your WSDL will need to identify the method which will 
> > > > > > > > > process
> > the
> > > > > > Request
> > > > > > > > > in this example the wsdl:operation name="" is 
> the method
> > > > > > > > >
> > > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > > - <wsdl:operation name="getSelectFromZip" 
> > > > > > > > > parameterOrder="in0
> > in1
> > > > > > in2">
> > > > > > > > > <wsdl:input
> > > > message="impl:getSelectFromZipRequest"
> > > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > > <wsdl:output
> > > > message="impl:getSelectFromZipResponse"
> > > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > > </wsdl:operation>
> > > > > > > > > </wsdl:portType>
> > > > > > > > >
> > > > > > > > > Anyone else?
> > > > > > > > > Martin --
> > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > 
> *********************************************************************
> > > > > > > > > This email message and any files transmitted with it 
> > > > > > > > > contain
> > > > > > confidential
> > > > > > > > > information intended only for the person(s) 
> to whom this 
> > > > > > > > > email
> > > > message
> > > > > > is
> > > > > > > > > addressed.  If you have received this email 
> message in 
> > > > > > > > > error,
> > > > please
> > > > > > > > notify
> > > > > > > > > the sender immediately by telephone or email 
> and destroy 
> > > > > > > > > the
> > > > original
> > > > > > > > > message without making a copy.  Thank you.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ----- Original Message -----
> > > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > Hi, there.
> > > > > > > > > >
> > > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to 
> > > > > > > > > > generate
> > > > client
> > > > > > stubs
> > > > > > > > I'm getting exception:
> > > > > > > > > >
> > > > > > > > > > Exception in thread "main" 
> > > > > > > > > > java.lang.NoSuchMethodError:
> > > > > > > >
> > > > > >
> > > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > 
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WS
> > DL2AxisServiceBuilder.java
> > > > > > :299)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > > > > > at
> > > > > > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > > .<init>(CodeGenerationEngine.java:87)
> > > > > > > > > > at
> > > > > > > >
> > > > org.apache.axis2.wsdl.WSDL2Code.main
> > (WSDL2Code.java:32)
> > > > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > > (WSDL2Java.java:21)
> > > > > > > > > > at
> > > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> > (Native
> > > > > > > > Method)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:39)
> > > > > > > > > > at
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > > at
> > > > > > > >
> > > > > >
> > > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > > >
> > > > > > > > > > method getExtensionAttributes in ProtType interface 
> > > > > > > > > > doesn't
> > > > presents
> > > > > > in
> > > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > > >
> > > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > > Yura.
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > This message was sent on behalf of 
> > > > > > > > > > yura.tkachenko@gmail.com
> > at
> > > > > > > > openSubscriber.com
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > 
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > 
> ---------------------------------------------------------------------
> > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Ajith Ranabahu
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > 
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail: 
> > > > > > > axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > >
> > > > >
> > > > > --
> > > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > Developers)
> > > > >
> > > > >
> > > >
> > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 



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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Anne Thomas Manes <at...@gmail.com>.
Yura,

No, please don't reopen the JIRA. As Dims says, the latest build
throws an informative exception. Your problem is caused by the fact
that you do not import your second schema
(targetNamespace="urn:/crmondemand/xml/territory") into the first
schema, therefore Axis cannot find elements/types with a prefix of
xsdLocal1. Add this line to the first schema:

             <xsd:import namespace="urn:/crmondemand/xml/territory"/>

Anne

On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
>
> I have in wsdl *element*:
>
>
>
> <xsd:element name="ListOfTerritory"
> type="xsdLocal1:ListOfTerritory"></xsd:element>
>
> <xsd:complexType
> name="ListOfTerritory"><xsd:sequence><xsd:element
> name="Territory" maxOccurs="unbounded" minOccurs="0"
> type="xsdLocal1:Territory"></xsd:element>
>
> </xsd:sequence>
>
> </xsd:complexType>Should I reopen bug
> http://issues.apache.org/jira/browse/AXIS2-1026  ?
>
>
> 2006/8/15, Anne Thomas Manes <at...@gmail.com>:
> > Yura,
> >
> > Your exception says that it cannot find an *element* called
> > "ListOfTerritory". In your last message you showed us a *complexType*
> > called ListOfTerritory". Is there also an element with this name? If
> > not, then that is the cause of your problem.
> >
> > I'm with Derek -- the tool should never throw a NPE, so please update
> > the JIRA with sufficient information so that Dims and crew can define
> > a better exception for this type of WSDL error.
> >
> > Anne
> >
> > On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> > >
> > > Ok, here is exception from bug:
> > >
> > > Caused by:
> > > org.apache.axis2.schema.SchemaCompilationException:
> > > Referenced element
> > > {urn:/crmondemand/xml/territory}ListOfTerritorynot
> found!
> > >         at
> > > org.apache.axis2.schema.SchemaCompiler.process
> (SchemaCompiler.java
> > > :1446)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> (SchemaCompiler.java:846)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > > (SchemaCompiler.java:791)
> > >         at
> > > org.apache.axis2.schema.SchemaCompiler.processSchema
> (SchemaCompiler.java:775)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java
> :446)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> > >         at
> org.apache.axis2.schema.SchemaCompiler.compile
> > > (SchemaCompiler.java:230)
> > >         at
> > >
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77)
> > >         ... 8 more
> > >
> > > And in the territory description of the ListOfTerritory presents.
> > > <xsd:complexType name="ListOfTerritory">
> > >  <xsd:sequence>
> > >   <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
> > > type="xsdLocal1:Territory" />
> > >  </xsd:sequence>
> > > </xsd:complexType>
> > >
> > > BTW I think any wsdl which worked with Axis 1.3 should always work with
> > > Axis2, am I right?
> > > Also for generate stubs using this wsdl in Axis 1.3, I'm used property
> file
> > > with package mappings. Is it possible to use this property file in the
> > > WSDL2JAVA in Axis2 1.0 ?
> > >
> > >
> > > 2006/8/15, Davanum Srinivas <davanum@gmail.com >:
> > > > Bug is closed :) see comments in the bug report.
> > > >
> > > > thanks,
> > > > dims
> > > >
> > > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > > >
> > > > > I'm using 1.0, the same issue and for nightly build. I logged bug at
> > > JIRA:
> > > > >
> > > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > > >
> > > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > > Hi,
> > > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > > > > > latest nightlies. if the problem persists please file a Jira
> (attach
> > > > > > the WSDL as well)
> > > > > >
> > > > > > Ajith
> > > > > >
> > > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Yura:
> > > > > > >
> > > > > > > WSDL2Java should never throw a NullPointerException. If it is
> sent
> > > > > invalid
> > > > > > > data, it should always throw an exception containing an
> informative
> > > > > error
> > > > > > > message instead. Please file a JIRA so that this issue is fixed.
> > > > > > >
> > > > > > > Thank you.
> > > > > > >
> > > > > > > Derek
> > > > > > >
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > > To: axis-user@ws.apache.org
> > > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hello, Martin
> > > > > > >
> > > > > > > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java
> > > class
> > > > > > > everything was all right, but for Siebel CRM Ondemand Service
> wsdl
> > > I'm
> > > > > > > always getting exception:
> > > > > > >
> > > > > > > Exception in thread "main"
> > > > > > >
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > > : java.lang.RuntimeException :
> > > > > > >
> org.apache.axis2.schema.SchemaCompilationException
> > > > > > > : java.lang.NullPointerException
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > (CodeGener
> > > > > > > ationEngine.java:185)
> > > > > > >         at
> > > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > > (WSDL2Code.java:32)
> > > > > > >         at
> > > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > > (WSDL2Java.java
> > > > > :21)
> > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > > Exception: java.lang.NullPointerException
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
> (Simp
> > > > > > > leDBExtension.java:117)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > > (CodeGener
> > > > > > > ationEngine.java:140)
> > > > > > >         ... 2 more
> > > > > > > Caused by:
> > > > > > >
> org.apache.axis2.schema.SchemaCompilationException:
> > > > > > > java.lang.NullPoi
> > > > > > > nterException
> > > > > > >         at
> > > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > (SchemaCompiler.java:18
> > > > > > > 6)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > > leDBExtension.java :70)
> > > > > > >         ... 3 more
> > > > > > > Caused by: java.lang.NullPointerException
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > java:360)
> > > > > > >         at
> > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > > (SchemaCompiler.
> > > > > > > java:344)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > java:410)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > > java:334)
> > > > > > >         at
> > > > > > >
> > > > > org.apache.axis2.schema.SchemaCompiler.process
> > > (SchemaCompiler.java:91
> > > > > > > 5)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > > .java:878)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > > (SchemaCompi
> > > > > > > ler.java:643)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > > ype(SchemaCompiler.java:594)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > > > > ava:579)
> > > > > > >         at
> > > > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > (SchemaCompiler.
> > > > > > > java:366)
> > > > > > >         at
> > > > > > >
> > > > >
> org.apache.axis2.schema.SchemaCompiler.processElement
> > > (SchemaCompiler.
> > > > > > > java:344)
> > > > > > >         at
> > > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > > (SchemaCompiler.java:22
> > > > > > > 6)
> > > > > > >         at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > > 1)
> > > > > > >         ... 4 more
> > > > > > >
> > > > > > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't used
> this
> > > file
> > > > > or I
> > > > > > > missed some parameter, here is my command line:
> > > > > > >
> > > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > > >
> > > > > > > Let me know if you need some additional info.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Yura.
> > > > > > >
> > > > > > >
> > > > > > > 2006/8/13, Martin Gainty <mgainty@hotmail.com >:
> > > > > > > > Good Afternoon Yura-
> > > > > > > >
> > > > > > > > Your WSDL will need to identify the method which will process
> the
> > > > > Request
> > > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > > >
> > > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0
> in1
> > > > > in2">
> > > > > > > > <wsdl:input
> > > message="impl:getSelectFromZipRequest"
> > > > > > > name="getSelectFromZipRequest" />
> > > > > > > > <wsdl:output
> > > message="impl:getSelectFromZipResponse"
> > > > > > > name="getSelectFromZipResponse" />
> > > > > > > > </wsdl:operation>
> > > > > > > > </wsdl:portType>
> > > > > > > >
> > > > > > > > Anyone else?
> > > > > > > > Martin --
> > > > > > > >
> > > > > > >
> > > > >
> > >
> *********************************************************************
> > > > > > > > This email message and any files transmitted with it contain
> > > > > confidential
> > > > > > > > information intended only for the person(s) to whom this email
> > > message
> > > > > is
> > > > > > > > addressed.  If you have received this email message in error,
> > > please
> > > > > > > notify
> > > > > > > > the sender immediately by telephone or email and destroy the
> > > original
> > > > > > > > message without making a copy.  Thank you.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ----- Original Message -----
> > > > > > > > From: < yura.tkachenko@gmail.com >
> > > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > > >
> > > > > > > >
> > > > > > > > > Hi, there.
> > > > > > > > >
> > > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to generate
> > > client
> > > > > stubs
> > > > > > > I'm getting exception:
> > > > > > > > >
> > > > > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > > > > >
> > > > >
> > >
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java
> > > > > :299)
> > > > > > > > > at
> > > > > > >
> > > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > > > > at
> > > > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > .<init>(CodeGenerationEngine.java:87)
> > > > > > > > > at
> > > > > > >
> > > org.apache.axis2.wsdl.WSDL2Code.main
> (WSDL2Code.java:32)
> > > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > > (WSDL2Java.java:21)
> > > > > > > > > at
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke0
> (Native
> > > > > > > Method)
> > > > > > > > > at
> > > > > > >
> > > > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > > > > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > > at
> > > > > > >
> > > > >
> > >
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > > >
> > > > > > > > > method getExtensionAttributes in ProtType interface doesn't
> > > presents
> > > > > in
> > > > > > > the wsdl1.5.2 anymore.
> > > > > > > > >
> > > > > > > > > Any idea how to resolve this issue?
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > Yura.
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > This message was sent on behalf of yura.tkachenko@gmail.com
> at
> > > > > > > openSubscriber.com
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail:
> > > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Thanks,
> > > > > > > Yura.
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Ajith Ranabahu
> > > > > >
> > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks,
> > > > > Yura.
> > > >
> > > >
> > > > --
> > > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> Developers)
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Yura.
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
>
> --
> Thanks,
> Yura.

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
I have in wsdl *element*:


<xsd:element name="ListOfTerritory"
type="xsdLocal1:ListOfTerritory"></xsd:element>

<xsd:complexType name="ListOfTerritory"><xsd:sequence><xsd:element
name="Territory" maxOccurs="unbounded" minOccurs="0"
type="xsdLocal1:Territory"></xsd:element>

</xsd:sequence>

</xsd:complexType>
Should I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ?


2006/8/15, Anne Thomas Manes <at...@gmail.com>:
>
> Yura,
>
> Your exception says that it cannot find an *element* called
> "ListOfTerritory". In your last message you showed us a *complexType*
> called ListOfTerritory". Is there also an element with this name? If
> not, then that is the cause of your problem.
>
> I'm with Derek -- the tool should never throw a NPE, so please update
> the JIRA with sufficient information so that Dims and crew can define
> a better exception for this type of WSDL error.
>
> Anne
>
> On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > Ok, here is exception from bug:
> >
> > Caused by:
> > org.apache.axis2.schema.SchemaCompilationException:
> > Referenced element
> > {urn:/crmondemand/xml/territory}ListOfTerritorynot found!
> >         at
> > org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java
> > :1446)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processParticle(
> SchemaCompiler.java:1318)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processComplexType(
> SchemaCompiler.java:846)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > (SchemaCompiler.java:791)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java
> :775)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java:475)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(
> SchemaCompiler.java:446)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> >         at org.apache.axis2.schema.SchemaCompiler.compile
> > (SchemaCompiler.java:230)
> >         at
> > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> :77)
> >         ... 8 more
> >
> > And in the territory description of the ListOfTerritory presents.
> > <xsd:complexType name="ListOfTerritory">
> >  <xsd:sequence>
> >   <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
> > type="xsdLocal1:Territory" />
> >  </xsd:sequence>
> > </xsd:complexType>
> >
> > BTW I think any wsdl which worked with Axis 1.3 should always work with
> > Axis2, am I right?
> > Also for generate stubs using this wsdl in Axis 1.3, I'm used property
> file
> > with package mappings. Is it possible to use this property file in the
> > WSDL2JAVA in Axis2 1.0 ?
> >
> >
> > 2006/8/15, Davanum Srinivas <da...@gmail.com>:
> > > Bug is closed :) see comments in the bug report.
> > >
> > > thanks,
> > > dims
> > >
> > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > >
> > > > I'm using 1.0, the same issue and for nightly build. I logged bug at
> > JIRA:
> > > >
> > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > >
> > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > Hi,
> > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > > > > latest nightlies. if the problem persists please file a Jira
> (attach
> > > > > the WSDL as well)
> > > > >
> > > > > Ajith
> > > > >
> > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > >
> > > > > >
> > > > > > Yura:
> > > > > >
> > > > > > WSDL2Java should never throw a NullPointerException. If it is
> sent
> > > > invalid
> > > > > > data, it should always throw an exception containing an
> informative
> > > > error
> > > > > > message instead. Please file a JIRA so that this issue is fixed.
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > > Derek
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > To: axis-user@ws.apache.org
> > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Hello, Martin
> > > > > >
> > > > > > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java
> > class
> > > > > > everything was all right, but for Siebel CRM Ondemand Service
> wsdl
> > I'm
> > > > > > always getting exception:
> > > > > >
> > > > > > Exception in thread "main"
> > > > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > : java.lang.RuntimeException :
> > > > > > org.apache.axis2.schema.SchemaCompilationException
> > > > > > : java.lang.NullPointerException
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > (CodeGener
> > > > > > ationEngine.java:185)
> > > > > >         at
> > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > (WSDL2Code.java:32)
> > > > > >         at
> > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > (WSDL2Java.java
> > > > :21)
> > > > > > Caused by: java.lang.RuntimeException:
> > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > Exception: java.lang.NullPointerException
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > leDBExtension.java:117)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > (CodeGener
> > > > > > ationEngine.java:140)
> > > > > >         ... 2 more
> > > > > > Caused by:
> > > > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > > > java.lang.NullPoi
> > > > > > nterException
> > > > > >         at
> > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:18
> > > > > > 6)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > leDBExtension.java :70)
> > > > > >         ... 3 more
> > > > > > Caused by: java.lang.NullPointerException
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > java:360)
> > > > > >         at
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > (SchemaCompiler.
> > > > > > java:344)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > java:410)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > java:334)
> > > > > >         at
> > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.process
> > (SchemaCompiler.java:91
> > > > > > 5)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > .java:878)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > (SchemaCompi
> > > > > > ler.java:643)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > ype(SchemaCompiler.java:594)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > > > ava:579)
> > > > > >         at
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > > > java:366)
> > > > > >         at
> > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > (SchemaCompiler.
> > > > > > java:344)
> > > > > >         at
> > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:22
> > > > > > 6)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > 1)
> > > > > >         ... 4 more
> > > > > >
> > > > > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't used
> this
> > file
> > > > or I
> > > > > > missed some parameter, here is my command line:
> > > > > >
> > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > >
> > > > > > Let me know if you need some additional info.
> > > > > >
> > > > > > Thanks,
> > > > > > Yura.
> > > > > >
> > > > > >
> > > > > > 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > > > > > > Good Afternoon Yura-
> > > > > > >
> > > > > > > Your WSDL will need to identify the method which will process
> the
> > > > Request
> > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > >
> > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0
> in1
> > > > in2">
> > > > > > > <wsdl:input
> > message="impl:getSelectFromZipRequest"
> > > > > > name="getSelectFromZipRequest" />
> > > > > > > <wsdl:output
> > message="impl:getSelectFromZipResponse"
> > > > > > name="getSelectFromZipResponse" />
> > > > > > > </wsdl:operation>
> > > > > > > </wsdl:portType>
> > > > > > >
> > > > > > > Anyone else?
> > > > > > > Martin --
> > > > > > >
> > > > > >
> > > >
> > *********************************************************************
> > > > > > > This email message and any files transmitted with it contain
> > > > confidential
> > > > > > > information intended only for the person(s) to whom this email
> > message
> > > > is
> > > > > > > addressed.  If you have received this email message in error,
> > please
> > > > > > notify
> > > > > > > the sender immediately by telephone or email and destroy the
> > original
> > > > > > > message without making a copy.  Thank you.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: <yura.tkachenko@gmail.com >
> > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > >
> > > > > > >
> > > > > > > > Hi, there.
> > > > > > > >
> > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to generate
> > client
> > > > stubs
> > > > > > I'm getting exception:
> > > > > > > >
> > > > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > > > >
> > > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > at
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > at
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(
> WSDL2AxisServiceBuilder.java
> > > > :299)
> > > > > > > > at
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > > > at
> > > > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > .<init>(CodeGenerationEngine.java:87)
> > > > > > > > at
> > > > > >
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > (WSDL2Java.java:21)
> > > > > > > > at
> > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > Method)
> > > > > > > > at
> > > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > > > > > > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > at
> > > > > >
> > > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > >
> > > > > > > > method getExtensionAttributes in ProtType interface doesn't
> > presents
> > > > in
> > > > > > the wsdl1.5.2 anymore.
> > > > > > > >
> > > > > > > > Any idea how to resolve this issue?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > > > --
> > > > > > > > This message was sent on behalf of yura.tkachenko@gmail.comat
> > > > > > openSubscriber.com
> > > > > > > >
> > > > > >
> > > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Ajith Ranabahu
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
> > > --
> > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> Developers)
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Yura.

Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Davanum Srinivas <da...@gmail.com>.
Anne,

Here's the WSDL he was using:
http://issues.apache.org/jira/secure/attachment/12338832/territory.wsdl

And the full bug report:
http://issues.apache.org/jira/browse/AXIS2-1026

Yes, we have already fixed the NPE.

-- dims

On 8/15/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Yura,
>
> Your exception says that it cannot find an *element* called
> "ListOfTerritory". In your last message you showed us a *complexType*
> called ListOfTerritory". Is there also an element with this name? If
> not, then that is the cause of your problem.
>
> I'm with Derek -- the tool should never throw a NPE, so please update
> the JIRA with sufficient information so that Dims and crew can define
> a better exception for this type of WSDL error.
>
> Anne
>
> On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > Ok, here is exception from bug:
> >
> > Caused by:
> > org.apache.axis2.schema.SchemaCompilationException:
> > Referenced element
> > {urn:/crmondemand/xml/territory}ListOfTerritorynot found!
> >         at
> > org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java
> > :1446)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:846)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> > (SchemaCompiler.java:791)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:775)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:446)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
> >         at org.apache.axis2.schema.SchemaCompiler.compile
> > (SchemaCompiler.java:230)
> >         at
> > org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77)
> >         ... 8 more
> >
> > And in the territory description of the ListOfTerritory presents.
> > <xsd:complexType name="ListOfTerritory">
> >  <xsd:sequence>
> >   <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
> > type="xsdLocal1:Territory" />
> >  </xsd:sequence>
> > </xsd:complexType>
> >
> > BTW I think any wsdl which worked with Axis 1.3 should always work with
> > Axis2, am I right?
> > Also for generate stubs using this wsdl in Axis 1.3, I'm used property file
> > with package mappings. Is it possible to use this property file in the
> > WSDL2JAVA in Axis2 1.0 ?
> >
> >
> > 2006/8/15, Davanum Srinivas <da...@gmail.com>:
> > > Bug is closed :) see comments in the bug report.
> > >
> > > thanks,
> > > dims
> > >
> > > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > > >
> > > > I'm using 1.0, the same issue and for nightly build. I logged bug at
> > JIRA:
> > > >
> > > > http://issues.apache.org/jira/browse/AXIS2-1026
> > > >
> > > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > > Hi,
> > > > > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > > > > latest nightlies. if the problem persists please file a Jira (attach
> > > > > the WSDL as well)
> > > > >
> > > > > Ajith
> > > > >
> > > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > > >
> > > > > >
> > > > > > Yura:
> > > > > >
> > > > > > WSDL2Java should never throw a NullPointerException. If it is sent
> > > > invalid
> > > > > > data, it should always throw an exception containing an informative
> > > > error
> > > > > > message instead. Please file a JIRA so that this issue is fixed.
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > > Derek
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > > To: axis-user@ws.apache.org
> > > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Hello, Martin
> > > > > >
> > > > > > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java
> > class
> > > > > > everything was all right, but for Siebel CRM Ondemand Service wsdl
> > I'm
> > > > > > always getting exception:
> > > > > >
> > > > > > Exception in thread "main"
> > > > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > > : java.lang.RuntimeException :
> > > > > > org.apache.axis2.schema.SchemaCompilationException
> > > > > > : java.lang.NullPointerException
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > (CodeGener
> > > > > > ationEngine.java:185)
> > > > > >         at
> > > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > > (WSDL2Code.java:32)
> > > > > >         at
> > > > > > org.apache.axis2.wsdl.WSDL2Java.main
> > (WSDL2Java.java
> > > > :21)
> > > > > > Caused by: java.lang.RuntimeException:
> > > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > > Exception: java.lang.NullPointerException
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > leDBExtension.java:117)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> > (CodeGener
> > > > > > ationEngine.java:140)
> > > > > >         ... 2 more
> > > > > > Caused by:
> > > > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > > > java.lang.NullPoi
> > > > > > nterException
> > > > > >         at
> > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:18
> > > > > > 6)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > > leDBExtension.java :70)
> > > > > >         ... 3 more
> > > > > > Caused by: java.lang.NullPointerException
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > java:360)
> > > > > >         at
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > > (SchemaCompiler.
> > > > > > java:344)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > java:410)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > > java:334)
> > > > > >         at
> > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.process
> > (SchemaCompiler.java:91
> > > > > > 5)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > > .java:878)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > > (SchemaCompi
> > > > > > ler.java:643)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > > ype(SchemaCompiler.java:594)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > > > ava:579)
> > > > > >         at
> > > > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > > > java:366)
> > > > > >         at
> > > > > >
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > (SchemaCompiler.
> > > > > > java:344)
> > > > > >         at
> > > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > > (SchemaCompiler.java:22
> > > > > > 6)
> > > > > >         at
> > > > > >
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > > 1)
> > > > > >         ... 4 more
> > > > > >
> > > > > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't used this
> > file
> > > > or I
> > > > > > missed some parameter, here is my command line:
> > > > > >
> > > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > > >
> > > > > > Let me know if you need some additional info.
> > > > > >
> > > > > > Thanks,
> > > > > > Yura.
> > > > > >
> > > > > >
> > > > > > 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > > > > > > Good Afternoon Yura-
> > > > > > >
> > > > > > > Your WSDL will need to identify the method which will process the
> > > > Request
> > > > > > > in this example the wsdl:operation name="" is the method
> > > > > > >
> > > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1
> > > > in2">
> > > > > > > <wsdl:input
> > message="impl:getSelectFromZipRequest"
> > > > > > name="getSelectFromZipRequest" />
> > > > > > > <wsdl:output
> > message="impl:getSelectFromZipResponse"
> > > > > > name="getSelectFromZipResponse" />
> > > > > > > </wsdl:operation>
> > > > > > > </wsdl:portType>
> > > > > > >
> > > > > > > Anyone else?
> > > > > > > Martin --
> > > > > > >
> > > > > >
> > > >
> > *********************************************************************
> > > > > > > This email message and any files transmitted with it contain
> > > > confidential
> > > > > > > information intended only for the person(s) to whom this email
> > message
> > > > is
> > > > > > > addressed.  If you have received this email message in error,
> > please
> > > > > > notify
> > > > > > > the sender immediately by telephone or email and destroy the
> > original
> > > > > > > message without making a copy.  Thank you.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: <yura.tkachenko@gmail.com >
> > > > > > > To: < axis-user@ws.apache.org>
> > > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > > >
> > > > > > >
> > > > > > > > Hi, there.
> > > > > > > >
> > > > > > > > Everytime when I'm trying to use WSDL2JAVA util to generate
> > client
> > > > stubs
> > > > > > I'm getting exception:
> > > > > > > >
> > > > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > > > >
> > > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > > at
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > > at
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java
> > > > :299)
> > > > > > > > at
> > > > > >
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > > > at
> > > > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > .<init>(CodeGenerationEngine.java:87)
> > > > > > > > at
> > > > > >
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > > (WSDL2Java.java:21)
> > > > > > > > at
> > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > Method)
> > > > > > > > at
> > > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > > > > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > > at
> > > > > >
> > > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > > >
> > > > > > > > method getExtensionAttributes in ProtType interface doesn't
> > presents
> > > > in
> > > > > > the wsdl1.5.2 anymore.
> > > > > > > >
> > > > > > > > Any idea how to resolve this issue?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Yura.
> > > > > > > >
> > > > > > > > --
> > > > > > > > This message was sent on behalf of yura.tkachenko@gmail.com at
> > > > > > openSubscriber.com
> > > > > > > >
> > > > > >
> > > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks,
> > > > > > Yura.
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Ajith Ranabahu
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > >
> > >
> > > --
> > > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Anne Thomas Manes <at...@gmail.com>.
Yura,

Your exception says that it cannot find an *element* called
"ListOfTerritory". In your last message you showed us a *complexType*
called ListOfTerritory". Is there also an element with this name? If
not, then that is the cause of your problem.

I'm with Derek -- the tool should never throw a NPE, so please update
the JIRA with sufficient information so that Dims and crew can define
a better exception for this type of WSDL error.

Anne

On 8/15/06, Yura Tkachenko <yu...@gmail.com> wrote:
>
> Ok, here is exception from bug:
>
> Caused by:
> org.apache.axis2.schema.SchemaCompilationException:
> Referenced element
> {urn:/crmondemand/xml/territory}ListOfTerritorynot found!
>         at
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java
> :1446)
>         at
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1318)
>         at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:846)
>         at
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> (SchemaCompiler.java:791)
>         at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:775)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:446)
>         at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
>         at org.apache.axis2.schema.SchemaCompiler.compile
> (SchemaCompiler.java:230)
>         at
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77)
>         ... 8 more
>
> And in the territory description of the ListOfTerritory presents.
> <xsd:complexType name="ListOfTerritory">
>  <xsd:sequence>
>   <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
> type="xsdLocal1:Territory" />
>  </xsd:sequence>
> </xsd:complexType>
>
> BTW I think any wsdl which worked with Axis 1.3 should always work with
> Axis2, am I right?
> Also for generate stubs using this wsdl in Axis 1.3, I'm used property file
> with package mappings. Is it possible to use this property file in the
> WSDL2JAVA in Axis2 1.0 ?
>
>
> 2006/8/15, Davanum Srinivas <da...@gmail.com>:
> > Bug is closed :) see comments in the bug report.
> >
> > thanks,
> > dims
> >
> > On 8/14/06, Yura Tkachenko < yura.tkachenko@gmail.com> wrote:
> > >
> > > I'm using 1.0, the same issue and for nightly build. I logged bug at
> JIRA:
> > >
> > > http://issues.apache.org/jira/browse/AXIS2-1026
> > >
> > > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > > Hi,
> > > > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > > > latest nightlies. if the problem persists please file a Jira (attach
> > > > the WSDL as well)
> > > >
> > > > Ajith
> > > >
> > > > On 8/14/06, Derek < derek-axis@crc-corp.com> wrote:
> > > > >
> > > > >
> > > > > Yura:
> > > > >
> > > > > WSDL2Java should never throw a NullPointerException. If it is sent
> > > invalid
> > > > > data, it should always throw an exception containing an informative
> > > error
> > > > > message instead. Please file a JIRA so that this issue is fixed.
> > > > >
> > > > > Thank you.
> > > > >
> > > > > Derek
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com ]
> > > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > > To: axis-user@ws.apache.org
> > > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > > >
> > > > >
> > > > >
> > > > > Hello, Martin
> > > > >
> > > > > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java
> class
> > > > > everything was all right, but for Siebel CRM Ondemand Service wsdl
> I'm
> > > > > always getting exception:
> > > > >
> > > > > Exception in thread "main"
> > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > > : java.lang.RuntimeException :
> > > > > org.apache.axis2.schema.SchemaCompilationException
> > > > > : java.lang.NullPointerException
> > > > >         at
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> (CodeGener
> > > > > ationEngine.java:185)
> > > > >         at
> > > > > org.apache.axis2.wsdl.WSDL2Code.main
> > > (WSDL2Code.java:32)
> > > > >         at
> > > > > org.apache.axis2.wsdl.WSDL2Java.main
> (WSDL2Java.java
> > > :21)
> > > > > Caused by: java.lang.RuntimeException:
> > > > > org.apache.axis2.schema.SchemaCompilation
> > > > > Exception: java.lang.NullPointerException
> > > > >         at
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > leDBExtension.java:117)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> (CodeGener
> > > > > ationEngine.java:140)
> > > > >         ... 2 more
> > > > > Caused by:
> > > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > > java.lang.NullPoi
> > > > > nterException
> > > > >         at
> > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > (SchemaCompiler.java:18
> > > > > 6)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > > leDBExtension.java :70)
> > > > >         ... 3 more
> > > > > Caused by: java.lang.NullPointerException
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > java:360)
> > > > >         at
> > > > >
> org.apache.axis2.schema.SchemaCompiler.processElement
> > > > > (SchemaCompiler.
> > > > > java:344)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > java:410)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > > java:334)
> > > > >         at
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.process
> (SchemaCompiler.java:91
> > > > > 5)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > > .java:878)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > > (SchemaCompi
> > > > > ler.java:643)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > > ype(SchemaCompiler.java:594)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > > ava:579)
> > > > >         at
> > > > >
> org.apache.axis2.schema.SchemaCompiler.processElement
> > > (SchemaCompiler.
> > > > > java:366)
> > > > >         at
> > > > >
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> > > > > java:344)
> > > > >         at
> > > > > org.apache.axis2.schema.SchemaCompiler.compile
> > > (SchemaCompiler.java:22
> > > > > 6)
> > > > >         at
> > > > >
> > >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > > 1)
> > > > >         ... 4 more
> > > > >
> > > > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > > > NstoPkg.properties file to generate stubs. Axis2 doesn't used this
> file
> > > or I
> > > > > missed some parameter, here is my command line:
> > > > >
> > > > > WSDL2JAVA.bat -uri account.wsdl
> > > > >
> > > > > Let me know if you need some additional info.
> > > > >
> > > > > Thanks,
> > > > > Yura.
> > > > >
> > > > >
> > > > > 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > > > > > Good Afternoon Yura-
> > > > > >
> > > > > > Your WSDL will need to identify the method which will process the
> > > Request
> > > > > > in this example the wsdl:operation name="" is the method
> > > > > >
> > > > > > <wsdl:portType name="SelectFromZip">
> > > > > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1
> > > in2">
> > > > > > <wsdl:input
> message="impl:getSelectFromZipRequest"
> > > > > name="getSelectFromZipRequest" />
> > > > > > <wsdl:output
> message="impl:getSelectFromZipResponse"
> > > > > name="getSelectFromZipResponse" />
> > > > > > </wsdl:operation>
> > > > > > </wsdl:portType>
> > > > > >
> > > > > > Anyone else?
> > > > > > Martin --
> > > > > >
> > > > >
> > >
> *********************************************************************
> > > > > > This email message and any files transmitted with it contain
> > > confidential
> > > > > > information intended only for the person(s) to whom this email
> message
> > > is
> > > > > > addressed.  If you have received this email message in error,
> please
> > > > > notify
> > > > > > the sender immediately by telephone or email and destroy the
> original
> > > > > > message without making a copy.  Thank you.
> > > > > >
> > > > > >
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: <yura.tkachenko@gmail.com >
> > > > > > To: < axis-user@ws.apache.org>
> > > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > > >
> > > > > >
> > > > > > > Hi, there.
> > > > > > >
> > > > > > > Everytime when I'm trying to use WSDL2JAVA util to generate
> client
> > > stubs
> > > > > I'm getting exception:
> > > > > > >
> > > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > > >
> > >
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > > at
> > > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > > at
> > > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java
> > > :299)
> > > > > > > at
> > > > >
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > > at
> > > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > .<init>(CodeGenerationEngine.java:87)
> > > > > > > at
> > > > >
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > > (WSDL2Java.java:21)
> > > > > > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > > > > at
> > > > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > > > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > (DelegatingMethodAccessorImpl.java :25)
> > > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > > at
> > > > >
> > >
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > > >
> > > > > > > method getExtensionAttributes in ProtType interface doesn't
> presents
> > > in
> > > > > the wsdl1.5.2 anymore.
> > > > > > >
> > > > > > > Any idea how to resolve this issue?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Yura.
> > > > > > >
> > > > > > > --
> > > > > > > This message was sent on behalf of yura.tkachenko@gmail.com at
> > > > > openSubscriber.com
> > > > > > >
> > > > >
> > >
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > > >
> > > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks,
> > > > > Yura.
> > > > >
> > > >
> > > >
> > > > --
> > > > Ajith Ranabahu
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Yura.
> >
> >
> > --
> > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
>
> --
> Thanks,
> Yura.

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
Ok, here is exception from bug:

Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced
element {urn:/crmondemand/xml/territory}ListOfTerritorynot found!
        at org.apache.axis2.schema.SchemaCompiler.process(
SchemaCompiler.java:1446)
        at org.apache.axis2.schema.SchemaCompiler.processParticle(
SchemaCompiler.java:1318)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(
SchemaCompiler.java:846)
        at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(
SchemaCompiler.java:791)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(
SchemaCompiler.java:775)
        at org.apache.axis2.schema.SchemaCompiler.processElement(
SchemaCompiler.java:475)
        at org.apache.axis2.schema.SchemaCompiler.processElement(
SchemaCompiler.java:446)
        at org.apache.axis2.schema.SchemaCompiler.compile(
SchemaCompiler.java:308)
        at org.apache.axis2.schema.SchemaCompiler.compile(
SchemaCompiler.java:230)
        at org.apache.axis2.schema.ExtensionUtility.invoke(
ExtensionUtility.java:77)
        ... 8 more

And in the territory description of the ListOfTerritory presents.
<xsd:complexType name="ListOfTerritory">
 <xsd:sequence>
  <xsd:element name="Territory" maxOccurs="unbounded" minOccurs="0"
type="xsdLocal1:Territory" />
 </xsd:sequence>
</xsd:complexType>

BTW I think any wsdl which worked with Axis 1.3 should always work with
Axis2, am I right?
Also for generate stubs using this wsdl in Axis 1.3, I'm used property file
with package mappings. Is it possible to use this property file in the
WSDL2JAVA in Axis2 1.0 ?


2006/8/15, Davanum Srinivas <da...@gmail.com>:
>
> Bug is closed :) see comments in the bug report.
>
> thanks,
> dims
>
> On 8/14/06, Yura Tkachenko <yu...@gmail.com> wrote:
> >
> > I'm using 1.0, the same issue and for nightly build. I logged bug at
> JIRA:
> >
> > http://issues.apache.org/jira/browse/AXIS2-1026
> >
> > 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > > Hi,
> > > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > > latest nightlies. if the problem persists please file a Jira (attach
> > > the WSDL as well)
> > >
> > > Ajith
> > >
> > > On 8/14/06, Derek <de...@crc-corp.com> wrote:
> > > >
> > > >
> > > > Yura:
> > > >
> > > > WSDL2Java should never throw a NullPointerException. If it is sent
> > invalid
> > > > data, it should always throw an exception containing an informative
> > error
> > > > message instead. Please file a JIRA so that this issue is fixed.
> > > >
> > > > Thank you.
> > > >
> > > > Derek
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com]
> > > > Sent: Monday, August 14, 2006 7:11 AM
> > > > To: axis-user@ws.apache.org
> > > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > > >
> > > >
> > > >
> > > > Hello, Martin
> > > >
> > > > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java
> class
> > > > everything was all right, but for Siebel CRM Ondemand Service wsdl
> I'm
> > > > always getting exception:
> > > >
> > > > Exception in thread "main"
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > > : java.lang.RuntimeException:
> > > > org.apache.axis2.schema.SchemaCompilationException
> > > > : java.lang.NullPointerException
> > > >         at
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > > > ationEngine.java:185)
> > > >         at
> > > > org.apache.axis2.wsdl.WSDL2Code.main
> > (WSDL2Code.java:32)
> > > >         at
> > > > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java
> > :21)
> > > > Caused by: java.lang.RuntimeException:
> > > > org.apache.axis2.schema.SchemaCompilation
> > > > Exception: java.lang.NullPointerException
> > > >         at
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > leDBExtension.java:117)
> > > >         at
> > > >
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > > > ationEngine.java:140)
> > > >         ... 2 more
> > > > Caused by:
> > > > org.apache.axis2.schema.SchemaCompilationException:
> > > > java.lang.NullPoi
> > > > nterException
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.compile
> > (SchemaCompiler.java:18
> > > > 6)
> > > >         at
> > > >
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > > leDBExtension.java :70)
> > > >         ... 3 more
> > > > Caused by: java.lang.NullPointerException
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > java:360)
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > > (SchemaCompiler.
> > > > java:344)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > java:410)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > java:334)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:91
> > > > 5)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > > .java:878)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > > (SchemaCompi
> > > > ler.java:643)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > > ype(SchemaCompiler.java:594)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > > ava:579)
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.processElement
> > (SchemaCompiler.
> > > > java:366)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > > java:344)
> > > >         at
> > > > org.apache.axis2.schema.SchemaCompiler.compile
> > (SchemaCompiler.java:22
> > > > 6)
> > > >         at
> > > >
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > > 1)
> > > >         ... 4 more
> > > >
> > > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > > NstoPkg.properties file to generate stubs. Axis2 doesn't used this
> file
> > or I
> > > > missed some parameter, here is my command line:
> > > >
> > > > WSDL2JAVA.bat -uri account.wsdl
> > > >
> > > > Let me know if you need some additional info.
> > > >
> > > > Thanks,
> > > > Yura.
> > > >
> > > >
> > > > 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > > > > Good Afternoon Yura-
> > > > >
> > > > > Your WSDL will need to identify the method which will process the
> > Request
> > > > > in this example the wsdl:operation name="" is the method
> > > > >
> > > > > <wsdl:portType name="SelectFromZip">
> > > > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1
> > in2">
> > > > > <wsdl:input message="impl:getSelectFromZipRequest"
> > > > name="getSelectFromZipRequest" />
> > > > > <wsdl:output message="impl:getSelectFromZipResponse"
> > > > name="getSelectFromZipResponse" />
> > > > > </wsdl:operation>
> > > > > </wsdl:portType>
> > > > >
> > > > > Anyone else?
> > > > > Martin --
> > > > >
> > > >
> > *********************************************************************
> > > > > This email message and any files transmitted with it contain
> > confidential
> > > > > information intended only for the person(s) to whom this email
> message
> > is
> > > > > addressed.  If you have received this email message in error,
> please
> > > > notify
> > > > > the sender immediately by telephone or email and destroy the
> original
> > > > > message without making a copy.  Thank you.
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: <yura.tkachenko@gmail.com >
> > > > > To: <ax...@ws.apache.org>
> > > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > > >
> > > > >
> > > > > > Hi, there.
> > > > > >
> > > > > > Everytime when I'm trying to use WSDL2JAVA util to generate
> client
> > stubs
> > > > I'm getting exception:
> > > > > >
> > > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > >
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > > at
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > > (WSDL2AxisServiceBuilder.java:369)
> > > > > > at
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(
> WSDL2AxisServiceBuilder.java
> > :299)
> > > > > > at
> > > >
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > > (WSDL2AxisServiceBuilder.java:238)
> > > > > > at
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > .<init>(CodeGenerationEngine.java:87)
> > > > > > at
> > > > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > > (WSDL2Java.java:21)
> > > > > > at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > > at
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > (DelegatingMethodAccessorImpl.java:25)
> > > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > at
> > > >
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > > >
> > > > > > method getExtensionAttributes in ProtType interface doesn't
> presents
> > in
> > > > the wsdl1.5.2 anymore.
> > > > > >
> > > > > > Any idea how to resolve this issue?
> > > > > >
> > > > > > Thanks,
> > > > > > Yura.
> > > > > >
> > > > > > --
> > > > > > This message was sent on behalf of yura.tkachenko@gmail.com at
> > > > openSubscriber.com
> > > > > >
> > > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > > >
> > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Yura.
> > > >
> > >
> > >
> > > --
> > > Ajith Ranabahu
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Yura.

Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Davanum Srinivas <da...@gmail.com>.
Bug is closed :) see comments in the bug report.

thanks,
dims

On 8/14/06, Yura Tkachenko <yu...@gmail.com> wrote:
>
> I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA:
>
> http://issues.apache.org/jira/browse/AXIS2-1026
>
> 2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
> > Hi,
> > Is this 1.0 or the latest SVN ? if its 1.o please check with the
> > latest nightlies. if the problem persists please file a Jira (attach
> > the WSDL as well)
> >
> > Ajith
> >
> > On 8/14/06, Derek <de...@crc-corp.com> wrote:
> > >
> > >
> > > Yura:
> > >
> > > WSDL2Java should never throw a NullPointerException. If it is sent
> invalid
> > > data, it should always throw an exception containing an informative
> error
> > > message instead. Please file a JIRA so that this issue is fixed.
> > >
> > > Thank you.
> > >
> > > Derek
> > >
> > >
> > > -----Original Message-----
> > > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com]
> > > Sent: Monday, August 14, 2006 7:11 AM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> > >
> > >
> > >
> > > Hello, Martin
> > >
> > > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class
> > > everything was all right, but for Siebel CRM Ondemand Service wsdl I'm
> > > always getting exception:
> > >
> > > Exception in thread "main"
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > > : java.lang.RuntimeException:
> > > org.apache.axis2.schema.SchemaCompilationException
> > > : java.lang.NullPointerException
> > >         at
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > > ationEngine.java:185)
> > >         at
> > > org.apache.axis2.wsdl.WSDL2Code.main
> (WSDL2Code.java:32)
> > >         at
> > > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java
> :21)
> > > Caused by: java.lang.RuntimeException:
> > > org.apache.axis2.schema.SchemaCompilation
> > > Exception: java.lang.NullPointerException
> > >         at
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > leDBExtension.java:117)
> > >         at
> > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > > ationEngine.java:140)
> > >         ... 2 more
> > > Caused by:
> > > org.apache.axis2.schema.SchemaCompilationException:
> > > java.lang.NullPoi
> > > nterException
> > >         at
> > > org.apache.axis2.schema.SchemaCompiler.compile
> (SchemaCompiler.java:18
> > > 6)
> > >         at
> > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > > leDBExtension.java :70)
> > >         ... 3 more
> > > Caused by: java.lang.NullPointerException
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > java:360)
> > >         at
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> > > (SchemaCompiler.
> > > java:344)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > java:410)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > java:334)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:91
> > > 5)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > > .java:878)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> > > (SchemaCompi
> > > ler.java:643)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > > ype(SchemaCompiler.java:594)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > > ava:579)
> > >         at
> > > org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> > > java:366)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > > java:344)
> > >         at
> > > org.apache.axis2.schema.SchemaCompiler.compile
> (SchemaCompiler.java:22
> > > 6)
> > >         at
> > >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > > 1)
> > >         ... 4 more
> > >
> > > Don't know what does it means, but for Axis 1.3 I'm used also
> > > NstoPkg.properties file to generate stubs. Axis2 doesn't used this file
> or I
> > > missed some parameter, here is my command line:
> > >
> > > WSDL2JAVA.bat -uri account.wsdl
> > >
> > > Let me know if you need some additional info.
> > >
> > > Thanks,
> > > Yura.
> > >
> > >
> > > 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > > > Good Afternoon Yura-
> > > >
> > > > Your WSDL will need to identify the method which will process the
> Request
> > > > in this example the wsdl:operation name="" is the method
> > > >
> > > > <wsdl:portType name="SelectFromZip">
> > > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1
> in2">
> > > > <wsdl:input message="impl:getSelectFromZipRequest"
> > > name="getSelectFromZipRequest" />
> > > > <wsdl:output message="impl:getSelectFromZipResponse"
> > > name="getSelectFromZipResponse" />
> > > > </wsdl:operation>
> > > > </wsdl:portType>
> > > >
> > > > Anyone else?
> > > > Martin --
> > > >
> > >
> *********************************************************************
> > > > This email message and any files transmitted with it contain
> confidential
> > > > information intended only for the person(s) to whom this email message
> is
> > > > addressed.  If you have received this email message in error, please
> > > notify
> > > > the sender immediately by telephone or email and destroy the original
> > > > message without making a copy.  Thank you.
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: <yura.tkachenko@gmail.com >
> > > > To: <ax...@ws.apache.org>
> > > > Sent: Sunday, August 13, 2006 6:21 AM
> > > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > > >
> > > >
> > > > > Hi, there.
> > > > >
> > > > > Everytime when I'm trying to use WSDL2JAVA util to generate client
> stubs
> > > I'm getting exception:
> > > > >
> > > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > >
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > > at
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > > (WSDL2AxisServiceBuilder.java:369)
> > > > > at
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java
> :299)
> > > > > at
> > >
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > > (WSDL2AxisServiceBuilder.java:238)
> > > > > at
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> .<init>(CodeGenerationEngine.java:87)
> > > > > at
> > > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > > (WSDL2Java.java:21)
> > > > > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > > > at
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > (DelegatingMethodAccessorImpl.java:25)
> > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > at
> > >
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > > >
> > > > > method getExtensionAttributes in ProtType interface doesn't presents
> in
> > > the wsdl1.5.2 anymore.
> > > > >
> > > > > Any idea how to resolve this issue?
> > > > >
> > > > > Thanks,
> > > > > Yura.
> > > > >
> > > > > --
> > > > > This message was sent on behalf of yura.tkachenko@gmail.com at
> > > openSubscriber.com
> > > > >
> > >
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Yura.
> > >
> >
> >
> > --
> > Ajith Ranabahu
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Thanks,
> Yura.


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
I'm using 1.0, the same issue and for nightly build. I logged bug at JIRA:

http://issues.apache.org/jira/browse/AXIS2-1026

2006/8/14, Ajith Ranabahu <aj...@gmail.com>:
>
> Hi,
> Is this 1.0 or the latest SVN ? if its 1.o please check with the
> latest nightlies. if the problem persists please file a Jira (attach
> the WSDL as well)
>
> Ajith
>
> On 8/14/06, Derek <de...@crc-corp.com> wrote:
> >
> >
> > Yura:
> >
> > WSDL2Java should never throw a NullPointerException. If it is sent
> invalid
> > data, it should always throw an exception containing an informative
> error
> > message instead. Please file a JIRA so that this issue is fixed.
> >
> > Thank you.
> >
> > Derek
> >
> >
> > -----Original Message-----
> > From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com]
> > Sent: Monday, August 14, 2006 7:11 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: [Axis2]Unable to use WSDL2JAVA.
> >
> >
> >
> > Hello, Martin
> >
> > I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class
> > everything was all right, but for Siebel CRM Ondemand Service wsdl I'm
> > always getting exception:
> >
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException
> > : java.lang.RuntimeException:
> > org.apache.axis2.schema.SchemaCompilationException
> > : java.lang.NullPointerException
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > ationEngine.java:185)
> >         at
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> >         at
> > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java :21)
> > Caused by: java.lang.RuntimeException:
> > org.apache.axis2.schema.SchemaCompilation
> > Exception: java.lang.NullPointerException
> >         at
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > leDBExtension.java:117)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> > ationEngine.java:140)
> >         ... 2 more
> > Caused by:
> > org.apache.axis2.schema.SchemaCompilationException:
> > java.lang.NullPoi
> > nterException
> >         at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > 6)
> >         at
> > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> > leDBExtension.java :70)
> >         ... 3 more
> > Caused by: java.lang.NullPointerException
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > java:360)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement
> > (SchemaCompiler.
> > java:344)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > java:410)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > java:334)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:91
> > 5)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> > .java:878)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processComplexType
> > (SchemaCompi
> > ler.java:643)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> > ype(SchemaCompiler.java:594)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> > ava:579)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > java:366)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> > java:344)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:22
> > 6)
> >         at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> > 1)
> >         ... 4 more
> >
> > Don't know what does it means, but for Axis 1.3 I'm used also
> > NstoPkg.properties file to generate stubs. Axis2 doesn't used this file
> or I
> > missed some parameter, here is my command line:
> >
> > WSDL2JAVA.bat -uri account.wsdl
> >
> > Let me know if you need some additional info.
> >
> > Thanks,
> > Yura.
> >
> >
> > 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > > Good Afternoon Yura-
> > >
> > > Your WSDL will need to identify the method which will process the
> Request
> > > in this example the wsdl:operation name="" is the method
> > >
> > > <wsdl:portType name="SelectFromZip">
> > > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1
> in2">
> > > <wsdl:input message="impl:getSelectFromZipRequest"
> > name="getSelectFromZipRequest" />
> > > <wsdl:output message="impl:getSelectFromZipResponse"
> > name="getSelectFromZipResponse" />
> > > </wsdl:operation>
> > > </wsdl:portType>
> > >
> > > Anyone else?
> > > Martin --
> > >
> > *********************************************************************
> > > This email message and any files transmitted with it contain
> confidential
> > > information intended only for the person(s) to whom this email message
> is
> > > addressed.  If you have received this email message in error, please
> > notify
> > > the sender immediately by telephone or email and destroy the original
> > > message without making a copy.  Thank you.
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: <yura.tkachenko@gmail.com >
> > > To: <ax...@ws.apache.org>
> > > Sent: Sunday, August 13, 2006 6:21 AM
> > > Subject: [Axis2]Unable to use WSDL2JAVA.
> > >
> > >
> > > > Hi, there.
> > > >
> > > > Everytime when I'm trying to use WSDL2JAVA util to generate client
> stubs
> > I'm getting exception:
> > > >
> > > > Exception in thread "main" java.lang.NoSuchMethodError:
> > javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> > (WSDL2AxisServiceBuilder.java:369)
> > > > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(
> WSDL2AxisServiceBuilder.java:299)
> > > > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> > (WSDL2AxisServiceBuilder.java:238)
> > > > at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:87)
> > > > at
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > at org.apache.axis2.wsdl.WSDL2Java.main
> > (WSDL2Java.java:21)
> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > > > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > at
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > > >
> > > > method getExtensionAttributes in ProtType interface doesn't presents
> in
> > the wsdl1.5.2 anymore.
> > > >
> > > > Any idea how to resolve this issue?
> > > >
> > > > Thanks,
> > > > Yura.
> > > >
> > > > --
> > > > This message was sent on behalf of yura.tkachenko@gmail.com at
> > openSubscriber.com
> > > >
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> >
> >
> >
> > --
> > Thanks,
> > Yura.
> >
>
>
> --
> Ajith Ranabahu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Yura.

Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Is this 1.0 or the latest SVN ? if its 1.o please check with the
latest nightlies. if the problem persists please file a Jira (attach
the WSDL as well)

Ajith

On 8/14/06, Derek <de...@crc-corp.com> wrote:
>
>
> Yura:
>
> WSDL2Java should never throw a NullPointerException. If it is sent invalid
> data, it should always throw an exception containing an informative error
> message instead. Please file a JIRA so that this issue is fixed.
>
> Thank you.
>
> Derek
>
>
> -----Original Message-----
> From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com]
> Sent: Monday, August 14, 2006 7:11 AM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2]Unable to use WSDL2JAVA.
>
>
>
> Hello, Martin
>
> I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class
> everything was all right, but for Siebel CRM Ondemand Service wsdl I'm
> always getting exception:
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException:
> org.apache.axis2.schema.SchemaCompilationException
> : java.lang.NullPointerException
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:185)
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java :21)
> Caused by: java.lang.RuntimeException:
> org.apache.axis2.schema.SchemaCompilation
> Exception: java.lang.NullPointerException
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:117)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:140)
>         ... 2 more
> Caused by:
> org.apache.axis2.schema.SchemaCompilationException:
> java.lang.NullPoi
> nterException
>         at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> 6)
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java :70)
>         ... 3 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:360)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement
> (SchemaCompiler.
> java:344)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:410)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:334)
>         at
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:91
> 5)
>         at
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> .java:878)
>         at
> org.apache.axis2.schema.SchemaCompiler.processComplexType
> (SchemaCompi
> ler.java:643)
>         at
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
> ype(SchemaCompiler.java:594)
>         at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> ava:579)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:366)
>         at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:344)
>         at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:22
> 6)
>         at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
> 1)
>         ... 4 more
>
> Don't know what does it means, but for Axis 1.3 I'm used also
> NstoPkg.properties file to generate stubs. Axis2 doesn't used this file or I
> missed some parameter, here is my command line:
>
> WSDL2JAVA.bat -uri account.wsdl
>
> Let me know if you need some additional info.
>
> Thanks,
> Yura.
>
>
> 2006/8/13, Martin Gainty <mg...@hotmail.com>:
> > Good Afternoon Yura-
> >
> > Your WSDL will need to identify the method which will process the Request
> > in this example the wsdl:operation name="" is the method
> >
> > <wsdl:portType name="SelectFromZip">
> > - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1 in2">
> > <wsdl:input message="impl:getSelectFromZipRequest"
> name="getSelectFromZipRequest" />
> > <wsdl:output message="impl:getSelectFromZipResponse"
> name="getSelectFromZipResponse" />
> > </wsdl:operation>
> > </wsdl:portType>
> >
> > Anyone else?
> > Martin --
> >
> *********************************************************************
> > This email message and any files transmitted with it contain confidential
> > information intended only for the person(s) to whom this email message is
> > addressed.  If you have received this email message in error, please
> notify
> > the sender immediately by telephone or email and destroy the original
> > message without making a copy.  Thank you.
> >
> >
> >
> > ----- Original Message -----
> > From: <yura.tkachenko@gmail.com >
> > To: <ax...@ws.apache.org>
> > Sent: Sunday, August 13, 2006 6:21 AM
> > Subject: [Axis2]Unable to use WSDL2JAVA.
> >
> >
> > > Hi, there.
> > >
> > > Everytime when I'm trying to use WSDL2JAVA util to generate client stubs
> I'm getting exception:
> > >
> > > Exception in thread "main" java.lang.NoSuchMethodError:
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > > at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
> (WSDL2AxisServiceBuilder.java:369)
> > > at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)
> > > at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
> (WSDL2AxisServiceBuilder.java:238)
> > > at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
> > > at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > at org.apache.axis2.wsdl.WSDL2Java.main
> (WSDL2Java.java:21)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > > at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> > >
> > > method getExtensionAttributes in ProtType interface doesn't presents in
> the wsdl1.5.2 anymore.
> > >
> > > Any idea how to resolve this issue?
> > >
> > > Thanks,
> > > Yura.
> > >
> > > --
> > > This message was sent on behalf of yura.tkachenko@gmail.com at
> openSubscriber.com
> > >
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
>
>
>
> --
> Thanks,
> Yura.
>


-- 
Ajith Ranabahu

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


RE: [Axis2]Unable to use WSDL2JAVA.

Posted by Derek <de...@crc-corp.com>.
Yura:
 
WSDL2Java should never throw a NullPointerException. If it is sent invalid
data, it should always throw an exception containing an informative error
message instead. Please file a JIRA so that this issue is fixed.
 
Thank you.
 
Derek

-----Original Message-----
From: Yura Tkachenko [mailto:yura.tkachenko@gmail.com] 
Sent: Monday, August 14, 2006 7:11 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2]Unable to use WSDL2JAVA.


Hello, Martin
 
I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class
everything was all right, but for Siebel CRM Ondemand Service wsdl I'm
always getting exception:
 
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilationException
: java.lang.NullPointerException
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:185)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java :21)
Caused by: java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilation
Exception: java.lang.NullPointerException
        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:117)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:140)
        ... 2 more
Caused by: org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPoi
nterException
        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
6)
        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java :70)
        ... 3 more
Caused by: java.lang.NullPointerException
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:360)
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:344)
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:410)
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:334) 
        at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:91
5)
        at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
.java:878)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType
(SchemaCompi
ler.java:643)
        at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
ype(SchemaCompiler.java:594)
        at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j 
ava:579)
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:366)
        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:344)
        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:22
6)
        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:18
1)
        ... 4 more
 
Don't know what does it means, but for Axis 1.3 I'm used also
NstoPkg.properties file to generate stubs. Axis2 doesn't used this file or I
missed some parameter, here is my command line:
 
WSDL2JAVA.bat -uri account.wsdl
 
Let me know if you need some additional info.
 
Thanks,
Yura.

 
2006/8/13, Martin Gainty <mg...@hotmail.com>: 

Good Afternoon Yura-

Your WSDL will need to identify the method which will process the Request
in this example the wsdl:operation name="" is the method 

<wsdl:portType name="SelectFromZip">
- <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1 in2">
<wsdl:input message="impl:getSelectFromZipRequest"
name="getSelectFromZipRequest" /> 
<wsdl:output message="impl:getSelectFromZipResponse"
name="getSelectFromZipResponse" />
</wsdl:operation>
</wsdl:portType>

Anyone else?
Martin --
********************************************************************* 
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify 
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message -----
From: <yura.tkachenko@gmail.com  <ma...@gmail.com> >
To: <ax...@ws.apache.org>
Sent: Sunday, August 13, 2006 6:21 AM
Subject: [Axis2]Unable to use WSDL2JAVA.


> Hi, there.
>
> Everytime when I'm trying to use WSDL2JAVA util to generate client stubs
I'm getting exception: 
>
> Exception in thread "main" java.lang.NoSuchMethodError:
javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> at org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType
(WSDL2AxisServiceBuilder.java:369)
> at
org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2Axi
sServiceBuilder.java:299)
> at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService
(WSDL2AxisServiceBuilder.java:238)
> at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngi
ne.java:87)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main (WSDL2Java.java:21)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
>
> method getExtensionAttributes in ProtType interface doesn't presents in
the wsdl1.5.2 anymore.
>
> Any idea how to resolve this issue?
>
> Thanks,
> Yura.
>
> --
> This message was sent on behalf of yura.tkachenko@gmail.com
<ma...@gmail.com> at openSubscriber.com
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
>
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
<ma...@ws.apache.org> 
>
>




-- 
Thanks,
Yura. 


Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Yura Tkachenko <yu...@gmail.com>.
Hello, Martin

I solved this issue: when I run WSDL2JAVA.bat file not Wsdl2Java class
everything was all right, but for Siebel CRM Ondemand Service wsdl I'm
always getting exception:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilationException
: java.lang.NullPointerException
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
(CodeGener
ationEngine.java:185)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilation
Exception: java.lang.NullPointerException
        at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
(Simp
leDBExtension.java:117)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
(CodeGener
ationEngine.java:140)
        ... 2 more
Caused by: org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPoi
nterException
        at org.apache.axis2.schema.SchemaCompiler.compile(
SchemaCompiler.java:18
6)
        at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage
(Simp
leDBExtension.java:70)
        ... 3 more
Caused by: java.lang.NullPointerException
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:360)
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:344)
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:410)
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:334)
        at org.apache.axis2.schema.SchemaCompiler.process(
SchemaCompiler.java:91
5)
        at org.apache.axis2.schema.SchemaCompiler.processParticle
(SchemaCompiler
.java:878)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType
(SchemaCompi
ler.java:643)
        at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
ype(SchemaCompiler.java:594)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(
SchemaCompiler.j
ava:579)
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:366)
        at org.apache.axis2.schema.SchemaCompiler.processElement
(SchemaCompiler.
java:344)
        at org.apache.axis2.schema.SchemaCompiler.compile(
SchemaCompiler.java:22
6)
        at org.apache.axis2.schema.SchemaCompiler.compile(
SchemaCompiler.java:18
1)
        ... 4 more

Don't know what does it means, but for Axis 1.3 I'm used also
NstoPkg.properties file to generate stubs. Axis2 doesn't used this file or I
missed some parameter, here is my command line:

WSDL2JAVA.bat -uri account.wsdl

Let me know if you need some additional info.

Thanks,
Yura.


2006/8/13, Martin Gainty <mg...@hotmail.com>:
>
> Good Afternoon Yura-
>
> Your WSDL will need to identify the method which will process the Request
> in this example the wsdl:operation name="" is the method
>
> <wsdl:portType name="SelectFromZip">
> - <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1 in2">
> <wsdl:input message="impl:getSelectFromZipRequest"
> name="getSelectFromZipRequest" />
> <wsdl:output message="impl:getSelectFromZipResponse"
> name="getSelectFromZipResponse" />
> </wsdl:operation>
> </wsdl:portType>
>
> Anyone else?
> Martin --
> *********************************************************************
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
>
>
> ----- Original Message -----
> From: <yu...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Sunday, August 13, 2006 6:21 AM
> Subject: [Axis2]Unable to use WSDL2JAVA.
>
>
> > Hi, there.
> >
> > Everytime when I'm trying to use WSDL2JAVA util to generate client stubs
> I'm getting exception:
> >
> > Exception in thread "main" java.lang.NoSuchMethodError:
> javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> > at org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(
> WSDL2AxisServiceBuilder.java:369)
> > at org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(
> WSDL2AxisServiceBuilder.java:299)
> > at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(
> WSDL2AxisServiceBuilder.java:238)
> > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:87)
> > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> >
> > method getExtensionAttributes in ProtType interface doesn't presents in
> the wsdl1.5.2 anymore.
> >
> > Any idea how to resolve this issue?
> >
> > Thanks,
> > Yura.
> >
> > --
> > This message was sent on behalf of yura.tkachenko@gmail.com at
> openSubscriber.com
> > http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >




-- 
Thanks,
Yura.

Re: [Axis2]Unable to use WSDL2JAVA.

Posted by Martin Gainty <mg...@hotmail.com>.
Good Afternoon Yura-

Your WSDL will need to identify the method which will process the Request
 in this example the wsdl:operation name="" is the method 

 <wsdl:portType name="SelectFromZip">
- <wsdl:operation name="getSelectFromZip" parameterOrder="in0 in1 in2">
  <wsdl:input message="impl:getSelectFromZipRequest" name="getSelectFromZipRequest" /> 
  <wsdl:output message="impl:getSelectFromZipResponse" name="getSelectFromZipResponse" /> 
  </wsdl:operation>
  </wsdl:portType>

Anyone else?
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: <yu...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Sunday, August 13, 2006 6:21 AM
Subject: [Axis2]Unable to use WSDL2JAVA.


> Hi, there.
> 
> Everytime when I'm trying to use WSDL2JAVA util to generate client stubs I'm getting exception:
> 
> Exception in thread "main" java.lang.NoSuchMethodError: javax.wsdl.PortType.getExtensionAttributes()Ljava/util/Map;
> at org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:369)
> at org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)
> at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> 
> method getExtensionAttributes in ProtType interface doesn't presents in the wsdl1.5.2 anymore.
> 
> Any idea how to resolve this issue?
> 
> Thanks,
> Yura.
> 
> --
> This message was sent on behalf of yura.tkachenko@gmail.com at openSubscriber.com
> http://opensubscriber.com/messages/axis-user@ws.apache.org/topic.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
>