Other systems have a webservice,http://118.145.3.40:9082/mblwebservice/services/maicarinfoservice?wsdl.
I want to use PHP to invoke this webservice. Online check, so write:
$client = new SoapClient ("http://118.145.3.40:9082/mblWebService/services/MaiCarInfoService?wsdl",
Array (' encoding ' = ' UTF-8 '));
$parm 1 = "ABCDEFG";
$param = Array (' param0 ' = = $parm 1);
$arr = $client->sendmaicarinfo ($param);
Var_dump ($arr);
Should have passed the XML string, I first passed a ABCDEFG test, but the other side said there was no call.
Please look at what's going on. I'm not familiar with PHP either.
Reply to discussion (solution)
$parm 1 = "ABCDEFG"; $param = Array (' in0 ' = = $parm 1); $arr = $client->sendmaicarinfo ($param);
Return
StdClass Object
(
[out] = Error parsing XML, not conforming to XML standard
)
$parm 1 = '
1234
'; $param = Array (' In0 ' + $parm 1); $arr = $client->sendmaicarinfo ($param);
Return
StdClass Object
(
[Out] = success
)
Thank you so much.
Is there anything wrong with my code? Is it possible to return to success without any modification?
Yes, the code is not the same as you want to modify
Just pay attention to the name of the parameter
$client->__getfunctions () returns all method names
$client->__gettypes () returns all data structures
You can check it out.
Your problem is to write the parameter names wrong.
If you call webservice, what do you want to change in php.ini?