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 de...@apache.org on 2006/03/22 14:45:37 UTC
svn commit: r387858 - in /webservices/axis2/trunk/java/modules:
core/src/org/apache/axis2/client/ integration/test/org/apache/axis2/engine/
integration/test/org/apache/axis2/engine/util/
integration/test/org/apache/axis2/mtom/ integration/test/org/apac...
Author: deepal
Date: Wed Mar 22 05:45:31 2006
New Revision: 387858
URL: http://svn.apache.org/viewcvs?rev=387858&view=rev
Log:
If the addressing is engaged then you have to add the action otherwise you will be getting nice exception :) , I think that is the right behavior.
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/HandlerFailureTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/OneWayRawXMLTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/SOAPversionTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceCreateTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceDispatchingTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/mtom/EchoRawMTOMToBase64Test.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/MultirefTest.java
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java Wed Mar 22 05:45:31 2006
@@ -1,22 +1,11 @@
package org.apache.axis2.client;
import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.async.AsyncResult;
import org.apache.axis2.client.async.Callback;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.context.ServiceContext;
-import org.apache.axis2.context.ServiceGroupContext;
-import org.apache.axis2.description.AxisModule;
-import org.apache.axis2.description.AxisOperation;
-import org.apache.axis2.description.AxisService;
-import org.apache.axis2.description.AxisServiceGroup;
-import org.apache.axis2.description.OutInAxisOperation;
-import org.apache.axis2.description.OutOnlyAxisOperation;
-import org.apache.axis2.description.RobustOutOnlyAxisOperation;
+import org.apache.axis2.context.*;
+import org.apache.axis2.description.*;
import org.apache.axis2.engine.AxisConfiguration;
import org.apache.axis2.engine.ListenerManager;
import org.apache.axis2.i18n.Messages;
@@ -100,24 +89,15 @@
if (this.axisConfig.getService(this.axisService.getName()) == null) {
this.axisConfig.addService(this.axisService);
}
- // create a service context for myself: create a new service group
- // context and then get the service context for myself as I'll need that
- // later for stuff that I gotta do
- ServiceGroupContext sgc = new ServiceGroupContext(this.configContext,
- (AxisServiceGroup) this.axisService.getParent());
- this.serviceContext = sgc.getServiceContext(this.axisService);
-
- // if we are using anon case then we can not use addressing, as WS-A requires both
- // Action and To address to be present. In anon case, we might not have the action.
- // so switching addressing off now. But will be setting back on, if some one sets the action.
- // @see Options.setAction()
- if (axisService == null) serviceContext.setProperty(
- Constants.Configuration.DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.TRUE);
+ // create a service context for myself: create a new service group
+ // context and then get the service context for myself as I'll need that
+ // later for stuff that I gotta do
+ ServiceGroupContext sgc = new ServiceGroupContext(this.configContext,
+ (AxisServiceGroup) this.axisService.getParent());
+ this.serviceContext = sgc.getServiceContext(this.axisService);
}
-
-
/**
* This is WOM based constructor to configure the Service Client/
* We are going to make this policy aware
@@ -253,17 +233,6 @@
* Set the client configuration related to this service interaction.
*/
public void setOptions(Options options) {
-// setting addressing back on. This does not mean anything if addressing is engaged.
- // this is working only if addressing is engaged, as one might already set this off.
- // see ServiceClient(ConfigurationContext,AxisService).
-
- // first check whether this is a "probable" URI. Well the best thing to do is to use the URI
- // class itself. But its kinda slow, using a lazy method here
- String action = options.getAction();
- if (action != null && action.indexOf(":") != -1) {
- options.setProperty(Constants.Configuration.DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.FALSE);
- }
-
this.options = options;
}
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java Wed Mar 22 05:45:31 2006
@@ -87,7 +87,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
- "target/test-resources/integrationRepo", null);
+ null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java Wed Mar 22 05:45:31 2006
@@ -99,7 +99,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
options.setTo(targetEPR);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java Wed Mar 22 05:45:31 2006
@@ -166,7 +166,7 @@
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
for (int i = 0; i < 5; i++) {
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLTest.java Wed Mar 22 05:45:31 2006
@@ -126,7 +126,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
@@ -144,7 +144,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
@@ -162,7 +162,7 @@
options.setProperty(MessageContextConstants.HTTP_PROTOCOL_VERSION, HTTPConstants.HEADER_PROTOCOL_10);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/HandlerFailureTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/HandlerFailureTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/HandlerFailureTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/HandlerFailureTest.java Wed Mar 22 05:45:31 2006
@@ -161,7 +161,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setTo(targetEPR);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/OneWayRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/OneWayRawXMLTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/OneWayRawXMLTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/OneWayRawXMLTest.java Wed Mar 22 05:45:31 2006
@@ -76,7 +76,7 @@
OMElement payload = TestingUtils.createDummyOMElement();
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,null);
ServiceClient sender = new ServiceClient(configContext, null);
Options options = new Options();
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/SOAPversionTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/SOAPversionTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/SOAPversionTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/SOAPversionTest.java Wed Mar 22 05:45:31 2006
@@ -68,7 +68,7 @@
public void testSOAP11() throws AxisFault {
OMElement payload = createEnvelope();
ConfigurationContext configCtx = ConfigurationContextFactory.
- createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ createConfigurationContextFromFileSystem(null, null);
ServiceClient client = new ServiceClient(configCtx, null);
@@ -92,7 +92,7 @@
public void testSOAP12() throws AxisFault {
OMElement payload = createEnvelope();
ConfigurationContext configCtx = ConfigurationContextFactory.
- createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ createConfigurationContextFromFileSystem(null, null);
ServiceClient client = new ServiceClient(configCtx, null);
Options options = new Options();
options.setSoapVersionURI(
@@ -135,7 +135,7 @@
public void testSOAPfault() throws AxisFault {
OMElement payload = createEnvelope();
ConfigurationContext configCtx = ConfigurationContextFactory.
- createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ createConfigurationContextFromFileSystem(null, null);
ServiceClient client = new ServiceClient(configCtx, null);
Options options = new Options();
client.setOptions(options);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceCreateTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceCreateTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceCreateTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceCreateTest.java Wed Mar 22 05:45:31 2006
@@ -44,7 +44,7 @@
UtilServer.start();
configContext = UtilServer.getConfigurationContext();
clinetConfigurationctx = ConfigurationContextFactory.
- createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ createConfigurationContextFromFileSystem(null, null);
}
public void testServiceCreate() throws AxisFault {
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceDispatchingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceDispatchingTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceDispatchingTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceDispatchingTest.java Wed Mar 22 05:45:31 2006
@@ -69,7 +69,7 @@
Options options = new Options();
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
options.setTo(targetEPR);
@@ -94,7 +94,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setAction("echoOMElement");
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
@@ -116,7 +116,7 @@
Options options = new Options();
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
options.setTo(targetEPR);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java Wed Mar 22 05:45:31 2006
@@ -48,7 +48,7 @@
this.threadNumber = threadNumber;
configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
- "target/test-resources/integrationRepo", null);
+ null, null);
}
public void run() {
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/mtom/EchoRawMTOMToBase64Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/mtom/EchoRawMTOMToBase64Test.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/mtom/EchoRawMTOMToBase64Test.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/mtom/EchoRawMTOMToBase64Test.java Wed Mar 22 05:45:31 2006
@@ -149,7 +149,7 @@
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,null);
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(clientOptions);
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/MultirefTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/MultirefTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/MultirefTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/MultirefTest.java Wed Mar 22 05:45:31 2006
@@ -128,7 +128,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -181,7 +181,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -229,7 +229,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -281,7 +281,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -341,7 +341,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -401,7 +401,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -462,7 +462,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -537,7 +537,7 @@
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
@@ -604,7 +604,7 @@
ConfigurationContext configConetxt = ConfigurationContextFactory
- .createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null);
+ .createConfigurationContextFromFileSystem(null,null);
RPCServiceClient rpcClient = new RPCServiceClient(configConetxt, null);
rpcClient.setOptions(options);
MessageContext reqMessageContext = new MessageContext();
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java?rev=387858&r1=387857&r2=387858&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java Wed Mar 22 05:45:31 2006
@@ -95,13 +95,12 @@
public void testEditBean() throws AxisFault {
configureSystem("editBean");
- String clientHome = "target/test-resources/integrationRepo";
Options options = new Options();
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem(clientHome, null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
options.setTo(targetEPR);
@@ -153,7 +152,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -185,7 +184,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -217,7 +216,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -235,7 +234,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -249,7 +248,7 @@
public void testAdd() throws AxisFault {
configureSystem("add");
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
Options options = new Options();
@@ -272,7 +271,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -292,7 +291,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -312,7 +311,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -330,7 +329,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -369,7 +368,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -414,7 +413,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -466,7 +465,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -485,7 +484,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -506,7 +505,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -539,7 +538,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -561,7 +560,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -585,7 +584,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -608,7 +607,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -630,7 +629,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);
@@ -664,7 +663,7 @@
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ConfigurationContext configContext =
- ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo", null);
+ ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
RPCServiceClient sender = new RPCServiceClient(configContext, null);
sender.setOptions(options);