2012-11-29 66 views
0

我試圖做一個POST操作在Objective-C(用於iOS應用程序),以BizTalk服務器發送一個XML文件目標C,無法創建一個XML POST操作

我發現下面tutorial和使用它。代碼編譯成功,當我嘗試發佈時,我不會收到有關發佈的任何錯誤消息(通過 didFailWithError函數)。但是,當我檢查Biztalk時,我注意到數據沒有得到傳輸...

我張貼到的鏈接是一個https鏈接(而不是http)這可能是問題嗎?

我錯過了什麼嗎?

謝謝!

編輯:這裏是被調用順序的功能使SOAP請求後:

-(void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge 
-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response 
-(void)connection:(NSURLConnection *) connection didReceiveData:(NSData *)data 
-(void)connectionDidFinishLoading:(NSURLConnection *)connection 
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict 
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict 
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict 
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
-(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName 
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
-(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName 
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict 
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 
+0

你可以轉換的響應到一個字符串和發佈?它可能包含關於正在發生的事情的提示。 –

+0

好的,我發現問題在哪裏(或者其中至少有一個)。我調用的鏈接重定向了好幾次,我需要使用這個cookie來創建另一個最後一次重定向的請求。我發現這個:http://stackoverflow.com/questions/3670892/nsmutableurlrequest-and-redirection處理重定向,但我需要知道如何在我的第二個電話中使用cookie,你能給我一個提示嗎? – user1415780

+0

是這樣的嗎? http://stackoverflow.com/questions/3319866/iphone-nsurlconnection-read-cookies –

回答