0

いくつかのパラメーターを SOAP サービスに渡そうとしています。以下にリストされているコードブロックの最後でこれを試してみました。何らかの理由で、これを機能させることができません。誰かが私を少し助けてくれませんか。前もって感謝します!

    NSString *soapMessage = [NSString stringWithFormat:
                         @"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                         "<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">"
                         "<soap12:Body>"
                         "<UserLogin xmlns=\"http://tempuri.org/\">"
                         "<username>string</username>"
                         "<password>string</password>"
                         "</UserLogin>"
                         "</soap12:Body>"
                         "</soap12:Envelope>, %@, %@", txtUsername.text, txtPassword.text];
4

1 に答える 1

2
NSString *soapMessage = [NSString stringWithFormat:
                         @"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                         "<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">"
                         "<soap12:Body>"
                         "<UserLogin xmlns=\"http://tempuri.org/\">"
                         "<username>%@</username>"
                         "<password>%@</password>"
                         "</UserLogin>"
                         "</soap12:Body>"
                         "</soap12:Envelope>", txtUsername.text, txtPassword.text];
于 2012-06-08T07:38:29.817 に答える