[英]Web service API to XML
Right I have done some more research and basically I need to connect to a web service. 是的,我已经进行了更多研究,基本上我需要连接到Web服务。
Here is the WSDL for the web service: http://aecjobs.bluefusesystems.com/api/jobAPI.cfc?wsdl 这是Web服务的WSDL: http : //aecjobs.bluefusesystems.com/api/jobAPI.cfc?wsdl
The xml code below works in soapUI, but I cant figure out how to connect my xml file to the web service. 下面的xml代码可在soapUI中使用,但我无法弄清楚如何将xml文件连接到Web服务。 It seems pretty complicated :( 似乎很复杂:(
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://aecjobs.bluefusesystems.com/api/jobAPI.cfc">
<soapenv:Header/>
<soapenv:Body>
<api:GetJobs soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<numBusinessUnitId xsi:type="xsd:double">0</numBusinessUnitId>
</api:GetJobs>
</soapenv:Body>
</soapenv:Envelope>
We use this library, pretty easy to follow http://javascriptsoapclient.codeplex.com/ 我们使用此库,非常容易遵循http://javascriptsoapclient.codeplex.com/
You basically fill your xml request as needed and then send an ajax request and parse the xml response to do whatever you need afterwards. 您基本上可以根据需要填写xml请求,然后发送ajax请求并解析xml响应以随后执行所需的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.