You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Wendy Raschke (JIRA)" <ji...@apache.org> on 2009/10/14 15:42:31 UTC

[jira] Created: (AXIS2-4530) XMLFaultUtils.createSAAJFault() creates a fault with incorrect node

XMLFaultUtils.createSAAJFault() creates a fault with incorrect node
-------------------------------------------------------------------

                 Key: AXIS2-4530
                 URL: https://issues.apache.org/jira/browse/AXIS2-4530
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Wendy Raschke


A web service creates a SOAPFaultException with a SOAP fault like the below:

...
<soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value><soap:Subcode><soap:Value>q0:Err_600</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">{etc}soap:Text></soap:Reason><soap:Node>http://example.host:8080/HelloService/HelloService.asmx</soap:Node><soap:Role>HelloWorld</soap:Role><soap:Detail/></soap:Fault>...


It throws it, and when the client catches this exception and gets the SOAPFault from it, it does not get the proper value for Node. i.e., when it calls SOAPFault.getNode(), it gets null. This is due to this code in XMLFaultUtils.createSAAJFault():

        // Set the Node...only applicable for SOAP 1.2
        if (xmlFault.getNode() != null
                && protocolNS.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {
        	soapFault.setFaultRole(xmlFault.getNode());	               // <-- Incorrect
        }

The indicated line should be changed to

                    soapFault.setFaultNode(xmlFault.getNode());


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


[jira] Assigned: (AXIS2-4530) XMLFaultUtils.createSAAJFault() creates a fault with incorrect node

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

Rich Scheuerle reassigned AXIS2-4530:
-------------------------------------

    Assignee: Rich Scheuerle

> XMLFaultUtils.createSAAJFault() creates a fault with incorrect node
> -------------------------------------------------------------------
>
>                 Key: AXIS2-4530
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4530
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Wendy Raschke
>            Assignee: Rich Scheuerle
>         Attachments: AXIS-4530.patch
>
>
> A web service creates a SOAPFaultException with a SOAP fault like the below:
> ...
> <soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value><soap:Subcode><soap:Value>q0:Err_600</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">{etc}soap:Text></soap:Reason><soap:Node>http://example.host:8080/HelloService/HelloService.asmx</soap:Node><soap:Role>HelloWorld</soap:Role><soap:Detail/></soap:Fault>...
> It throws it, and when the client catches this exception and gets the SOAPFault from it, it does not get the proper value for Node. i.e., when it calls SOAPFault.getNode(), it gets null. This is due to this code in XMLFaultUtils.createSAAJFault():
>         // Set the Node...only applicable for SOAP 1.2
>         if (xmlFault.getNode() != null
>                 && protocolNS.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {
>         	soapFault.setFaultRole(xmlFault.getNode());	               // <-- Incorrect
>         }
> The indicated line should be changed to
>                     soapFault.setFaultNode(xmlFault.getNode());

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


[jira] Updated: (AXIS2-4530) XMLFaultUtils.createSAAJFault() creates a fault with incorrect node

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

Wendy Raschke updated AXIS2-4530:
---------------------------------

    Attachment: AXIS-4530.patch

> XMLFaultUtils.createSAAJFault() creates a fault with incorrect node
> -------------------------------------------------------------------
>
>                 Key: AXIS2-4530
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4530
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Wendy Raschke
>         Attachments: AXIS-4530.patch
>
>
> A web service creates a SOAPFaultException with a SOAP fault like the below:
> ...
> <soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value><soap:Subcode><soap:Value>q0:Err_600</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">{etc}soap:Text></soap:Reason><soap:Node>http://example.host:8080/HelloService/HelloService.asmx</soap:Node><soap:Role>HelloWorld</soap:Role><soap:Detail/></soap:Fault>...
> It throws it, and when the client catches this exception and gets the SOAPFault from it, it does not get the proper value for Node. i.e., when it calls SOAPFault.getNode(), it gets null. This is due to this code in XMLFaultUtils.createSAAJFault():
>         // Set the Node...only applicable for SOAP 1.2
>         if (xmlFault.getNode() != null
>                 && protocolNS.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {
>         	soapFault.setFaultRole(xmlFault.getNode());	               // <-- Incorrect
>         }
> The indicated line should be changed to
>                     soapFault.setFaultNode(xmlFault.getNode());

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


[jira] Work started: (AXIS2-4530) XMLFaultUtils.createSAAJFault() creates a fault with incorrect node

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

Work on AXIS2-4530 started by Rich Scheuerle.

> XMLFaultUtils.createSAAJFault() creates a fault with incorrect node
> -------------------------------------------------------------------
>
>                 Key: AXIS2-4530
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4530
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Wendy Raschke
>            Assignee: Rich Scheuerle
>         Attachments: AXIS-4530.patch
>
>
> A web service creates a SOAPFaultException with a SOAP fault like the below:
> ...
> <soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value><soap:Subcode><soap:Value>q0:Err_600</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">{etc}soap:Text></soap:Reason><soap:Node>http://example.host:8080/HelloService/HelloService.asmx</soap:Node><soap:Role>HelloWorld</soap:Role><soap:Detail/></soap:Fault>...
> It throws it, and when the client catches this exception and gets the SOAPFault from it, it does not get the proper value for Node. i.e., when it calls SOAPFault.getNode(), it gets null. This is due to this code in XMLFaultUtils.createSAAJFault():
>         // Set the Node...only applicable for SOAP 1.2
>         if (xmlFault.getNode() != null
>                 && protocolNS.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {
>         	soapFault.setFaultRole(xmlFault.getNode());	               // <-- Incorrect
>         }
> The indicated line should be changed to
>                     soapFault.setFaultNode(xmlFault.getNode());

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


[jira] Resolved: (AXIS2-4530) XMLFaultUtils.createSAAJFault() creates a fault with incorrect node

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

Rich Scheuerle resolved AXIS2-4530.
-----------------------------------

    Resolution: Fixed

> XMLFaultUtils.createSAAJFault() creates a fault with incorrect node
> -------------------------------------------------------------------
>
>                 Key: AXIS2-4530
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4530
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Wendy Raschke
>            Assignee: Rich Scheuerle
>         Attachments: AXIS-4530.patch
>
>
> A web service creates a SOAPFaultException with a SOAP fault like the below:
> ...
> <soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value><soap:Subcode><soap:Value>q0:Err_600</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">{etc}soap:Text></soap:Reason><soap:Node>http://example.host:8080/HelloService/HelloService.asmx</soap:Node><soap:Role>HelloWorld</soap:Role><soap:Detail/></soap:Fault>...
> It throws it, and when the client catches this exception and gets the SOAPFault from it, it does not get the proper value for Node. i.e., when it calls SOAPFault.getNode(), it gets null. This is due to this code in XMLFaultUtils.createSAAJFault():
>         // Set the Node...only applicable for SOAP 1.2
>         if (xmlFault.getNode() != null
>                 && protocolNS.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {
>         	soapFault.setFaultRole(xmlFault.getNode());	               // <-- Incorrect
>         }
> The indicated line should be changed to
>                     soapFault.setFaultNode(xmlFault.getNode());

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


[jira] Commented: (AXIS2-4530) XMLFaultUtils.createSAAJFault() creates a fault with incorrect node

Posted by "Wendy Raschke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765565#action_12765565 ] 

Wendy Raschke commented on AXIS2-4530:
--------------------------------------

I will provide the fix for this.

> XMLFaultUtils.createSAAJFault() creates a fault with incorrect node
> -------------------------------------------------------------------
>
>                 Key: AXIS2-4530
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4530
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Wendy Raschke
>
> A web service creates a SOAPFaultException with a SOAP fault like the below:
> ...
> <soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value><soap:Subcode><soap:Value>q0:Err_600</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">{etc}soap:Text></soap:Reason><soap:Node>http://example.host:8080/HelloService/HelloService.asmx</soap:Node><soap:Role>HelloWorld</soap:Role><soap:Detail/></soap:Fault>...
> It throws it, and when the client catches this exception and gets the SOAPFault from it, it does not get the proper value for Node. i.e., when it calls SOAPFault.getNode(), it gets null. This is due to this code in XMLFaultUtils.createSAAJFault():
>         // Set the Node...only applicable for SOAP 1.2
>         if (xmlFault.getNode() != null
>                 && protocolNS.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {
>         	soapFault.setFaultRole(xmlFault.getNode());	               // <-- Incorrect
>         }
> The indicated line should be changed to
>                     soapFault.setFaultNode(xmlFault.getNode());

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