Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice client trough HTTP Proxy on Websphere 6.0

Mieza del Val
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic