Our WCF web services
Our WCF web service is going to expose two functions to return data to the client and one routine to add a message to the queue when an order status is updated on the client.
ERP service interface — IERPService.vb
These following functions and routines will be exposed when the service is called from the client. This is our code in our IERPService.vb
file, in the WCFWebService1 role:
Imports System.ServiceModel
NOTE: If you change the class name "IERPService" here, you must also update the reference to "IERPService" in Web.config.
<ServiceContract()> _
Public Interface IERPService
<OperationContract()> _
Function LoadStartupData() As DataSet
<OperationContract()> _
Function GetOrderStatusForOrder(ByVal iOrderHeaderID As Integer) As String
<OperationContract()> _
Sub AddOrderStatusUpdateToQueue(ByVal iOrderHeaderID As Integer, ByVal iOrderStatusID As Integer)
<DataContract()> _
Class OrderStatus
Private statusName_value As String
<DataMember...