below is the code
#define.UserId("#####")
#define.Pass("#####")
// This is the variable for the service client.
ClrObject clientType;
HOF_RapPriceRead.RapService.RapaportPricesSoapClient _client;
//RapImportService.HOF_RapPriceService.LoginResponse _authHeader; //.AuthenticationTicketHeader
HOF_RapPriceRead.RapService.AuthenticationTicketHeader AuthenticationTicketHeader;
HOF_RapPriceRead.RapService.AuthenticationTicketHeader AuthenticationTicketHeaderVal;
HOF_RapPriceRead.RapService.RapaportPrice RapPriceClass;
ClrObject priceType;
HOF_RapPriceRead.RapService.RapaportPrice _price;
//HOF_RapPriceRead.RapService.GetPriceResponse priceResp;
real price;
str authTicket;
str URLAuth,endPoint;
System.Exception netException;
HOF_RapPriceRead.RapService.LoginRequest inValue;
ClrObject loginType;
str oldAddress,newAddress;
System.ServiceModel.EndpointAddress address;
HOF_RapPriceRead.ImportMgr serviceClass;
str serviceValues[], priceval;
HOF_RapPriceRead.RapService.RapaportPricesSoapClient webServiceManager;
//System.ServiceModel.EndpointAddress address;
System.Type type;
;
clientType = CLRInterop::getType("HOF_RapPriceRead.RapService.RapaportPricesSoapClient");
//priceType = CLRInterop::getType("RapImportService.HOF_RapPriceService.RapaportPrice");
type = CLRInterop::getType('HOF_RapPriceRead.RapService.RapaportPricesSoapClient');
try
{
_client = AifUtil::createServiceClient(type);
}
catch(Exception::CLRError)
{
info("Caught 'ExException::CLRError'.");
netException = CLRInterop::getLastException();
info(netException.ToString());
}
AuthenticationTicketHeaderVal = AuthenticationTicketHeader.get_Ticket();
try
{
//upto here everthing is fine and it throw exception at run time saying Getprice is not a member of RapaportPricesSoapClient which is not True.
_price = _client.GetPrice(AuthenticationTicketHeaderVal,'Round',0.8,'F', 'VS1');
}
catch(Exception::CLRError)
{
info("Caught 'ExException::CLRError'.");
netException = CLRInterop::getLastException();
info(netException.ToString());
}