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 at...@netscape.net on 2007/06/06 12:51:40 UTC
[Axis2] Error in WSDL2Java
Hi,
I'm new to WSDLs and web-services.
I'm trying to use WSDL2Java from Axis2 (Release 1.2).
'More than one part for message xyz' when I try to generate Java code from wsdl.
Any help what could be happening?
Is it issue with version of WSDL?
Thanks much,
-Atul
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Re: [Axis2] Error in WSDL2Java
Posted by at...@netscape.net.
thanks Paul,
-Atul
-----Original Message-----
From: Paul Fremantle <pz...@gmail.com>
To: axis-user@ws.apache.org
Sent: Wed, 6 Jun 2007 5:53 pm
Subject: Re: [Axis2] Error in WSDL2Java
Wow what an enormous WSDL.?
?
Unfortunately, there is a "bug" in the WSDL. It doesn't conform to the?
WS-I Basic Profile. In particular it breaks BP2119. It has more than?
one part in the wsdl:message, but doesn't define a parts attribute.?
?
See http://ws-i.org/Profiles/BasicProfile-1.1-2004-06-11.html#Bindings_and_Parts,?
rule R2210.?
?
It seems like you might have to fix up the WSDL by hand in order to?
solve this, unless you can get MSFT to give you a fix.?
?
Paul?
?
On 6/6/07, atulacharya@netscape.net <at...@netscape.net> wrote:?
>?
>?
> Attached WSDL is from Microsoft CRM.?
> Here is the command I'm using:?
>?
> WSDL2Java -uri crmservice.wsdl -p test.axis -d xmlbeans -s?
>?
> The error message looks like:?
> --------------------------------------------------------------------------------------------------?
>?
> Using AXIS2_HOME: E:\installed\tools\webservice\axis2-1.2?
> Using JAVA_HOME: E:\installed\jdk\j2sdk1.4.2_13?
> Jun 6, 2007 5:15:22 PM?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder p?
> opulateService?
> SEVERE:?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingEx?
> ception: More than one part for message DeleteSoapIn?
> Exception in thread "main"?
> org.apache.axis2.wsdl.codegen.CodeGenerationException?
> : Error parsing WSDL?
> at?
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat?
> ionEngine.java:137)?
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)?
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)?
> Caused by: org.apache.axis2.AxisFault: More than one part for message?
> DeleteSoap?
> In?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi?
> ce(WSDL11ToAxisServiceBuilder.java:298)?
> at?
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA?
> llServices(WSDL11ToAllAxisServicesBuilder.java:100)?
> at?
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat?
> ionEngine.java:131)?
> ... 2 more?
> Caused by:?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin?
> gException: More than one part for message DeleteSoapIn?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer?
> ence(WSDL11ToAxisServiceBuilder.java:858)?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer?
> ence(WSDL11ToAxisServiceBuilder.java:782)?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi?
> ng(WSDL11ToAxisServiceBuilder.java:474)?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo?
> int(WSDL11ToAxisServiceBuilder.java:374)?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo?
> ints(WSDL11ToAxisServiceBuilder.java:334)?
> at?
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi?
> ce(WSDL11ToAxisServiceBuilder.java:288)?
> ... 4 more?
>?
> --------------------------------------------------------------------------------------------------?
>?
> -Atul?
>?
>?
> -----Original Message-----?
> From: Paul Fremantle <pz...@gmail.com>?
> To: axis-user@ws.apache.org?
> Sent: Wed, 6 Jun 2007 4:32 pm?
> Subject: Re: [Axis2] Error in WSDL2Java?
>?
>?
> Can you please post the WSDL thats causing this? Also where did it come?
> from??
>?
> Paul?
>?
> On 6/6/07, atulacharya@netscape.net <at...@netscape.net> wrote:?
> >?
> >?
> > Hi,?
> >?
> >?
> >?
> > I'm new to WSDLs and web-services.?
> >?
> > I'm trying to use WSDL2Java from Axis2 (Release 1.2).?
> >?
> >?
> >?
> > 'More than one part for message xyz' when I try to generate Java code?
> from?
> > wsdl.?
> >?
> >?
> >?
> > Any help what could be happening??
> >?
> > Is it issue with version of WSDL??
> >?
> >?
> >?
> > Thanks much,?
> >?
> > -Atul?
> >?
> >?
> >?
> >?
> > ________________________________?
> > Check Out the new free AIM(R) Mail -- 2 GB of storage and?
> industry-leading?
> > spam and email virus protection.?
> >?
>?
> -- Paul Fremantle?
> Co-Founder and VP of Technical Sales, WSO2?
> OASIS WS-RX TC Co-chair?
>?
> blog: http://pzf.fremantle.org?
> paul@wso2.com?
>?
> "Oxygenating the Web Service Platform", www.wso2.com?
>?
> ---------------------------------------------------------------------?
> To unsubscribe, e-mail:?
> axis-user-unsubscribe@ws.apache.org?
> For additional commands, e-mail: axis-user-help@ws.apache.org?
>?
>?
>?
> ________________________________?
> Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading?
> spam and email virus protection.?
>?
> ---------------------------------------------------------------------?
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org?
> For additional commands, e-mail: axis-user-help@ws.apache.org?
>?
>?
?
--
Paul Fremantle?
Co-Founder and VP of Technical Sales, WSO2?
OASIS WS-RX TC Co-chair?
?
blog: http://pzf.fremantle.org?
paul@wso2.com?
?
"Oxygenating the Web Service Platform", www.wso2.com?
?
---------------------------------------------------------------------?
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org?
For additional commands, e-mail: axis-user-help@ws.apache.org?
?
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Re: [Axis2] Error in WSDL2Java
Posted by Paul Fremantle <pz...@gmail.com>.
Wow what an enormous WSDL.
Unfortunately, there is a "bug" in the WSDL. It doesn't conform to the
WS-I Basic Profile. In particular it breaks BP2119. It has more than
one part in the wsdl:message, but doesn't define a parts attribute.
See http://ws-i.org/Profiles/BasicProfile-1.1-2004-06-11.html#Bindings_and_Parts,
rule R2210.
It seems like you might have to fix up the WSDL by hand in order to
solve this, unless you can get MSFT to give you a fix.
Paul
On 6/6/07, atulacharya@netscape.net <at...@netscape.net> wrote:
>
>
> Attached WSDL is from Microsoft CRM.
> Here is the command I'm using:
>
> WSDL2Java -uri crmservice.wsdl -p test.axis -d xmlbeans -s
>
> The error message looks like:
> --------------------------------------------------------------------------------------------------
>
> Using AXIS2_HOME: E:\installed\tools\webservice\axis2-1.2
> Using JAVA_HOME: E:\installed\jdk\j2sdk1.4.2_13
> Jun 6, 2007 5:15:22 PM
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder p
> opulateService
> SEVERE:
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingEx
> ception: More than one part for message DeleteSoapIn
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : Error parsing WSDL
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
> ionEngine.java:137)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: More than one part for message
> DeleteSoap
> In
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:298)
> at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
> llServices(WSDL11ToAllAxisServicesBuilder.java:100)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
> ionEngine.java:131)
> ... 2 more
> Caused by:
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin
> gException: More than one part for message DeleteSoapIn
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
> ence(WSDL11ToAxisServiceBuilder.java:858)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
> ence(WSDL11ToAxisServiceBuilder.java:782)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
> ng(WSDL11ToAxisServiceBuilder.java:474)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
> int(WSDL11ToAxisServiceBuilder.java:374)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
> ints(WSDL11ToAxisServiceBuilder.java:334)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:288)
> ... 4 more
>
> --------------------------------------------------------------------------------------------------
>
> -Atul
>
>
> -----Original Message-----
> From: Paul Fremantle <pz...@gmail.com>
> To: axis-user@ws.apache.org
> Sent: Wed, 6 Jun 2007 4:32 pm
> Subject: Re: [Axis2] Error in WSDL2Java
>
>
> Can you please post the WSDL thats causing this? Also where did it come
> from?
>
> Paul
>
> On 6/6/07, atulacharya@netscape.net <at...@netscape.net> wrote:
> >
> >
> > Hi,
> >
> >
> >
> > I'm new to WSDLs and web-services.
> >
> > I'm trying to use WSDL2Java from Axis2 (Release 1.2).
> >
> >
> >
> > 'More than one part for message xyz' when I try to generate Java code
> from
> > wsdl.
> >
> >
> >
> > Any help what could be happening?
> >
> > Is it issue with version of WSDL?
> >
> >
> >
> > Thanks much,
> >
> > -Atul
> >
> >
> >
> >
> > ________________________________
> > Check Out the new free AIM(R) Mail -- 2 GB of storage and
> industry-leading
> > spam and email virus protection.
> >
>
> -- Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> ________________________________
> Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading
> spam and email virus protection.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Error in WSDL2Java
Posted by at...@netscape.net.
Attached WSDL is from Microsoft CRM.
Here is the command I'm using:
WSDL2Java -uri crmservice.wsdl -p test.axis -d xmlbeans -s
The error message looks like:
--------------------------------------------------------------------------------------------------
Using AXIS2_HOME:?? E:\installed\tools\webservice\axis2-1.2
Using JAVA_HOME:??? E:\installed\jdk\j2sdk1.4.2_13
Jun 6, 2007 5:15:22 PM org.apache.axis2.description.WSDL11ToAxisServiceBuilder p
opulateService
SEVERE: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingEx
ception: More than one part for message DeleteSoapIn
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
??????? at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:137)
??????? at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
??????? at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: More than one part for message DeleteSoap
In
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:298)
??????? at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:100)
??????? at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:131)
??????? ... 2 more
Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin
gException: More than one part for message DeleteSoapIn
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:858)
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:782)
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
ng(WSDL11ToAxisServiceBuilder.java:474)
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
int(WSDL11ToAxisServiceBuilder.java:374)
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
ints(WSDL11ToAxisServiceBuilder.java:334)
??????? at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:288)
??????? ... 4 more
--------------------------------------------------------------------------------------------------
-Atul
-----Original Message-----
From: Paul Fremantle <pz...@gmail.com>
To: axis-user@ws.apache.org
Sent: Wed, 6 Jun 2007 4:32 pm
Subject: Re: [Axis2] Error in WSDL2Java
Can you please post the WSDL thats causing this? Also where did it come from??
?
Paul?
?
On 6/6/07, atulacharya@netscape.net <at...@netscape.net> wrote:?
>?
>?
> Hi,?
>?
>?
>?
> I'm new to WSDLs and web-services.?
>?
> I'm trying to use WSDL2Java from Axis2 (Release 1.2).?
>?
>?
>?
> 'More than one part for message xyz' when I try to generate Java code from?
> wsdl.?
>?
>?
>?
> Any help what could be happening??
>?
> Is it issue with version of WSDL??
>?
>?
>?
> Thanks much,?
>?
> -Atul?
>?
>?
>?
>?
> ________________________________?
> Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading?
> spam and email virus protection.?
>?
?
--
Paul Fremantle?
Co-Founder and VP of Technical Sales, WSO2?
OASIS WS-RX TC Co-chair?
?
blog: http://pzf.fremantle.org?
paul@wso2.com?
?
"Oxygenating the Web Service Platform", www.wso2.com?
?
---------------------------------------------------------------------?
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org?
For additional commands, e-mail: axis-user-help@ws.apache.org?
?
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Re: [Axis2] Error in WSDL2Java
Posted by Paul Fremantle <pz...@gmail.com>.
Can you please post the WSDL thats causing this? Also where did it come from?
Paul
On 6/6/07, atulacharya@netscape.net <at...@netscape.net> wrote:
>
>
> Hi,
>
>
>
> I'm new to WSDLs and web-services.
>
> I'm trying to use WSDL2Java from Axis2 (Release 1.2).
>
>
>
> 'More than one part for message xyz' when I try to generate Java code from
> wsdl.
>
>
>
> Any help what could be happening?
>
> Is it issue with version of WSDL?
>
>
>
> Thanks much,
>
> -Atul
>
>
>
>
> ________________________________
> Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading
> spam and email virus protection.
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org