Hi Scott,
First you have to create a ServiceFactory instance. The below code will help
you.
URL currWsdlUrl = new URL(UrlString);
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service currService = serviceFactory.createService(currWsdlUrl, new
QName(nameSpaceUri,
serviceName));
Regards,
Dimuthu.
----- Original Message -----
From: "Scott Artman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 11:00 PM
Subject: Can't find specified service when creating a "service" object
> In writing an Axis client to access a web service hosted by Axis, I'm
trying
> to create a service object using the following signature:
>
> Service(java.net.URL wsdlDoc, QName serviceName)
>
> In my Axis client, I have the following code:
>
> URL url = new
> URL("http://localhost:8080/jboss-net/services/AgentService?wsdl");
> service = new Service(url, new QName("SecuritySessionService"));
>
> When I execute this code, I receive a ServiceException indicating that the
> specified service cannot be found. Given the attached WSDL file, what
> should I be entering for the namespace URI and local part of the qualified
> name? I have tried several values for each of these parameters with the
> same results.
>
> Scott
>
>
>