问题:I have a WSDL file and tried the Eclipse(Eclipse3.2) plugin:WSDL2Java(AXIS2).

I have a WSDL file and tried the Eclipse(Eclipse3.2) plugin:WSDL2Java(AXIS2).

But I got an error: An error occurred while completing process - java.lang.InterruptedException: Encoded use is not supported.

Please help me how to solve this issue... 

--------------------------------------------------------------------------

Hi,

I have downloaded axis2-SNAPSHOT.

And added the jar files in AXIS2_CLASSPATH



When I am running the command

java -classpath %AXIS2_CLASSPATH% org.apache.axis2.wsdl.WSDL2C -uri
calculator.wsdl -ss -sd -d adb -u



I am getting the error which previously I was not getting when I was
using jar files from Axis2-1.1.1



C:/axis2c/code/calc>java -classpath %AXIS2_CLASSPATH%
org.apache.axis2.wsdl.WSDL

2C -uri Calculator.wsdl -ss -sd -d adb -u

May 9, 2007 10:28:32 AM
org.apache.axis2.description.WSDL11ToAxisServiceBuilder

populateService

SEVERE:
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingEx

ception: Encoded use is not supported

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.WSDL2C.main(WSDL2C.java:28)

Caused by: org.apache.axis2.AxisFault: Encoded use is not supported

        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:377)

        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi

ce(WSDL11ToAxisServiceBuilder.java:296)

        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: Encoded use is not supported

        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getPartsListF

romSoapBody(WSDL11ToAxisServiceBuilder.java:1541)

        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaF

orPorttype(WSDL11ToAxisServiceBuilder.java:1292)

        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapp

erSchema(WSDL11ToAxisServiceBuilder.java:1196)

        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi

ce(WSDL11ToAxisServiceBuilder.java:252)

        ... 4 more



What can be the cause of error??



Regards,

Yogender



________________________________

From: Yogender Singh01 [mailto:Yogender_Singh01@infosys.com]
Sent: Tuesday, May 08, 2007 9:59 AM
To: Apache AXIS C User List
Subject: RE: <Axis2C>problem in running client



Ya am using Axis2-1.1.1 and using the jars from lib directory in
AXIS2_CLASSPATH.



Ok I ll try with latest nightly build and see.



Regards,

Yogender



________________________________

From: Dushshantha Chandradasa
[mailto:dushshantha.chandaradasa@gmail.com]
Sent: Tuesday, May 08, 2007 9:53 AM
To: Apache AXIS C User List
Subject: Re: <Axis2C>problem in running client



What is the version of Axis2 java you are using for code generation? Try
downloading the latest nightly build of the Axis2 java from the
following link.

http://people.apache.org/dist/axis2/nightly/axis2-SNAPSHOT.zip
<http://people.apache.org/dist/axis2/nightly/>

regards,
Dushshantha

On 5/8/07, Yogender Singh01 < Yogender_Singh01@infosys.com
<mailto:Yogender_Singh01@infosys.com> > wrote:


I run the client using command line by giving the name of exe.
And I have generated the code using databinding using the command.

For server:-
java -classpath %AXIS2_CLASSPATH%;.;%CLASSPATH%
org.apache.axis2.wsdl.WSDL2C -uri calculator.wsdl -ss -sd -d adb -u

For client:-
java -classpath %AXIS2_CLASSPATH%;.;%CLASSPATH%
org.apache.axis2.wsdl.WSDL2C -uri calculator.wsdl -d adb -u

There are no external parameters var1 and var2 are hard coded inside the
code

AXIS2_ADD_SET_IN0(add_in, env, 10);
AXIS2_ADD_SET_IN1(add_in, env, 10);

Ya echo client is working I have tested that out..

Regards,
Yogender

-----Original Message-----
From: Samisa Abeysinghe [mailto: samisa@wso2.com
<mailto:samisa@wso2.com> ]
Sent: Tuesday, May 08, 2007 8:25 AM
To: Apache AXIS C User List
Subject: Re: <Axis2C>problem in running client

Yogender Singh01 wrote:
>  <<alltest.log>>
> Hi,
> I am trying to run a calculator client for addition.
> I have checked the calculator service is succesfully deplyed in
services
> folder by checking the URL
> http://localhost:9090/axis2/services
>
> But I am getting the error while running the exe. The log file is
> attached for the same.
> I am using new release 1.0.
>
Looking at the log file, it is hard to figure out what is going wrong as


the log does not have any errors.

How did you run the client? Please send the command you ran with
arguments.

Also, does the echo client work?


Samisa...

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are
unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any
damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值