Complex Types and WebServicesCore
Complex Types and WebServicesCore
- Subject: Complex Types and WebServicesCore
- From: Chris Hanson <email@hidden>
- Date: Mon, 25 Nov 2002 12:46:18 -0600
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.
The only information I could find was a sentence or two in the
WebServicesCore documentation saying I needed to pass a dictionary
with some metadata that will cause it to do the right thing. Great!
Now what, exactly, do I need to put in that dictionary to make
everything Just Work like it should?
-- Chris
PS - It would be really, really, really nice if it were possible to
have WSMakeStubs use our own templates. If WSMakeStubs were made
part of Darwin we'd be able to fix it to do that. Or at least be
able to fix the built-in templates to actually be readable as they
come out of the tool. Whitespace, short lines, and *no
underscores*...
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
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.