Friday 15 May 2015

iphone - Soap Parsing issue -


I need to parse a soap request, but I am having the following problem, someone can help me solve this, as I am new in soap. I know if you need any other information about the code, then

here is a SOAP request

  POST /LocatorAPI/LocatorService.asmx HTTP / 1.1 host: Staging2.abc .spatialpoint.com Content-Type: Text / xml; Charset = UTF-8 content-length: length SOAPAction: "http://spatialpoint.com/abc/locator/FindNearby" & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; 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/"> & Lt; Soaps: Body & gt; & Lt; FindNearby xmlns = "http://spatialpoint.com/abc/locator/" & gt; & Lt; Request & gt; & Lt; Token & gt; String & lt; / Token & gt; & Lt; / Request & gt; & Lt; / Hauling & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt;   

Here my purpose is C code.

  NSString * soapMessage = [NSString stringWithFormat: @ "% @% @% @% @% @% @% @% @ @ @ @ @ @ @   

And I'm getting this error.

  2013-06-19 02: 22: 49.942 SoapClant [42229: c07] Feedback: 2013-06-1919-22: 49.943 SoapClient? [42,229: C07] & LT; XML version = "1.0" encoding = "utf-8" & gt; & Lt; Soap: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http : //www.w3.org/2001/XMLSchema "& gt; & lt; soap: Body & gt; & lt; soap: Fault & gt; & Lt; Faultcode & gt; soap:. Customers & lt; / Faultcode & gt; & Lt; The value of faultstring & gt server HTTP header SOAPAction is not recognized: & lt; / Faultstring & gt; & Lt; Extension / & gt; & Lt; / Soap: defect & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt;    

After the

Try to add the HTTP area SOAPAction to the request: < Pre> [request setValue: @ "http://spatialpoint.com/abc/locator/FindNearby" forHTTPHeaderField: @ "SOAPAction"];

Also consider to check.

No comments:

Post a Comment