How to use ASPX web services in iOS?

Can someone clarify the process of using aspx web services in iOS? I already tried the JSON framework, but now you need to create an application that consumes .net web services in XML format. I need to send some data as well as receive data from the server. I already read about existing XML parses for iOS that I found ( here )

The question is, do I need additional configuration, for example, wrapping query strings in SOAP or smth in order to communicate with the web server? Would it be sufficient to use only one of the mentioned libraries in the link or do I need additional materials?

UPDATE: I found one tutorial on the web interface ( here ) that demonstrates how to use web services using the Json-framework. Also, I found another one that demonstrates it using NSXMLParser ( here ). I am not very familiar with WSDL and SOAP, so any detailed explanation of how to implement it would be desirable :). In both of these examples, you just need to build the query string in XML format and execute it, and that is. Both examples actually circumvent the severity of SOAP and WSDL, so I was wondering if I need to know and do more that just build a query string, execute it and get a response?

0
source share
1 answer

While wsdl2objc is there (as @Girish Kolari pointed out), the truth is that there is no simple answer. I never succeeded wsdl2objc for something that I could not do more easily by hand. You will need to learn SOAP and WSDL. It is just a fact of life if you cannot access the REST interface. In my experience, your best choice for easy SOAP access is to do it manually, and gSOAP is the best choice for fairly complicated SOAP access. Your best bet for very difficult access is to redesign something so that it is not so complex, ideally in REST. SOAP is a huge pain with which some languages ​​protect you (C #). ObjC does not protect you from this, so it continues to be a giant pain.

Yes, SOAP leaves a bad taste in your mouth.

+2
source

Source: https://habr.com/ru/post/957960/


All Articles