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

How to call WebService to pass time parameters in php

WBOY
Release: 2016-07-25 09:04:10
Original
976 people have browsed it
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



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template