//javademo代码
JSONObject jsonparam=new JSONObject();
jsonparam.put("logincode","4331010743214");
jsonparam.put("loginpass","");
jsonparam.put("watercode","43310101");
jsonparam.put("userid","101000101");
jsonparam.put("order","07432142013071700001");
jsonparam.put("date","201307171730");
jsonparam.put("money","80");
Client client = new Client(new URL("http://XXX.XXX.XXX:8080/ccpay/services/PayService?wsdl"));
Object[] results = client.invoke("payment", new Object[] {jsonparam.toString()});
System.out.println(results[0]);
报错:Not enough message parts were received for the operation.
类型不一样
不行?肯定有报错吧,建议可以贴上报错看看
贴了
try{
$params = array(
'logincode' => 'xx',
'loginpass' => strtoupper(md5('xx')),
'watercode' => 'xx',
'userid' => 'xx'
);
$params = json_encode($params);
$client = new SoapClient('http://42.96.168.152:8086/ccpay/services/PayService?wsdl');
$a = $client->__soapCall('getcustwaterrate',['in0'=>$params]);
var_dump($a);
}catch (Exception $e)
{
var_dump($e->getMessage());
}