Dimuthu, I tried your suggestion and I'm still getting the following error:
"Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service:
{AgentService}AgentService"
My main problem is that I'm not certain which strings to use for
nameSpaceUri and serviceName based on the attached WSDL file. I've tried
several combinations without success. If someone could enlighten me as to
which strings I should use for these parameters, I would appreciate it.
Thanks,
Scott
-----Original Message-----
From: Dimuthu Leelarathne [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 03, 2002 8:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Can't find specified service when creating a "service"
object
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
>
>
>
AgentService.xml
Description: Binary data
