FROM : stephen joseph butler
DATE : Fri May 16 21:13:43 2008
On Fri, May 16, 2008 at 1:53 PM, <<email_removed>> wrote:
> Ahhh!
> Okay... I'm trying to envision how this would work. I'm essentially working with a 'black box' (the Server).
> The server is waiting for SOAP/XML data & shall respond accordingly.
>
> So you're saying that I should do something like this:
> ..
> NSData *soapData = <SOAP/XML> in NSData format.
> ..
> [NSMutableURLRequest setHTTPBody:soapData];
> ..
>
> Is this the correct paradigm?
Well... essentially. But setHTTPBody is not a class method. So you
want something like:
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:soapEndpoint];
[req setHTTPBody:soapData];
[req setValue:@"application/soap+xml" forHTTPHeaderField:@"Content-Type"];
Did you see my other message this morning? You're calling some of your
methods improperly and that's why you were crashing.
DATE : Fri May 16 21:13:43 2008
On Fri, May 16, 2008 at 1:53 PM, <<email_removed>> wrote:
> Ahhh!
> Okay... I'm trying to envision how this would work. I'm essentially working with a 'black box' (the Server).
> The server is waiting for SOAP/XML data & shall respond accordingly.
>
> So you're saying that I should do something like this:
> ..
> NSData *soapData = <SOAP/XML> in NSData format.
> ..
> [NSMutableURLRequest setHTTPBody:soapData];
> ..
>
> Is this the correct paradigm?
Well... essentially. But setHTTPBody is not a class method. So you
want something like:
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:soapEndpoint];
[req setHTTPBody:soapData];
[req setValue:@"application/soap+xml" forHTTPHeaderField:@"Content-Type"];
Did you see my other message this morning? You're calling some of your
methods improperly and that's why you were crashing.
| Related mails | Author | Date |
|---|---|---|
| fclee | May 16, 19:59 | |
| fclee | May 16, 20:11 | |
| Jens Alfke | May 16, 20:18 | |
| fclee | May 16, 20:20 | |
| stephen joseph but… | May 16, 20:29 | |
| fclee | May 16, 20:53 | |
| stephen joseph but… | May 16, 21:13 | |
| Jens Alfke | May 16, 21:20 | |
| Jens Alfke | May 17, 22:50 |






Cocoa mail archive

