Did u use the 1.1 version? I tried it on this, it worked ok. 1.1 is the
latest axis release so better use this as its solid

Thanks,
Keith

On 11/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

 Keith,


Here is the WSDL file



<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions name="ConferenceScheduler"  targetNamespace="
http://scheduler.wipro.com/scheduler";  xmlns="
http://schemas.xmlsoap.org/wsdl/";

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";  xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/";

xmlns:tns= "http://scheduler.wipro.com/scheduler";  xmlns:xsd="
http://www.w3.org/2001/XMLSchema";

xmlns:xsd1="http://scheduler.wipro.com/xsd"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

<wsdl:types>

<xsd:schema targetNamespace="http://scheduler.wipro.com/xsd";

xmlns="http://www.w3.org/2001/XMLSchema";

elementFormDefault="qualified">

<xsd:element name="ConferenceBookingDetails">

<xsd:complexType>

<xsd:all>

<xsd:element name="conferenceId" type="integer"/>

<xsd:element name="confAgenda" type="string"/>

<xsd:element name="endTime" type="string"/>

<xsd:element name="maxParticipants" type="integer"/>

<xsd:element name="passCode" type="string"/>

<xsd:element name="conferenceEndDate" type="string"/>

<xsd:element name="conferenceEndTime" type="string"/>

<xsd:element name="conferenceStartDate" type="string"/>

<xsd:element name="conferenceStartTime" type="string"/>

<xsd:element name="title" type="string"/>

<xsd:element name="startTime" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

<xsd:element name="ParticipantDetails">

<xsd:complexType>

<xsd:all>

<xsd:element name="participantId" type="int"/>

<xsd:element name="email" type="string"/>

<xsd:element name="firstName" type="string"/>

<xsd:element name="lastName" type="string"/>

<xsd:element name="participantType" type="integer"/>

<xsd:element name="guestCount" type="integer"/>

<xsd:element name="userId" type="string"/>

<xsd:element name="conferenceId" type="integer"/>

</xsd:all>

</xsd:complexType>

</xsd:element>



<xsd:element name="ListOfParticipant">

<xsd:complexType>

<xsd:sequence>

<xsd:element maxOccurs="unbounded" minOccurs="0"
name="conferenceParticipants" type="xsd1:ParticipantDetails"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>



<xsd:element name="Result">

<xsd:complexType>

<xsd:all>

<xsd:element name="conferenceId" type="integer"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<wsdl:message name="ScheduleConferenceInput">

<wsdl:part element="xsd1:ConferenceBookingDetails" name="a"/>

<wsdl:part element="xsd1:ListOfParticipant" name="b"/>

</wsdl:message>

<wsdl:message name="ScheduleConferenceResult">

<wsdl:part element="xsd1:Result" name="c"/>

</wsdl:message>

<wsdl:portType name="ConferenceSchedulerPortType">

<wsdl:operation name="ScheduleConference">

<wsdl:input message="tns:ScheduleConferenceInput" />

<wsdl:output message="tns:ScheduleConferenceResult" />

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="ConferenceSchedulerPortBinding"

type="tns:ConferenceSchedulerPortType">

<soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="ScheduleConference">

<soap:operation soapAction="http://scheduler.wipro.com/ScheduleConference";
style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="ConferenceSchedulerService">

<wsdl:port binding="tns:ConferenceSchedulerPortBinding"

name="SchedulerPort">

<soap:address

location="http://scheduler.wipro.com/wsdl/Scheduler.wsdl"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>


I am using adb while generating source code.
_________________________________________________
Thanks & Regards,
Vinodh


 ------------------------------
*From:* keith chapman [mailto:[EMAIL PROTECTED]
*Sent:* Monday, November 27, 2006 2:56 PM
*To:* [email protected]
*Subject:* Re: [Axis2]- Issue with generating source code using WSDL2Java

Can u upload ur WSDL pls. If so I can look into it

Thanks,
Keith

On 11/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>  Hi *,
>
> I am new bie to Webservice and Axis2.
>
> Just started getting hold of Axis 2.
>
> I am facing problem when I try to generate source code from WSDL file
> usind WSDL2Java tool.
>
> When I have Message tag with one part tag then it is working fine. I am
> able to generate source code.
>
> Eg,
>
> <wsdl:message name="ScheduleConferenceInput">
>
> <wsdl:part element="xsd1:ConferenceBookingDetails" name="a"/>
>
> </wsdl:message>
>
> But when the Message tag has got two part tag then I m geeting some
> errors. Unable to generate source code.
>
> Eg,
>
> <wsdl:message name="ScheduleConferenceInput">
>
> <wsdl:part element="xsd1:ConferenceBookingDetails" name="a"/>
>
> <wsdl:part element="xsd1:ListOfParticipant" name="b"/>
>
> </wsdl:message>
>
>
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: org.apache.axis2.s
> chema.SchemaCompilationException: java.lang.NullPointerException
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
> CodeGenerationEngine.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.SchemaCompilationException:
> java.lang.NullPointerException
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(
> SimpleDBExtension.java:117)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
> CodeGenerationEngine.java:140)
>         ... 2 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException:
> java.lang.NullPointerException
>         at org.apache.axis2.schema.SchemaCompiler.compile(
> SchemaCompiler.java:186)
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(
> SimpleDBExtension.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:915)
>         at org.apache.axis2.schema.SchemaCompiler.processParticle(
> SchemaCompiler.java:878)
>         at org.apache.axis2.schema.SchemaCompiler.processComplexType(
> SchemaCompiler.java:643)
>         at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
> SchemaCompiler.java:616)
>         at org.apache.axis2.schema.SchemaCompiler.processSchema(
> SchemaCompiler.java:577)
>         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:226)
>         at org.apache.axis2.schema.SchemaCompiler.compile(
> SchemaCompiler.java:181)
>         ... 4 more
>
>
>
> I am not sure about this behaviour. Am I  missing something.
>
> Your help is very much appreciated.Thanks in advance.
>
>
>
>
>
> _________________________________________________
> Thanks & Regards,
> Vinodh
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com

Reply via email to