-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
It's nusoap.
I just have to call ' authproduct ' to
$sendurl = ' http://10.10.10.10:18080/aaa/Business/Service?wsdl '; $client = new SoapClient ($sendurl, true);//check to see if it's an error $err = $client->geterror (); if ($err) { //Display error code echo 'Constructor Error
' . $err. '
'; } $client->soap_defencoding = ' utf-8 '; $client->decode_utf8 = false; $client->xml_encoding = ' utf-8 '; $param = Array (' Amsp_auth_prod ' =>array (' usercode ' = ' 1212 ', ' tvcode ' = ' 2848 ', ' productCode ' = ' 80060 ', ' spcode ' = > ' sp1n ', ' resourcecode ' = ' = ', ' authtype ' =>0);d UMP ($param); $result = $client->call (' authproduct ', $param );d UMP ($client->request); if (! $err = $client->geterror ()) { echo "ddd:", Htmlentities ($str, ent_quotes); } else { echo "ER:", htmlentities ($err, ent_quotes); }
The generated XML
0 80060 sp1n 2848 1212
It can be in the SOAPUI. But the program was an error
Er:http error:unsupported HTTP Response status 415 unsupported Media Type (Soapclient->response has contents of the R Esponse)
Reply to discussion (solution)
Online and so on. Up a bit yourself
Header file
String (860) "Post/aaa/business/service http/1.0
host:172.31.178.4:18080
user-agent:nusoap/0.9.5 (1.123)
Content-type:text/xml; Charset=utf-8
SOAPAction: ""
content-length:679
It's done by myself. Holy. I'm dying of pain.