You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Supriyo Chatterjea <su...@yahoo.com.sg> on 2002/07/30 17:11:50 UTC

Problem with GetQuote1 & location of WSDL file

Hi,

I'm trying to run the GetQuote1 example using a client
and a server. So on the client all I have is
GetQuote1.class and on the server, I've got the
GetQuote.wsdl and StockQuoteService.class.

So I've modified the following line in GetQuote1.java
from:

---method getQuote1()---
Service service = new Service( new
URL("file:GetQuote.wsdl"), servQN );

to:

Service service = new Service(
"http://localhost:8080/GetQuote.wsdl", servQN );

I've got the GetQuote.wsdl file in the following
directory:

jakarta-tomcat-4.0.4/webapps/ROOT

I've removed the WSDL file from the directory where
I'm running GetQuote1.java. (I've also got rid of the
first line of GetQuote1.java, i.e. "package
samples.stock".)

When I try to run GetQuote1 however, I get the
following error message:

javax.xml.rpc.ServiceException: Error processing WSDL
document: http://localhost:8080/GetQuote.wsdl
java.io.FileNotFoundException:
http://localhost:8080/GetQuote.wsdl


However, I can access the WSDL file from my browser
using the url: http://localhost:8080/GetQuote.wsdl


Is there some step I'm missing here? Where exactly is
the WSDL file supposed to be located? And how do I
specify it in GetQuote1.java?

Thanks,
Supriyo

__________________________________________________
Do You Yahoo!?
Win a DV camera, join our "30 Seconds of Fame" contest   
http://sg.movies.yahoo.com

Re: Problem with GetQuote1 & location of WSDL file

Posted by Supriyo Chatterjea <su...@yahoo.com.sg>.
oops! figured it out after looking through the api.

it should be:
Service service = new Service(
new URL("http://localhost:8080/GetQuote.wsdl"), servQN
);

- Supriyo



 --- Supriyo Chatterjea
<su...@yahoo.com.sg> wrote: > Hi,
> 
> I'm trying to run the GetQuote1 example using a
> client
> and a server. So on the client all I have is
> GetQuote1.class and on the server, I've got the
> GetQuote.wsdl and StockQuoteService.class.
> 
> So I've modified the following line in
> GetQuote1.java
> from:
> 
> ---method getQuote1()---
> Service service = new Service( new
> URL("file:GetQuote.wsdl"), servQN );
> 
> to:
> 
> Service service = new Service(
> "http://localhost:8080/GetQuote.wsdl", servQN );
> 
> I've got the GetQuote.wsdl file in the following
> directory:
> 
> jakarta-tomcat-4.0.4/webapps/ROOT
> 
> I've removed the WSDL file from the directory where
> I'm running GetQuote1.java. (I've also got rid of
> the
> first line of GetQuote1.java, i.e. "package
> samples.stock".)
> 
> When I try to run GetQuote1 however, I get the
> following error message:
> 
> javax.xml.rpc.ServiceException: Error processing
> WSDL
> document: http://localhost:8080/GetQuote.wsdl
> java.io.FileNotFoundException:
> http://localhost:8080/GetQuote.wsdl
> 
> 
> However, I can access the WSDL file from my browser
> using the url: http://localhost:8080/GetQuote.wsdl
> 
> 
> Is there some step I'm missing here? Where exactly
> is
> the WSDL file supposed to be located? And how do I
> specify it in GetQuote1.java?
> 
> Thanks,
> Supriyo
> 
> __________________________________________________
> Do You Yahoo!?
> Win a DV camera, join our "30 Seconds of Fame"
> contest   
> http://sg.movies.yahoo.com 

__________________________________________________
Do You Yahoo!?
Win a DV camera, join our "30 Seconds of Fame" contest   
http://sg.movies.yahoo.com