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

Adding namespaces to the soap envelope

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4
    • Component/s: Soap Binding
    • Labels:
      None
    • Environment:

      Windows XP, Java 5(1.5.0_16)

      Description

      Problem :No current functionality available in CXF for adding namespaces to the envelope. The current implementation adds only the "SOAP" namespace.

      Ref: http://www.nabble.com/Add-namespaces-to-the-SOAP-envelope-td21477063.html#a21485516

      Solution: Changed SoapMessage.java and SoapOutInterceptor.java to add additional ns. May not be the cleanest solution as the key ("soap.env.ns.map") for storing the namespaces map is not coming from some constants file or somethig like that.

      Somethign like:

      HashMap hmap = new ..
      hmap.put("prefix 1","namespace 1");
      hmap.put("prefix 2","namespace 2")
      bp.getRequestContext.put("soap.env.ns.map", hmap);

      shud make a client/endpoint add additional ns to the envelope

      -J

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              joesatch K U

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment