Using PHP webservice method with boolean return value with .NET.

I have a PHP SOAP web service method (NuSOAP) that returns a boolean. I executed this method in a third-party test application and it seems to have returned the value. If I look directly at the returned XML message, it also looks great - it returns “true” and “false” when it should be.

However, when I write a sample application in .NET 2.0 to use the web service method, it always returns false. If the return value is requested as a boolean, it is always false. If it is requested as a string, I get an empty string. Oddly enough, when I use the mock SOAP service to return the exact same SOAP response, .NET is able to parse it correctly. So my current theory is that the problem is not in the answer itself, but in the headers - something else in what PHP is doing.

Does anyone know what is going on here? Is this a known issue with PHP SOAP implementation?

Thank!

+3
source share
2 answers

100%, PHP, , SoapVar ($ var, TYPE).

NuSOAP, , , PHP SOAP.

, . , !

0

, , NuSOAP ( !!) PHP SOAP. , .

0

Source: https://habr.com/ru/post/1735442/


All Articles