回到首頁 加入會員
英文男女用法大不同,快來檢測! 全新譯經10.0點數版開放下載
《 RSS英語新聞 》  
  Obama Says Pressure on Iran Is Building  Obama 說,對伊朗的壓力正在建築
Web Service
在您的購物、搜尋、電子商務、內容管理、線上學習、ERP、聊天和其它的網站或應用程式裡加入語言翻譯功能,可以區隔您和競爭對手的差異、增加新的應用、招來更多的瀏覽者,進而增加新的客戶和生意機會。
呼叫譯言堂的 Web Service,讓您不用維護翻譯伺服器、不用支付 SDK 的授權權利金,只要幾行指令,就可以輕輕鬆鬆將多種語言的字典查詢、文字翻譯和網頁翻譯功能加入您的網站、應用程式、PDA或其他產品。用多少才付多少,每個字只要 0.2 點。
現在就來為您的網站和應用程式加值吧!
注意
  1. 使用本 Web Service,你必須已經註冊成為譯言堂的會員,並且在會員帳號裡有可用的點數。
  2. Mytrans 線上翻譯服務採用機器翻譯 (Machine Translation) 技術,翻譯結果無法保證完全正確,適當的人工修飾仍有其必要,若根據機器翻譯的結果而做成之任何交易,本系統不負任何責任。使用者並不得利用翻譯結果做出侵犯原作者著作權之情事。
  3. 本 Web Service 採用SSL 128 bit 加密機制確保您資料的安全。
技術支援
如果您在使用 Mytrans 的 Web Service 有任何問題或疑問,請與我們連絡。
TEL: (02)-87971212
FAX: (02)-87971919
EMAIL: otek@ms10.hinet.net
Mytrans Web Service 使用說明
  • Web Reference: https://www.mytrans.com.tw/webservice/mytransservice.asmx
  • 呼叫方法

    1. LookupDictionary
    Method: LookupDictionary
    Feature: Look up dictionary for a word in general dictionary or professional dictionary. . Each word costs 0.2 point if the word can be found.
    Parameter:
      String MemberID:  
        Member ID in Mytrans
         
      String Password:  
        Password in Mytrans
         
      Int LanguageIndex: Language of the dictionary. Value and corresponding language is as below
        1: English to traditional Chinese
    2: English to simplified Chinese
    3: traditional Chinese to English
    4: simplified Chinese to English
    5: Japanese to traditional Chinese
    6: Japanese to simplified Chinese
    7: traditional Chinese to Japanese
    8: simplified Chinese to Japanese
    9: traditional Chinese to simplified Chinese
    10: simplified Chinese to traditional Chinese
         
      String ProfessionalDictionary: Name of the professional dictionary
        "0": Look up general dictionary, otherwise look up the professional dictionary specified.
    Available professional dictionaries for various languages now:
    English to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Automechanic"
    "Health"
        Chinese to English
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Health"
        Japanese to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
        Chinese to Japanese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
         
        String Word: The word to look up. If you are looking up a Japanese dictionary, enter Kanzi here if any.
         
        String Word2: If you are looking up a Japanese dictionary, enter Hiragana or Katakana here.
     

    Return: a string with form as below

      <ReturnCode>Return code</ReturnCode> <PointUsed>Point used</PointUsed>
    <PointLeft>Point left</PointLeft>
    <WordDatas>Translation</WordDatas>
     
    In which,
      Return code: 0, the word is found in specified dictionary
        else, the word is not found
      Point used: points used during this translation. Each word costs 0.2 point.
      Point left: points left after this translation
      Translation: the dictionary content of the word if it can be found
     
    2. TranslateText
    Method: TranslateText
    Feature: Translate paragraphs of text. Each word costs 0.2 point.
    Parameter:
      String MemberID:  
        Member ID in Mytrans
         
      String Password:  
        Password in Mytrans
         
      Int LanguageIndex: value and corresponding language is as below
        1: English to traditional Chinese
    2: English to simplified Chinese
    3: traditional Chinese to English
    4: simplified Chinese to English
    5: Japanese to traditional Chinese
    6: Japanese to simplified Chinese
    7: traditional Chinese to Japanese
    8: simplified Chinese to Japanese
    9: traditional Chinese to simplified Chinese
    10: simplified Chinese to traditional Chinese
         
      String ProfessionalDictionary1: Name of first priority professional dictionary
        "0": not used
    Available professional dictionaries for various languages now:
    English to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Automechanic"
    "Health"
        Chinese to English
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Health"
        Japanese to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
        Chinese to Japanese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
         
      String ProfessionalDictionary2: Name of second priority professional dictionary. Usage is same as ProfessionalDictionary1.
         
      String ProfessionalDictionary3: Name of third priority professional dictionary. Usage is same as ProfessionalDictionary1.
         
      Int AlternateNum: Maximum number of alternate translation produced. No alternate translation will be produced if it is given as 0.
         
     

    Int TranslationMode: (For Chinese to English translation only)

        1: normal translation
    2: pinyin translation
    3: address translation
    4. name translation
         
      Int Formality: (For Chinese to Japanese translation only)
        1: Informal
    2: Polite
         
      Int ShowKatakanaSource: (For Japanese to Chinese and Chinese to Japanese translation only)
        1: Show source word of Katakana word
    0: Don’t show
         
      Int ReplacePhrase: (For traditional Chinese/simplified Chinese translation only)
        1: Make phrase replacement during translation.
    0: Don’t make phrase replacement, just make code conversion.
         
      String SourceText: The text to translate. The maximum character number of the text is 65536.
     

    Return: a string with form as below

      <ReturnCode>Return code</ReturnCode>
      <PointUsed>Point used</PointUsed>
      <PointLeft>Point left</PointLeft>
      <Translation><![CDATA[Translation]]></Translation>
     
    In which,
      Return code: 0, translation succeed
        else, translation fail
      Point used: points used during this translation. Each word costs 0.2 point.
      Point left: points left after this translation
      Translation: the translation output
     
    3. TranslateHTMLText
    Method: TranslateHTMLText
    Feature: Translate content of a HTML file. Each word costs 0.2 point.
    Parameter:
      String MemberID:  
        Member ID in Mytrans
         
      String Password:  
        Password in Mytrans
         
      Int LanguageIndex: value and corresponding language is as below
        1: English to traditional Chinese
    2: English to simplified Chinese
    3: traditional Chinese to English
    4: simplified Chinese to English
    5: Japanese to traditional Chinese
    6: Japanese to simplified Chinese
    7: traditional Chinese to Japanese
    8: simplified Chinese to Japanese
    9: traditional Chinese to simplified Chinese
    10: simplified Chinese to traditional Chinese
         
      String ProfessionalDictionary1: Name of first priority professional dictionary
        "0": not used
    Available professional dictionaries for various languages now:
    English to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Automechanic"
    "Health"
        Chinese to English
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Health"
        Japanese to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
        Chinese to Japanese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
         
      String ProfessionalDictionary2: Name of second priority professional dictionary. Usage is same as ProfessionalDictionary1.
         
      String ProfessionalDictionary3: Name of third priority professional dictionary. Usage is same as ProfessionalDictionary1.
         
      Int AlternateNum: Maximum number of alternate translation produced. No alternate translation will be produced if it is given as 0.
         
     

    Int TranslationMode: (For Chinese to English translation only)

        1: normal translation
    2: pinyin translation
    3: address translation
    4. name translation
         
      Int Formality: (For Chinese to Japanese translation only)
        1: Informal
    2: Polite
         
      Int ShowKatakanaSource: (For Japanese to Chinese and Chinese to Japanese translation only)
        1: Show source word of Katakana word
    0: Don’t show
         
      Int ReplacePhrase: (For traditional Chinese/simplified Chinese translation only)
        1: Make phrase replacement during translation.
    0: Don’t make phrase replacement, just make code conversion.
         
      Int ReferenceSave:
        nonzero: Produce translation along with its source text.
    0: Produce translation only.
         
      String SourceText: Content of a HTML file. The maximum character number of the text is 65536. If this parameter is given as empty string, web service will get the webpage content for translation automatically with URLAddress parameter
         
      String URLAddress: URL address of the HTML file.
         
      Int EncodingCodePage: Specifiy encoding code page of the source webpage (for example, 936 for Japanese webpage) or give 0 to accept default code page. This parameter will be ignored if SouceText is not empty.
     

    Return: a string with form as below

      <ReturnCode>Return code</ReturnCode>
      <PointUsed>Point used</PointUsed>
      <PointLeft>Point left</PointLeft>
      <Translation><![CDATA[Translation]]></Translation>
     
    In which,
      Return code: 0, translation succeed
        else, translation fail
      Point used: points used during this translation. Each word costs 0.2 point.
      Point left: points left after this translation
      Translation: the translation output
     
    4. UploadFile

    Method: UploadFile
    Feature: Upload a file for translation. Each word costs 0.2 point.

    NOTE: The uploaded file will be removed after translation is done or after 3 days if translation is not made. Once translation is done, the translation file will be kept for 48 hours and will also be removed after that.

    The time for translation depends on the language, file type, file size and internet condition. It normally takes from several minutes to several hours to complete the translation. If translation hasn't been completed after 6 hours, please contact us with your member ID and Request ID.

    Parameter:
      String MemberID:  
        Member ID in Mytrans
         
      String Password:  
        Password in Mytrans
         
      Int LanguageIndex: value and corresponding language is as below
        1: English to traditional Chinese
    2: English to simplified Chinese
    3: traditional Chinese to English
    4: simplified Chinese to English
    5: Japanese to traditional Chinese
    6: Japanese to simplified Chinese
    7: traditional Chinese to Japanese
    8: simplified Chinese to Japanese
    9: traditional Chinese to simplified Chinese
    10: simplified Chinese to traditional Chinese
         
      String ProfessionalDictionary1: Name of first priority professional dictionary
        "0": not used
    Available professional dictionaries for various languages now:
    English to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Automechanic"
    "Health"
        Chinese to English
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Civil Engineering"
    "Medical"
    "Law"
    "Finance"
    "Management"
    "Trade"
    "Health"
        Japanese to Chinese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
        Chinese to Japanese
       
      "Information and Electronics"
    "Mechanic Engineering"
    "Chemical Engineering"
    "Medical"
    "Finance"
         
      String ProfessionalDictionary2: Name of second priority professional dictionary. Usage is same as ProfessionalDictionary1.
         
      String ProfessionalDictionary3: Name of third priority professional dictionary. Usage is same as ProfessionalDictionary1.
         
      Int AlternateNum: Maximum number of alternate translation produced. No alternate translation will be produced if it is given as 0.
         
     

    Int TranslationMode: (For Chinese to English translation only)

        1: normal translation
    2: pinyin translation
    3: address translation
    4. name translation
         
      Int Formality: (For Chinese to Japanese translation only)
        1: Informal
    2: Polite
         
      Int ShowKatakanaSource: (For Japanese to Chinese and Chinese to Japanese translation only)
        1: Show source word of Katakana word
    0: Don’t show
         
      Int ReplacePhrase: (For traditional Chinese/simplified Chinese translation only)
        1: Make phrase replacement during translation.
    0: Don’t make phrase replacement, just make code conversion.
         
      Int ReferenceSave:
        nonzero: Produce translation along with its source text.
    0: Produce translation only.
         
      Int FileType: Type of the file format
        0: Plain text file (.TXT)
    1: MS WORD file (.DOC)
    2. HTML file (.HTM)
    3: MS EXCEL file (.XLS)
    4: MS PowerPoint file (.PPT)
         
      Byte[] FileContent: Byte string of the file content.
         
      String FileName: Name of the upload file. This parameter is used by user for reference purpose.
     

    Return: a string with form as below

      <ReturnCode>Return code</ReturnCode>
      <RequestID>Request ID</RequestID>
     
    In which,
      Return code: 0, upload succeed
        else, upload fail
      Request ID: an unique encrypted string for later inquiry of job status and translation result.
     
    5. GetUploadFileStatus

    Method: GetUploadFileStatus
    Feature: Get job status of the upload file.

    Parameter:
      String MemberID:
        Member ID in Mytrans
         
      String Password:
        Password in Mytrans
         
         
      String RequestID: The unique string obtained when successfully calling UploadFile().
     

    Return: a string with form as below

      <ReturnCode>Return code</ReturnCode>
      <Filename>Filename</Filename>
      <UploadTime>Upload Time</UploadTime>
      <Status>Job status</Status>
     
    In which,
      Return code: 0, succeed
        else, fail
      File name: name of the upload file
      Upload time: the time when the file is uploaded
      Job status: 1, file is uploaded
        2, file is under translation
        3, translation is finished. If Job status is 3, then you can call GetFileTranslatinResult() to obtain the translation file name.
     
    6. GetFileTranslationResult

    Method: GetFileTranslationResult
    Feature: Get translation result of an upload file. The returned file name can be used to download the translation file. NOTE: The translation result can be obtained only when the job status from GetUploadFileStatus() is 3.

    Parameter:
      String MemberID:
        Member ID in Mytrans
         
      String Password:
        Password in Mytrans
         
         
      String RequestID: The unique string obtained when successfully calling UploadFile().
     

    Return: a string with form as below

      <ReturnCode>Return code</ReturnCode>
      <ResultFilename>Result file name</ResultFilename>
      <PointsUsed>Point used</PointsUsed>
     
    In which,
      Return code: 0, succeed
        else, fail
      File name: the given name of the upload file.
      Result file name: file name to download the translation result.
      Point used: points used during this translation. Each word costs 0.2 point.
     

    程式範例 Sample Code (DOTNET Visual Basic)

    1. Look up dictionary for a word
    Public Class Form1
      Inherits System.Windows.Forms.Form
     
    #Region " Windows Form Designer generated code "
      Public Sub New()
     
      MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeComponent()

    'Add any initialization after the InitializeComponent() call
    Language.SelectedIndex = 0
    ProfDictionary.SelectedIndex = 0

       
      End Sub
       
      'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
     
      If disposing Then
     
      If Not (components Is Nothing) Then
     
      components.Dispose()
      End If
      End If
      MyBase.Dispose(disposing)
      End Sub
       
      'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
       
      'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.
    'Do not modify it using the code editor.
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents tMemberID As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents tPassword As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Language As System.Windows.Forms.ComboBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents ProfDictionary As System.Windows.Forms.ComboBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents tWord As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents tWord2 As System.Windows.Forms.TextBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents tReturnString As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
     
      Me.Label1 = New System.Windows.Forms.Label
    Me.tMemberID = New System.Windows.Forms.TextBox
    Me.Label2 = New System.Windows.Forms.Label
    Me.tPassword = New System.Windows.Forms.TextBox
    Me.Label3 = New System.Windows.Forms.Label
    Me.Language = New System.Windows.Forms.ComboBox
    Me.Label4 = New System.Windows.Forms.Label
    Me.Button1 = New System.Windows.Forms.Button
    Me.ProfDictionary = New System.Windows.Forms.ComboBox
    Me.Label5 = New System.Windows.Forms.Label
    Me.tWord = New System.Windows.Forms.TextBox
    Me.Label6 = New System.Windows.Forms.Label
    Me.tWord2 = New System.Windows.Forms.TextBox
    Me.Label7 = New System.Windows.Forms.Label
    Me.tReturnString = New System.Windows.Forms.TextBox
    Me.SuspendLayout()
    '
    'Label1
    '
    Me.Label1.Location = New System.Drawing.Point(8, 16)
    Me.Label1.Name = "Label1"
    Me.Label1.Size = New System.Drawing.Size(72, 16)
    Me.Label1.TabIndex = 0
    Me.Label1.Text = "Member ID:"
    '
    'tMemberID
    '
    Me.tMemberID.Location = New System.Drawing.Point(88, 8)
    Me.tMemberID.Name = "tMemberID"
    Me.tMemberID.Size = New System.Drawing.Size(168, 22)
    Me.tMemberID.TabIndex = 1
    Me.tMemberID.Text = ""
    '
    'Label2
    '
    Me.Label2.Location = New System.Drawing.Point(8, 40)
    Me.Label2.Name = "Label2"
    Me.Label2.Size = New System.Drawing.Size(72, 16)
    Me.Label2.TabIndex = 2
    Me.Label2.Text = "Password:"
    '
    'tPassword
    '
    Me.tPassword.Location = New System.Drawing.Point(88, 32)
    Me.tPassword.Name = "tPassword"
    Me.tPassword.Size = New System.Drawing.Size(168, 22)
    Me.tPassword.TabIndex = 3
    Me.tPassword.Text = ""
    '
    'Label3
    '
    Me.Label3.Location = New System.Drawing.Point(8, 64)
    Me.Label3.Name = "Label3"
    Me.Label3.Size = New System.Drawing.Size(64, 16)
    Me.Label3.TabIndex = 4
    Me.Label3.Text = "Language:"
    '
    'Language
    '
    Me.Language.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
    Me.Language.Items.AddRange(New Object() {"English to Traditional Chinese (BIG5)", "English to Simplified Chinese (GB)", "Traditional Chinese (BIG5) to English", "Simplified Chinese (GB) to English", "Japanese to Traditional Chinese (BIG5)", "Japanese to Simplified Chinese (GB)", "Traditional Chinese (BIG5) to Japanese", "Simplified Chinese (GB) to Japanese", "Traditional Chinese (BIG5) to Simplified Chinese (GB)", "Simplified Chinese (GB) to Traditional Chinese (BIG5)"})
    Me.Language.Location = New System.Drawing.Point(88, 56)
    Me.Language.MaxDropDownItems = 16
    Me.Language.Name = "Language"
    Me.Language.Size = New System.Drawing.Size(312, 20)
    Me.Language.TabIndex = 5
    '
    'Label4
    '
    Me.Label4.Location = New System.Drawing.Point(8, 80)
    Me.Label4.Name = "Label4"
    Me.Label4.Size = New System.Drawing.Size(120, 16)
    Me.Label4.TabIndex = 6
    Me.Label4.Text = "Professional Dictionary:"
    '
    'Button1
    '
    Me.Button1.Location = New System.Drawing.Point(408, 160)
    Me.Button1.Name = "Button1"
    Me.Button1.TabIndex = 7
    Me.Button1.Text = "Go"
    '
    'ProfDictionary
    '
    Me.ProfDictionary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
    Me.ProfDictionary.Items.AddRange(New Object() {"0", "Information and Electronics", "Medical"})
    Me.ProfDictionary.Location = New System.Drawing.Point(136, 80)
    Me.ProfDictionary.Name = "ProfDictionary"
    Me.ProfDictionary.Size = New System.Drawing.Size(264, 20)
    Me.ProfDictionary.TabIndex = 8
    '
    'Label5
    '
    Me.Label5.Location = New System.Drawing.Point(8, 104)
    Me.Label5.Name = "Label5"
    Me.Label5.Size = New System.Drawing.Size(168, 16)
    Me.Label5.TabIndex = 9
    Me.Label5.Text = "Word: (Kanzi for Japanese word)"
    '
    'tWord
    '
    Me.tWord.Location = New System.Drawing.Point(56, 120)
    Me.tWord.Name = "tWord"
    Me.tWord.Size = New System.Drawing.Size(344, 22)
    Me.tWord.TabIndex = 10
    Me.tWord.Text = ""
    '
    'Label6
    '
    Me.Label6.Location = New System.Drawing.Point(8, 144)
    Me.Label6.Name = "Label6"
    Me.Label6.Size = New System.Drawing.Size(128, 16)
    Me.Label6.TabIndex = 11
    Me.Label6.Text = "Hiragana or Katakana:"
    '
    'tWord2
    '
    Me.tWord2.Location = New System.Drawing.Point(56, 160)
    Me.tWord2.Name = "tWord2"
    Me.tWord2.Size = New System.Drawing.Size(344, 22)
    Me.tWord2.TabIndex = 12
    Me.tWord2.Text = ""
    '
    'Label7
    '
    Me.Label7.Location = New System.Drawing.Point(8, 192)
    Me.Label7.Name = "Label7"
    Me.Label7.Size = New System.Drawing.Size(88, 16)
    Me.Label7.TabIndex = 13
    Me.Label7.Text = "Return string:"
    '
    'tReturnString
    '
    Me.tReturnString.Location = New System.Drawing.Point(8, 208)
    Me.tReturnString.Multiline = True
    Me.tReturnString.Name = "tReturnString"
    Me.tReturnString.Size = New System.Drawing.Size(472, 168)
    Me.tReturnString.TabIndex = 14
    Me.tReturnString.Text = ""
    '
    'Form1
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 15)
    Me.ClientSize = New System.Drawing.Size(488, 382)
    Me.Controls.Add(Me.tReturnString)
    Me.Controls.Add(Me.Label7)
    Me.Controls.Add(Me.tWord2)
    Me.Controls.Add(Me.Label6)
    Me.Controls.Add(Me.tWord)
    Me.Controls.Add(Me.Label5)
    Me.Controls.Add(Me.ProfDictionary)
    Me.Controls.Add(Me.Button1)
    Me.Controls.Add(Me.Label4)
    Me.Controls.Add(Me.Language)
    Me.Controls.Add(Me.Label3)
    Me.Controls.Add(Me.tPassword)
    Me.Controls.Add(Me.Label2)
    Me.Controls.Add(Me.tMemberID)
    Me.Controls.Add(Me.Label1)
    Me.Name = "Form1"
    Me.Text = "Form1"
    Me.ResumeLayout(False)
       
      End Sub
     
    #End Region
      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       
     
      Dim obj As tw.com.mytrans.www.Service1
    Dim sTemp As String

    tReturnString.Clear()
    tReturnString.Update()

    obj = New tw.com.mytrans.www.Service1
    sTemp = obj.LookupDictionary(tMemberID.Text, tPassword.Text, Language.SelectedIndex + 1, ProfDictionary.SelectedItem, tWord.Text, tWord2.Text)
    tReturnString.Text = sTemp
    obj = Nothing

       
      End Sub
    End Class
     
    2. Translate paragraphs of text
    Public Class Form1
      Inherits System.Windows.Forms.Form
     
    #Region " Windows Form Designer generated code "
      Public Sub New()
     
      MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeComponent()

    'Add any initialization after the InitializeComponent() call
    Language.SelectedIndex = 0
    ProfDictionary1.SelectedIndex = 0
    ProfDictionary2.SelectedIndex = 0
    ProfDictionary3.SelectedIndex = 0
    AlternateNumber.SelectedIndex = 0
    Formality.SelectedIndex = 1
    ShowKatakanaSource.SelectedIndex = 0
    TranslationMode.SelectedIndex = 0
    ReplacePhrase.SelectedIndex = 1

       
      End Sub
       
      'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
     
      If disposing Then
     
      If Not (components Is Nothing) Then
     
      components.Dispose()
      End If
      End If
      MyBase.Dispose(disposing)
      End Sub
       
      'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
       
      'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.
    'Do not modify it using the code editor.
    Friend WithEvents ProfDictionary1 As System.Windows.Forms.ComboBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Language As System.Windows.Forms.ComboBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents tPassword As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents tMemberID As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents ProfDictionary2 As System.Windows.Forms.ComboBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents ProfDictionary3 As System.Windows.Forms.ComboBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents tSource As System.Windows.Forms.TextBox
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents AlternateNumber As System.Windows.Forms.ComboBox
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents TranslationMode As System.Windows.Forms.ComboBox
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents Formality As System.Windows.Forms.ComboBox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents ShowKatakanaSource As System.Windows.Forms.ComboBox
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents ReplacePhrase As System.Windows.Forms.ComboBox
    Friend WithEvents tReturnString As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
     
      Me.ProfDictionary1 = New System.Windows.Forms.ComboBox
    Me.Label4 = New System.Windows.Forms.Label
    Me.Language = New System.Windows.Forms.ComboBox
    Me.Label3 = New System.Windows.Forms.Label
    Me.tPassword = New System.Windows.Forms.TextBox
    Me.Label2 = New System.Windows.Forms.Label
    Me.tMemberID = New System.Windows.Forms.TextBox
    Me.Label1 = New System.Windows.Forms.Label
    Me.Label5 = New System.Windows.Forms.Label
    Me.ProfDictionary2 = New System.Windows.Forms.ComboBox
    Me.Label6 = New System.Windows.Forms.Label
    Me.ProfDictionary3 = New System.Windows.Forms.ComboBox
    Me.Label7 = New System.Windows.Forms.Label
    Me.tSource = New System.Windows.Forms.TextBox
    Me.Label8 = New System.Windows.Forms.Label
    Me.tReturnString = New System.Windows.Forms.TextBox
    Me.Button1 = New System.Windows.Forms.Button
    Me.Label9 = New System.Windows.Forms.Label
    Me.AlternateNumber = New System.Windows.Forms.ComboBox
    Me.Label10 = New System.Windows.Forms.Label
    Me.TranslationMode = New System.Windows.Forms.ComboBox
    Me.Label11 = New System.Windows.Forms.Label
    Me.Formality = New System.Windows.Forms.ComboBox
    Me.Label12 = New System.Windows.Forms.Label
    Me.ShowKatakanaSource = New System.Windows.Forms.ComboBox
    Me.Label13 = New System.Windows.Forms.Label
    Me.ReplacePhrase = New System.Windows.Forms.ComboBox
    Me.SuspendLayout()
    '
    'ProfDictionary1
    '
    Me.ProfDictionary1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
    Me.ProfDictionary1.Items.AddRange(New Object() {"0", "Information and Electronics", "Mechanic Engineering", "Medical"})
    Me.ProfDictionary1.Location = New System.Drawing.Point(152, 80)
    Me.ProfDictionary1.Name = "ProfDictionary1"
    Me.ProfDictionary1.Size = New System.Drawing.Size(256, 20)
    Me.ProfDictionary1.TabIndex = 17
    '
    'Label4
    '
    Me.Label4.Location = New System.Drawing.Point(16, 80)
    Me.Label4.Name = "Label4"
    Me.Label4.Size = New System.Drawing.Size(128, 16)
    Me.Label4.TabIndex = 16
    Me.Label4.Text = "Professional Dictionary 1:"
    '
    'Language
    '
    Me.Language.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
    Me.Language.Items.AddRange(New Object() {"English to Traditional Chinese (BIG5)", "English to Simplified Chinese (GB)", "Traditional Chinese (BIG5) to English", "Simplified Chinese (GB) to English", "Japanese to Traditional Chinese (BIG5)", "Japanese to Simplified Chinese (GB)", "Traditional Chinese (BIG5) to Japanese", "Simplified Chinese (GB) to Japanese", "Traditional Chinese (BIG5) to Simplified Chinese (GB)", "Simplified Chinese (GB) to Traditional Chinese (BIG5)"})
    Me.Language.Location = New System.Drawing.Point(96, 56)
    Me.Language.MaxDropDownItems = 16
    Me.Language.Name = "Language"
    Me.Language.Size = New System.Drawing.Size(312, 20)
    Me.Language.TabIndex = 15
    '
    'Label3
    '
    Me.Label3.Location = New System.Drawing.Point(16, 64)
    Me.Label3.Name = "Label3"
    Me.Label3.Size = New System.Drawing.Size(64, 16)
    Me.Label3.TabIndex = 14
    Me.Label3.Text = "Language:"
    '
    'tPassword
    '
    Me.tPassword.Location = New System.Drawing.Point(96, 32)
    Me.tPassword.Name = "tPassword"
    Me.tPassword.Size = New System.Drawing.Size(168, 22)
    Me.tPassword.TabIndex = 13
    Me.tPassword.Text = ""
    '
    'Label2
    '
    Me.Label2.Location = New System.Drawing.Point(16, 40)
    Me.Label2.Name = "Label2"
    Me.Label2.Size = New System.Drawing.Size(72, 16)
    Me.Label2.TabIndex = 12
    Me.Label2.Text = "Password:"
    '
    'tMemberID
    '
    Me.tMemberID.Location = New System.Drawing.Point(96, 8)
    Me.tMemberID.Name = "tMemberID"
    Me.tMemberID.Size = New System.Drawing.Size(168, 22)
    Me.tMemberID.TabIndex = 11
    Me.tMemberID.Text = ""
    '
    'Label1
    '
    Me.Label1.Location = New System.Drawing.Point(16, 16)
    Me.Label1.Name = "Label1"
    Me.Label1.Size = New System.Drawing.Size(72, 16)
    Me.Label1.TabIndex = 10
    Me.Label1.Text = "Member ID:"
    '
    'Label5
    '
    Me.Label5.Location = New System.Drawing.Point(16, 112)
    Me.Label5.Name = "Label5"
    Me.Label5.Size = New System.Drawing.Size(128, 16)
    Me.Label5.TabIndex = 18
    Me.Label5.Text = "Professional Dictionary 2:"
    '
    'ProfDictionary2