I have to call a secure WCF service from java using mutual authentication. Everything works fine except I\'m unable to send messages which are greater than 48680 bytes in size.
Have your tried to look at the actual packets being sent - eg. with tcpdump/Wireshark ( http://www.wireshark.org/ ) ?
I once had problems only on certain platforms reaching a service that was behind a very picky SSL offload engine.
Finally, I resolved the issue. The problem was the following:
You asked, what could be the problem, here some suggestion:
I would suggest to try a wider range of request. Do not only vary the size.
This could be a SOAP version mismatch. The default version for basichttpbinding is SOAP 1.1. If the java client is using SOAP 1.2 you will get an error.
We have often seen that the error you get when the SOAP version does not match, has nothing to do with the real erros.
Have you tried sending in request from SOAPUI tool and checking if it behaves the same way. Also worth looking at the below link that discusses something about WCF Services and Java client.
Java Client and WCF Service