3 Replies Latest reply: Apr 9, 2012 12:42 AM by Magesh Bojan RSS

    quickstart bean-service wsdl has wrong soap address

    Jeff DeLong Master

      I followed the instruction in the readme for the quickstart/bean-service and got a 404 using the wsdl in bean-service/src/resources/wsdl to create my soapUI project.

       

      This WSDL has

       

        <service name="OrderService">

          <port name="OrderServicePort" binding="tns:OrderServiceBinding">

            <soap:address location="http://localhost:18001/test"/>

          </port>

        </service>

       

      I noticed in the console

       

      11:08:20,509 INFO  [org.switchyard.component.soap.InboundHandler] (MSC service thread 1-8) Publishing WebService at http://127.0.0.1:18001/quickstart-bean/OrderService

       

      So I modified the WSDL

       

      <service name="OrderService">

          <port name="OrderServicePort" binding="tns:OrderServiceBinding">

            <soap:address location="http://localhost:18001/quickstart-bean/OrderService"/>

          </port>

        </service>

       

      used this to create a new soapUI project, and got the expected response.

       

      SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

         <SOAP-ENV:Header/>

         <SOAP-ENV:Body>

            <orders:submitOrderResponse xmlns:orders="urn:switchyard-quickstart:bean-service:1.0">

               <orderAck>

                  <orderId>PO-19838-XYZ</orderId>

                  <accepted>true</accepted>

                  <status>Order Accepted</status>

               </orderAck>

            </orders:submitOrderResponse>

         </SOAP-ENV:Body>

      </SOAP-ENV:Envelope>