PHP Call WebService methods for passing time parameters

Source: Internet
Author: User
When WebService docking with other systems, PHP was unable to recognize the time parameters under. Net. Parsing: Calling WebService code in PHP is done by hand-writing XML-formatted packets.

When WebService docking with other systems, PHP was unable to recognize the time parameters under. Net.

Parsing: Calling WebService code in PHP is done by hand-writing XML-formatted packets, unlike our. NET and In Java, you can use tools to generate proxy classes. Therefore, PHP in the interface with other system language needs to deal with, different programming languages direct compatibility problem. The time type in net is an example.

Resolution: After analysis, since PHP is a pure XML format of the packet to make the call, then, according to. NET time format, passing exactly the same format as the time string to replace the time parameter, whether can let. NET recognition? It is proven that this approach is feasible. A similar string must be passed as a time format for. NET to be recognized. 2010-04-20t17:46:28.609375+08:00

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.