NuSOAP: how to change content-type of request?

后端 未结 5 1396
自闭症患者
自闭症患者 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条回答
  •  Happy的楠姐
    2020-12-07 03:51

    i know this is an old post, but i ran in to this page looking for an answer.

    application/soap+xml is the content-type passed when using SOAP 1.2, text/xml is used with SOAP 1.1,

    something like this should do the trick,

    $client = new SoapClient("some.wsdl", array('soap_version' => SOAP_1_1));
    

提交回复
热议问题