Re: Complex Types and WebServicesCore
Re: Complex Types and WebServicesCore
- Subject: Re: Complex Types and WebServicesCore
- From: Scott Anguish <email@hidden>
- Date: Mon, 25 Nov 2002 23:07:19 -0500
Yep...
On Monday, November 25, 2002, at 01:46 PM, Chris Hanson wrote:
Between WebObjects 5.2 and WebServicesCore.framework, Apple has one of
the best Web Services stories on the market today.
To get up to speed with it all, I'd like to build a Cocoa application
that uses a web service I've created with WO5.2's Direct to Web
Services.
One of the parameters to my service is an NSTimestamp. When I use
WSMakeStubs to generate stubs for my service, however, that service
comes out as
in_creationDate:(CFTypeRef /* Complex type
http://www.w3.org/2001/XMLSchema|dateTime */) in_creationDate
which wouldn't be a problem except that it's NOT DOCUMENTED what I
need to do in this case. I know I can't just pass an NSDate for that
parameter. I've tried, and WO5.2 gave me an AxisFault trying to
deserialize the type {http://www.w3c.org/2001/XMLSchema}timeInstant.
So I need to convince WebServicesCore to send it as a
{http://www.w3c.org/2001/XMLSchema}dateTime.
I addressed this in my O'Reilly Mac OS X Conference talk...
http://www.stepwise.com/SpecialCoverage/ORA2002/WebServicesIntro.pdf
slide 28, 29 and 30 cover this explicitly
basically, you need to a key of kWSRecordType to your request with
m:whatever as the value..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.