jQuery SOAP Client 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
jQuery SOAP Client 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
jQuery SOAP Client 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 未知
开发语言
操作系统 未知
软件类型 开源软件
开源组织
地区 不详
投 递 者 不详
适用人群 未知
收录时间 2008-09-19

软件简介

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)

Example
var soapBody = new SOAPObject("testObject"); //Create a new request object
soapBody.attr("type","test"); //Setting attributes of that object
soapBody.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 Request
var sr = new SOAPRequest("MyAction", soapBody); //Request is ready to be sent

//Lets send it
SOAPClient.Proxy = "http://my-ws.com/webservice/"; //Specify web-service address or a proxy file
SOAPClient.SendRequest(sr, processResponse); //Send request to server and assign a callback

function processResponse(respObj) {
//respObj is a JSON equivalent of SOAP Response XML (all namespaces are dropped)
//... do something with response
}

展开阅读全文

评论

点击引领话题📣
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
7 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部