Results 1 to 2 of 2

Thread: Consuming a third-party webservice

  1. #1
    Join Date
    Feb 2005
    Location
    Norway
    Posts
    18

    Default 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: {
    http://localhost:8080/jpetstore/axis/OrderService
    }JaxRpcOrderServiceService

    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.


    Trond

  2. #2
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default

    Hi

    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">
    <value>classpath:ecbroker2.wsdl</value>
    </property>
    /Claus

Similar Threads

  1. Call WebService using Basic Authentication and HTTPS
    By wolfgangsta in forum Remoting
    Replies: 1
    Last Post: Dec 19th, 2007, 12:05 AM
  2. consuming web services within a transaction
    By paul.barry in forum Architecture
    Replies: 1
    Last Post: Oct 14th, 2005, 01:53 AM
  3. Spring, WebService as Client and Server
    By t.schoellhorn in forum JMS
    Replies: 0
    Last Post: Jul 9th, 2005, 04:12 AM
  4. 3rd party integration for Glazed Lists
    By swankjesse in forum Swing
    Replies: 12
    Last Post: Nov 25th, 2004, 01:44 PM
  5. get webservice and invoke it
    By simonsays in forum JMS
    Replies: 1
    Last Post: Oct 28th, 2004, 09:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •