[ https://issues.apache.org/jira/browse/AXIS2-4407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suchitha Koneru updated AXIS2-4407: ----------------------------------- Description: Configuration Tomcat 5.5 Axis 2 Version 1.5 Java 1.6.10 Restful services were developed as per the instructions given in http://www.webmonkey.com/tutorial/RESTful_Web_Services_with_Apache_Axis2 In this process the wsdl 2.0 was modified to include whttp:location and whttp:method for the service end points The following were added to the services.xml so that Axis would pick up the modified wsdl. <parameter name="useOriginalwsdl" locked="true">true</parameter> the modified wsdl has the following http bindings <wsdl2:fault ref="tns:Exception"/> <wsdl2:operation ref="tns:main" whttp:location="main"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:deleteUser" whttp:location="User/{userId}" whttp:method="DELETE"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:getAllUsers" whttp:location="Users" whttp:method="GET"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:createUser" whttp:location="User" whttp:method="POST"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:getUser" whttp:location="User/{userId}" whttp:method="GET"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:updateUser" whttp:location="User" whttp:method="PUT"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> When wsdl2.0 was accessed as shown below, I do not get the modified wsdl, instead a wsdl without any http bindings is returned http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl?wsdl2 When I tried to access the end point using the url , it resulted in the error http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl/User/1 ERROR] The service cannot be found for the endpoint reference (EPR) /Axis2Demo/services/User/1 org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /Axis2Demo/services/User/1 Any restful url access resulted in the same exception Please find attachements for src code and services folder Appreciate your time and effort in looking into this issue Steps to reproduce Create a webappplication in eclipse using the src code . Generate webservice for the class UserMgmtServiceImpl.java against Axis 2 Version 1.5 version using eclipse plugin. Replace the services folder under WEB-INF with the one attached in this issue. Re start the tomcat server . Access the restful service as http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl/Users This will lead to EPR not found error Please change the tomcat port number and webapp name accordingly was: Configuration Tomcat 5.5 Axis 2 Version 1.5 Java 1.6.10 Restful services were developed as per the instructions given in http://www.webmonkey.com/tutorial/RESTful_Web_Services_with_Apache_Axis2 In this process the wsdl 2.0 was modified to include whttp:location and whttp:method for the service end points The following were added to the services.xml so that Axis would pick up the modified wsdl. <parameter name="useOriginalwsdl" locked="true">true</parameter> the modified wsdl has the following http bindings <wsdl2:fault ref="tns:Exception"/> <wsdl2:operation ref="tns:main" whttp:location="main"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:deleteUser" whttp:location="User/{userId}" whttp:method="DELETE"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:getAllUsers" whttp:location="Users" whttp:method="GET"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:createUser" whttp:location="User" whttp:method="POST"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:getUser" whttp:location="User/{userId}" whttp:method="GET"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> <wsdl2:operation ref="tns:updateUser" whttp:location="User" whttp:method="PUT"> <wsdl2:outfault ref="tns:Exception"/> </wsdl2:operation> When wsdl2.0 was accessed as shown below, I do not get the modified wsdl, instead a wsdl without any http bindings is returned http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl?wsdl2 When I tried to access the end point using the url , it resulted in the error http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl/User/1 ERROR] The service cannot be found for the endpoint reference (EPR) /Axis2Demo/services/User/1 org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /Axis2Demo/services/User/1 Any restful url access resulted in the same exception > Axis 2 does not pick up wsdl2.0 which is modified to include whttp:location > and whttp:method for Restful services > -------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-4407 > URL: https://issues.apache.org/jira/browse/AXIS2-4407 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: wsdl > Affects Versions: 1.5, 1.4.1, 1.4 > Environment: All > Reporter: Suchitha Koneru > Attachments: services.zip, src.zip > > > Configuration > Tomcat 5.5 > Axis 2 Version 1.5 > Java 1.6.10 > Restful services were developed as per the instructions given in > http://www.webmonkey.com/tutorial/RESTful_Web_Services_with_Apache_Axis2 > In this process the wsdl 2.0 was modified to include whttp:location and > whttp:method for the service end points > The following were added to the services.xml so that Axis would pick up the > modified wsdl. > <parameter name="useOriginalwsdl" locked="true">true</parameter> > the modified wsdl has the following http bindings > <wsdl2:fault ref="tns:Exception"/> > <wsdl2:operation ref="tns:main" whttp:location="main"> > <wsdl2:outfault ref="tns:Exception"/> > </wsdl2:operation> > <wsdl2:operation ref="tns:deleteUser" > whttp:location="User/{userId}" whttp:method="DELETE"> > <wsdl2:outfault ref="tns:Exception"/> > </wsdl2:operation> > > <wsdl2:operation ref="tns:getAllUsers" whttp:location="Users" > whttp:method="GET"> > <wsdl2:outfault ref="tns:Exception"/> > </wsdl2:operation> > > > <wsdl2:operation ref="tns:createUser" whttp:location="User" > whttp:method="POST"> > <wsdl2:outfault ref="tns:Exception"/> > </wsdl2:operation> > > <wsdl2:operation ref="tns:getUser" whttp:location="User/{userId}" > whttp:method="GET"> > <wsdl2:outfault ref="tns:Exception"/> > </wsdl2:operation> > > <wsdl2:operation ref="tns:updateUser" whttp:location="User" > whttp:method="PUT"> > <wsdl2:outfault ref="tns:Exception"/> > </wsdl2:operation> > When wsdl2.0 was accessed as shown below, I do not get the modified wsdl, > instead a wsdl without any http bindings is returned > http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl?wsdl2 > When I tried to access the end point using the url , it resulted in the error > http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl/User/1 > > ERROR] The service cannot be found for the endpoint reference (EPR) > /Axis2Demo/services/User/1 > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) /Axis2Demo/services/User/1 > Any restful url access resulted in the same exception > Please find attachements for src code and services folder > Appreciate your time and effort in looking into this issue > Steps to reproduce > Create a webappplication in eclipse using the src code . > Generate webservice for the class UserMgmtServiceImpl.java against Axis 2 > Version 1.5 version using eclipse plugin. > Replace the services folder under WEB-INF with the one attached in this > issue. > Re start the tomcat server . > Access the restful service as > http://localhost:8080/Axis2Demo/services/UserMgmtServiceImpl/Users > This will lead to EPR not found error > Please change the tomcat port number and webapp name accordingly > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.