soap

WebService 之 WSDL文件 讲解

有些话、适合烂在心里 提交于 2019-12-27 03:00:59
原文地址:http://blog.csdn.net/tropica/archive/2008/11/02/3203892.aspx 恩,我想说的是,是不是经常有人在开发的时候,特别是和第三方有接口的时候,走的是SOAP协议,然后用户给你一个WSDL文件,说按照上面的进行适配,嘿嘿,这个时候,要是你以前没有开发过,肯定会傻眼,那如果你想学习的话,就认真的看下面的讲解咯: 一、WSDL概述 WebServices Description Language (WSDL Web服务语言)是一个用于精确描述Web Service的文档格式。 WSDL非常适合于用作代码生成器,它能够读取WSDL文档,并且可以为访问Web服务生成一个程序化的接口,大多数软件供应商和主要的标准机构(包括 W3C、WS-I和OASIS)都支持WSDL。例如:JAX-RPC provider(例如:BEA Weblogic)通过API用WSDL生成相应的占位程序;IBM WebSphere、Microsoft.NET以及Apache Axis都有自己的工具生成相关的代码。下图是一个例子: 上面的例子JAX-RPC通过读取WSDL文档,创建JAX-RPC RMI接口(endpoint接口)和实现此接口的网络占位程序(stub)。客户端程序通过RMI接口,Stub和Web Service服务端交换SAOP消息。 二

WebService 之 WSDL文件 讲解

大兔子大兔子 提交于 2019-12-27 02:55:35
原文地址:http://blog.csdn.net/tropica/archive/2008/11/02/3203892.aspx 恩,我想说的是,是不是经常有人在开发的时候,特别是和第三方有接口的时候,走的是SOAP协议,然后用户给你一个WSDL文件,说按照上面的进行适配,嘿嘿,这个时候,要是你以前没有开发过,肯定会傻眼,那如果你想学习的话,就认真的看下面的讲解咯: 一、WSDL概述 WebServices Description Language (WSDL Web服务语言)是一个用于精确描述Web Service的文档格式。 WSDL非常适合于用作代码生成器,它能够读取WSDL文档,并且可以为访问Web服务生成一个程序化的接口,大多数软件供应商和主要的标准机构(包括 W3C、WS-I和OASIS)都支持WSDL。例如:JAX-RPC provider(例如:BEA Weblogic)通过API用WSDL生成相应的占位程序;IBM WebSphere、Microsoft.NET以及Apache Axis都有自己的工具生成相关的代码。下图是一个例子: 上面的例子JAX-RPC通过读取WSDL文档,创建JAX-RPC RMI接口(endpoint接口)和实现此接口的网络占位程序(stub)。客户端程序通过RMI接口,Stub和Web Service服务端交换SAOP消息。 二

SOAP 介绍

大憨熊 提交于 2019-12-27 02:52:55
简介 SOAP(Simple Object Access Protoco)简单对象访问协议是在分散或分布式的环境中交换信息的简单的协议,是一个基于 XML 的协议。此协议规范由 IBM、Microsoft、UserLand 和 DevelopMentor 在1998年共同提出,并得到 IBM,莲花(Lotus),康柏(Compaq)等公司的支持,于2000年提交给万维网联盟(World Wide Web Consortium;W3C)。现在,SOAP 协议规范由万维网联盟的 XML工作组维护。SOAP 1.2 版在2003年6月24日成为 W3C 的推荐版本。 SOAP 协议包括以下四个部分的内容: SOAP 封装(envelop),封装定义了一个描述消息中的内容是什么,是谁发送的,谁应当接受并处理它以及如何处理它们的框架; SOAP 编码规则(encoding rules),它定义了不同应用程序间交换信息时,需要使用到的数据类型; SOAP RPC 表示(RPC representation),它定义了一个表示远程过程调用和应答的协定; SOAP 绑定(binding),它定义 SOAP 使用哪种底层协议交换信息的协定。使用 HTTP/TCP/UDP 协议都可以; 四个部分之间的关系 SOAP 消息基本上是从发送端到接收端的单向传输,但它们常常结合起来执行类似于请求 /

soap,socket

让人想犯罪 __ 提交于 2019-12-27 02:48:31
Socket 接口是访问 Internet 使用得最广泛的方法。 如果你有一台刚配好TCP/IP协议的主机,其IP地址是202.120.127.201, 此时在另一台主机或同一台主机上执行ftp 202.120.127.201,显然无法建立连接。因"202.120.127.201" 这台主机没有运行FTP服务软件。同样, 在另一台或同一台主机上运行浏览软件 如Netscape,输入" http://202.120.127.201 ",也无法建立连接。现在,如果在这台主机上运行一个FTP服务软件(该软件将打开一个Socket, 并将其绑定到21端口),再在这台主机上运行一个Web 服务软件(该软件将打开另一个Socket,并将其绑定到80端口)。这样,在另一台主机或同一台主机上执行ftp 202.120.127.201,FTP客户软件将通过21端口来呼叫主机上由FTP 服务软件提供的Socket,与其建立连接并对话。而在netscape中输入" http://202.120.127.201 "时,将通过80端口来呼叫主机上由Web服务软件提供的Socket,与其建 立连接并对话。 在Internet上有很多这样的主机,这些主机一般运行了多个服务软件,同时提供几种服务。每种服务都打开一个Socket,并绑定到一个端口上,不同的端口对应于不同的服务。Socket正如其英文原意那样

基于Axis2开发WebService代码详解

独自空忆成欢 提交于 2019-12-26 12:12:05
基于Axis2开发WebService代码详解 关键字: webservice 转载: http://tenn.javaeye.com/blog/100755 1.HelloWorld做了些什么? HelloWorld功能非常简单,在客户端输入你的姓名,本例中为ZJ。参数传递到服务器端后,经过处理将返回name+"HelloWorld!",本例中为ZJ HelloWorld! 2.服务器端文件HelloWorld.java HelloWorld.java Java代码 package sample; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMNamespace; public class HelloWorld { //读取client端getSayHelloOMElement()方法传递的参数in。 public OMElement sayHello(OMElement in){ //将in转换为String。 String name=in.getText(); String info=name+ "HelloWorld!"

How to create Basic Authentication in PHP with WSDL and SOAP API [closed]

冷暖自知 提交于 2019-12-26 08:32:03
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 days ago . I'm building a web service. I have WSDL url. But my problem, basic authentication. How can i this solve? I'm using SoapClient. I have to send XML request. So, which parameters must sending with SoapClient? I need basic authenctication for all requests. Thanks for support That's my basic code

How to create Basic Authentication in PHP with WSDL and SOAP API [closed]

半腔热情 提交于 2019-12-26 08:29:46
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 days ago . I'm building a web service. I have WSDL url. But my problem, basic authentication. How can i this solve? I'm using SoapClient. I have to send XML request. So, which parameters must sending with SoapClient? I need basic authenctication for all requests. Thanks for support That's my basic code

【摘录】Using Webservices ( SOAP ) in BREW

偶尔善良 提交于 2019-12-25 23:19:01
This post deals with making the SOAP based Webservices API to work in the BREW environment. It is not intended to be a tutorial on SOAP or webservices. There has been a lot of confusion regarding whether the webservices API are supported in BREW or not. The correct answer is No, because BREW does not have a XML parser or a SOAP abstraction layer on its own, which is a critcal component for SOAP based webservices. However, if you are ready roll up your sleeves and get your hands dirty with low level stuff you can make SOAP based webservices work in BREW environment. The SOAP based webservices

How to get the value from the below output in ios?

这一生的挚爱 提交于 2019-12-25 19:10:35
问题 I am getting this below output while hitting soap service and now I want to fetch the all value from the below output. How to get this? [{ "sms": "You have logged in successfully!", "userId": "13", "type": "1", "name": "Suhashini Kumari Singh" }] 回答1: You can do something like, NSArray *yourArr; // your array which you have post in question NSDictionary *obj1 = [yourArr objectAtIndex:0]; NSString *sms = [obj1 objectForKey:@"sms"]; NSString *userId = [obj1 objectForKey:@"userId"]; NSString

WCF SOAP Service method timeout for no reason

爷,独闯天下 提交于 2019-12-25 18:34:36
问题 I have a WCF SOAP Service with wsHttpBinding, i have 2 methods, the first one executes fine, but for some reason the call to the second method times out. I debuged the method and the everything is fine i my code, it executes and returns, but the in the client, on the same machine, the requests times out. I created a new WCF Service Application project, copied the entire code + config to the new project, ran it, and the method didn't time out for a few times, then suddenly it started doing it