Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4990

When thrown the fault from logical handle, the namespace setting doesn't work

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      CXF support to setup the namespaces in the soap envelope by setting the property of soap.env.ns.map like the below setting, but it doesn't take effect when throwing the fault from handler like this.

      <jaxws:endpoint
                      id="cxfEndpoint"
                      address="http://localhost:5555"
                      wsdlURL="wsdl/demo.wsdl"
                      serviceClass="example.esb.testing.HelloPortType"
                      serviceName="s:HelloService"
                      xmlns:s="urn:example:esb:testing">
      <jaxws:properties>
              
                              <entry key="soap.env.ns.map">
                                      <map>
                                              <entry key="esb" value="http://www.example.com/esb/20080930/header" />
                                      </map>
                              </entry>
                              
                      </jaxws:properties>
                      <jaxws:handlers>
                              <ref bean="faultThrowingHandler" />
                      </jaxws:handlers>
      
      </jaxws:endpoint> 
      
      

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: