Adding soap headers to a request

Question Description

Need help with my Programming question - I’m studying for my class.

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=\"\" xmlns:xsd=\"\" xmlns:soap=\"\">\n" 


"<Login xmlns=\"\">\n" 


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

"<xLoginDetails>%@</xLoginDetails> \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? 

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer


please check the link below its helpful to you

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

  <m:Trans xmlns:m=""

University of Maryland

Solid work, thanks.

The tutor was great. I’m satisfied with the service.

Goes above and beyond expectations !


Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors