我們正在使用Argus WS,並且我一直在研究如何使用GetUpdatedPricesInDateTimeRange
方法。在Coldfusion中使用返回複雜對象的webservice
它返回一個複雜的對象類型,我無法訪問返回的對象中的元素結構。
獲取錯誤
Element <e.g. element name> is undefined in a Java object of type class org.tempuri.GetUpdatedPricesInDateTimeRangeResponseGetUpdatedPricesInDateTimeRangeResult.
web服務被調用如下:
<cfinvoke
webservice="http://www.argusmedia.com/ArgusWSVSTO/ArgusOnline.asmx?wsdl"
method="GetUpdatedPricesInDateTimeRange"
returnvariable="PricesResponse">
<cfinvokeargument name="authToken" value="#AuthToken#"/>
<cfinvokeargument name="fromDateTime" value="2017-03-01"/>
<cfinvokeargument name="toDateTime" value="2017-03-02"/>
<cfinvokeargument name="startId" value="0"/>
</cfinvoke>
任何指針將是很有益的。
編輯2:基於利的建議,這是爲我工作。
XML
PricesResponse.get_any()[2].getAsString()
的XML在它有命名空間,因此XML搜尋工作如下:
XmlSearch(XMLDoc,"//*[local-name()='Element_Name']")
是否調用返回名爲returnvariable變量?如果是這樣,你可以傾倒它嗎? –
@DanBracuk:添加了cfdump。 –
這是一個SOAP-webservice的權利?你有沒有嘗試用例如。 soapUI的? –