php中的soap枚举值
我想在 php.ini 中创建一个肥皂枚举值。这是复杂对象类型 customer 和 CustomerStage
<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>
我不确定如何通过为其分配阶段来创建客户。
I want to create a soap enumeration value in php. Here is the complex object type customer and CustomerStage
<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>
I am not sure how to create a customer by assigning a stage to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定您也可以创建客户,因为如果我正确读取您的复杂类型,您只有
listRelTyp
作为选项。在查看原始 WSDL 文件时,我总是感到有点头晕,但乍一看,我认为这只是为了生成客户列表,而不是为了创建新客户。您在 PHP 中使用 SOAPClient 类吗?如果是这样,可以执行
__getTypes
和__getFunctions
,它将显示一个比您所拥有的稍微更具可读性的列表。I'm not sure you can create a customer either, since, if I'm reading your complex type correctly, you only have
listRelTyp
as an option. I always get a bit dizzy when looking at raw WSDL files, but on first look, I think this is just for generating a list of customers not for creating new customers.Are you using the SOAPClient class in PHP? If so, can do
__getTypes
and__getFunctions
, and it will show a slightly more readable list than what you have.