Home > Backend Development > PHP Tutorial > c# - 用PHP调用.net webservice ,当参数类型是datetime的时候如何传参?

c# - 用PHP调用.net webservice ,当参数类型是datetime的时候如何传参?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:52:41
Original
1161 people have browsed it

如题
试过很多方法了:直接用php New DateTime,直接写 string,还有写成 “2011-08-05T12:30:60”这种形式
最后结果都悲催了
有经验的兄弟姐妹们帮忙解答一下,多谢了
对了,webservice是用C#写的

回复内容:

如题
试过很多方法了:直接用php New DateTime,直接写 string,还有写成 “2011-08-05T12:30:60”这种形式
最后结果都悲催了
有经验的兄弟姐妹们帮忙解答一下,多谢了
对了,webservice是用C#写的

方便的话,我可以帮你调试下

webservice本身就是跨平台的http接口,C#还是java或是php的不重要,重要的是,你遵守http的get或是post就行了

什么接口?方便贴上来吗?这样说很抽象啊

呃,对对不起。耽误大家时间了,“2011-08-05T12:30:60”是可以的
只不过要注意传参的时候,参数数组外还要再包一个array。真他妈蛋疼

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template