php调用webservice soap 高手请进
我要实现充值,接口http://service.48pt.com/Consumption/lasCharge.asmx
webservice
我要用PHP实现,
提交参数列表,在以下代码中,请高手帮忙
PHP code:
<?php
/*
* $Id: client1.php,v 1.3 2007/11/06 14:48:24 snichol Exp $
*
* Client sample that should get a fault response.
*
* Service: SOAP endpoint
* Payload: rpc/encoded
* Transport: http
* Authentication: none
*/
require_once('../lib/nusoap.php');
$client = new nusoap_client("http://service.48pt.com/Consumption/lasCharge.asmx");
$client->soap_defencoding = "UTF-8";
$err = $client->getError();
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
exit();
}
$client->setUseCurl($useCURL);
// This is an archaic parameter list
$params = array(
'PtAcc' => "sungfeng21",
'source' => 12,
'moneyType' => '1',
'merchantId' => '105',
'serverId' => '1201',
'serviceId' => '102',
'orderId' => '12345678912345678912345',
'curr' => 1,
'moneyAmount' => '1',
'amount' => '100',
'moneyList' => '100',
'pname'
相关问答:
<?php
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
<?php
/*
功能:PHP伪静态化页面的实现
具体用法:
例如链接为:test.php/year/2006/action/_add.html
mod_rewrite();
$yearn= $_GET["year"];//结果为'2006'
......
招聘
公司名称 胜行软件(深圳)有限公司
职位名称 PHP程序员
招聘人数 3-5
工作地点 深圳市龙岗区横岗四联新亚洲广场新秀苑B2-201
薪水待遇 4k-10k
职位描述 主要负责对日外包项目的设计,编码和 ......
开发PHP用用什么软件?
多介绍几种。
我都不晓得。哈哈。好就没有上csdn,看见你发了贴。最近怎么样???
文本编辑器都可以的
北京五极星信息系统技术有限公司现招聘5名PHP程序员。
职位要求: ......