简体   繁体   English

如何定义在SOAP中定义复杂类型数组的类型

[英]How to define a type that define an array of complex type in SOAP

I have a webservice method that returns an array of complex type. 我有一个webservice方法,它返回复杂类型的数组。 I have followed a lot of pages that teach how to do it, but none actually works. 我已经看了很多页面,教它们如何做,但是实际上都没有。

Please see the WSDL at http://feriados.servicios.desytec.com/feriados?wsdl 请参阅http://feriados.servicios.desytec.com/feriados?wsdl上的WSDL。

When I call GetHolidays method from PHP, I only get a stdClass this way: 当我从PHP调用GetHolidays方法时,只能以这种方式获取stdClass:

object(stdClass)#58 (0) { } [] object(stdClass)#58(0){} []

I would expect an ArrayOfFeriado type 我期望一个ArrayOfFeriado类型

Any help will be appreciated Thanks 任何帮助将不胜感激谢谢

Jaime 海梅

Finally the problem was that I was using soapenc namespace as stated in all sites, however, my actual namespace was SOAP-ENC. 最后的问题是,我在所有站点中都使用了soapenc命名空间,但是,我的实际命名空间是SOAP-ENC。

Regards, Jaime 问候,海梅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM