soap

Web Service

非 Y 不嫁゛ 提交于 2020-01-27 11:05:36
WebService调试:修改后的文件,首先生成一下,否则调试时断点不能进入。 WebService发布后,服务是封装在一个wsdl(Web Service Description Language,Web服务描述语言)文件中,客户端发请求主要是向发布好的wsdl地址以SOAP方式发请求,调用过程如下: 1.服务端生成服务描述文件,以供客户端获取。 2.客户端取得服务端的服务描述文件,解析该文件从而获得服务端的服务信息以及调用方式。 3.客户端指定调用方法和参数,生成恰当的SOAP请求消息,发往服务端,并等待服务端返回的SOAP回应消息。 4.服务端接收客户端发来的SOAP请求消息,解析其中的方法调用和参数格式。并根据wsdl的描述,完成指定功能,将返回值放入SOAP回应消息返回给用户。 5.客户端解析得到的返回值。 WebService的三要素是: SOAP (Simple Object Access Protocol):简易对象访问协议,soap用来描述传递信息的格式。 WSDL (WebServices Description Language):Web服务描述语言,用来描述如何访问具体的接口。 UDDI (Universal Description Discovery and Integration):通用描述、发现及整合,用来管理、分发、查询WebService。

DLNA第一步UPnP协议栈

人走茶凉 提交于 2020-01-27 05:39:08
前面公司有DLNA项目,研究了一下,在网上关于DLNA的资源很少,就将自己的心得写出来,以供参考。 其它的关于DLNA的介绍就不多说,要了解DLNA需要了解upnp,因为DLNA在upnp之上,初学者可以从http://www.upnp.org下载upnp的资料.也欢迎大家加入197683240 DLNA交流群。 upnp 分为四步:发现 、 描述 、 控制 、 事件 发现 当一个 UPnP 的设备加入网络,并想知道什么 UPnP 服务在网络上可用,它发送一个发现消息多播地址 239.255.255.250 端口 1900 通过 UDP 协议。此消息包含一个头,类似于一个 HTTP 请求。该协议有时被称为为 HTTPU ( HTTP 通过 UDP ): M-SEARCH * HTTP/1.1 ST: upnp:rootdevice MX: 3 MAN: "ssdp:discover" 所有其他UPnP设备或方案都必须回应此消息类似的消息发送回设备,使用UDP单播,宣布该设备或程序实现的UPnP型材。一个有趣的怪癖:发送UDP单播设备发现消息被送往港口。 对于每一个配置文件,它实现发送一条消息: HTTP/1.1 200 OK ST:upnp:rootdevice USN:uuid:1d8ec8a7-4736-4598-9950-9710c992e471::upnp

浅析UPnP协议

旧城冷巷雨未停 提交于 2020-01-26 11:12:01
摘要:文章介绍了UPnP结构规范和开发流程,指出:UP nP协议使所有联网的设备实现互联,设备工作不需要传统的驱动程序,便可以实现设备间的 相互控制。 关键词:UPnP协议;开发流程;电子技术;工作流程 中图分类号:TP393文献标识码:A文章编号:1007—6921(2009)17—0072—02 UPnP首先是由微软公司于1999年提出,现今已经是开放的标准,由非盈利的论坛组织UPnP F orum 负责体系架构和标准的维护和更新升级。至2003年末,世界范围内宣称支持它的组织 已经达到600多家。目前UPnP尚处于1.0版本已经实现了智能设备的互联互用。 1UPnP结构规范 1.1UPnP基本单元 组成UPnP的基本单元主要有以下3种: 1.1.1设备(Devices)。在U PnP规范中设备是最基本单元。设备代表了一个物理设备或包含多个物理设备的逻辑设 备,它是U PnP服务或嵌入设备的载体, 不同类型的设备对应一组不同的服务和嵌入设备。 1.1.2服务(Services)。在U PnP规范中服务是最小控制单元。服务是设备所能向外提供的功能,定义了设备的功能调 用接口以及描述设备状态的变量。服务由一个状态表、一个控制服务期和一个事件服务期构 成。 1.1.3控制点(Control Points)。在U PnP规范中控制点是U PnP网络中的控制者

SOAP/XML 关于C/C++ 语言的实现-gSOAP简介教程例子-gSOAP下载页面

只谈情不闲聊 提交于 2020-01-26 09:09:18
源下载链接地址: https://sourceforge.net/projects/gsoap2/files/oldreleases/ 截止2020-1-19本说明时候,是2.8.97的版本 工作的工程代码里面含有gsoap的代码,对应版本是2.8.22的搜集来查看一下。 gSOAP编译工具提供了一个SOAP/XML 关于C/C++ 语言的实现,从而让C/C++语言开发web服务或客户端程序的工作变得轻松了很多。绝大多数的C++web服务工具包提供一组API函数类库来处理特定的SOAP数据结构,这样就使得用户必须改变程序结构来适应相关的类库。与之相反,gSOAP利用编译器技术提供了一组透明化的SOAP API,并将与开发无关的SOAP实现细节相关的内容对用户隐藏起来。 Thank you for using gSOAP! Important: if you built your own stand-alone Web servers with gSOAP with cookies enabled, then you should upgrade to 2.8.75 or greater as soon as possible. If you are using a 2.7 version then upgrade to the patched 2.7.13 release

Curl returning 'Resource id #2 ' as response why?

爱⌒轻易说出口 提交于 2020-01-26 02:35:07
问题 I have the following curl which does a SOAP request $soap_do = curl_init(); curl_setopt($soap_do, CURLOPT_URL,"http://uat-api.gafoorkp.in/services/simulator"); curl_setopt($soap_do, CURLOPT_RETURNTRANSFER,true); curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER,false); curl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST,false); curl_setopt($soap_do, CURLOPT_POST,true); curl_setopt($soap_do, CURLOPT_POSTFIELDS,"<?xml version='1.1'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap

.NET面试题集

只谈情不闲聊 提交于 2020-01-26 01:47:45
1、a=10,b=15,在不用第三方变量的前提下,把a,b的值互换 方法一: a = a + b; b = a - b; a = a - b; 方法二: a ^= b ^ (b ^= a ^ b); 2 、已知数组int[] max={6,5,2,9,7,4,0};用快速排序算法按降序对其进行排列,并返回数组! ( 快 速排序是综合性能最好的内部排序算法!) 代码 public class TestQuickSort { private int [] array = null ; private void quickSort( int lowest, int highest) { if (array == null || lowest < 0 || lowest >= highest || highest >= array.length) { return ; } int low = lowest; int high = highest; int key = low ++ ; for (; low <= high; ) { if (key < high) { if (array[key] > array[high]) { array[high] = array[key] + (array[key] = array[high]) * 0 ; key = high; } high --

Sending SOAP request to a specific service

偶尔善良 提交于 2020-01-25 21:40:53
问题 Okay, so I'm totally new to webservices and for a project I'm working on I'm trying to wrap my head around the whole SOAP thing. I think I have a vague understanding of what is going on, but I'm missing some specific information and I simply can't find anything helpful by googling. I've read the questions others asked like this one SOAP request to WebService with java but I still can't fully figure out what is going on. Specifically I'm trying to use the service provided here http://ec.europa

SOAP Service: Missing WS-Addressing header

我怕爱的太早我们不能终老 提交于 2020-01-25 19:27:33
问题 I have a Netbeans SOAP service I can deploy with no issues and a Silverlight client. When I call the service from Silverlight, I get (in silverlight): new DiscourseParserWSClient created; event handler added; service called; Service State is: Open http://localhost:8080/DiscourseParserWS/DiscourseParserWSService An exception occurred during the operation, making the result invalid. The remote server returned an error: NotFound. After the client calls the service, GlassFish v3 Domain responds

SOAP Service: Missing WS-Addressing header

感情迁移 提交于 2020-01-25 19:27:29
问题 I have a Netbeans SOAP service I can deploy with no issues and a Silverlight client. When I call the service from Silverlight, I get (in silverlight): new DiscourseParserWSClient created; event handler added; service called; Service State is: Open http://localhost:8080/DiscourseParserWS/DiscourseParserWSService An exception occurred during the operation, making the result invalid. The remote server returned an error: NotFound. After the client calls the service, GlassFish v3 Domain responds

Spring WS client set cookie for authentication

帅比萌擦擦* 提交于 2020-01-25 18:40:10
问题 In order to consume a RPC web service, first I have to call a web method 'Authentication' and then I am supposed to be able to call other web methods. I have tried to implement a spring web client to consume this service but something is going terribly wrong. This service was originally designed for php users and the sample client code they provided is as following: $soap = new SoapClient('http://www.2972.ir/wsdl?XML'); if ($soap->Authentication('user', '123456')) { echo $soap->getCredit(); }