RE: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs
Axis2 has HttpTransportProperties.ProxyProperties. But there is no way I can set this for SOAPConnection.call method. Are you say in that Proxy cannot be used with SOAPConnection.call ? From: Alick Buckley [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 12:05 AM To: axis-user@ws.apache.org Subject: RE: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs Does Axis2 have an AxisProperties class ? org.apache.axis.AxisProperties I think you can set these properties in Axis 1.4 using AxisProperties.setProperty ( name, value ) # axis.ClientConfigFile # axis.ServerConfigFile # axis.http.client.maximum.total.connections # axis.http.client.maximum.connections.per.host # axis.http.client.connection.pool.timeout # axis.http.client.connection.default.so.timeout # axis.http.client.connection.default.connection.timeout # axis.socketFactory # axis.socketSecureFactory # axis.ServerFactory # http.proxyHost # http.proxyPort # http.proxyUser # http.proxyPassword # http.nonProxyHosts # https.proxyHost # https.proxyPort # https.proxyUser # https.proxyPassword # https.nonProxyHosts -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 January 2007 3:54 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs Sumedha, our commons http sender does *not* pick the System property setting. So this will not work. -- dims On 1/29/07, sumedha rubasinghe <[EMAIL PROTECTED]> wrote: > Hi yogen; > I think this has nothing to do with SAAJ. It is just a matter of making > you java application (which accesses network resources) to be able to > communicate via network. i.e. by setting > > System.setProperty( "https.proxyHost", ); > System.setProperty( "https.proxyPort", ); > > in your client.And there is another way to set this from command options > to java command, which brings the same result. > > The call method in SOAPConnection has the following signature. > public SOAPMessage call(SOAPMessage request, Object endpoint) throws > SOAPException > - > Here the endpoint can be any of java.lang.String,java.net.URL, > javax.xml.messaging.URLEndpoint. > > Thanks > /sumedha > > > > Yadav, Yogendra (IT) wrote: > > Hi, > > Sun's SAAJ implementation reads proxy settings from system properties. > > System.setProperty( "https.proxyHost", ); > > System.setProperty( "https.proxyPort", ); > > > > I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's > > implementation SOAPConnectionImpl.java the Options object is created > > new. The call() method does not provide an ability to set proxy. > > Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ? > > > > Appreciate it. > > [thanx > > -yogen > > > > > > > > > > NOTICE: If received in error, please destroy and notify sender. Sender > > does not intend to waive confidentiality or privilege. Use of this > > email is prohibited when received in error. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
RE: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs
Does Axis2 have an AxisProperties class ? org.apache.axis.AxisProperties I think you can set these properties in Axis 1.4 using AxisProperties.setProperty ( name, value ) # axis.ClientConfigFile # axis.ServerConfigFile # axis.http.client.maximum.total.connections # axis.http.client.maximum.connections.per.host # axis.http.client.connection.pool.timeout # axis.http.client.connection.default.so.timeout # axis.http.client.connection.default.connection.timeout # axis.socketFactory # axis.socketSecureFactory # axis.ServerFactory # http.proxyHost # http.proxyPort # http.proxyUser # http.proxyPassword # http.nonProxyHosts # https.proxyHost # https.proxyPort # https.proxyUser # https.proxyPassword # https.nonProxyHosts -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 January 2007 3:54 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs Sumedha, our commons http sender does *not* pick the System property setting. So this will not work. -- dims On 1/29/07, sumedha rubasinghe <[EMAIL PROTECTED]> wrote: > Hi yogen; > I think this has nothing to do with SAAJ. It is just a matter of making > you java application (which accesses network resources) to be able to > communicate via network. i.e. by setting > > System.setProperty( "https.proxyHost", ); > System.setProperty( "https.proxyPort", ); > > in your client.And there is another way to set this from command options > to java command, which brings the same result. > > The call method in SOAPConnection has the following signature. > public SOAPMessage call(SOAPMessage request, Object endpoint) throws > SOAPException > - > Here the endpoint can be any of java.lang.String,java.net.URL, > javax.xml.messaging.URLEndpoint. > > Thanks > /sumedha > > > > Yadav, Yogendra (IT) wrote: > > Hi, > > Sun's SAAJ implementation reads proxy settings from system properties. > > System.setProperty( "https.proxyHost", ); > > System.setProperty( "https.proxyPort", ); > > > > I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's > > implementation SOAPConnectionImpl.java the Options object is created > > new. The call() method does not provide an ability to set proxy. > > Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ? > > > > Appreciate it. > > [thanx > > -yogen > > > > > > > > > > NOTICE: If received in error, please destroy and notify sender. Sender > > does not intend to waive confidentiality or privilege. Use of this > > email is prohibited when received in error. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs
Sumedha, our commons http sender does *not* pick the System property setting. So this will not work. -- dims On 1/29/07, sumedha rubasinghe <[EMAIL PROTECTED]> wrote: Hi yogen; I think this has nothing to do with SAAJ. It is just a matter of making you java application (which accesses network resources) to be able to communicate via network. i.e. by setting System.setProperty( "https.proxyHost", ); System.setProperty( "https.proxyPort", ); in your client.And there is another way to set this from command options to java command, which brings the same result. The call method in SOAPConnection has the following signature. public SOAPMessage call(SOAPMessage request, Object endpoint) throws SOAPException - Here the endpoint can be any of java.lang.String,java.net.URL, javax.xml.messaging.URLEndpoint. Thanks /sumedha Yadav, Yogendra (IT) wrote: > Hi, > Sun's SAAJ implementation reads proxy settings from system properties. > System.setProperty( "https.proxyHost", ); > System.setProperty( "https.proxyPort", ); > > I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's > implementation SOAPConnectionImpl.java the Options object is created > new. The call() method does not provide an ability to set proxy. > Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ? > > Appreciate it. > [thanx > -yogen > > > > > NOTICE: If received in error, please destroy and notify sender. Sender > does not intend to waive confidentiality or privilege. Use of this > email is prohibited when received in error. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs
Hi yogen; I think this has nothing to do with SAAJ. It is just a matter of making you java application (which accesses network resources) to be able to communicate via network. i.e. by setting System.setProperty( "https.proxyHost", ); System.setProperty( "https.proxyPort", ); in your client.And there is another way to set this from command options to java command, which brings the same result. The call method in SOAPConnection has the following signature. public SOAPMessage call(SOAPMessage request, Object endpoint) throws SOAPException - Here the endpoint can be any of java.lang.String,java.net.URL, javax.xml.messaging.URLEndpoint. Thanks /sumedha Yadav, Yogendra (IT) wrote: Hi, Sun's SAAJ implementation reads proxy settings from system properties. System.setProperty( "https.proxyHost", ); System.setProperty( "https.proxyPort", ); I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's implementation SOAPConnectionImpl.java the Options object is created new. The call() method does not provide an ability to set proxy. Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ? Appreciate it. [thanx -yogen NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Proxy setting when using AXIS2's SAAJ APIs
Hi, Sun's SAAJ implementation reads proxy settings from system properties. System.setProperty( "https.proxyHost", ); System.setProperty( "https.proxyPort", ); I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's implementation SOAPConnectionImpl.java the Options object is created new. The call() method does not provide an ability to set proxy. Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ? Appreciate it. thanx -yogen NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.