axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <ajuf...@sun3.oulu.fi>
Subject Re: problem accessing WSDL for a Deployed WS.
Date Tue, 30 Oct 2001 19:02:36 GMT
Hi Quido,

it looks like a similar problem I had earlier.

Three things you could look at:

1. Check your WEB-INF/web.xml. There should be an entry like

   <servlet-mapping>
     <servlet-name>AxisServlet</servlet-name>
     <url-pattern>/services/*</url-pattern>
   </servlet-mapping>

The Alpha 2 release of Axis (September 21), the one I am currently 
using, apparently did not have that entry exactly in the way as above 
(the /* was missing).

2. Check your classpath. Under Linux I use

java -classpath $CP org.apache.axis.wsdl.Wsdl2java --verbose 
"http://localhost:8080/axis/services/MyService?wsdl"

with

LIB=<axis-1_0>/lib
CP=$LIB/axis.jar:$LIB/clutil.jar:$LIB/log4j-core.jar:$LIB/wsdl4j.jar:$CATALINA_HOME/common/lib/crimson.jar:$CATALINA_HOME/common/lib/jaxp.jar:.

(You don't need to use crimson and jaxp, xerxes will do fine as well.)

After deploying the service, running the above in the top directory of 
Axis, you should get:

Parsing XML File: http://localhost:8080/axis/services/MyService?wsdl
Generating portType interface: MyServicePortType.java
Generating client-side stub: MyServiceSoapBindingStub.java
Generating service class: MyService.java


3. If you just want to see the contents of the.wsdl file, you could 
point your browser to http://localhost:8080/axis/services/MyService?wsdl 
and view the source. With Netscape 6.1 I get a blank screen, but I can 
look at the wsdl file with view->page source.


Hopes this helps,

Andre.


Guido Di Maio wrote:

> here is the problem:
> 
> I'm not able to get the WSDL file for deployed Ws.
> neither for the sample URL
> http://localhost:8080/axis/services/MyService?wsdl
> (after deploing it, of course).
> It neither works with:
> % java org.apache.axis.wsdl.Wsdl2java
> http://localhost:8080/axis/services/MyService?wsdl
> 
> the message error is:
> 
> Parsing XML File: http://localhost:8080/axis/services/MyService?wsdl
> java.io.FileNotFoundException:
> http://localhost:8080/axis/services/MyService?wsd
> l
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
> urce)
>         at java.net.URL.openStream(Unknown Source)
> .......................Error in parsing: null
> 
> Any answer ?
> Thanks a lot.
> 


-- 
Andre H. Juffer              | Phone: +358-8-553 1683
The Biocenter and            | Fax: +358-8-553-1141
     the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland  | WWW: http://www.biochem.oulu.fi/Biocomputing/


Mime
View raw message