Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 1197 invoked from network); 27 Nov 2006 12:32:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 12:32:26 -0000 Received: (qmail 61947 invoked by uid 500); 27 Nov 2006 12:31:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 61910 invoked by uid 500); 27 Nov 2006 12:31:54 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 61878 invoked by uid 99); 27 Nov 2006 12:31:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 04:31:54 -0800 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=HTML_MESSAGE,HTML_TAG_EXIST_TBODY,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of keithgchapman@gmail.com designates 72.14.214.238 as permitted sender) Received: from [72.14.214.238] (HELO hu-out-0506.google.com) (72.14.214.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 04:31:36 -0800 Received: by hu-out-0506.google.com with SMTP id 21so2258596hug for ; Mon, 27 Nov 2006 04:30:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XczU+GA7xCLqFXIC982DONkQLR/fGLPuKPeOBudaXixhXS8qa1ER0TRlITICFcXQBbb/aDsLT5D3rdzfbTWY/petgNcDTA/yRlj0tdkoMDHJ8snIs2RRYhkPg1xYbQAkmPOEIJWMCJkYbWQCsIHzet4EsvTnx3NrmGL6TrtaCms= Received: by 10.67.20.3 with SMTP id x3mr12143957ugi.1164630656729; Mon, 27 Nov 2006 04:30:56 -0800 (PST) Received: by 10.67.97.4 with HTTP; Mon, 27 Nov 2006 04:30:56 -0800 (PST) Message-ID: Date: Mon, 27 Nov 2006 18:00:56 +0530 From: "keith chapman" To: axis-user@ws.apache.org Subject: Re: [Axis2]- Issue with generating source code using WSDL2Java In-Reply-To: <8A24F115EA58164490CD026E9D0CEAD4014BF9F3@BLR-EC-MBX02.wipro.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_85714_23016648.1164630656626" References: <8A24F115EA58164490CD026E9D0CEAD4014BF9F3@BLR-EC-MBX02.wipro.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_85714_23016648.1164630656626 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline pls try 1.1 cause it contains many bug fixes and new features. Thanks, Keith. On 11/27/06, kumar.vinodh@wipro.com wrote: > > I m using Axis2 1.0 version. I will try out in ver1.1 and let u know > about this. > > _________________________________________________ > Thanks & Regards, > Vinodh > > > ------------------------------ > *From:* keith chapman [mailto:keithgchapman@gmail.com] > *Sent:* Monday, November 27, 2006 4:51 PM > *To:* axis-user@ws.apache.org > *Subject:* Re: [Axis2]- Issue with generating source code using WSDL2Java > > 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, kumar.vinodh@wipro.com wrote: > > > > Keith, > > > > > > Here is the WSDL file > > > > > > > > > > > > > > > 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/"> > > > > > > > > > > > xmlns="http://www.w3.org/2001/XMLSchema" > > > > elementFormDefault="qualified"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="conferenceParticipants" type="xsd1:ParticipantDetails"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="tns:ConferenceSchedulerPortType"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="SchedulerPort"> > > > > > > > location="http://scheduler.wipro.com/wsdl/Scheduler.wsdl "/> > > > > > > > > > > > > > > > > > > I am using adb while generating source code. > > _________________________________________________ > > Thanks & Regards, > > Vinodh > > > > > > ------------------------------ > > *From:* keith chapman [mailto:keithgchapman@gmail.com] > > *Sent:* Monday, November 27, 2006 2:56 PM > > *To:* axis-user@ws.apache.org > > *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, kumar.vinodh@wipro.com < kumar.vinodh@wipro.com> 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, > > > > > > > > > > > > > > > > > > > > > > > > But when the Message tag has got two part tag then I m geeting some > > > errors. Unable to generate source code. > > > > > > Eg, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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 > > > > > 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 > ------=_Part_85714_23016648.1164630656626 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline pls try 1.1 cause it contains many bug fixes and new features.

Thanks,
Keith.

On 11/27/06, kumar.vinodh@wipro.com <kumar.vinodh@wipro.com> wrote:
I m using Axis2 1.0 version. I will try out in ver1.1 and let u know about this.
 
_________________________________________________
Thanks & Regards,
Vinodh
 


From: keith chapman [mailto:keithgchapman@gmail.com]
Sent: Monday, November 27, 2006 4:51 PM

To: axis-user@ws.apache.org
Subject: Re: [Axis2]- Issue with generating source code using WSDL2Java

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, kumar.vinodh@wipro.com < kumar.vinodh@wipro.com> 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:keithgchapman@gmail.com]
Sent: Monday, November 27, 2006 2:56 PM
To: axis-user@ws.apache.org
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, kumar.vinodh@wipro.com < kumar.vinodh@wipro.com> 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


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

------=_Part_85714_23016648.1164630656626--