教程集 www.jiaochengji.com
教程集 >  jQuery  >  jQuery 插件  >  正文 jQuery SOAP Client

jQuery SOAP Client

发布时间:2014-06-16   编辑:jiaochengji.com
This is a jQuery implementation of SOAP Client and it is based on another jQuery plug-in called xmlObjectifier. This library provides an easy way to communicate with SOAP web services from the client-side javascript (all domain restrictions are still ther
This is a jquery implementation of SOAP Client and it is based on another jQuery plug-in called xmlObjectifier.This library provides an easy way to communicate with SOAP web services from the client-side javascript (all domain restrictions are still there). SOAPClient supports complex/nested request objects as well as attributes and values within request object nodes. You can also set Header objects as well.Practical example of how to use SOAPClient can be found on my site by following Demo link. I also have included a simple ASP.NET Proxy example that will resolve Cross-Browser Restrictions (if you're running IIS w/ ASP.NET)Examplevar soapBody = new SOAPObject("testObject"); //Create a new request objectsoapBody.attr("type","test"); //Setting attributes of that objectsoapBody.val("Hello World"); //Setting value of that object//You can also use chained method that looks like this:// var soapBody = new SOAPObject("testObject").attr("type","test").val("Hello World");//Create a new SOAP Requestvar sr = new SOAPRequest("MyAction", soapBody); //Request is ready to be sent//Lets send itSOAPClient.Proxy = "http://my-ws.com/webservice/"; //Specify web-service address or a proxy fileSOAPClient.SendRequest(sr, processResponse); //Send request to server and assign a callbackfunction processResponse(respObj) {//respObj is a JSON equivalent of SOAP Response XML (all namespaces are dropped)//... do something with response}

您可能感兴趣的文章:
jQuery SOAP Client
php捕捉soap的xml形式
PHP SOAP调用.net的WebService数据的实例代码
php soap客户端调试实例
php soap 调用获取返回信息
php soap扩展开启与__soapCall使用问题
详解php soap实现web service接口服务
应用NuSoap构建新型的基于PHP的Web服务
PHP访问C#建立的Webservice
顺丰BSP订单号查询接口SOAP的请求示例

[关闭]
~ ~