axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3645) Error in EndpointReferenceHelper
Date Thu, 20 Mar 2008 22:55:25 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepal Jayasinghe resolved AXIS2-3645.
--------------------------------------

    Resolution: Won't Fix

It was a problem in the test case not in the code. 

> Error in EndpointReferenceHelper
> --------------------------------
>
>                 Key: AXIS2-3645
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3645
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>            Reporter: Deepal Jayasinghe
>            Assignee: Brian DePradine
>            Priority: Critical
>             Fix For: 1.4
>
>
> When I was running the MEX test I found that EndpointReferenceHelper does not handle
when we have addressing submission. As I can see following method is causing the error
> private static void fromOM(EndpointReference epr, OMElement eprOMElement, Map map,
>                                boolean isFinalAddressingNamespace) {
>         Iterator childElements = eprOMElement.getChildElements();
>         while (childElements.hasNext()) {
>             OMElement eprChildElement = (OMElement) childElements.next();
>             QName qname = eprChildElement.getQName();
>             if (map.get(AddressingConstants.EPR_ADDRESS).equals(qname)) {
>                 //We need to identify the address element again in order to ensure
>                 //that it is not included with the extensibility elements.
>                 epr.setAddress(eprChildElement.getText());
>                 Iterator allAddrAttributes = eprChildElement.getAllAttributes();
>                 ArrayList addressAttributes = new ArrayList();
>                 while (allAddrAttributes.hasNext()) {
>                     OMAttribute attribute = (OMAttribute) allAddrAttributes.next();
>                     addressAttributes.add(attribute);
>                 }
>                 epr.setAddressAttributes(addressAttributes);
>             } else if (map.get(AddressingConstants.EPR_REFERENCE_PARAMETERS).equals(qname))
{
>                 Iterator iterator = eprChildElement.getChildElements();
>                 while (iterator.hasNext()) {
>                     OMElement element = (OMElement) iterator.next();
>                     epr.addReferenceParameter(element);
>                 }
>             } else if (isFinalAddressingNamespace &&
>                     map.get(AddressingConstants.Final.WSA_METADATA).equals(qname)) {
>                 Iterator iterator = eprChildElement.getChildElements();
>                 while (iterator.hasNext()) {
>                     OMNode node = (OMNode) iterator.next();
>                     epr.addMetaData(node);
>                 }
>                 Iterator allMDAttributes = eprChildElement.getAllAttributes();
>                 ArrayList metadataAttributes = new ArrayList();
>                 while (allMDAttributes.hasNext()) {
>                     OMAttribute attribute = (OMAttribute) allMDAttributes.next();
>                     metadataAttributes.add(attribute);
>                 }
>                 epr.setMetadataAttributes(metadataAttributes);
>             } else if (!isFinalAddressingNamespace &&
>                     map.get(AddressingConstants.Submission.EPR_REFERENCE_PROPERTIES).equals(qname))
>             {
>                 // since we have the model for WS-Final, we don't have a place to keep
this reference properties.
>                 // The only compatible place is reference properties
>                 Iterator iterator = eprChildElement.getChildElements();
>                 while (iterator.hasNext()) {
>                     OMElement element = (OMElement) iterator.next();
>                     epr.addReferenceParameter(element);
>                 }
>             } else {
>                 epr.addExtensibleElement(eprChildElement);
>             }
>         }
>         Iterator attributes = eprOMElement.getAllAttributes();
>         while (attributes.hasNext()) {
>             OMAttribute attribute = (OMAttribute) attributes.next();
>             epr.addAttribute(attribute);
>         }
>         if (log.isDebugEnabled()) {
>             log.debug("fromOM: Endpoint reference, " + epr);
>         }
>     }

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message