English 中文(简体)
网络服务错误:无法找到具有参数的业务
原标题:web service error: operation with parameters cannot be found

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服务运行,参数无法找到

谁能帮助我消除这种情况?

最佳回答

It seems that the binary data has been exposed as bas64 string in the coldfusion while byte[] is exposed by the service as an XML array (of bytes).

更改<代码>ScanStream 如果网站服务不是你,你可以说服所有人提供另一种方法,接受播音和使用<密码>。

问题回答

网络服务是遥远的,不是公开的。 公众可以查阅其他的CF课程和网页。 公开改为遥远,你应能“见”你的网络服务。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签