IService..::..GetSalesOrder Method

Gets a sales order, given an InvoiceID

Namespace:  JiwaFinancials.Jiwa.JiwaWebService.WCF
Assembly:  JiwaWebService (in JiwaWebService.exe)

Syntax


<OperationContractAttribute> _
<WebGetAttribute> _
Function GetSalesOrder ( _
	InvoiceID As String _
) As SalesOrder

Parameters

InvoiceID
Type: String
The InvoiceID.

Return Value

JiwaFinancials.Jiwa.JiwaSales.SalesOrder.XML.SalesOrder

Examples


Reads a sales order using the InvoiceID, and then outputs to console the part number from each line
VB.NET
Dim binding As System.ServiceModel.WSHttpBinding = New System.ServiceModel.WSHttpBinding()
  binding.MaxReceivedMessageSize = 50000000
  binding.ReaderQuotas.MaxArrayLength = 50000000
  binding.ReaderQuotas.MaxStringContentLength = 50000000
  Dim jiwaService As JiwaWebServiceReference.ServiceClient = New JiwaWebServiceReference.ServiceClient(binding, New ServiceModel.EndpointAddress("http://localhost:8001/jiwa7/services/7.0"))
  jiwaService.Logon("Admin", "password")

  Dim salesOrder As JiwaWebServiceReference.SalesOrder = jiwaService.GetSalesOrder("000000000A0000000025")

  For Each line As JiwaWebServiceReference.Line In salesOrder.Lines
      Console.WriteLine(line.PartNo)
  Next

  jiwaService.Logoff()
  jiwaService.Close()