Hi,
I tried to use Axis-1.4 and successfully generate the stub but it
throws another exception when running the code:
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.axis.description.OperationDesc.setStyle(Lorg/apache/axis/constants/Style;)V
at
dse.VerifyHashServiceSoapBindingStub._initOperationDesc1(VerifyHashServiceSoapBindingStub.java:39)
at
dse.VerifyHashServiceSoapBindingStub.<clinit>(VerifyHashServiceSoapBindingStub.java:20)
at
dse.HashGenServiceLocator.getVerifyHashService(HashGenServiceLocator.java:55)
at
dse.HashGenServiceLocator.getVerifyHashService(HashGenServiceLocator.java:50)
at Test.main(Test.java:61)
How can I solve this?
Best regards,
Eric
On Wed, Mar 5, 2008 at 9:55 AM, Marc Esher <[EMAIL PROTECTED]> wrote:
> i think you have to use axis 1.4
>
>
>
> On Tue, Mar 4, 2008 at 8:53 PM, Eric Chow <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have a WSDL from service provider, it throws the following exception
> > when I use WSDL2JAVA to generate stub:
> >
> >
> > [java] - Encoded use is not supported
> > [java]
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
> > Encoded use is not supported
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getPartsListFromSoapBody(WSDL11ToAxisServiceBuilder.java:1777)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1528)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1431)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:255)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
> > [java] at
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141)
> > [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> > [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> > [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > Error parsing WSDL
> > [java] at
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> > [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> > [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> > [java] Caused by: org.apache.axis2.AxisFault: Encoded use is not
> supported
> > [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:291)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
> > [java] at
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141)
> > [java] ... 2 more
> > [java] Caused by:
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
> > Encoded use is not supported
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getPartsListFromSoapBody(WSDL11ToAxisServiceBuilder.java:1777)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1528)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1431)
> > [java] at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:255)
> > [java] ... 4 more
> > [java] Exception in thread "main"
> >
> >
> > How can I solve it?
> >
> > Best regards,
> > Eric
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]