You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "K U (JIRA)" <ji...@apache.org> on 2009/01/19 13:18:00 UTC

[jira] Created: (CXF-1993) Adding namespaces to the soap envelope

Adding namespaces to the soap envelope
--------------------------------------

                 Key: CXF-1993
                 URL: https://issues.apache.org/jira/browse/CXF-1993
             Project: CXF
          Issue Type: Improvement
          Components: Soap Binding
    Affects Versions: 2.1.3
         Environment: Windows XP, Java 5(1.5.0_16)
            Reporter: K U
            Priority: Minor


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-1993) Adding namespaces to the soap envelope

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-1993:
--------------------------------

    Assignee: Daniel Kulp

> Adding namespaces to the soap envelope
> --------------------------------------
>
>                 Key: CXF-1993
>                 URL: https://issues.apache.org/jira/browse/CXF-1993
>             Project: CXF
>          Issue Type: Improvement
>          Components: Soap Binding
>    Affects Versions: 2.1.3
>         Environment: Windows XP, Java 5(1.5.0_16)
>            Reporter: K U
>            Assignee: Daniel Kulp
>            Priority: Minor
>         Attachments: SoapMessage.java, SoapOutInterceptor.java
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1993) Adding namespaces to the soap envelope

Posted by "K U (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

K U updated CXF-1993:
---------------------

    Attachment: SoapMessage.java

Added:

    public Map<String, String> getEnvelopeNs() {
        return CastUtils.cast((Map<? , ?>)get("soap.env.ns.map"));
    }
    
    public boolean hasAdditionalEnvNs() {
        return getEnvelopeNs() != null ? getEnvelopeNs().size() > 0 : false;
    } 

> Adding namespaces to the soap envelope
> --------------------------------------
>
>                 Key: CXF-1993
>                 URL: https://issues.apache.org/jira/browse/CXF-1993
>             Project: CXF
>          Issue Type: Improvement
>          Components: Soap Binding
>    Affects Versions: 2.1.3
>         Environment: Windows XP, Java 5(1.5.0_16)
>            Reporter: K U
>            Priority: Minor
>         Attachments: SoapMessage.java
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1993) Adding namespaces to the soap envelope

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1993.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.4


changes applied (with some additional tuning)

> Adding namespaces to the soap envelope
> --------------------------------------
>
>                 Key: CXF-1993
>                 URL: https://issues.apache.org/jira/browse/CXF-1993
>             Project: CXF
>          Issue Type: Improvement
>          Components: Soap Binding
>    Affects Versions: 2.1.3
>         Environment: Windows XP, Java 5(1.5.0_16)
>            Reporter: K U
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.1.4
>
>         Attachments: SoapMessage.java, SoapOutInterceptor.java
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1993) Adding namespaces to the soap envelope

Posted by "K U (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

K U updated CXF-1993:
---------------------

    Attachment: SoapOutInterceptor.java

Added:

private void writeSoapEnvelopeStart(final SoapMessage message) {
 
final SoapVersion soapVersion = message.getVersion();
.......
.......
.......
......
  if (message.hasAdditionalEnvNs()) {
                Map<String, String> nsMap = message.getEnvelopeNs();
                for (Map.Entry<String, String> entry : nsMap.entrySet()) {
                    xtw.writeNamespace(entry.getKey(), entry.getValue());
                }
           }


> Adding namespaces to the soap envelope
> --------------------------------------
>
>                 Key: CXF-1993
>                 URL: https://issues.apache.org/jira/browse/CXF-1993
>             Project: CXF
>          Issue Type: Improvement
>          Components: Soap Binding
>    Affects Versions: 2.1.3
>         Environment: Windows XP, Java 5(1.5.0_16)
>            Reporter: K U
>            Priority: Minor
>         Attachments: SoapMessage.java, SoapOutInterceptor.java
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1993) Adding namespaces to the soap envelope

Posted by "K U (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

K U updated CXF-1993:
---------------------

    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



  was:
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



> Adding namespaces to the soap envelope
> --------------------------------------
>
>                 Key: CXF-1993
>                 URL: https://issues.apache.org/jira/browse/CXF-1993
>             Project: CXF
>          Issue Type: Improvement
>          Components: Soap Binding
>    Affects Versions: 2.1.3
>         Environment: Windows XP, Java 5(1.5.0_16)
>            Reporter: K U
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.