在 Netbeans 中添加支持使用 WCF 流服务进行流式传输的 Java Web 服务客户端?

发布于 2024-09-16 07:39:22 字数 361 浏览 1 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌酱 2024-09-23 07:39:22

通过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文