Hi, Ron It works now.
Thank you so much, Helen -----Original Message----- From: Ron Reynolds [mailto:[EMAIL PROTECTED] Sent: Thursday, October 13, 2005 3:31 PM To: [email protected] Subject: Re: Help -- Implement Client Side i think the answer is in this line of the locator java code: private java.lang.String RIDPort_address = "http://localhost:8000/axis/services/RID"; it is populated via the <service> section of the wsdl and it doesn't match the String endpoint = "http://localhost:8080/axis/services/RID"; you used in your second code. you could try IHERetrieveForDisplayHttpGet bean = service.getRIDPort(new URL("http://localhost:8080/axis/services/RID")); and see if that helps. > Hi, > > > > Generate client and server side via WSDL2Java based on an existing wsdl. > > > > > Tried to use generated stub on client side, got error > "{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: > Connection refused:". The error detail is attached. > > > > public static void main(String [] args) throws Exception > > { > > com.i3archive.www.RID_xsd1.SummaryRequestType requestType > com.i3archive.www.RID_xsd1.SummaryRequestType.fromString("SUMMARY"); > > > > RID service = new RIDLocator(); > > IHERetrieveForDisplayHttpGet bean = service.getRIDPort(); > > System.out.println(bean.retrieveSummaryInfo(requestType)); > > } > > > > Tried to use DII to make a WebService call, everything is fine. I got > what I want. > > > > public static void main(String [] args) throws Exception > > { > > String endpoint = "http://localhost:8080/axis/services/RID"; > > com.i3archive.www.RID_xsd1.SummaryRequestType requestType = > > com.i3archive.www.RID_xsd1.SummaryRequestType.fromString("SUMMARY"); > > > > Service service = new Service(); > > Call call = (Call) service.createCall(); > > call.setOperationName(new QName(endpoint, "retrieveSummaryInfo")); > > call.setTargetEndpointAddress(new java.net.URL(endpoint)); > > System.out.println((String)call.invoke(new > Object[]{requestType})); > > } > > > > This means the web services is ok. Does this mean something is wrong > within RIDLocator? This file is also attached. > > What I know is to check endpoint and found they are exact the same. > > Anything else I can do to client stub call? Any suggestion will be > appreciated. > > > > Thanks, > > Helen > > > > > > > >
