中文<-™>英文双向翻译WEB服务,永久免费。
提供词典翻译、音标(拼音)、解释、相关词条、例句、读音(英文Only)、候选词等功能。
传递中文参数请使用UTF-8编码。
接口文档:http://fy.webxml.com.cn/files/TranslatorWebServiceHelp.pdf
Get™Mp3
获得朗读MP3字节流
输入参数:Mp3 = Mp3名称; 返回数据:字节数组 Byte[]。
接口说明地址:http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?op=GetMp3
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /webservices/EnglishChinese.asmx/GetMp3?Mp3=string HTTP/1.1
Host: fy.webxml.com.cn
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8 Content-Length: length
<?xml version="1.0" encoding="utf-8"?> <base64Binary xmlns="http://WebXml.com.cn/">base64Binary</base64Binary>
HTTP POST
以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。
POST /webservices/EnglishChinese.asmx/GetMp3 HTTP/1.1
Host: fy.webxml.com.cn
Content-Type: application/x-www-form-urlencoded
Content-Length: length
Mp3=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<base64Binary xmlns="http://WebXml.com.cn/">base64Binary</base64Binary>
SuggestWord
获得候选词
输入参数:wordKey = 单词; 返回数据:一维字符串数组 String[]。
接口说明地址:http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?op=SuggestWord
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /webservices/EnglishChinese.asmx/SuggestWord?wordKey=string HTTP/1.1
Host: fy.webxml.com.cn
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfString xmlns="http://WebXml.com.cn/">
<string>string</string>
<string>string</string>
</ArrayOfString>
HTTP POST
POST /webservices/EnglishChinese.asmx/SuggestWord HTTP/1.1
Host: fy.webxml.com.cn
Content-Type: application/x-www-form-urlencoded
Content-Length: length
wordKey=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfString xmlns="http://WebXml.com.cn/">
<string>string</string>
<string>string</string>
</ArrayOfString>
Translator
中英文双向翻译 DataSet
输入参数:wordKey = 单词; 返回数据:DataSet。(包括全部数据三个DataTable)
接口说明地址:http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?op=Translator
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /webservices/EnglishChinese.asmx/Translator?wordKey=string HTTP/1.1
Host: fy.webxml.com.cn
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://WebXml.com.cn/">
<schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</DataSet>
HTTP POST
以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。
POST /webservices/EnglishChinese.asmx/Translator HTTP/1.1
Host: fy.webxml.com.cn
Content-Type: application/x-www-form-urlencoded
Content-Length: length
wordKey=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://WebXml.com.cn/">
<schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</DataSet>
中英文双向翻译(相关词条)String()
输入参数:wordKey = 单词; 返回数据:一维字符串数组 String[]。
接口说明地址:http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?op=TranslatorReferString
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /webservices/EnglishChinese.asmx/TranslatorReferString?wordKey=string HTTP/1.1
Host: fy.webxml.com.cn
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfString xmlns="http://WebXml.com.cn/">
<string>string</string>
<string>string</string>
</ArrayOfString>
HTTP POST
以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。
POST /webservices/EnglishChinese.asmx/TranslatorReferString HTTP/1.1
Host: fy.webxml.com.cn
Content-Type: application/x-www-form-urlencoded
Content-Length: length
wordKey=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfString xmlns="http://WebXml.com.cn/">
<string>string</string>
<string>string</string>
</ArrayOfString>
