Help needed to write input for .net web services

Posted by MaheshBabu on Stack Overflow See other posts from Stack Overflow or by MaheshBabu
Published on 2010-12-23T06:44:45Z Indexed on 2010/12/23 6:54 UTC
Read the original article Hit count: 251

Filed under:
|

Hi folks,

i am new to iphone web services.

I need to get data from .net web server for that my soap message is

NSString *xml = [NSString stringWithFormat:@"<MortgageGetLoanOfficerInfo><PhoneNumber>919703661366</PhoneNumber></MortgageGetLoanOfficerInfo>"];

    NSString *soapMessage = [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"
    "<GenericAndroidMethod xmlns=\"Mortgage\">\n"
    "<methodName>MortgageGetLoanOfficerInfo</methodName>"
    "<xmlParam>%@</xmlParam>"
    "</GenericAndroidMethod>\n"
    "</soap:Body>\n"
    "</soap:Envelope>\n",xml
    ];

But i did n't get response.

While i am checking in charles web debugging proxy it will show like this.

But i need to pass <MortgageGetLoanOfficerInfo><PhoneNumber>919703661366</PhoneNumber></MortgageGetLoanOfficerInfo>

as a single string.

How can i done this pls help me.

Thank u in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-web