0 Replies Latest reply on Nov 1, 2017 7:37 AM by pro_newbi

    Jboss Fuse 6.3 - cxf - Different Web service Endpoint URL and WSDL URL

    pro_newbi

      HI,

       

      I need to expose soap service on jboss fuse server. What I am trying to do is replicate an existing developed soap service.

       

      WSDL URL: http://ip:8027/Services/Interface/WebServices/TestService.serviceagent?wsdl

      Endpoint URL: http://ip:3456//Services/Interface/WebServices/Service.serviceagent/ChangeCustomerBasicEndpoint1

       

      Both URLs must have same IP but different ports and rest of the URL is also different.

       

      By using following code, I am able to publish the SOAP service.

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
        xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 ">
        <cxf:cxfEndpoint
        address="http://ip:8027/Services/Interface/WebServices/TestService.serviceagent?wsdl"
        id="testEndpoint" serviceClass="pk.com.test.app.TestService">
      
        <cxf:properties>
        <entry key="publishedEndpointUrl" 
        value="http://ip:3456//Services/Interface/WebServices/Service.serviceagent/ChangeCustomerBasicEndpoint1"/>
        </cxf:properties>
      
        </cxf:cxfEndpoint>

       

       

       

      Also I know that publishedEndpointUrl will override cxf:cxfEndpoint.

      When I access "http://ip:8027/Services/Interface/WebServices/TestService.serviceagent?wsdl " url in broswer, I get the WSDL with EndPoing URL: 'http://ip:3456//Services/Interface/WebServices/Service.serviceagent/ChangeCustomerBasicEndpoint1 "

       

      But when I try to run this from SOAP-UI I get connection refused error.

       

      Any help on how can I expose WSDL with different ports and URLs.

       

      Thanks