在 Netbeans 中添加支持使用 WCF 流服务进行流式传输的 Java Web 服务客户端?
我有一个 C# WCF basicHttpBinding Streaming WebService。
我想要访问的方法的签名是:
[OperationContract]
void SendStream(Stream stream);
但是,当我尝试将其作为标准 Java Web 服务客户端添加到我的 Netbeans 项目中时。自动生成的代理方法签名更改为:(
void SendStream(byte[] stream)
基本上删除了流式传输)。
有没有简单的方法可以在java端实现流式传输?如果可能的话,我宁愿避免实施分块。
I have a C# WCF basicHttpBinding Streaming WebService.
The signature of the method that I want to access is:
[OperationContract]
void SendStream(Stream stream);
However, when I try to add it as a standard Java Web Service Client into my Netbeans project. The auto-generated proxy method signature gets changed to:
void SendStream(byte[] stream)
(Basically streaming is removed).
Is there a simple way to achieve streaming on the java side? I would rather avoid implementing chunking if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过 HTTP 的 WCF 流式传输不可互操作。您无法在 .NET 世界之外使用它。
编辑:这里我试图收集 WCF 不可互操作的功能。
WCF streaming over HTTP is not interoperable. You can't use it outside of .NET world.
Edit: Here I'm trying to collect not interoperable features of WCF.