I am still a little confused. I attached the deply file I was trying to use (staright out the examples)
Ok now at the command prompt I do (in the stock directory): java org.apache.axis.client.AdminClient deploy.wsdd and I get: - Processing file deploy.wsdd - AxisFault: AxisFault faultCode: http://xml.apache.org/axis/:Server.userException faultString: java.net.ConnectException: Connection refused: connect faultActor: null faultDetail: stackTrace: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:296) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:162) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:149) at java.net.Socket.connect(Socket.java:430) at java.net.Socket.connect(Socket.java:379) at java.net.Socket.<init>(Socket.java:293) at java.net.Socket.<init>(Socket.java:121) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:293) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:174) at org.apache.axis.client.Call.invoke(Call.java:1905) at org.apache.axis.client.Call.invoke(Call.java:1155) at org.apache.axis.client.AdminClient.process(AdminClient.java:313) at org.apache.axis.client.AdminClient.process(AdminClient.java:292) at org.apache.axis.client.AdminClient.process(AdminClient.java:299) at org.apache.axis.client.AdminClient.process(AdminClient.java:250) at org.apache.axis.client.AdminClient.main(AdminClient.java:335) -----Original Message----- From: jeff drost [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: RE: NewBie Question I have also had this symptom. I'm sure there could be many other causes, but here is mine. The example in the "Axis User's Guide" under "Consuming Web Services with Axis" contains the following code. call.setOperationName(new QName("http://soapinterop.org/", "echoString")); I found that this didn't work unless the same namespace is defined in the deployment descriptor (server-config.wsdd) for that service. <service name="MyService" provider="java:RPC"> <parameter name="allowedMethods" value="*"/> <parameter name="className" value="com.bla.foo.bar.MyService"/> <parameter name="scope" value="Application"/> <namespace>http://soapinterop.org/</namespace> </service> Also, I found that the if I wanted to use the setOperationName(String) method on the client (instead of the setOperationName(QName) method) then I still needed to define the namespace, but to nothing. This is what I needed to do to use the dynamic proxy returned from Service.getPort(...) because there is currently no way to supply a portName and a endpoint. I may be missing something here. <service name="MyService" provider="java:RPC"> <parameter name="allowedMethods" value="*"/> <parameter name="className" value="com.bla.foo.bar.MyService"/> <parameter name="scope" value="Application"/> <namespace/> </service> -Jeff --- Anthony Smith <[EMAIL PROTECTED]> wrote: > Ok, so check this out. > > > Now I am doing the StockQuote > > My Tomcat is running on port 80... > > I run the following and.... > java > samples.stock.GetQuote -lhttp://localhost:80/axis/servlet/AxisServlet -uuser > 1 -wpass1 XXX > > AxisFault > faultCode: http://xml.apache.org/axis/:Server.NoService > faultString: The AXIS engine could not find a target service to invoke! > target > Service is null > faultActor: null > faultDetail: > stackTrace: The AXIS engine could not find a target service to > invoke! > targetService is null > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:282) > at > org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:57 > 6) > at javax.servlet.http.HttpServlet.service(HttpServlet.java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java) > at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) > at org.apache.tomcat.core.Handler.invoke(Unknown Source) > at org.apache.tomcat.core.Handler.service(Unknown Source) > at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) > at org.apache.tomcat.core.ContextManager.internalService(Unknown > Source) > > at org.apache.tomcat.core.ContextManager.service(Unknown Source) > at > org.apache.tomcat.modules.server.Http10Interceptor.processConnection( > Unknown Source) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown > Source) > at java.lang.Thread.run(Thread.java:539) > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 26, 2002 3:57 PM > To: [EMAIL PROTECTED] > Subject: RE: NewBie Question > > > > Then the port your accessing it on - 5049 - may be blocked by a firewall at > your company. > > > > > > > Anthony Smith <[EMAIL PROTECTED]> on 06/26/2002 05:10:47 PM > > Please respond to [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) > Subject: RE: NewBie Question > > > I am using TestClient in examples1 and the endpoint is: > > String endpoint = "http://nagoya.apache.org:5049/axis/servlet/AxisServlet"; > > It seems as if Axis is runnig there. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 26, 2002 3:50 PM > To: [EMAIL PROTECTED] > Subject: Re: NewBie Question > > > > Sounds as if either: > > > - The URL you are building for the endpoint has the incorrect port. The > line: > > String endpoint = "http://localhost:" + options.getPort() + > "/axis/Calculator.jws"; > > may not be resolving to the correct port. Do a System.out.print and see if > the endpoint is the same port you have your server on. > > - Axis isn't running. Are you sure it's started and running correctly? > > > > > > > > > > Anthony Smith <[EMAIL PROTECTED]> on 06/26/2002 04:55:07 PM > > Please respond to [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) > Subject: NewBie Question > > > I just got started with Axis and tried a few examples, and I get the same > message for all of them... > > > java.net.ConnectException: Connection timed out: connect > > I put a few printlines in my code and they all seem to get stuck on > statements like the following: > > Integer ret = (Integer) call.invoke( new Object [] { i1, i2 }); > > > Basically any call.invoke.... Can someone tell me where I am going wrong? > > Anthony Smith > GSP Technologies > 901-263-8953 > > "Having education and talent doesn't make you better than the world... it > makes you responsible for it!" > > > > > > > > > > > > > > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
deploy.wsdd
Description: Binary data