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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -