• 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: Web Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web Services


  • Subject: Re: Web Services
  • From: Simon McLean <email@hidden>
  • Date: Tue, 4 Dec 2007 21:30:41 +0000

Hi Kieran -

We do all our web service work by creating a set of POJO's that represent the request and another set that represent the response. We use WOXMLCoder to serialise the request objects into XML, pass the result through an XSLT stylesheet to get it into the format required by the service, then post it using apache's httpclient. When we receive the response we pass it through another XSLT stylesheet to get it into the format required by WOXMLCoder to deserialise it back into the POJO's that represent the response.

You can supposedly use dictionaries with WOXMLCoder, but it's *much* easier to use POJO's (WOXMLCoder can get itself all confused when you have more complicated dictionary structures).

All our XML processing is done by a framework which means our apps are blind to the fact they are talking to a web service. They just create a request object, call a service, and get a response object to play with. The use of XSLT also means we can use a standard set of POJO's to submit the same request to several channels that have different XML specs and the apache httpclient let's us submit multiple requests asynchronously.

Simon

On 4 Dec 2007, at 20:50, Kieran Kelleher wrote:

Hi Simon,

For raw xml post, and response read, what library/API is your favorite for processing the incoming xml response into something like a dictiionary structure?

Regards, Kieran

On Dec 3, 2007, at 5:33 PM, Simon McLean wrote:

We use web services extensively within webobjects apps. You can tackle it in several ways. We use raw xml and http post, but you could use a library like axis or xfire. And I guess someone somewhere must use WebObjects own WebServicesAssitant :-)

Simon

On 3 Dec 2007, at 22:16, Michael Kondratov wrote:

What is the word on web services with web objects? I am working on integration Fedex services into our program. FedEx code looks nothing like webobjects example.


Michael Kondratov
Aspire Auctions, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@mac.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Web Services (From: Michael Kondratov <email@hidden>)
 >Re: Web Services (From: Simon McLean <email@hidden>)
 >Re: Web Services (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Sending mail from the server: getting through spam filters
  • Next by Date: Re: Sending mail from the server: getting through spam filters
  • Previous by thread: Re: Web Services
  • Next by thread: OT : Steve Jobs Interviewed about WebObjects
  • Index(es):
    • Date
    • Thread