[ 
https://issues.apache.org/jira/browse/AXIS2-4407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Suchitha Koneru updated AXIS2-4407:
-----------------------------------

    Attachment: src.zip

src code

> 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: 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to