Home >Backend Development >PHP Tutorial >How to call WebService to pass time parameters in php
When connecting WEBSERVICE with other systems, I found that PHP cannot recognize the time parameters under .NET. Analysis: The calling WEBSERVICE code in PHP is implemented by manually writing data packets in xml format.
When connecting WEBSERVICE with other systems, I found that PHP cannot recognize the time parameters under .NET. Analysis: The code to call WEBSERVICE in PHP is implemented by manually writing data packets in XML format. It is not like we can use tools to generate proxy classes in .NET and JAVA. As a result, PHP needs to deal with the direct compatibility issues of different programming languages when connecting with other system languages. The time type in .NET is an example. Solution:
After analysis, since PHP is called in a pure XML format data packet, can it be recognized by .NET by passing a time string in the exact same format to replace the time parameter according to the .NET time format?
After verification, this approach works. A similar string must be passed as the time format for .NET to recognize it.
|