Example #1
0
<?php

ini_set('soap.wsdl_cache_enabled', false);
$client = new SoapClient("http://192.168.5.17:8000/sap/bc/srt/wsdl/bndg_5638425CDE5B0510E1008000C0A80511/wsdl11/allinone/standard/document?sap-client=100", array('login' => "zhangchong", 'password' => "zhaodaner"));
$soap_res = $client->ZrmbWsForWechat001(array("ImKey" => '33', "ImWxUrl" => ''));
$soap_res_s = $soap_res->Result;
$soap_res_e = $soap_res->ErrorMessage;
var_dump($soap_res_s);
var_dump('\\n');
var_dump($soap_res_e);
/**
$client = new SoapClient(
"http://192.168.5.17:8000/sap/bc/srt/wsdl/bndg_55655A866BA606A0E1008000C0A80511/wsdl11/allinone/standard/document?sap-client=100",
array('login'=>"zhangchong", 'password'=>"zhaodaner")
);
*/
//var_dump ($client->__getFunctions());
//var_dump ($client->__getTypes());
//echo ($client->z_create_user("test02", "testname2", "testid02", 1 ));
Example #2
0
         $wx->send_msg(array('userid' => (string) $fromUserName, 'appid' => (string) $agentID, 'msg' => '请您拍照上传'));
         //$wx -> log($redis->get('content'));
     }
     //接收手机发送图片
     if ($msgType == "image") {
         if ($redis->exists("content")) {
             $content = $redis->get("content");
         }
         $picUrl = $res_xmlstr->PicUrl;
         $mediaId = $res_xmlstr->MediaId;
         //$msgId = $res_xmlstr->MsgId;
         //$wx->log($picUrl ."\n". $mediaId);
     }
     if (isset($picUrl) && $picUrl != "" && isset($content) && ($content != '1' || $content != '2')) {
         $client = new SoapClient("http://192.168.5.17:8000/sap/bc/srt/wsdl/bndg_5638425CDE5B0510E1008000C0A80511/wsdl11/allinone/standard/document?sap-client=100", array('login' => "zhangchong", 'password' => "zhaodaner"));
         $soap_res = $client->ZrmbWsForWechat001(array("ImKey" => (string) $content, "ImWxUrl" => (string) $picUrl));
         $soap_res_status = $soap_res->Result;
         //调用成功则返回'S', 失败则返回'E'
         if ($soap_res_status == 'S') {
             $wx->send_msg(array('userid' => (string) $fromUserName, 'appid' => (string) $agentID, 'msg' => '上传成功!'));
         }
         if ($soap_res_status == 'E') {
             $wx->send_msg(array('userid' => (string) $fromUserName, 'appid' => (string) $agentID, 'msg' => '上传失败!'));
         }
         $wx->log($content . "|||" . $picUrl);
         $redis->delete("content");
     }
 }
 //"#2 开启查询模式"的逻辑
 if ($msgType == "text" && $redis->get('type') == (string) $fromUserName . '2') {
     if ($content == '2') {