本文整理汇总了PHP中QType::SoapType方法的典型用法代码示例。如果您正苦于以下问题:PHP QType::SoapType方法的具体用法?PHP QType::SoapType怎么用?PHP QType::SoapType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QType
的用法示例。
在下文中一共展示了QType::SoapType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetWsdlMessagePart
public function GetWsdlMessagePart(&$strComplexTypesArray)
{
if ($this->blnArray) {
try {
$strType = QType::SoapType($this->strType);
$strArrayTypeName = QSoapService::GetArrayTypeName($strType);
$strToReturn = sprintf('<part name="%s" type="xsd1:%s"/>', $this->strName, $strArrayTypeName);
QSoapService::AlterComplexTypesArrayForArrayType($strArrayTypeName, $strType, $strComplexTypesArray);
return $strToReturn;
} catch (QInvalidCastException $objExc) {
}
$strArrayTypeName = QSoapService::GetArrayTypeName($this->strType);
QSoapService::AlterComplexTypesArrayForArrayType($strArrayTypeName, 'xsd1:' . $this->strType, $strComplexTypesArray);
$strToReturn = sprintf('<part name="%s" type="xsd1:%s"/>', $this->strName, $strArrayTypeName);
} else {
try {
return sprintf('<part name="%s" type="xsd:%s"/>', $this->strName, QType::SoapType($this->strType));
} catch (QInvalidCastException $objExc) {
}
$strToReturn = sprintf('<part name="%s" type="xsd1:%s"/>', $this->strName, $this->strType);
}
$objReflection = new ReflectionMethod($this->strType, 'AlterSoapComplexTypeArray');
$objReflection->invoke(null, &$strComplexTypesArray, false);
return $strToReturn;
}
示例2: GetSoapComplexTypeXml
////////////////////////////////////////
public static function GetSoapComplexTypeXml() {
$strToReturn = '<complexType name="<?php
echo $objTable->ClassName;
?>
"><sequence>';
<?php
foreach ($objTable->ColumnArray as $objColumn) {
if (!$objColumn->Reference || $objColumn->Reference->IsType) {
?>
$strToReturn .= '<element name="<?php
echo $objColumn->PropertyName;
?>
" type="xsd:<?php
echo QType::SoapType($objColumn->VariableType);
?>
"/>';
<?php
}
if ($objColumn->Reference && !$objColumn->Reference->IsType) {
?>
$strToReturn .= '<element name="<?php
echo $objColumn->Reference->PropertyName;
?>
" type="xsd1:<?php
echo $objColumn->Reference->VariableType;
?>
"/>';
<?php
}