Yes Josef - both http and local transports work (after incorporating the change I have mentioned below when getting the service client via local transport). Also I did not implement my own transport - am just using the bundled in transport receivers and senders.
thanks, -- Yashwanth From: Stadelmann Josef [mailto:josef.stadelm...@axa-winterthur.ch] Sent: Wednesday, July 20, 2011 2:08 AM To: java-user@axis.apache.org Subject: AW: How to use local transport? Yashwanth Just replacing your transport now by the http-transport-sender/receiver (i.e. just reconfiguring the relevant classes) does it work over the net? Josef Von: Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco) [mailto:yraja...@cisco.com] Gesendet: Mittwoch, 20. Juli 2011 00:16 An: java-user@axis.apache.org Betreff: RE: How to use local transport? Just for the sake of completeness and to help others who might be interested in this... here is how am able to get this to work (My team had stumbled on this long ago but somehow this slipped my mind now). The following call does not work as desired : ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(nul l, null); So I had to supply the parameters to get this to work as desired: ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(Rep ositoryPath, AxisXML); thanks, -- Yashwanth From: Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco) Sent: Tuesday, July 19, 2011 11:44 AM To: java-user@axis.apache.org Subject: How to use local transport? Hi All: I am trying to use the "local transport" which is supported in Axis 1.5. I tried to use org.apache.axis2.integration.LocalTestCase.java (which is used by Axis for Unit Tests). I bundled this along with my code and used getClient(serviceName, OperationName) method on it. But when executing my code it was unable to resolve the service ... I accessed it in this format "local://services/MyService"... can anyone help me with this? Here is what I want to do: Client<------webservice invocation---------> Axis2+Module+WebService1,WebService2 I want to call WebService1 from WebService2 without having to go over wire and hence I want to use local transport. Here is the top of the stack trace: org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) local://services/WebService1 at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java :486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out InAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper ation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA xisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163 ) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528 ) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508 ) at com.cisco.ws.partnerService.PartnerService.doLocalInvocation(PartnerServ ice.java:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) thanks, -- Yashwanth