• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with java 6 web services

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The endpoint is published on port 9090, yet you mention trying to access port 8080 - just a typo?
 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yah, I tried to sanitize a few experiments and phailed.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic