hth,
You are truly amazing. I cannot believe I spent so much time trying to
debug something when using TCPMon would have not only solved most of the issue
but moved me forward a tremendous amount. It seems the problem was so simple yet
took me so long. Hence Computer Programming.
James
In a message dated 7/1/2004 12:36:13 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
Question: is tcpmon currently running? If not, there's nothing to
redirect your request.
hth
[EMAIL PROTECTED]
wrote:
> > I cannot access that address. However,
before you tell me that that is my
> error, consider my
thinking: > > The reason I call port 8081 and not 8080 is
because, on previous clients I > have used for different web
services that have worked perfectly, I have us ed > 8081 there
so that I can run TCPmon and listen to 8081 and register all th e
> messages. > > I used 8081 in previous clients and
it worked fine. Furthermore, changing
> that address to port 8080
does not work. > > Perhaps if you could give me a rundown
of exactly which addresses I should > be referencing and
where I would be able to figure it out. > > If somebody
could give me brief pseudocode of what I'm supposed to be doin g
> I'd be incredibly greatful. > > Thank you all for
your help! > James > > In a message dated 7/1/2004
11:52:32 AM Eastern Standard Time, > [EMAIL PROTECTED]
writes: > > Less obvious question. > Can you connect to
_http://localhost:8081/axis/adminDirect_ >
(http://localhost:8081/axis/adminDirect) - as that is the URL your
code actually uses. > > > > > >
-----Original Message----- > From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] > Sent: 01 July 2004 16:49 > To:
[EMAIL PROTECTED] > Subject: Re: Urgent & Desperate Help
with My Axis Client > > > > Yes this address is the
address of the page that lists all the deployed > services in
axis and works correctly... > > Any ideas? >
> > In a message dated 7/1/2004 11:47:12 AM Eastern
Standard Time, > [EMAIL PROTECTED] writes: >
> > > > > Obvious question, but can
you go to > http://localhost:8080/axis/servlet/AxisServlet with
your browser? > > > > >
[EMAIL PROTECTED] > To:
[EMAIL PROTECTED], [EMAIL PROTECTED]
> 07/01/2004 10:05
cc: >
AM
Subject: Urgent & Desperate Help with My Axis Cli ent
>
> Please respond to
> axis-user > > >
> > > > Hello, > > I am in desperate
need of some assistance with my Axis client. I would be > ecstatic
if somebody would be generous enough to help me! Even just a >
glance at this code would work! > > I have a properly
deployed web service in Axis and I am trying to write a > client
that utilizes it. I recieve the following error, however, among >
running the compiled program: > >
javax.xml.rpc.ServiceException: Error processing WSDL document: >
java.net.ConnectException: Connection refused: connect > at
org.apache.axis.client.Service.initService(Service.java:278) > at
org.apache.axis.client.Service.<init>(Service.java:193) >
at >
org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:23 2) >
> at >
localhost.axis.services.adminHandlerServicePort.adminHandlerClient2.main(a dmin >
HandlerClient2.java:3 > > This is my client, I have
abbreviated in some places for clarity and > conveinance however
this is everything having to do with accessing the >
server: > > public class adminHandlerClient2 > { >
static String router = "http://localhost:8081/axis/adminDirect"; >
static String service = "adminDirectService.wsdl"; > static
String endpoint = " >
http://localhost:8080/axis/servlet/AxisServlet"; > static String
url=""; > >
public static void main(String[] args) > { > try > { >
ServiceFactory sf = ServiceFactory.newInstance(); > URL u = new
URL(router + "/" + service); > QName serviceName = new
QName(url,"adminHandlerService"); > Service s =
sf.createService(u,serviceName); > > Call call =
(Call)s.createCall(); > > call.setTargetEndpointAddress(new
URL(endpoint)); > call.setOperationName(new
QName("postReport")); > > //Checking for proper syntax of
call > if (args.length==0) > { >
System.err.println("Incorrect usage of Client. Please use the >
following:"); > System.err.println("adminHandlerClient" + " [Group
Name]" + " > [Password]" + " [Account Name]" +
" [XML Path]" ); > } > else > { >
System.out.println("Thank You. Processing. . ."); > >
String groupName = args[0]; > String password = args[1]; >
String accountName = args[2]; > String xmlData =
readFile(args[3]); > > call.invoke(new Object [] {groupName,
password, accountName, > xmlData}); > } > } >
catch(Exception e) > { > System.err.println("Error running
Client:"); > e.printStackTrace(); > } > } > } >
> I look forward to hearing from you! > James! >
> > > > > > > >
>
--
----------------------------------------------------------------------- This
email is confidential and intended solely for the use of the individual to
whom it is addressed. If you are not the intended recipient, be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing, or copying of this email is strictly
prohibited. If you have received this email in error, please contact the
sender. -----------------------------------------------------------------------
|