Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 7358 invoked from network); 12 May 2004 02:33:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 May 2004 02:33:02 -0000 Received: (qmail 82086 invoked by uid 500); 12 May 2004 02:32:47 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 82072 invoked by uid 500); 12 May 2004 02:32:46 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 82050 invoked by uid 98); 12 May 2004 02:32:46 -0000 Received: from davanum@gmail.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(64.233.170.193):. Processed in 0.4229 secs); 12 May 2004 02:32:46 -0000 X-Qmail-Scanner-Mail-From: davanum@gmail.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(64.233.170.193):. Processed in 0.4229 secs) Received: from unknown (HELO mproxy.gmail.com) (64.233.170.193) by hermes.apache.org with SMTP; 12 May 2004 02:32:46 -0000 Received: by mproxy.gmail.com with SMTP id 61so230397rnd for ; Tue, 11 May 2004 19:32:39 -0700 (PDT) Received: by 10.11.117.17 with SMTP id p17mr57783cwc; Tue, 11 May 2004 19:32:39 -0700 (PDT) Message-ID: <19e0530f0405111932453f110f@mail.gmail.com> Date: Tue, 11 May 2004 22:32:39 -0400 From: Davanum Srinivas Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: Question about Service() Constructor In-Reply-To: <200405112315.i4BNF1q4010928@sarvega.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200405112315.i4BNF1q4010928@sarvega.com> X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Blake, Can you post the WSDL itself? typically you pick up the targetNamespace as the uri for constructuing the QName. You can check out my samples/client/DynamicInvoker code -- dims (Davanum Srinivas) ----- Original Message ----- From: Blake Dournaee Date: Tue, 11 May 2004 16:14:57 -0700 Subject: RE: Question about Service() Constructor To: axis-user@ws.apache.org All, I've updated this to include a guess at the namespace part of the QName. Still the same problem: try { String uri = new String("http://localhost:8080/axis/Tester.jws"); String localPart = new String("TesterClient"); QName serviceName = new QName(uri,localPart); Service service = new Service(wsdl,serviceName); } catch (Exception xp) { System.out.println("Error building Service object"); xp.printStackTrace(); } Error building Service object javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://localhost:8080/axis/Tester.jws}TesterClient at org.apache.axis.client.Service.initService(Service.java:261) at org.apache.axis.client.Service.(Service.java:217) at TesterClient.main(TesterClient.java:44) Does anyone have any ideas? Thanks, Blake ________________________________ From: Blake Dournaee [mailto:blake@sarvega.com] Sent: Tuesday, May 11, 2004 2:15 PM To: axis-user@ws.apache.org Subject: Question about Service() Constructor All, Given a WSDL, how does one properly find the name of the service? That is, I have a WSDL and am making a call to the Service() constructor that takes two arguments: The WSDL (stream or file) A QName. I am stuck on how to properly populate the QName. At this point I am guessing. In my WSDL, the element has an attribute called name, e.g: So my call looks like: try { QName serviceName = new QName("TesterClient"); Service service = new Service(wsdl,serviceName); } catch (Exception xp) { System.out.println("Error building Service object"); xp.printStackTrace(); } But this gives me an exception: og4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle). og4j:WARN Please initialize the log4j system properly. rror building Service object avax.xml.rpc.ServiceException: Error processing WSDL document: avax.xml.rpc.ServiceException: Error processing WSDL document: avax.xml.rpc.ServiceException: Cannot find service: TesterClient at org.apache.axis.client.Service.initService(Service.java:261) at org.apache.axis.client.Service.(Service.java:217) at TesterClient.main(TesterClient.java:41) I am not even getting off the ground on this. Can someone help me figure out how to properly name my Service? Thanks, Blake