axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Chinthaka (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1445) Client stub generation picks REST EPR from WSDL instead of service EPR
Date Tue, 24 Oct 2006 09:58:17 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1445?page=comments#action_12444273 ] 
            
Eran Chinthaka commented on AXIS2-1445:
---------------------------------------

I just checked in a fix for this. Can you please test and let me know. Thanks

> 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
>         Assigned To: Eran Chinthaka
>            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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message