Adding soap headers to a request

timer Asked: Nov 6th, 2013
account_balance_wallet $5

Question Description

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? 

Tutor Answer

School: University of Maryland


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=""

flag Report DMCA

Thanks, good work

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