new WSDLPatcher(owner.owner,this,portAddressResolver,resolver).bridge(xsr,out);

} finally {

xsr.close();

}

}

As per my understanding the "**source.read()**" not able to read WSDL file completely or read operation is timed out. As result above exception is thrown from "bridge" method, where XML parsing is happening line by line and writing it to the **XMLStreamWriter**.

The reason I am suspecting time out because when I am debugging issue by adding breakpoint in the the "bridge" method present in **com.sun.xml.internal.ws.util.xml.XMLStreamReaderToXMLStreamWriter** I do not get any exception.

Also, after above execution **com.sun.xml.internal.ws.transport.http.server.WSHttpHandler. handler** again invoked and in this run I do not encounter any exception. The WSDL file has been correctly read by XMLStreamReaderToXMLStreamWriter and service at client side is initialized. And I am able to invoke the web service.