I am trying to consume the .net webservice from cold fusion. Methods having simple types working fine. But i am having problems with one particular method which accepts byte[] array as input.
摘录
[WebMethod]
public AVStatus ScanStream(byte[] fileObject)
{
// code
}
而使用这种服务的冷聚法则就是
<cffile action="readBinary" file="#FileName#" variable="filedata">
<cfset b64file = #toBase64(filedata)#>
<cfinvoke webservice = "http://xxx/scanservice.asmx?wsdl"
method = "ScanStream"
returnVariable = "result">
<cfinvokeargument name="fileObject" value="#b64file#" />
</cfinvoke>
这总是导致这一错误的Web服务运行,参数无法找到。
谁能帮助我消除这种情况?