简体   繁体   English

ios wsdl2objc响应错误500

[英]ios wsdl2objc response error 500

i am trying to make a request to a SOAP web service with the code below. 我正在尝试使用以下代码向SOAP Web服务发出请求。

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;

However, i am getting this error. 但是,我收到此错误。

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}

I don't have a problem with another SOAP service with this approach. 使用这种方法,我对另一个SOAP服务没有任何疑问。

The cause of the problem is about wsdl2objc's parsing. 问题的原因与wsdl2objc的解析有关。 Something is wrong with the generated code. 生成的代码出了点问题。 Thus, I found another tool named Easy WSDL . 因此,我找到了另一个名为Easy WSDL的工具。 It just worked perfect for me. 它对我来说非常完美。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM