我正在尝试通过Magento 2和内部ERP进行集成。
我将SOAP Web引用添加到了Visual Studio 2017(C#)项目中。
当我尝试登录时,在身份验证期间出现此错误
“ integrationAdminTokenServiceV1CreateAdminAccessToken”:
“未定义命名空间前缀'rpc'”
integrationAdminTokenServiceV1.integrationAdminTokenServiceV1Service service =
new integrationAdminTokenServiceV1.integrationAdminTokenServiceV1Service();
service.Url = "http://host/soap/default?services=integrationAdminTokenServiceV1";
integrationAdminTokenServiceV1.IntegrationAdminTokenServiceV1CreateAdminAccessTokenRequest request =
new integrationAdminTokenServiceV1.IntegrationAdminTokenServiceV1CreateAdminAccessTokenRequest();
request.username = "alberto";
request.password = "******";
service.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap12;
integrationAdminTokenServiceV1.IntegrationAdminTokenServiceV1CreateAdminAccessTokenResponse response =
service.integrationAdminTokenServiceV1CreateAdminAccessToken(request);
有人可以帮助我解决此错误吗?