[ http://issues.apache.org/jira/browse/AXIS2-1445?page=all ]
Charitha Kankanamge updated AXIS2-1445:
---------------------------------------
Attachment: SimpleService.wsdl
Hello Dims,
I think i have uploaded the SimpleService.wsdl just by copying the wsdl
from browser. Really sorry for the inconvenience caused. I have
attached the correct wsdl here with. I was able to reproduce this issue
with the attached WSDL.
I will upload the same in to JIRA once the system is up and running
(Currently JIRA is not accessible!)
Please contact me if you need more information on this.
regards
Charitha
> Client stub generation picks REST EPR from WSDL instead of service EPR
> ----------------------------------------------------------------------
>
> Key: AXIS2-1445
> URL: http://issues.apache.org/jira/browse/AXIS2-1445
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Win XP, Apache Tomcat 5.5.16, JDK 1.5
> Reporter: Charitha Kankanamge
> Priority: Blocker
> Attachments: SimpleService.wsdl, SimpleService.wsdl,
> SimpleServiceStub.java
>
>
> I deployed a service and generated stub by issuing the following command.
> WSDL2Java -uri http://localhost:8080/axis2/services/SimpleService?wsdl -o
> C:\codegen_testing
> I wrote a simple client and tried to access the above service. Then I got the
> following exception.
> Exception in thread "main" org.apache.axis2.AxisFault: Transport error 500 .
> Error Message is <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Operation
> Not found EPR is /axis2/axis2/services/SimpleService and WSA Action = null;
> nested exception is:
> org.apache.axis2.AxisFault: Operation Not found EPR is
> /axis2/axis2/services/SimpleService and WSA Action =
> null</faultstring><detail /></soapenv:Fault>; nested exception is:
> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Operation
> Not found EPR is /axis2/axis2/services/SimpleService and WSA Action = null;
> nested exception is:
> org.apache.axis2.AxisFault: Operation Not found EPR is
> /axis2/axis2/services/SimpleService and WSA Action =
> null</faultstring><detail /></soapenv:Fault>; nested exception is:
> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Operation
> Not found EPR is /axis2/axis2/services/SimpleService and WSA Action = null;
> nested exception is:
> org.apache.axis2.AxisFault: Operation Not found EPR is
> /axis2/axis2/services/SimpleService and WSA Action =
> null</faultstring><detail /></soapenv:Fault>; nested exception is:
> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Operation
> Not found EPR is /axis2/axis2/services/SimpleService and WSA Action = null;
> nested exception is:
> org.apache.axis2.AxisFault: Operation Not found EPR is
> /axis2/axis2/services/SimpleService and WSA Action =
> null</faultstring><detail /></soapenv:Fault>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
> at
> org.apache.ws.axis2.SimpleServiceStub.echo(SimpleServiceStub.java:141)
> at org.apache.axis2.Client.main(Client.java:17)
> Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Operation
> Not found EPR is /axis2/axis2/services/SimpleService and WSA Action = null;
> nested exception is:
> org.apache.axis2.AxisFault: Operation Not found EPR is
> /axis2/axis2/services/SimpleService and WSA Action =
> null</faultstring><detail /></soapenv:Fault>; nested exception is:
> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> <soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Operation
> Not found EPR is /axis2/axis2/services/SimpleService and WSA Action = null;
> nested exception is:
> org.apache.axis2.AxisFault: Operation Not found EPR is
> /axis2/axis2/services/SimpleService and WSA Action =
> null</faultstring><detail /></soapenv:Fault>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:339)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205)
> ... 5 more
> When I explicitly put the correct service EPR in my client, it worked fine.
> e.g:- SimpleServiceStub stub = new
> SimpleServiceStub("http://192.168.1.222:8080/axis2/services/SimpleService");
> This occurs due to the client stub generation picks REST EPR from the WSDL
> and use it in *Stub.java.
> WSDL and SimpleServiceStub files are attached here with.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]