I have created a Barcode windows application for windows mobile CE 6.0 device. This app scan the barcode and display all the information such as Barcode no, type etc.
My requirement is that, i want to send this barcode no to WCF service that is hosted on IIS of desktop computer.
Here is my code sample..
1. IService
[ServiceContract]
public interface IService
{
[OperationContract(Name="GetMyData")]
string GetBarcodeNo(int value);
}
2. Service
public class Service : IService
{
public string GetBarcodeNo(int value)
{
return string.Format("Your scanned barcode no is : {0}", value);
}
}
3. My Windows application for Windows Mobile CE 6.0
WinWebSer.MyServiceRef.Service obj = new Service();
string returnMsg = obj.GetBarcodeNo(Convert.ToInt32(txtBarcodeNo.Text), true);
MessageBox.Show(returnMsg);
But when i run win appl in device, it throws error "Unable to connect to remote server".
I have no idea about how to achieve this concept.
Please help me.
Thanks