Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10074

gateway-http does not calculate WSDL URLs correctly when using custom uriTemplate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-6.x-GA
    • None
    • None
    • % %
    • +
    • Hide

      Attached patch for cxf-soap quickstart, apply to jboss-fuse-6.3.0.redhat-371/quickstarts/cxf/soap

      fabric:create --wait-for-provisioning  --new-user admin --new-user-password admin
      profile-create --parent default --parent feature-cxf --parent feature-fabric-web --version 1.0 cxf-soaptest
      profile-edit --bundle mvn:org.jboss.quickstarts.fuse/cxf-soap/6.3.0.redhat-371-SNAPSHOT cxf-soaptest
      profile-edit --pid io.fabric8.gateway.http.mapping-apis/uriTemplate=/api\{contextPath\}/ gateway-http
      container-add-profile root cxf-soaptest
      container-add-profile root gateway-http
      

      Access page: http://localhost:9000/api/cxf/HelloWorld?wsdl

      Show
      Attached patch for cxf-soap quickstart, apply to jboss-fuse-6.3.0.redhat-371/quickstarts/cxf/soap fabric:create --wait- for -provisioning -- new -user admin -- new -user-password admin profile-create --parent default --parent feature-cxf --parent feature-fabric-web --version 1.0 cxf-soaptest profile-edit --bundle mvn:org.jboss.quickstarts.fuse/cxf-soap/6.3.0.redhat-371-SNAPSHOT cxf-soaptest profile-edit --pid io.fabric8.gateway.http.mapping-apis/uriTemplate=/api\{contextPath\}/ gateway-http container-add-profile root cxf-soaptest container-add-profile root gateway-http Access page: http://localhost:9000/api/cxf/HelloWorld?wsdl

      If a custom uriTemplate is used in the gateway-http component, e.g.

      JBossFuse:karaf@root> profile-edit --pid io.fabric8.gateway.http.mapping-apis/uriTemplate=/api\{contextPath\}/ gateway-http
      

      the resulting WSDL does not include the "/api" in the schemaLocation and the soap:address location, e.g.:

      <xsd:import namespace="http://soap.quickstarts.fabric8.io/" schemaLocation="http://localhost:9000/cxf/HelloWorld/?xsd=HelloWorldTypes.xsd"/>
      ...
      <soap:address location="http://localhost:9000/cxf/HelloWorld/"/>
      

              ggrzybek Grzegorz Grzybek
              rhn-support-shiggs Stephen Higgs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: