php中的soap枚举值

发布于 2024-08-31 21:35:21 字数 932 浏览 4 评论 0原文

我想在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

゛时过境迁 2024-09-07 21:35:21

我不确定您也可以创建客户,因为如果我正确读取您的复杂类型,您只有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文