Announcement Announcement Module
No announcement yet.
Consuming a third-party webservice Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Consuming a third-party webservice

    Hi all!

    I'm fairly new to Spring, and remoting. I need to consume a webservice provided by a third-party.

    I have read the remoting part in the reference, and checked out the jpetstore sample. I cannot get the jpetstore sample to work and when trying to follow the snippets from the reference to write my own client I get an error like this:
    javax.xml.rpc.ServiceException: Error processing WSDL document:
    javax.xml.rpc.ServiceException: Cannot find service: {

    Same thing happens when trying with properties for my third-party webservices.

    When using wsdl2java I can consume the third-party webservice and make it work, but since I'm rewriting the app to use Spring in the first place, I thougt I'd use Spring for this as well.

    Is there another place to find good docs with samplecode than the places I have looked? I have tried my friend google with no luck.


  • #2

    I just put the .wsdl in the root of my classpath and declare its location in the Spring .xml file like this:

    <property name="wsdlDocumentUrl">