are you using Framework 4.0?
if yes, use this syntax
RapLinkInventoryPlusWebService.RetailFeedSoapClient webServiceManager = new RapLinkInventoryPlusWebService.RetailFeedSoapClient();
//This must be done in HTTPS protocol
RapLinkInventoryPlusWebService.AuthenticationTicketHeader ticket;
ticket = webServiceManager.Login("myusername", "mypassowrd");
//After log in you will receive a
encrypted ticket with your credentials. This will be used to authenticate your
session.
//Now you can choose to change the
protocol to HTTP so it works faster.
string oldAddress =
webServiceManager.Endpoint.Address.ToString();
string newAddress = "http"
+ webServiceManager.Endpoint.Address.ToString().Substring(5);
System.ServiceModel.EndpointAddress
address = new System.ServiceModel.EndpointAddress(newAddress);
webServiceManager.Endpoint.Address = address;
int FeedID = MyFeedID;
int DiamondCount=0;
DataTable dt =
webServiceManager.GetStones(ticket, MyFeedID,
RapLinkInventoryPlusWebService.Shapes.ROUND,
0.50, 0.90, //size From - To
RapLinkInventoryPlusWebService.Colors.D, RapLinkInventoryPlusWebService.Colors.G, // Color From - To
RapLinkInventoryPlusWebService.Clarities.IF, RapLinkInventoryPlusWebService.Clarities.VVS2, //Clarity From - To
RapLinkInventoryPlusWebService.Cuts.EXCELLENT, RapLinkInventoryPlusWebService.Cuts.EXCELLENT,// Cut From - To
1000, 3000, // Price From - To
2, 50, //Page, Results in page
ref DiamondCount);