[jbossws-issues] [JBoss JIRA] Commented: (JBWS-3237) Set an HTTP proxy host/port for an individual WS-stub

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Fri May 27 06:09:01 EDT 2011


    [ https://issues.jboss.org/browse/JBWS-3237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604918#comment-12604918 ] 

Alessio Soldano commented on JBWS-3237:
---------------------------------------

See http://anonsvn.jboss.org/repos/jbossws/stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpproxy/HTTPProxyTestCase.java :

public void testHttpProxyUsingHTTPClientPolicy() throws Exception
{
  ...
  HelloWorld port = getPort(getResourceURL("jaxws/cxf/httpproxy/HelloWorldService.wsdl"), testHost);
  Client client = ClientProxy.getClient(port);
  HTTPConduit conduit = (HTTPConduit)client.getConduit();
  HTTPClientPolicy clientPolicy = conduit.getClient();
  clientPolicy.setProxyServerType(ProxyServerType.HTTP);
  clientPolicy.setProxyServer(proxyHost);
  clientPolicy.setProxyServerPort(proxyPort);
  ProxyAuthorizationPolicy authPolicy = new ProxyAuthorizationPolicy();
  authPolicy.setAuthorizationType("Basic");
  authPolicy.setUserName(PROXY_USER);
  authPolicy.setPassword(PROXY_PWD);
  conduit.setProxyAuthorization(authPolicy);
  ...
  port.echo("Hi!");
}

to me at this point (from a cxf stack point of view), this jira basically boils down to the mapping between given ports/stubs and their HTTPClient/HTTPConduit. I need to check, but if HTTPConduit are shared by ports (perhaps with same endpoint address), we might need to tune their creation (it should be possible to (allows users to) set custom ConduitInitiator/ConduitSelector on the bus).

> Set an HTTP proxy host/port for an individual WS-stub
> -----------------------------------------------------
>
>                 Key: JBWS-3237
>                 URL: https://issues.jboss.org/browse/JBWS-3237
>             Project: JBoss Web Services
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-cxf, jbossws-native
>    Affects Versions: jbossws-native-3.4.1
>         Environment: EAP 4.3.X and EAP 5.x
>            Reporter: Roger Hui
>            Priority: Minor
>             Fix For: jbossws-native-4.1, jbossws-cxf-4.1
>
>
> We would like to set an HTTP proxy host/port for an individual WS-stub.
> We found [1], but the link goes to a dead page [2], and we found a valid JBoss Remoting page [3]. In [3] it shows that the proxy host/port can be configured in the client metadata. However, we don't see how to set this from JBossWS.  We would like this to be a new feature. 
> [1] http://community.jboss.org/wiki/JBossWS-FAQ#How_can_I_setup_my_client_to_use_a_proxy
> [2] http://labs.jboss.com/jbossremoting/docs/guide/ch05.html
> [3] http://docs.jboss.org/jbossremoting/docs/guide/2.5/html/index.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list