页面上的PHP Soap客户端错误 [英] PHP Soap Client Error on Page

查看:71
本文介绍了页面上的PHP Soap客户端错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

0下来投票最爱





我需要一些帮助。我不是PHP专家,但我知道我的方式,但对于我的生活,我找不到这个问题。



我们有一个外部数据库(MSSQL我们无权访问的数据库)驻留在我们的客户端。我们使用CRM解决方案,使用字符串为其产品生成许可证密钥。我们通过用C#编写的Web服务访问存储过程。在我们这边,我们有一个PHP站点访问Web服务以写入数据库。



我的PHP代码如下:

0 down vote favorite


I need some assistance please. I am not a PHP expert but I know my way around, but for the life of me I cannot find the problem for this.

We have an external database (MSSQL Database to which we do not have access to) residing at our client. We use a CRM solution which generates a licence key for their products using a string. We access the stored procedures via a web service written in C#. On our side we have a PHP site that accesses the web service to write to the database.

My Code in PHP looks like this :

$skey = "FDGK:LKss#()#84$$$";
        $productID = 5;
        $data = "D359;00011,P,D359ZZ,SQKGLTKQKQYZHRA,ALNR,009350,20140228,005392;DEWALDH;D359;0";

        try
        {
            $wsdl = "http://connectedservices.sagesouthafrica.co.za/serv/communicate.asmx?wsdl";
            $client = new SoapClient($wsdl);
            $result = $client->__soapCall("InsertSerialAuthProduct", array("InsertSerialAuthProduct" => array("skey"=>$skey,"ProductID" => $productID ,"Data"=>$data)));
        } catch (SoapFault $E)
        {
            echo $E->faultstring;
        }





出于某种原因,每次我尝试生成产品代码时,它只显示一个灰色页面,没有错误信息来测试它,我发了代码错误,更改了参数,每次它给我一个错误,但现在什么都没有。



非常感谢任何帮助。

谢谢



For some reason, every time I try to generate the product code, it show only a grey page, no error message to test it, I made code errors, changed the parameters and every time it gave me an error, but now nothing.

Any help would be greatly appreciated.
Thank you

推荐答案

skey = FDGK:LKss#()#84
skey = "FDGK:LKss#()#84


;
";


productID = 5 ;
productID = 5;


这篇关于页面上的PHP Soap客户端错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆