Adding soap headers to a request

Programming
Tutor: None Selected Time limit: 3 Days

I am working on iphone and sending a soap request to a .net site. The site is expecting a remote server address from my request. 

Here is my soap request: 

NSString *soapFormat = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" 

"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n" 

"<soap:Body>\n" 

"<Login xmlns=\"http://testsite.com/Test/\">\n" 

"<userName>%@</userName>\n" 

"<userPasswordHash>%@</userPasswordHa sh>\n" 

"<xLoginDetails>%@</xLoginDetails> \n" 

"</Login>\n" 

"</soap:Body>\n" 

"</soap:Envelope>\n",userName, encryptedPassword, xmlDetails]; 

How can I add a soap header to this request so that the web service can detect the "Remote Server Address" and the "ALL_RAW" value? 


Nov 6th, 2013

Hi!

please check the link below its helpful to you

http://www.w3schools.com/webservices/ws_soap_header.asp

hope so you clearly understand your problem.missing part of your code is just like this

<soap:Header>
  <m:Trans xmlns:m="http://www.w3schools.com/transaction/"
  soap:mustUnderstand="1">234
  </m:Trans>
</soap:Header>

Nov 6th, 2013

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 6th, 2013
...
Nov 6th, 2013
Mar 23rd, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer