File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Webservice client trough HTTP Proxy on Websphere 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice client trough HTTP Proxy on Websphere 6.0" Watch "Webservice client trough HTTP Proxy on Websphere 6.0" New topic

Webservice client trough HTTP Proxy on Websphere 6.0

Mieza del Val

Joined: Jul 04, 2008
Posts: 1
We are stucked trying to connect to a Webservice trough a HTTP Proxy.
We are deploying the application on Websphere 6.0 and we are using this

package es.stl.gpm.request.soap;

import java.util.Properties;

import javax.naming.InitialContext;
import javax.xml.rpc.Stub;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;

import; import;


public class ConexionSOAPThread extends Thread{

* Atributo que representa la conexi�n.
private SOAPConnection _connection;

private SOAPMessage peticion;

* Direcci�n del destino
private String _endpoint;

private SOAPMessage respuesta;

protected void setEndpoint(String _endpoint) {
this._endpoint = _endpoint;

protected void setPeticion(SOAPMessage peticion) {
this.peticion = peticion;

// This method is called when the thread runs
public void run()
try {

System.out.println("Before call");





respuesta =,_endpoint);
System.out.println("After call");

} catch (SOAPException e) {
catch (Throwable e) {


public void setConnection(SOAPConnection _connection) {
this._connection = _connection;

public SOAPMessage getRespuesta() {
return respuesta;


We can't use anymore to set the proxy and the port due a customer petition.

Same code without the stub._setProperty work correctly setting the same HttpProxy and port values on

Thanks in advance for your help!!
I agree. Here's the link:
subject: Webservice client trough HTTP Proxy on Websphere 6.0
It's not a secret anymore!