facebook

Need more example in documentation.

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #262567 Reply

    Edmond Wong
    Member

    Hi,

    I have the Tomcat 5.5 installed when I tried the webservice HelloWorld example, and it worked well under the webservice explorer. However, when I create another webservice with a method called AdderService to add two Integers, the method doesn’t show up in the explorer. I did see the AdderService deployed to Tomcat.

    Any idea?

    Thanks,

    Edmond

    #262618 Reply

    Brian Fernandes
    Moderator

    Edmond,

    There are several things that could go wrong and it is difficult for us pinpoint a problem given your brief description. Did you try restarting and redeploying the web services project?
    Does your first web service still show up? Can you list out the steps you followed while creating your service?

    Also, what happens when you go to the following location in your browser? http://localhost:<port>/<webappname>/services ? That page should usually list out all the services registered with XFire.

    #262690 Reply

    Edmond Wong
    Member

    Hi Brian,

    I was able to see two webservices (HelloWorldService and AdderService) in the tomcat using the url “http://localhost:8080/HelloWorld/services&#8221;. It looks like the WS explorer within MyEclipseIDE doesn’t take “http://localhost:8080/HelloWorld/services&#8221;.. I am getting this errors:

    IWAB0379E Unable to open http://localhost:8080/HelloWorld/services.
    IWAB0135E An unexpected error has occurred.
    WSDLException
    WSDLException: faultCode=OTHER_ERROR: http://localhost:8080/HelloWorld/services

    I guess I have to specify the webservice name in order to add to the WDSL Main tree in the Navigator.

    Thanks,

    Edmond

    #262780 Reply

    Brian Fernandes
    Moderator

    Edmond,

    Sorry for the delayed response, you are supposed to give WSExplorer the path to the WSDL, it won’t work with the path you specified.
    So the actual path is something like this: http://localhost:8080/HelloWorld/services/HelloWorldService?WSDL
    You need to use the same pattern for your other service.

    Hope this helps,

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Need more example in documentation.

You must be logged in to post in the forum log in