I found solution after long search in internet. The problem was I was not setting the mtom property in client stub file. After I added the code below it started working. I did not delete the question may be somebody else need it.
call.setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT, Call.ATTACHMENT_ENCAPSULATION_FORMAT_MTOM);