Example code using WSMethodInvocationAddSerializationOverride? (WebServicesCore woes)
Example code using WSMethodInvocationAddSerializationOverride? (WebServicesCore woes)
- Subject: Example code using WSMethodInvocationAddSerializationOverride? (WebServicesCore woes)
- From: "John C. Fox" <email@hidden>
- Date: Thu, 25 Mar 2004 17:56:14 -0800
Hi There:
I'm having a real tough time working with Apple's WebServicesCore.
I need to change the way that an NSArray is encoded.
The XML that gets emitted looks like this:
<options xsi:type="ww:WWKeyValue">
<theDesiredAttributes SOAP-ENC:arrayType="xsd:anyType[3]"
xsi:type="SOAP-ENC:Array">
<item_0 xsi:type="xsd:string">name</item_0>
<item_1 xsi:type="xsd:string">collectionID</item_1>
<item_2 xsi:type="xsd:string">parentCollectionID</item_2>
</theDesiredAttributes>
</options>
I need the entry for "theDesiredAttributes" to look like this:
<options xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="ww:WWKeyValue[3]">
This should be simple to do shouldn't it? I assume I have to use
WSMethodInvocationAddSerializationOverride. Does anyone know of any
example Ob jC code snippets to that shows how this is used?
Many thanks in advance,
John
_______________________________________________
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.