Using the following interface to communicate with PHP with .NET, .NET builds an XML request body with barcode characters and a parameter branch. Parameter names must be barcode and branch. Yes, the PHP server is case sensitive.
Am I forced to smooth out parameter names? or can I specify names using attributes?
Many thanks neil
[ServiceContract]
public interface IStockEnquiryService
{
[OperationContract]
[WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Xml, UriTemplate = "")]
Branches GetStockInfo(string barcode, string branch);
}
source
share