Skip to main content

Having trouble downloading wsdl from service

No replies
expai
Offline
Joined: 2013-01-17
Points: 0

Hi All,
I am having trouble downloading wsdl from my jax-ws service. From what I have read, I should be able to download the wsdl using something like ...
http://host:port/path/versionetc/?wsdl. Unfortunately I get an HTTP 405 error saying "This service does not suppport GET method.".

Now this is actually true. It is a SOAP service and all the implemented operations are POSTs. Do I have to implement a dummy GET to enable this behavior?

My config is as follows ...

sun-jaxws.xml

<?xml version="1.0" encoding="UTF-8"?>

<endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'>   
<endpoint
      name="myapp"
      interface="com.mycompany.xmlapi.myapp.v1.myappPortType"
implementation="com.mycompany.e3.es.webservices.myapp.impl.myappPortTypeImpl"
binding="http://www.w3.org/2003/05/soap/bindings/HTTP/"
url-pattern="/myapp/v1/*"
service="{urn:mycompany:xmlapi:myapp:v1}myRateService"
port="{urn:mycompany:xmlapi:myapp:v1}myappPort"
wsdl="WEB-INF/wsdl/com.mycompany.xmlapi.myapp.v1.wsdl"
>
</endpoint>
</endpoints>

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Sun copyright notice snipped-->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <description>mysoapapp</description>
    <display-name>mysoapapp</display-name>

    <listener>
        <listener-class>com.mycompany.platform.messaging.http.webservice.servlet.WSServletContextListener</listener-class>
    </listener>

    <servlet>
        <description>mysoapapp</description>
        <display-name>mysoapapp</display-name>
        <servlet-name>mysoapapp</servlet-name>
        <servlet-class>com.mycompany.platform.messaging.http.webservice.servlet.WSServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
     
    <servlet-mapping>
        <servlet-name>mysoapapp</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>
 
    <session-config>
        <session-timeout>60</session-timeout>
    </session-config>

</web-app>

Operating System: Windows 7
Container: Tomcat 5.5.17
Libraries: jaxws-api-2.1.5.jar, jaxws-rt-2.1.5.jar
Java 6 (build 1.6.0_29-b11)