• 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: Complex Types and WebServicesCore
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complex Types and WebServicesCore


  • Subject: Re: Complex Types and WebServicesCore
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 25 Nov 2002 23:52:58 -0500

On Monday, November 25, 2002, at 11:50 PM, Chris Hanson wrote:

At 11:07 PM -0500 11/25/02, Scott Anguish wrote:
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..

Cool, thanks, Scott! This will work great for complex types!


i"m working on writing it up now as an article... (I gotta find a job.. so I'm hoping I'll get the exposure... know anyone in the TechPubs group at Apple? I want the Cocoa/Core FOundation writing job there)

Unfortunately, this doesn't seem to quite do what I need in this situation. All I really want to do is generate XML like

<creationDate
xsi:type="xsd:dateTime">2002-11-26T04:34:00Z</creationDate>

for the element. It's not actually a record type, it's just that passing an NSString will generate an xsd:string and passing an NSDate will generate an xsd:timeInstant. Any ideas, or will I have to drop down to the C interface and use WSMethodInvocationAddSerializationOverride?


Put a properly formatted string in the key for creationDate, and then specify xsd:dateTime as the type in the kWSRecordType... if you look at the source that accompanies that article, I'm sure it'll do what I'm saying.. because I pass a dictionary, but tell it to treat it as the custom type.

what does the SOAP output currently look like? my guess is that the only thing wrong is the type, and that will fix it.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Complex Types and WebServicesCore
      • From: Chris Hanson <email@hidden>
References: 
 >Re: Complex Types and WebServicesCore (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Complex Types and WebServicesCore
  • Next by Date: Creating an NSImage from an NSImage
  • Previous by thread: Re: Complex Types and WebServicesCore
  • Next by thread: Re: Complex Types and WebServicesCore
  • Index(es):
    • Date
    • Thread