Announcement Announcement Module
Collapse
No announcement yet.
Problem viewing wsdl for JPetStore sample Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem viewing wsdl for JPetStore sample

    Hi,

    Because I want to do something with webservices and Spring has support support for them, I checked out the JPetStore sample app.
    But when I have deployed the app to my Tomcat webcontainer and I want to check out the wsdl for the 3 services, I get an HTTP 404 for all the services.

    I have followed the build and deployement steps in the readme.txt file in the jpetstore-directory.
    When I open "http://localhost:8080/jpetstore" in a web browser, everything works fine.
    Then I open "http://localhost:8080/jpetstore/axis" in a web browser and I see the following text:

    And now... Some Services

    * OrderService (wsdl)
    o getOrder
    * AdminService (wsdl)
    o AdminService
    * Version (wsdl)
    o getVersion

    with this as html-source:
    HTML Code:
    <html><head></head><body><h2>And now... Some Services</h2>
    <ul>
    <li>OrderService <a href="http://localhost:8080/jpetstore/services/OrderService?wsdl"><i>(wsdl)</i></a></li>
    <ul>
    <li>getOrder
    </li></ul>
    <li>AdminService <a href="http://localhost:8080/jpetstore/services/AdminService?wsdl"><i>(wsdl)</i></a></li>
    <ul>
    <li>AdminService
    </li></ul>
    <li>Version <a href="http://localhost:8080/jpetstore/services/Version?wsdl"><i>(wsdl)</i></a></li>
    
    <ul>
    <li>getVersion
    </li></ul>
    </ul>
    </body></html>
    Everything looks fine but when I try to open the wsdl of one of the services I get a HTTP 404 error:

    HTTP Status 404 - /jpetstore/services/OrderService

    type Status report

    message /jpetstore/services/OrderService

    description The requested resource (/jpetstore/services/OrderService) is not available.
    Apache Tomcat/5.5.20


    My question is: am I doing something wrong or is there an extra step I have to do before or after deploying ??

    I hope someone can help me to solve my problem.

  • #2
    I found my answer in the http://forum.springframework.org/sho...ight=jpetstore

    It seems that Axis generated links to the WSDL files on the service list page that are invalid. It tries to find them from /services/* but they are under axis/.

    Anyone knows why Axis does this or what I can do to fix it ?

    Comment

    Working...
    X