肥皂枚举值在PHP
问题描述:
我想在PHP中创建一个肥皂枚举值。这是复杂的对象类型客户和CustomerStage肥皂枚举值在PHP
<complexType name="Customer">
<complexContent>
<extension base="platformCore:Record">
<sequence>
<element name="customForm" type="platformCore:RecordRef" minOccurs="0"/>
<element name="entityId" type="xsd:string" minOccurs="0"/>
***<element name="stage" type="listRelTyp:CustomerStage" minOccurs="0"/>***
</sequence>
<!-- primary record internalId -->
<attribute name="internalId" type="xsd:string"/>
<attribute name="externalId" type="xsd:string"/>
</extension>
</complexContent>
</complexType>
<simpleType name="CustomerStage">
<restriction base="xsd:string">
<enumeration value="_customer"/>
<enumeration value="_lead"/>
<enumeration value="_prospect"/>
</restriction>
</simpleType>
我不知道如何通过分配阶段来创建客户。
答
我不确定你是否可以创建一个客户,因为如果我正确读取复杂类型,则只有listRelTyp
作为选项。在查看原始WSDL文件时,我总是感到头晕目眩,但首先看,我认为这仅仅是为了生成不是创建新客户的客户列表。
您是否在PHP中使用SOAPClient类?如果是这样,可以做__getTypes
和__getFunctions
,它会显示比你有更多的可读列表。
以下是wsdl的链接https://webservices.netsuite.com/wsdl/v2009_2_0/netsuite.wsdl – charan 2010-05-05 12:34:02