wood burning stoves 2.0*
The moose likes Web Services and the fly likes problem with java 6 web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem with java 6 web services" Watch "problem with java 6 web services" New topic
Author

problem with java 6 web services

Tony Ennis
Ranch Hand

Joined: May 22, 2003
Posts: 86
I'm trying to use the new-and-improved version of web services that came out in Java 5 (the type that uses WsGen.)

Nothing seems to be wrong but it simply won't deploy. The diagnostic messages I get mean nothing to me.

Here's the error I get on the browser when I try to fetch my service's wsdl:



WsGen seems to be doing its thing and the classes are where they belong. Here's the web service:



Now, running this class from my IDE is supposed to be like running a lightweight container. I should be able to browse to the
URL in the main() with http://localhost:8080/blackbox?wsdl to fetch the wsdl which whos the web services deploys properly. I
can't. I get the error above. Nothing I have tried has changed the error message one bit.

To further annoy me the URL is changed to http://localhost:8080/services on each failure. I don't know where it is getting this.

Here's a small part of the log file at the time I attempt to fetch the wsdl.





Any ideas?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
The endpoint is published on port 9090, yet you mention trying to access port 8080 - just a typo?


Ping & DNS - my free Android networking tools app
Tony Ennis
Ranch Hand

Joined: May 22, 2003
Posts: 86
Yah, I tried to sanitize a few experiments and phailed.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
Have you looked at the code generated by wsgen? Which URL is it trying to access? What happens if you enter that URL in a browser?
Tony Ennis
Ranch Hand

Joined: May 22, 2003
Posts: 86
I just now looked at the code. While there are URL-like namespaces, there are no URLs. WsGen
generated 4 classes, one for each of the the two service's invocation and response.

The only URL is the one specified in the EndPoint.
Tony Ennis
Ranch Hand

Joined: May 22, 2003
Posts: 86
It works now. I believe I had some old libraries leftover from my axis2 experiment. I kinda knew it
had to be such - the results were insane.

Thanks for the help.

Oddly, I get the wsdl using ?WSDL (uppercase.) Lowercase will not work.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with java 6 web services