aspose file tools*
The moose likes Web Services and the fly likes Problem with webService published from a custom wsdl 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 webService published from a custom wsdl" Watch "Problem with webService published from a custom wsdl" New topic
Author

Problem with webService published from a custom wsdl

Vipink Kumar
Greenhorn

Joined: Jun 16, 2011
Posts: 4
Hi I have published a webService using an existing wsdl file and it published successfully but i can not access the wsdl from browser but if i published webService by generating the wsdl I can access the wsdl by browser. It's quite strange problem i am facing...

Any one have any suggestion or any kind of help will be appreciated.

thanks
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

I have published a webService using an existing wsdl file and it published successfully but i can not access the wsdl from browser but if i published webService by generating the wsdl I can access the wsdl by browser

What approach you've taken for this? And how? You need to tell more details on that (TellTheDetails)...


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you are using JAX-WS to develop a WSDL-first web service, then you need to annotate your web service implementation class as in the example below:

Note that:
  • The values of the elements of the @WebService annotation, execpt the value for the wsdlLocation, are to be taken from the WSDL.
  • The WSDL should be placed in WEB-INF/wsdl.

  • Best wishes!


    My free books and tutorials: http://www.slideshare.net/krizsan
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Problem with webService published from a custom wsdl