0

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.

vicsz
  • 9,552
  • 16
  • 69
  • 101

1 Answers1

1

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.

Community
  • 1
  • 1
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
  • In that case, is chunking the best alternative ? (i.e. sending the file in smaller chunks using multiple service calls) In my case I'm expecting sending up to 100megs at a time. – vicsz Aug 23 '10 at 21:31
  • Yes. You need some chunking mechanism. You can also try to use MTOM for your chunks. – Ladislav Mrnka Aug 23 '10 at 21:41
  • To simplify to code, should I bother considering simply sending everything out once (without chunking)? – vicsz Aug 23 '10 at 22:42