• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Consuming Web Services in Wonder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Consuming Web Services in Wonder


  • Subject: Re: Consuming Web Services in Wonder
  • From: Hugi Thordarson <email@hidden>
  • Date: Thu, 03 Sep 2015 13:20:15 +0000

If the web service is relatively recent, you should be able to use the JAX-WS reference implementation that comes bundled with the standard JRE (since 1.6).

Usually you’d make JAX-WS client class generation a part of your build process, but a quick way to generate client classes to test the client is to use the wsimport command line utility that comes bundled with java. Just go to your terminal and write “wsimport [url to wsdl]”. You can pass the argument -Xnocompile to the wsimport command if you prefer to get java classes rather than compiled class files. 

Assuming the import process works well (and has configured endpoints) you’ll end up with a folder in your working directory, containing java sources you can use to communicate with the web service. There’s a class for each defined service in the WSDL, those classes have methods that return instances of ports, and from there you should be able to invoke service methods like any old code.

Lots of great examples online: https://www.google.com/search?q=wsimport+example+client

Cheers,
- hugi

// Hugi Thordarson
// http://www.loftfar.is/
// s. 895-6688


Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Consuming Web Services in Wonder (From: Benjamin Steiner <email@hidden>)

  • Prev by Date: Consuming Web Services in Wonder
  • Next by Date: Re: Consuming Web Services in Wonder
  • Previous by thread: Consuming Web Services in Wonder
  • Next by thread: Re: Consuming Web Services in Wonder
  • Index(es):
    • Date
    • Thread