Announcement Announcement Module
Collapse
No announcement yet.
WSDL Exposure 404 error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • WSDL Exposure 404 error

    Hey guys I'm running through the web service tutorial and I'm trying to use DefaultWsdl11Definition for generating the WSDL at runtime and automatic WSDL exposure. I'm using a weblogic server and my WSDL definition looks like such:


    Code:
     <bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
            <property name="schema" ref="schema"/>
            <property name="portTypeName" value="HumanResource"/>
            <!-- we use a relative uri that will be transformed by spring-ws dep-->
            <property name="locationUri" value="http://localhost:7001/holidayService/"/>
            <property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
        </bean>
    
        <bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
            <property name="xsd" value="/WEB-INF/hr.xsd"/>
        </bean>
    In essence the WSDL Should be exposed when I go to the URL
    http://localhost:7001/holidayService/holiday.wsdl. But instead I'm getting the [Error 404 - not found] error. As mentiond, I'm packaging the war and deploying it to the weblogic server. Anybody have any insight? Is there any intermediary tests I can check to see if the WSDL is even being generated at runtime??

    Thanks

  • #2
    Originally posted by Darth Vader View Post
    Hey guys I'm running through the web service tutorial and I'm trying to use DefaultWsdl11Definition for generating the WSDL at runtime and automatic WSDL exposure. I'm using a weblogic server and my WSDL definition looks like such:


    Code:
     <bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
            <property name="schema" ref="schema"/>
            <property name="portTypeName" value="HumanResource"/>
            <!-- we use a relative uri that will be transformed by spring-ws dep-->
            <property name="locationUri" value="http://localhost:7001/holidayService/"/>
            <property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
        </bean>
    
        <bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
            <property name="xsd" value="/WEB-INF/hr.xsd"/>
        </bean>
    In essence the WSDL Should be exposed when I go to the URL
    http://localhost:7001/holidayService/holiday.wsdl. But instead I'm getting the [Error 404 - not found] error. As mentiond, I'm packaging the war and deploying it to the weblogic server. Anybody have any insight? Is there any intermediary tests I can check to see if the WSDL is even being generated at runtime??

    Thanks



    Well, it seems I have been forgetting to put the application name in the URL. It doesn't mention this in the tutorial. Anyways, instead of http://localhost:7001/holidayService/holiday.wsdl, I needed http://localhost:7001/tutorial/holid...e/holiday.wsdl, and I get the wsdl.

    Comment

    Working...
    X