c# - web service error: operation with parameters cannot be found -
i trying consume .net webservice cold fusion. methods having simple types working fine. having problems 1 particular method accepts byte[] array input.
below sample webmethod declaration
[webmethod] public avstatus scanstream(byte[] fileobject) { // code }
and cold fusion code consuming service is
<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>
this leads error web service operation scanstream parameters cannot found.
can me out this?
it seems binary data has been exposed bas64
string in coldfusion while byte[]
exposed service xml array (of bytes).
change scanstream
(if can) accept string, if web service not yours convince owners provide method accepts string , uses convert.frombase64string
change byte array.
Comments
Post a Comment