Swift 如何使用 Dynamics NAVISION 的 SOAP WebService [英] How Swift consume SOAP WebService from Dynamics NAVISION

查看:27
本文介绍了Swift 如何使用 Dynamics NAVISION 的 SOAP WebService的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Swift 语言的 XCode(适用于 iOS 8)中,没有要为 NAV Web 服务添加的服务参考文件夹

in XCode (for iOS 8) using Swift language, there is no Service Reference folder to add for NAV Web Service

了解 iOS 8 (Swift) 没有创建代理的 Web 服务引用.那么,在这方面,Swift 如何使用 Microsoft Dynamics NAVISION 的 SOAP 网络服务?有哪些可用的方法或解决方法?

Understand iOS 8 (Swift) does not have Web service reference to create Proxy. So, in this respect, how Swift can consume SOAP webservice from Microsoft Dynamics NAVISION? What are the methods or work around available?

谢谢

推荐答案

获得免费的夜间构建 SoapUI.我说 nightly 只是因为前段时间它只是支持 windows 授权的版本,如果你的 Nav web-service 配置了另一种授权类型,就使用稳定版本.

Get a nightly build of free SoapUI. I say nightly only because some time ago it was only version that supported windows authorization, If your Nav web-service configured with another authorization type just use stable build.

SoapUI 能够使用提供的 Web 服务 URL 并为您制作示例 SOAP 消息.您甚至可以将这些消息发送到您的服务,以测试其是否有效并检查响应.

SoapUI is able to consume provided web-service URL and make sample SOAP messages for you. You can even send those messages to your service to test if its work and inspect responses.

  1. 获取您的网络服务的 WSDL 的 URL.
  2. 在 SoapUI 中创建新项目并将 URL 粘贴到 Initial WSDL\WADL 字段中,然后点击确定.
  3. 将处理 WSDL,并在项目树中列出您的服务的所有可用功能(方法).
  4. 通过展开并点击它们,您可以针对您的服务创建、查看和运行请求.
  1. Get URL to your web-service's WSDL.
  2. Create new project in SoapUI and paste URL into Initial WSDL\WADL field and hit Ok.
  3. WSDL will be processed and in project tree there will be listed all available functions (methods) of your service.
  4. By expanding and clicking on them you can create, view and run requests against your service.

或者观看这个简短的视频.

这篇关于Swift 如何使用 Dynamics NAVISION 的 SOAP WebService的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆