We are using a client web service and in one of the methods the response is a byte array. but when the program is run, the response for this method is always null. That means the returned byte array is null.
following is the method.
But when i use SOAP UI and check , the byte array is returned but the response time is about 40 seconds . also ,when i put a debug point (I use Intelli J idea) then the time taken is more but i do get the byte array.
but whenever we run the compiled code, We are not able to get the byte array due to high response time.
How can i ensure that my web service call waits till it gets the complete response?
Also, I have set the
in the getService() method , i tried increasing that to 6000000 but still i am not able to get the complete response in the above method