axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuen Chi Lian" <yuenchi.l...@gmail.com>
Subject Re: Couldn't generate skeleton classes due to type=Qname error (Axis2 client -> Axis1 server)
Date Sun, 11 Feb 2007 15:27:24 GMT
Thanks for the reply!

I'll forward this message to the SOAP service guys.

On 2/11/07, Anne Thomas Manes <atmanes@gmail.com> wrote:
>
> You need to correct your WSDL.
>
> According to the specification, fault and header message parts must be
> defined as document/literal, even if the body is defined as RPC style.
> Axis 1.x did not follow the specification in this case. If the body
> was defined as RPC style, it also used RPC for the fault and header
> definitions.
>
> Given that your WSDL uses RPC style, my guess is that it also used
> SOAP encoding, so the fault message definition is probably not your
> only problem. Axis2 does not support SOAP encooding.
>
> I strongly encourage you to convert your WSDL to document/literal.
>
> Anne
>
>
> On 2/11/07, Yuen Chi Lian <yuenchi.lian@gmail.com> wrote:
> > Hi mates,
> >
> > I'm not able to generate skeleton classes using Axis2's WSDL2Java, i.e.
> >
> > yclian@kate:/usr/local/devels/axis2-1.1.1/bin$ ./wsdl2java.sh
> > org.apache.axis2.wsdl.WSDL2Java -d xmlbeans -uri /tmp/jira.wsdl
> >  Using AXIS2_HOME:   /usr/local/devels/axis2-1.1.1
> >  Using JAVA_HOME:       /usr/local/devels/jdk1.5.0_09
> > Feb 11, 2007 6:44:40 PM
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder
> > AddQNameReference
> > SEVERE: Part 'fault' of fault message
> > '{
> http://localhost:65466/rpc/soap/jirasoapservice-v2}RemotePermissionException
> > ' must be defined with 'element=QName' and not 'type=QName'
> > Feb 11, 2007 6:44:40 PM
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder
> > populateService
> > SEVERE: org.apache.axis2.AxisFault: Part 'fault' of fault message '{
> >
> http://localhost:65466/rpc/soap/jirasoapservice-v2}RemotePermissionException
> '
> > must be defined with 'element=QName' and not 'type=QName'
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > Error parsing WSDL
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:112)
> >         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: Part 'fault' of fault message '{
> >
> http://localhost:65466/rpc/soap/jirasoapservice-v2}RemotePermissionException
> '
> > must be defined with 'element=QName' and not 'type=QName'; nested
> exception
> > is:
> >         org.apache.axis2.AxisFault: Part 'fault' of fault message
> > '{
> http://localhost:65466/rpc/soap/jirasoapservice-v2}RemotePermissionException
> > ' must be defined with 'element=QName' and not 'type=QName'
> >         at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
> WSDL11ToAxisServiceBuilder.java:250)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:103)
> >         ... 2 more
> > Caused by: org.apache.axis2.AxisFault: Part 'fault' of fault message '{
> >
> http://localhost:65466/rpc/soap/jirasoapservice-v2}RemotePermissionException
> '
> > must be defined with 'element=QName' and not 'type=QName'
> >         at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.AddQNameReference
> > (WSDL11ToAxisServiceBuilder.java:846)
> >         at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(
> WSDL11ToAxisServiceBuilder.java:529)
> >         at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService
> > (WSDL11ToAxisServiceBuilder.java:242)
> >         ... 3 more
> >
> > The JIRA SOAP endpoint is written in Axis1. May I know if there're any
> > solutions to this?
> >
> > Thanks in advance.
> >
> > --
> > Cheers,
> > Yuen-Chi Lian
> >
> > "I do not seek; I find." - Pablo Picasso
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
-- 
Cheers,
Yuen-Chi Lian

"I do not seek; I find." - Pablo Picasso

Mime
View raw message