protected OutputStream openTheConnection(EndpointReference toURL,
MessageContext msgContext) throws AxisFault {
if (toURL != null) {
try {
URL url = new URL(toURL.getAddress());
SocketAddress add =
new InetSocketAddress(url.getHost(),
url.getPort() == -1 ? 80 : url.getPort());
socket = new Socket();
socket.connect(add);
return socket.getOutputStream();
} catch (MalformedURLException e) {
throw new AxisFault(e.getMessage(), e);