Xamarin PCL 使用 SOAP Web 服务 [英] Xamarin PCL consume SOAP web service

查看:44
本文介绍了Xamarin PCL 使用 SOAP Web 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 Xamarin 可移植类库,我需要连接到 SOAP Web 服务.计划是在可移植类中与服务进行通信,然后在 iOS、Android、Windows Phone 项目中访问它.这可能吗?我能够在 android 项目中添加 web 引用,但我不能为 windows 手机这样做.我正在使用 Visual Studio 2015.有人可以帮忙吗?

I have Xamarin Portable Class Library, and I need to connect to SOAP web service. Plan was to communicate with service in portable class, and then access it in iOS, Android, Windows Phone projects. Is this possible? I was able to add web reference in android project, but I can't do that for windows phone. I am using visual studio 2015. Can anyone help?

推荐答案

(仅供参考:这是 StackOverflow 的题外话,但这是一个关于 WinPhone、Web 服务和 PCL 的热门问题)

(FYI: This is off-topic for StackOverflow, but this is a popular question concerning WinPhone, Web services and PCL)

Xamarin 有一篇很棒的技术文章,介绍了不同的 Web 服务以及如何将它们集成到您的应用程序(Android、iOS 和 WinPhone)中:

Xamarin has a great tech article that goes over the different web services and how to integrate them into your application (Android, iOS and WinPhone):

本教程介绍了如何将 REST、WCF 和 SOAP Web 服务技术与 Xamarin 移动应用程序集成.它检查各种服务实现,评估可用的工具和库以集成它们,并提供用于使用服务数据的示例模式.

This tutorial introduces how to integrate REST, WCF and SOAP web service technologies with Xamarin mobile applications. It examines various service implementations, evaluates available tools and libraries to integrate them, and provides sample patterns for consuming service data.

Web 服务简介

这篇关于Xamarin PCL 使用 SOAP Web 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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