WebServices: kWSMethodInvocationResult empty?
WebServices: kWSMethodInvocationResult empty?
- Subject: WebServices: kWSMethodInvocationResult empty?
- From: Eric Miller <email@hidden>
- Date: Thu, 1 Dec 2005 17:59:25 -0700
Hi all -
Via google and apple lists searches, I've seen other people run into
this problem, but have not seen an explanation posted.
I'm using WebServices.framework to talk to flickr.com via SOAP. I set
up my method parameters and so on and then call
NSDictionary* result = WSMethodInvocationInvoke( invocation );
I'm able to get back the response I'm looking for, but it's only
accessible via the debug keys in the result dictionary
(WSDebugInBody, etc). That is, the full xml response *is* being
returned from flickr. But the documented way to access it is through
kWSMethodInvocationResult, and this key does not exist in the result
dictionary:
NSLog( @"result:", [ result objectForKey:( NSString* )
kWSMethodInvocationResult ] );
prints nothing.
I've also tried extracting the CFHTTPMessage from the result, like this:
CFHTTPMessageRef response = [ result
objectForKey:kWSHTTPResponseMessage ];
NSData* body = ( NSData* )CFHTTPMessageCopyBody( response );
NSDictionary* headers = ( NSDictionary* )
CFHTTPMessageCopyAllHeaderFields( response );
After these calls, headers has some data, but body is nil. This is
frustrating because it's obvious that I did get the full SOAP
response. I'd hate to have to just go in and use the debug info
instead of doing it the "real" way.
Thanks in advance for any help. =)
Eric Miller
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden