私のアプリでは、WSDlWebサービスを使用しています。Webサービスメソッドを呼び出してみてください。そのリクエストでは、正常に送信し、応答も取得します。ただし、次の方法を使用してその応答をフェッチすると、次のようになります。
// Called when the connection has finished loading.
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
NSError* error;
if(self.logging == YES) {
NSString* response = [[NSString alloc] initWithData: self.receivedData encoding: NSUTF8StringEncoding];
NSLog(@"response=%@", response);
[response release];
}
以下の例外があります。そして、私のNSLogステートメントは次の詳細を示しています。
response=<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>org.apache.axis2.databinding.ADBException: Unexpected subelement {http://services.webservices.sparta.com}sSessionId</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
この問題を解決する方法を教えてください。ありがとうございました。