J
John K
Hello
I have an existing web service in C# 2005 that utilizes Web Service
Enhancments 3.0 with custom UsernameTokenManager authentication. I need to
pass very large binary files to the web service for subsequent storage into a
database. When we do this as part of a web service function, we get errors
like "The underlying connection was closed: An unexpected error occurred",
which I believe are due to the fact we are sending a very large byte array as
a parameter to the web service function which I think causes a timeout. Our
web service utilizes SSL (https).
What is the best way to transmit large binary files to a web service
function? Should the web service initiate an HTTP based file transfer
instead of trying to send it as a parameter in the function call? Please
provide or point to example code.
I have an existing web service in C# 2005 that utilizes Web Service
Enhancments 3.0 with custom UsernameTokenManager authentication. I need to
pass very large binary files to the web service for subsequent storage into a
database. When we do this as part of a web service function, we get errors
like "The underlying connection was closed: An unexpected error occurred",
which I believe are due to the fact we are sending a very large byte array as
a parameter to the web service function which I think causes a timeout. Our
web service utilizes SSL (https).
What is the best way to transmit large binary files to a web service
function? Should the web service initiate an HTTP based file transfer
instead of trying to send it as a parameter in the function call? Please
provide or point to example code.