0

以下のコードを使用して、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;

ただし、このエラーが発生しています。

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 サービスに問題はありません。

4

1 に答える 1

0

問題の原因は、wsdl2objc の構文解析に関するものです。生成されたコードに問題があります。そこで、 Easy WSDLという別のツールを見つけました。それは私にとって完璧に機能しました。

于 2014-03-06T08:07:19.513 に答える