Results 1 to 2 of 2

Thread: WSDL Exposure 404 error

  1. #1
    Join Date
    Nov 2010
    Posts
    8

    Default 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. #2
    Join Date
    Nov 2010
    Posts
    8

    Default

    Quote 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •