soap

SOAP

血红的双手。 提交于 2020-01-24 06:27:59
SOAP(Simple Object Access Protocol)简单对象访问协议是在分散或分布式的环境中交换信息的简单的协议,是一个基于XML的协议。它包括四个部分:SOAP封装(envelop),封装定义了一个描述消息中的内容是什么,是谁发送的,谁应当接受并处理它以及如何处理它们的框架;SOAP编码规则(encoding rules),用于表示应用程序需要使用的数据类型的实例; SOAP RPC表示(RPC representation),表示远程过程调用和应答的协定;SOAP绑定(binding),使用底层协议交换信息。 来源: https://www.cnblogs.com/goodbye305/archive/2008/06/23/1228084.html

SOAP vs REST

核能气质少年 提交于 2020-01-24 06:26:20
  SOAP vs. REST是一个伪命题,对它们进行直接比较并不恰当,因为SOAP(简单对象访问协议)是一种协议,而REST(表述性状态转移)是一种架构风格。   协议和架构是两种完全不同层面的东西,协议是计算机网络中信息交换的规则、标准和约定,其偏向于技术细节和底层;架构则是在系统层面的基准规范、通用性和原则,其偏向于抽象和顶层。一种协议可以用在不同的架构中,在架构的建设过程中也可以使用多种协议。但我还是把它们两者拿出来进行比较,因为它们都可以用于构筑Web Service。Web Service的最大作用在于其互操作性,它独立于平台、语言,可以让不同的应用程序互相调用。   通俗地讲,Web Service扫除了远程对象或方法调用的障碍,它是疏通不同应用程序或服务器之间信息沟通的桥梁。 1.基本概念   在我之前的两篇文章SOAP介绍和REST介绍中,我已经较为详细地说明了SOAP和REST的一些概念和渊源。如果您对这两者的概念还不甚清楚,可以先阅读这2篇文章。   SOAP     SOAP可以看作是XML-PRC的升级版本,它是一种轻量的、简单的基于XML的协议,允许应用程序通过HTTP或其它传输协议来交换信息,SOAP是用于访问Web Service的协议。   REST     REST是一种价格风格,不是一个标准。REST定义了一组体系架构原则

WebService与使用风格RPC/SOA/REST

陌路散爱 提交于 2020-01-24 06:25:55
一 webservice Web Services 可使您的应用程序成为 Web 应用程序。Web Services 通过 Web 进行发布、查找和使用。通过使用 Web Services,您的应用程序可以向全世界发布信息,或提供某项功能。 1) 什么是Web Services? Web Services 是应用程序组件 Web Services 使用开放协议进行通信 Web Services 是独立的(self-contained)并可自我描述 Web Services 可通过使用UDDI来发现 Web Services 可被其他应用程序使用 XML 是 Web Services 的基础 2)它如何工作? 基础的 Web Services 平台是 XML + HTTP。 HTTP 协议是最常用的因特网协议。XML 提供了一种可用于不同的平台和编程语言之间的语言。 Web services 平台的元素: •SOAP (简易对象访问协议) •UDDI (通用描述、发现及整合) •WSDL (Web services 描述语言) 3)工作过程,如图: 二 SOAP SOAP 是指简单对象访问协议(simple object access protocal)。 SOAP是基于 XML 的简易协议,可使应用程序在 HTTP 之上进行信息交换。或者更简单地说:SOAP

Web Services 教程

不问归期 提交于 2020-01-24 06:25:27
Web Services 教程 Web Services 可以将应用程序转换为网络应用程序。 通过使用 Web Services ,您的应用程序可以向全世界发布信息,或提供某项功能。 Web Services 可以被其他应用程序使用。 通过 Web Services ,您的会计部门的 Win 2k 服务器可以与 IT 供应商的 UXIX 服务器相连接。 基本的 Web Services 平台是 XML+HTTP 。 Web services 使用 XML 来编解码数据,并使用 SOAP 来传输数据。 学习如何经由 ASP.NET 应用程序创建 Web Services 。 在本教程中,我们把一个 ASP.NET 程序转换为了 Web Services 。 开始学习 Web Services ! Web Services 简介 Web Services 可使您的应用程序成为 Web 应用程序。 Web Services 通过 Web 进行发布、查找和使用。 您应当具备的基础知识 在继续学习之前,您需要对下面的知识有基本的了解: · HTML · XML 如果您希望首先学习这些项目,请在我们的 首页 访问这些教程。 什么是 Web Services ? · Web Services 是应用程序组件 · Web Services 使用开放协议进行通信 · Web Services

Consuming a Webservice (WSDL) using monodevelop C# on 4.0 on Windows 7 Pro

蓝咒 提交于 2020-01-24 00:26:31
问题 I'm exploring monodevelop C# for a project I'm moving from away from PHP. I'm currently developing on Windows 7 , and have installed monodevelop 4.0 The instructions for consuming a webservice describes compiling a WSDL uri using a command line tool called mcs http://www.mono-project.com/Consuming_a_WebService My monodevelop install does not seem to have installed these cli tools. I have checked the installation path. The application will be a gtk desktop application, but needs to use web

How to get element data from Soap Web Response? VB.NET

泄露秘密 提交于 2020-01-23 21:36:46
问题 I'm trying to get data from a webservice, returning just one result, the number of a given item in stock. I'm successfully getting a result, but need to strip all the XML code from it to simple return the number, the XML being returned looks like: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <stockenquiryResponse xmlns=

How to get element data from Soap Web Response? VB.NET

不打扰是莪最后的温柔 提交于 2020-01-23 21:36:28
问题 I'm trying to get data from a webservice, returning just one result, the number of a given item in stock. I'm successfully getting a result, but need to strip all the XML code from it to simple return the number, the XML being returned looks like: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <stockenquiryResponse xmlns=

How to add SOAP Security Header (UsernameToken) information to code-first Webservice Generated WSDL

[亡魂溺海] 提交于 2020-01-23 19:07:26
问题 I'm developing a code-first WebService with Apache CXF + Spring. My web service expects the UsernameToken to be present in SOAP request header in order to authenticate the calling client. My question is, is there any way to add SOAP security header (UsernameToken) definition somewhere in the Java code or configuration file, so the generated WSDL will have the security (UsernameToken) included? Please advice. Many thanks :) 回答1: Information about required tokens can be published in WSDL using

Use JSON in WP7 instead of SOAP

旧时模样 提交于 2020-01-23 12:42:31
问题 I have an app for Windows Phone 7 (written in C# using Visual Studio 2010 + Windows Phone developer tools) that uses data from a web service. In the past, I have used SOAP which was pretty straightforward (added as a service reference and I was basically ready to go) but now I would like to use JSON instead. The API offers both a SOAP and a RESTful JSON endpoint and both endpoints provide the same data. Now my questions: 1) My main motivation to switch from SOAP to JSON is that JSON is

Issues with SOAP in non-WSDL mode

余生长醉 提交于 2020-01-23 12:37:19
问题 I am making a simple web service for communication between two sites I own. Since it is only a basic application, I've been working without a WSDL file, so in non-WSDL mode as the PHP manual calls it. This is basically what the client-side looks like: $client = new SoapClient(null, array('location' => $location, 'uri' => '', 'trace' => TRUE)); $res = $client->__soapCall('myFunc', array($param)); On the server-side, I have a function called myFunc : $soap = new SoapServer(null, array('uri' =>