OK I fixed the problem: I need to send an explicit configurationContext into the serviceStub to get the thing working.
config = ConfigurationContextFactory.* createConfigurationContextFromFileSystem*(*null* , "<AXIS-HOME>\conf\\axis2.xml"); I'm not sure why I have to do this...can anyone explain it to me. Thanks. On Feb 7, 2008 5:24 PM, h b <[EMAIL PROTECTED]> wrote: > Hello, I still have the same problem but here is some more info: > > I got the sample TCP Client to work...so hopefully my set up is right. > And my service is accessible from HTTP. Also when I do NETSTAT I see that > localhost:6060 is listening > > Here is the exact Exception: > > [INFO] Unable to parse request URL [ > http://service.prototype.com][axis2/services] > [ERROR] The service cannot be found for the endpoint reference (EPR) > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) > at org.apache.axis2.engine.DispatchPhase.checkPostConditions( > DispatchPhase.java:62) > at org.apache.axis2.engine.Phase.invoke(Phase.java:308) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) > at org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:88) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask > (ThreadPoolExecutor.java:665) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run > (ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Thread.java:619) > > Thanks > > On Feb 7, 2008 1:00 PM, h b <[EMAIL PROTECTED]> wrote: > > > Thanks Paul, that's great! I checked my wsdl and it has the TCP > > trasnport...thanks for the hint. > > > > You see I'm using my service consumer is using a service stub that was > > created using WSDL2Java. > > > > Is there a way I can instruct the stub to use the TCP port to > > communicate with the service? When I do something like > > > > MyStub stub = new > > MyStub("tcp://localhost:6060/axis2/services/MyService"); //I copied this > > from the wsdl > > stub.operation(); > > > > throws an exception: AxisFault: The service cannot be found for the > > endpoint reference. > > Can I use the same stub to access the service through tcp transport? > > > > Thanks > > On Feb 7, 2008 12:37 PM, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > > > > You can't get the WSDL via TCP. The WSDL should be available via HTTP. > > > If the tcp transport is correctly working, then there should be a tcp > > > binding in the WSDL. > > > > > > The ability to get WSDL via ?wsdl is an HTTP feature. > > > > > > Paul > > > > > > On Feb 7, 2008 8:28 PM, h b <[EMAIL PROTECTED]> wrote: > > > > Hello is it possible to generate a service stub when the service is > > > using a > > > > TCP transport? I don't seem to be able to do: WSDL2JAVA -uri > > > > tcp://localhost:6060/axis2/services/myservice?wsdl. > > > > > > > > Thanks > > > > > > > > > > > > -- > > > Paul Fremantle > > > Co-Founder and VP of Technical Sales, WSO2 > > > OASIS WS-RX TC Co-chair > > > > > > blog: http://pzf.fremantle.org > > > [EMAIL PROTECTED] > > > > > > "Oxygenating the Web Service Platform", www.wso2.com > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >
