antelder 2003/01/20 05:13:41
Modified: java/src/org/apache/wsif/providers/soap/apacheaxis
WSIFOperation_ApacheAxis.java
Log:
Fix bugzilla bug 16256 - the WSIF AXIS operation was setting the operation style
incorrectly. I've move the setting of this to the prepare method after the WSDL has
finished being parsed.
Revision Changes Path
1.64 +6 -12
xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java
Index: WSIFOperation_ApacheAxis.java
===================================================================
RCS file:
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- WSIFOperation_ApacheAxis.java 17 Jan 2003 16:29:07 -0000 1.63
+++ WSIFOperation_ApacheAxis.java 20 Jan 2003 13:13:40 -0000 1.64
@@ -1363,20 +1363,8 @@
call.removeAllParameters();
call.clearHeaders();
-// //TODO need to sort out the namespace
-// QName bindingQN = wsifPort.getBindingName();
-// if (bindingQN != null) {
-// setInputNamespace(bindingQN.getNamespaceURI());
-// }
-
call.setTargetEndpointAddress(wsifPort.getEndPoint());
- if (!WSIFAXISConstants.STYLE_RPC.equals(operationStyle)) {
- call.setEncodingStyle(null);
- inputEncodingStyle = "";
- outputEncodingStyle = "";
- }
-
if (inputSOAPParts == null) {
prepare(call);
}
@@ -1840,6 +1828,12 @@
// register any jms:address propertyValues
addInputJmsPropertyValues(wsifPort.getJmsAddressPropVals());
+ if (!WSIFAXISConstants.STYLE_RPC.equals(operationStyle)) {
+ call.setEncodingStyle(null);
+ inputEncodingStyle = "";
+ outputEncodingStyle = "";
+ }
+
if (inputNamespace == null || inputNamespace.length() < 1) {
this.inputNamespace = getTargetNamespaceURI();
}