Skip navigation.
 
mlComplex Types and WebServicesCore
FROM : Chris Hanson
DATE : Mon Nov 25 19:46:18 2002

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_removed>
bDistributed.com, Inc.            |  Phone: +1-847-372-3955
Making Business Distributed      |  Fax:  +1-847-589-3738
http://bdistributed.com/          |  Personal Email: <email_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlComplex Types and WebServicesCore Chris Hanson Nov 25, 19:46
mlRe: Complex Types and WebServicesCore Scott Anguish Nov 26, 05:07
mlRe: Complex Types and WebServicesCore Chris Hanson Nov 26, 05:50
mlRe: Complex Types and WebServicesCore Scott Anguish Nov 26, 05:52
mlRe: Complex Types and WebServicesCore Chris Hanson Nov 26, 06:10
mlRe: Complex Types and WebServicesCore Scott Anguish Nov 26, 06:18