2010-05-05 5 views
0

PHP에서 비누 열거 형 값을 만들고 싶습니다. 다음은 복잡한 객체 유형 customer 및 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> 

무대를 지정하여 고객을 생성하는 방법을 잘 모르겠습니다.

답변

1

복잡한 유형을 올바르게 읽는 경우 고객에게 선택권을 부여 할 수 없으므로 listRelTyp 만 옵션으로 사용할 수 있습니다. 원시 WSDL 파일을 볼 때는 항상 어지러운 상태가되지만 처음에는 새로운 고객 생성을위한 고객 목록을 생성하는 것일뿐입니다.

PHP에서 SOAPClient 클래스를 사용하고 있습니까? 그렇다면 __getTypes__getFunctions을 할 수 있으며 가지고있는 것보다 약간 더 읽기 쉬운 목록이 표시됩니다.

+0

다음은 wsdl https://webservices.netsuite.com/wsdl/v2009_2_0/netsuite.wsdl에 대한 링크입니다. – charan