我从第一个数据网站下载了权限文件("1909642928.pem"),并将其放入解决方案文件夹中.在尝试从第一个数据网站下载的权限文件("1909642928.pem")为应用程序创建证书文件时,出现错误:
该系统找不到指定的文件.
CryptographicException
:
at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils._QueryCertFileType(String fileName)
at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName) at System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile(String filename)
at WebApplication3._Default.Page_Load(Object sender, EventArgs e) in e:\MY_References\TestApps\App\App\Default.aspx.cs:line 20
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Run Code Online (Sandbox Code Playgroud)
我从以下行获得错误:
FDGGWSApiOrderService OrderService = new FDGGWSApiOrderService();
OrderService.Url = @"https://ws.merchanttest.firstdataglobalgateway.com/fdggwsapi/services/order.wsdl";
OrderService.ClientCertificates.Add(X509Certificate.CreateFromCertFile>(("xxx.pem")));
Run Code Online (Sandbox Code Playgroud)
如果我还需要做更多工作来从权限文件创建证书,请帮助我.
如何将第一个数据付费方法集成到我的PHP脚本中?任何人都可以显示第一个数据的API PHP示例?
我正在尝试继续使用First Data的全局网关Web服务API.第一件奇怪的事情是我需要将wsdl和xsd文件下载到我的本地机器上.然后使用本地计算机的副本作为服务参考.我没有使用过很多网络服务,所以我认为这没关系.
添加它们并尝试编译后,我收到以下错误:
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: There was a problem loading the XSD documents provided: a reference to a schema element with name 'AVSResponse' and namespace 'http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi' could not be resolved because the element definition could not be found in the schema for targetNamespace 'http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi'. Please check the XSD documents provided and try again.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi']/wsdl:portType[@name='FDGGWSApiOrder'] C:\Documents and Settings\user\my …
Run Code Online (Sandbox Code Playgroud) 使用First Data Global Gateway Web Service API时遇到一些问题.
根据文档,您应该能够下载wsdl和3 xsd模式文件,并通过指向本地wsdl文件来创建Web服务引用.执行此操作后,它不会导入所有文件.尝试更新Web引用会导致错误...
"自定义工具'MSDiscoCodeGenerator'失败.无法从命名空间'https://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi'导入绑定'FDGGWSApiOrderBinding'"
有没有人成功导入这个wsdl并让它在Visual Studio中工作?
其他要求是安装我已经完成的Gateway的客户端证书.
谢谢你的帮助.
嗨,我正在尝试使用PHP集成第一个数据支付网关集成在soap请求方法中.我已经从第一个数据下载了工作示例代码,但是当我尝试使用示例代码提交付款时,他们给了我一个错误.
整个PHP代码是
<?php
class SoapClientHMAC extends SoapClient {
public function __doRequest($request, $location, $action, $version, $one_way = NULL) {
global $context;
$hmackey = "***********************"; // <-- Insert your HMAC key here
$keyid = "*****"; // <-- Insert the Key ID here
$hashtime = date("c");
$hashstr = "POST\ntext/xml; charset=utf-8\n" . sha1($request) . "\n" . $hashtime . "\n" . parse_url($location,PHP_URL_PATH);
$authstr = base64_encode(hash_hmac("sha1",$hashstr,$hmackey,TRUE));
if (version_compare(PHP_VERSION, '5.3.11') == -1) {
ini_set("user_agent", "PHP-SOAP/" . PHP_VERSION . "\r\nAuthorization: GGE4_API " . $keyid . ":" . $authstr …
Run Code Online (Sandbox Code Playgroud)