NuSOAP: how to change content-type of request?

后端 未结 5 1398
自闭症患者
自闭症患者 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:55

    This worked for me:

    $client = new nusoap_client($params);

    $client->soap_defencoding = 'UTF-8';

    The answer that is ticked as correct is not for NUSOAP therefore not the appropriate answer.

提交回复
热议问题