Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-17 Thread Jens Alfke
On 17 May '08, at 1:08 AM, Matt Burnett wrote: http://www.google.com/search?hl=ensafe=offclient=safarirls=en-usq=soap+site%3Adeveloper.apple.combtnG=Search On May 16, 2008, at 2:20 PM, Jens Alfke wrote: and since Apple won't let Google index their online docs, there's no way around it.

Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread fclee
Hello, I'm having trouble determining the best path to follow. Here's the schema in a nutshell: [Mac XML/SOAP - Server] .. where an HTTP Post connection is created and a post/reply is synchronously generated. I want to use Cocoa to do the equivalent in Java: StreamConnection

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread Jens Alfke
On 16 May '08, at 10:59 AM, [EMAIL PROTECTED] wrote: Do I use NSURLConnection to actually TRANSMIT RECEIVE XML data to the Server like this? serverData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:serverResponse

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread fclee
I should add... Does the NSMutableURLRequest actually send the XML data to the server? Via the NSMutableURLRequest class, I can alter the HTTP Body, etc. However, I need to send a SOAP/XML envelope receive a XML response. I don't see where in the NSNetworking docs that I can send a SOAP/XML to

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread fclee
On 05/16/2008 11:18 Jens Alfke wrote .. On 16 May '08, at 10:59 AM, [EMAIL PROTECTED] wrote: Do I use NSURLConnection to actually TRANSMIT RECEIVE XML data to the Server like this? serverData = [NSURLConnection sendSynchronousRequest:theRequest

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread stephen joseph butler
On Fri, May 16, 2008 at 1:11 PM, [EMAIL PROTECTED] wrote: I should add... Does the NSMutableURLRequest actually send the XML data to the server? Via the NSMutableURLRequest class, I can alter the HTTP Body, etc. However, I need to send a SOAP/XML envelope receive a XML response. I don't

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread fclee
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. ..

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread stephen joseph butler
On Fri, May 16, 2008 at 1:53 PM, [EMAIL PROTECTED] 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

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-16 Thread Jens Alfke
On 16 May '08, at 11:11 AM, [EMAIL PROTECTED] wrote: Via the NSMutableURLRequest class, I can alter the HTTP Body, etc. However, I need to send a SOAP/XML envelope receive a XML response. NSURLRequest etc. have nothing to do with the type of content you send. They don't care whether it's

Re: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.

2008-05-16 Thread Jens Alfke
On 16 May '08, at 1:36 PM, [EMAIL PROTECTED] wrote: I got this to work! ... NSError **myError; NSHTTPURLResponse **serverResponse; ... self.smsXMLString = [NSString stringWithContentsOfFile:smsXMLPath encoding:NSUTF8StringEncoding error:myError]; If that's not crashing,