This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14857|Reply: 0

[WCF/Web Servics] For request in operation xx to be a stream the operation must have a sing...

[Copy link]
Posted on 7/19/2016 4:50:51 PM | | | |
For request in operation xx to be a stream the operation must have a single parameter whose type is Stream.





Translation: The request in an operation is a stream and the operation must have a single parameter, the type of which is the stream.


My general understanding is that if the parameter is stream, there can be no other parameters,

There are 3 parameters in my method, which may be the reason, after all, I have just played WCF and am not familiar with this set.

http://stackoverflow.com/questions/15495506/for-request-in-operation-uploadphotostream-to-be-a-stream-the-operation-must-hav/15609508

Seeing that buddy, the mistake is similar to mine.

The solution is as follows:

Define an object as follows:









Previous:WCF data communication parameters cannot be of Image type?
Next:Type 'System.IO.FileStream' with data contract name 'FileStream:http://schema...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com