Home  >  Article  >  Backend Development  >  How to call WebService to pass time parameters in php

How to call WebService to pass time parameters in php

WBOY
WBOYOriginal
2016-07-25 09:04:10898browse
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. 2010-04-20T17:46:28.609375+08:00



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn