FROM : fclee
DATE : Fri May 16 20:20:00 2008
On 05/16/2008 11:18 Jens Alfke wrote ..
>
> On 16 May '08, at 10:59 AM, <email_removed> wrote:
>
> > Do I use NSURLConnection to actually TRANSMIT & RECEIVE XML data to
> > the Server like this?
> >
> > serverData = [NSURLConnection sendSynchronousRequest:theRequest
> > returningResponse:serverResponse
> > error:myError];
>
> Yes, if you want to send it synchronously.
>
> > 3) Then, how do I flush(), close() this connection?
>
> You don't need to. It's all done for you.
>
> —Jens
I'm having difficulty formulating the Request.
As we know, the NSMutableURLRequest inherits methods that can alter the Http body, etc.
I don't think I need to do that.
I need to send a pre-written SOAP/XML envelop to the server; and get an response that I disseminate.
Something like this: [XML/SOAP string (or data)] ----> [NSURLRequest] ---> [NSURLConnection] ---> [Server].
Server ---> [NSURLConnection] ---> response.
I can send an empty http request to the reserver and get a response.
But I don't know how to attach a data item (XML/SOAP) to the request.
Any Ideas?
Regards,
Ric.
DATE : Fri May 16 20:20:00 2008
On 05/16/2008 11:18 Jens Alfke wrote ..
>
> On 16 May '08, at 10:59 AM, <email_removed> wrote:
>
> > Do I use NSURLConnection to actually TRANSMIT & RECEIVE XML data to
> > the Server like this?
> >
> > serverData = [NSURLConnection sendSynchronousRequest:theRequest
> > returningResponse:serverResponse
> > error:myError];
>
> Yes, if you want to send it synchronously.
>
> > 3) Then, how do I flush(), close() this connection?
>
> You don't need to. It's all done for you.
>
> —Jens
I'm having difficulty formulating the Request.
As we know, the NSMutableURLRequest inherits methods that can alter the Http body, etc.
I don't think I need to do that.
I need to send a pre-written SOAP/XML envelop to the server; and get an response that I disseminate.
Something like this: [XML/SOAP string (or data)] ----> [NSURLRequest] ---> [NSURLConnection] ---> [Server].
Server ---> [NSURLConnection] ---> response.
I can send an empty http request to the reserver and get a response.
But I don't know how to attach a data item (XML/SOAP) to the request.
Any Ideas?
Regards,
Ric.
| 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

