Я интегрирую CIM в приложение MVC3.Я добавил ссылку на сервис, используя URL-адрес разработки, и написал следующее:
public long x()
{
var u = this.User.Identity as IClaimsIdentity;
var id = u.Claims.First(x => x.ClaimType == ClaimTypes.NameIdentifier);
AuthorizeNet.CustomerProfileType cust = new AuthorizeNet.CustomerProfileType();
cust.merchantCustomerId = id.Value;
AuthorizeNet.MerchantAuthenticationType merch = new AuthorizeNet.MerchantAuthenticationType();
merch.name = "8aFRk4663XMd";
merch.transactionKey = "4MS675e62fQEdUXN";
AuthorizeNet.ServiceSoap svc = new AuthorizeNet.ServiceSoap();
AuthorizeNet.CreateCustomerProfileResponseType response = svc.CreateCustomerProfile(
merch, cust, AuthorizeNet.ValidationModeEnum.none
);
return response.customerProfileId;
}
, но, конечно, он не работает, потому что невозможно создать такой интерфейс (.ServiceSoap - это интерфейс),Пример кода ссылается на .Service - но он не существует AFAICT.
, так как это должно работать?
TIA - e!
ps Я нашел старое сообщение именно с моей проблемой, но, увы, без решения