0

Customer implement soap webservice, and give me url of this service. There is this text on url:

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe http://server/?wsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example: ...

I must implement client application on objective-c. Questions:

1) Is this service working? Or I must ask customer to do actions on his server(svcutil.exe http://server/?wsdl). Does he should sent me generated files?

2) What steps should I do to implement client of this service?

3) Should I work with WebService Core Framework? How to include it to my iOS project?

Thank you

4

2 回答 2

3

我更喜欢使用 SOAP 服务的方式是使用一个可以生成所有必需类的好工具。我个人使用这个:

http://easywsdl.com

它非常易于使用并支持许多特性,如枚举、简单类型、引用(在 WCF 数据合同中与 IsReference )等等。与手动编写整个代码相比,自动化此类工作要容易得多。即使生成的类会有一些问题,修复几个源文件(对于许多 WS 可以有超过 100 个文件)比从头开始创建所有类要快得多。

于 2014-01-25T11:28:23.960 回答
0

不要使用任何会为你生成文件的工具,而是按照这个教程,你会得到你需要的所有信息,http://www.icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to -肥皂网络服务/

而且您应该要求您的客户向您提供肥皂请求,以便您可以解析它们。如何解析?在上面的链接中给出。

好运

于 2012-08-01T14:18:04.060 回答