Sudzc with iOS 5 and ARC

后端 未结 4 473
太阳男子
太阳男子 2021-02-02 02:31

I\'ve been trying to get a webservices working using Sudzc. Whenever I convert my WSDL to obj-c without automatic reference counting it works just fine. The problem is, we are b

4条回答
  •  一整个雨季
    2021-02-02 03:02

    In my case (SUDZC with ARC for IOS), I have replaced the folowing code in SoapRequest.m file;

    CXMLNode* element = [[Soap getNode: [doc rootElement] withName:@"Body"] childAtIndex:0];
    

    with

    CXMLNode* element = [[Soap getNode: [doc rootElement] withName:@"soap:Body"] childAtIndex:0];
    

    Somehow the respective function is searching for the root element with name "Body". After inspecting the soap envelope it is easy to see the root element's name is "soap:Body".

提交回复
热议问题