返回列表 发帖

[KB 79937功能解说] 我该如何使用经典版SOAP Web services功能查询一条记录?

* 本文由赛捷软件(上海)有限公司翻译完成,未经授权不得转载。如需转载,请先联系相应版块的版主取得授权。


产品
Sage EM企业管理(原名Sage X3)


类别
配置
设置与偏好



描述
我该如何使用经典版SOAP Web services功能查询一条记录?

自PU9开始,web services是通过管理→管理→Web Services→经典版SOAP Web services(soapGenerics)功能管理的。


解决方法
1.        请确认经典版SOAP Web services配置好了。请参见相关资源。
2.        点击功能:管理→管理→Web Services→经典版SOAP Web services(soapGenerics)。
3.        点击“CAdxWebServicXmlCC”链接。
4.        点击STUB版块中的显示卡箭头展开操作
5.        点击“query”(获取X3对象列表)。
6.        录入一个语言,例如ENG
7.        录入在经典版SOAP池配置(soapClassicPools)功能中设定的池别名
8.        请注意:【池ID】【请求的配置】不是必填的。至于和有关请求的配置的更多选项,请查看在线帮助主题“SOAP Web services实施” 。
9.        录入与在开发→脚本字典→脚本→Web服务(GESAWE)功能中的发布名称相同的【公用名称】(例如BPC)。
10.        在【列表尺寸】中录入一个值。
11.        点击“调用”

在像SOAPUI这样的外部程序中,语法类似于:

请注意:你必须使用Syracuse web service凭据进行基本身份验证设置

XML格式
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wss="http://www.adonix.com/WSS" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <wss:query soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <callContext xsi:type="wss:CAdxCallContext">
            <codeLang xsi:type="xsd:string">ENG</codeLang>
            <poolAlias xsi:type="xsd:string">V11P0</poolAlias>
            <poolId xsi:type="xsd:string">?</poolId>
            <requestConfig xsi:type="xsd:string">?</requestConfig>
         </callContext>
         <publicName xsi:type="xsd:string">BPC</publicName>
         <objectKeys xsi:type="wss:ArrayOfCAdxParamKeyValue" soapenc:arrayType="wss:CAdxParamKeyValue[]"/>
         <listSize xsi:type="xsd:int">10</listSize>
      </wss:query>
   </soapenv:Body>
</soapenv:Envelope>


相关资源
在Sage X3 PU9和之后版本中我该如何配置和测试SOAP web services?

返回列表