2014-02-21 72 views
0

我正在嘗試使用下面的代碼向SOAP Web服務發出請求。ios wsdl2objc響應錯誤500

BasicHttpBinding_IGTBEihaleWSBinding *binding = [GTBEIhaleWSSvc BasicHttpBinding_IGTBEihaleWSBinding]; 
binding.logXMLInOut = YES; 

GTBEIhaleWSSvc_IhaleListesiGetir *request = [GTBEIhaleWSSvc_IhaleListesiGetir new]; 

BasicHttpBinding_IGTBEihaleWSBindingResponse *response = [binding IhaleListesiGetirUsingParameters:request]; 

NSArray *responseHeaders = response.headers; 
NSArray *responseBodyParts = response.bodyParts; 

但是,我收到此錯誤。

2014-02-21 11:33:36.348 Mobil Ihale Uygulamasi[22801:70b] ResponseStatus: 500 
2014-02-21 11:33:36.349 Mobil Ihale Uygulamasi[22801:70b] ResponseHeaders: 
{ 
    Connection = close; 
    "Content-Length" = 449; 
    "Content-Type" = "text/xml;charset=UTF-8"; 
    Date = "Fri, 21 Feb 2014 09:33:21 GMT"; 
    Server = "Apache-Coyote/1.1"; 
} 
2014-02-21 11:33:36.350 Mobil Ihale Uygulamasi[22801:70b] ResponseError: 
Error Domain=BasicHttpBinding_IGTBEihaleWSBindingResponseHTTP Code=500 "internal server error" UserInfo=0x10923ce40 {NSLocalizedDescription=internal server error} 

我用這種方法沒有另一個SOAP服務的問題。

回答

0

問題的原因是關於wsdl2objc的解析。生成的代碼有問題。因此,我發現另一個名爲Easy WSDL的工具。它對我來說非常完美。

相關問題