• 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
a problem with SOAP parser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a problem with SOAP parser


  • Subject: a problem with SOAP parser
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 17 Feb 2004 23:38:36 +0100

Hi,

In a Cocoa/WebServices client, I am getting a SOAP response which contains a repeated item, this way:

<soap:Envelope ...><soap:Body>
<Test_ResultResponse xmlns="http://www.radek.st/webservices/";>
<Test_ResultResult>
<ResultItem> ... </ResultItem>
<ResultItem> ... </ResultItem>
</Test_ResultResult>
</Test_ResultResponse>
</soap:Body></soap:Envelope>

It seems the standard parser cannot cope with this: it makes the Test_ResultResult a dictionary, and thus all the ResultItems but the last one are lost.

I am desperately seeking for a client-side workaround:

- may it be possible to modify the parser a bit so that it does it right?
- or, what about catching the SOAP response before it is parsed, modyfiyng it (eg. numbering the ResultItems, or adding a xsi:type of array, or whatever), and let the parser use the modyfied XML?
- or, since I can get the original SOAP through the debugging support, it would be quite sufiicient if there was a way to run the SOAP parser explicitly over my own string;
- or perhaps would it be possible to force the parser to use my own dictionary somehow (which would implement setObject:forKey: by adding another item into an array instead of replacing the original one)? (*)

(*) note: alas this is Carbon, so no poseAsClassing is possible :(

Well, I'd be quite grateful for any advice,
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.

  • Prev by Date: Re: focus ring around button
  • Next by Date: Variable height outline view
  • Previous by thread: OmniAppKit Inspector Example?
  • Next by thread: Variable height outline view
  • Index(es):
    • Date
    • Thread