You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2008/01/08 23:39:50 UTC
svn commit: r610207 -
/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Author: davidillsley
Date: Tue Jan 8 14:39:50 2008
New Revision: 610207
URL: http://svn.apache.org/viewvc?rev=610207&view=rev
Log:
Fix unit test breakage... sorry
Modified:
webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?rev=610207&r1=610206&r2=610207&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java (original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java Tue Jan 8 14:39:50 2008
@@ -470,24 +470,26 @@
}
// Now add reference parameters we found in the WSDL (if any)
AxisService service = messageContext.getAxisService();
- AxisEndpoint endpoint = service.getEndpoint(service.getEndpointName());
- if(endpoint != null){
- ArrayList referenceparameters = (ArrayList) endpoint.getParameterValue(REFERENCE_PARAMETER_PARAMETER);
- if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
- log.trace("processToEPRReferenceInformation: Reference Parameters from WSDL:" + referenceparameters);
- }
- if(referenceparameters!=null){
- Iterator iterator = referenceparameters.iterator();
- while (iterator.hasNext()) {
- OMElement omElement = (OMElement)iterator.next();
- OMElement newElement = ElementHelper.importOMElement(omElement, header.getOMFactory());
- if (isFinalAddressingNamespace) {
- newElement.addAttribute(Final.WSA_IS_REFERENCE_PARAMETER_ATTRIBUTE,
- Final.WSA_TYPE_ATTRIBUTE_VALUE,
- addressingNamespaceObject);
- }
- header.addChild(newElement);
- }
+ if(service != null){
+ AxisEndpoint endpoint = service.getEndpoint(service.getEndpointName());
+ if(endpoint != null){
+ ArrayList referenceparameters = (ArrayList) endpoint.getParameterValue(REFERENCE_PARAMETER_PARAMETER);
+ if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
+ log.trace("processToEPRReferenceInformation: Reference Parameters from WSDL:" + referenceparameters);
+ }
+ if(referenceparameters!=null){
+ Iterator iterator = referenceparameters.iterator();
+ while (iterator.hasNext()) {
+ OMElement omElement = (OMElement)iterator.next();
+ OMElement newElement = ElementHelper.importOMElement(omElement, header.getOMFactory());
+ if (isFinalAddressingNamespace) {
+ newElement.addAttribute(Final.WSA_IS_REFERENCE_PARAMETER_ATTRIBUTE,
+ Final.WSA_TYPE_ATTRIBUTE_VALUE,
+ addressingNamespaceObject);
+ }
+ header.addChild(newElement);
+ }
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org