developer:soap-1.3:methods:renderreceiptbyname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developer:soap-1.3:methods:renderreceiptbyname [2010/06/01 15:37]
tem created
developer:soap-1.3:methods:renderreceiptbyname [2010/10/13 15:56]
irina
Line 70: Line 70:
  
 <code vb> <code vb>
 +Dim receiptName As String
 +        receiptName = "test receipt"​
 +        Dim refNum As String
 +        refNum = "​46981789"​
 +        Dim contentType As String
 +        contentType = "​text"​
 +        Dim response As String
 +        response = client.renderReceiptByName(token,​ refNum, receiptName,​ contentType)
 +        Dim todecode As Byte()
 +        todecode = Convert.FromBase64String(response)
 +        MsgBox(System.Text.Encoding.UTF8.GetString(todecode))
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string refNum = "​46981789";​
 +            string receiptName = "test receipt";​
 +            string ContentType = "​text";​
 +            string response;
 +
 +            try
 +            {
 +                response = client.renderReceiptByName(token,​ refNum, receiptName,​ ContentType);​
 +                byte[] todecode = Convert.FromBase64String(response);​
 +                MessageBox.Show(string.Concat(System.Text.Encoding.UTF8.GetString(todecode)));​
 +
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
  
developer/soap-1.3/methods/renderreceiptbyname.txt ยท Last modified: 2010/10/13 15:56 by irina

Page Tools