-1
在我的應用程序中,我使用WSDl webservice.And嘗試調用webservice方法。 在該請求successfuly發送並同時獲得response.But當我取,使用下面的方法迴應:WSDL連接拋出一個ADBException
// 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>
請建議我解決這個問題的方式。 謝謝。
請提供關於您傳遞給它的Web服務和參數的更多描述。所以我們可以幫助你。 – 2012-04-09 06:25:03