webservice地址:http://www.webxml.com.cn/WebServices/TranslatorWebService.asmx?op=getEnCnTwoWayTranslator
soap协议:
SOAP 1.1
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /WebServices/TranslatorWebService.asmx HTTP/1.1
Host: www.webxml.com.cn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://WebXml.com.cn/getEnCnTwoWayTranslator"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getEnCnTwoWayTranslator xmlns="http://WebXml.com.cn/">
<Word>string</Word>
</getEnCnTwoWayTranslator>
</soap:Body>
</soap:Envelope>
HTTP

本文介绍了如何利用webservice地址http://www.webxml.com.cn/WebServices/TranslatorWebService.asmx?op=getEnCnTwoWayTranslator进行中文和英文的双向翻译。通过调用soap协议的getEnCnTwoWayTranslator方法,例如翻译'你好'和'hello',返回了对应的翻译结果。
最低0.47元/天 解锁文章
3295

被折叠的 条评论
为什么被折叠?



