2010年12月8日星期三

[fw-webservices] [Zend_Soap_AutoDiscover] Use Duration primitif datatype

Hello,

I am building a WDSL with Zend_Soap_AutoDiscover.
I want to add a Duration primitive datatype (
http://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes
http://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes ) like a
string or a struct.

-----------------------------------
Example of code :
-----------------------------------
<?php
class MyService {

/**
* External service who return a primitif duration Type
* @return Duration
*/
public function myMethod()
{
$soapClient = new SoapClient(ANOTHER_WSDL_SERVICE);
return $soapClient ->getDuration();
}

}

$autodiscover = new Zend_Soap_AutoDiscover();
$autodiscover->setClass('MyService');
var_dump($autodiscover->getType('Duration')); // Error
-----------------------------------

So that this code works, I must create a class "Duration" but it generates a
SOAP type ns1:Duration instead of primitif xsd:duration

How to make this ?

Thanks
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-Soap-AutoDiscover-Use-Duration-primitif-datatype-tp3077924p3077924.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: