Author: keith Date: Fri Jul 11 23:28:04 2008 New Revision: 19162 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19162
Log: Give preference to SOAP 11 binding when dynamic client is used Modified: trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java Modified: trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java?rev=19162&r1=19161&r2=19162&view=diff ============================================================================== --- trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java (original) +++ trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java Fri Jul 11 23:28:04 2008 @@ -465,10 +465,10 @@ List extensibilityElements = port.getExtensibilityElements(); for (int i = 0; i < extensibilityElements.size(); i++) { Object extElement = extensibilityElements.get(i); - if (extElement instanceof SOAP12Address) { - // SOAP 1.2 address found - keep this and loop until http address is found + if (extElement instanceof SOAPAddress) { + // SOAP 1.1 address found - keep this and loop until http address is found returnPort = port; - String location = ((SOAP12Address) extElement).getLocationURI().trim(); + String location = ((SOAPAddress) extElement).getLocationURI().trim(); if ((location != null) && location.startsWith("http:")) { // i.e we have found an http port so return from here break; @@ -484,10 +484,10 @@ List extensibilityElements = port.getExtensibilityElements(); for (int i = 0; i < extensibilityElements.size(); i++) { Object extElement = extensibilityElements.get(i); - if (extElement instanceof SOAPAddress) { - // SOAP 1.1 address found - keep this and loop until http address is found + if (extElement instanceof SOAP12Address) { + // SOAP 1.2 address found - keep this and loop until http address is found returnPort = port; - String location = ((SOAPAddress) extElement).getLocationURI().trim(); + String location = ((SOAP12Address) extElement).getLocationURI().trim(); if ((location != null) && location.startsWith("http:")) { // i.e we have found an http port so return from here break; _______________________________________________ Mashup-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev
