axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Leelarathne" <muthu...@vijayaba.cse.mrt.ac.lk>
Subject Re: Can't find specified service when creating a "service" object
Date Mon, 04 Nov 2002 02:54:38 GMT
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" <Sartman@TWIA.ORG>
To: <axis-user@ws.apache.org>
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
>
>
>



Mime
View raw message