NuSOAP: how to change content-type of request?

后端 未结 5 1401
自闭症患者
自闭症患者 2020-12-07 03:24

When consuming a .NET WCF webservice I get the following response (error):

Unsupported HTTP response status 415 Cannot process the message because t

5条回答
  •  感动是毒
    2020-12-07 03:52

    You can specify the encoding of NuSOAP streams with the webservices like that :

    $client = new nusoap_client($params);
    $client->soap_defencoding = 'UTF-8';
    

提交回复
热议问题