IService..::..SaveSalesOrder Method

Saves the sales order.

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

Syntax


Examples


Reads a sales order using the InvoiceNo, and then adjusts the reference and then saves.
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.GetSalesOrderFromInvoiceNo("100480")
  salesOrder.SOReference += "."
  salesOrder = jiwaService.SaveSalesOrder(salesOrder)
  Console.WriteLine(salesOrder.SOReference)

  jiwaService.Logoff()
  jiwaService.Close()