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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/03/20 22:55:25 UTC
[jira] Updated: (AXIS2-3645) Error in EndpointReferenceHelper
[ https://issues.apache.org/jira/browse/AXIS2-3645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe updated AXIS2-3645:
-------------------------------------
Priority: Critical (was: Major)
Affects Version/s: nightly
Fix Version/s: 1.4
Assignee: Glen Daniels
> 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: Glen Daniels
> 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