Mujtaba Mujtaba - 4 months ago 7
iOS Question

How to add parameter to link.asmx

<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<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/\">"
"<soap:Body>"
"<FillFloorsNew xmlns=\"http://tempuri.org/\">"
"<BlockId>String</BlockId>"
"</FillFloorsNew>"
"</soap:Body>"
"</soap:Envelope>


I want to pass block id

Answer

You can just add parameter like this

 NSString *soapMessage = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
    "<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/\">"
    "<soap:Body>"
    "<FillFloorsNew xmlns=\"http://tempuri.org/\">"
    "<BlockId>String</BlockId>"
    "</FillFloorsNew>"
    "</soap:Body>"
    "</soap:Envelope>",BlockId];
Comments