You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by "Gamayunov, Dmitry" <Dm...@compaq.com> on 2001/02/08 01:12:19 UTC
SOAPHTTPConnection -SOAP2.1 release
I've downloaded SOAP2.1 release (built 5 Feb 2001) and encounted a couple of
problems with SOAPHTTPConnection class:
1. I got NoSuchMethod exception on env.marshall (payloadSW, smr, ctx) call
in send(...) method. Rebuild of soap2.1 would fix it (it did for me).
2. SOAPHTTPConnection class is instantiated from
org.apache.soap.messaging.Message class and then
SOAPHTTPConnection.send(...) is called. At present I don't see a way of
getting SOAP21 to work with proxies (specifically I use uddi4j that calls
soap classes). May I suggest to add a constructor to SOAPHTTPConnection to
get proxy settings from System properties. The constructor may look like:
public SOAPHTTPConnection()
{
setProxyHost(System.getProperty("http.proxyHost"));
try
{
setProxyPort(Integer.parseInt(System.getProperty("http.proxyPort")));
}
catch (NumberFormatException e)
{
// Ignore exception if could not parse port (i.e. invalid integer or
null)
}
}
Regards,
Dmitry Gamayunov
* 9022 4239
* 0402 076150
* Dmitry.Gamayunov@Compaq.com
* Compaq Computer Australia Pty Ltd.
Level 6, 76 Berry Street, North Sydney, NSW 2060
http://www.compaq.com.au
Re: SOAPHTTPConnection -SOAP2.1 release
Posted by Wouter Cloetens <wo...@mind.be>.
On Thu, Feb 08, 2001 at 08:12:19AM +0800, Gamayunov, Dmitry wrote:
> I've downloaded SOAP2.1 release (built 5 Feb 2001) and encounted a couple of
> problems with SOAPHTTPConnection class:
> 2. SOAPHTTPConnection class is instantiated from
> org.apache.soap.messaging.Message class and then
> SOAPHTTPConnection.send(...) is called. At present I don't see a way of
> getting SOAP21 to work with proxies (specifically I use uddi4j that calls
> soap classes).
Easy... Instantiate your Message object and then call setSOAPTransport with your
self-constructed SOAPHTTPConnection object before you call send() on the Message.
> May I suggest to add a constructor to SOAPHTTPConnection to
> get proxy settings from System properties. The constructor may look like:
That's not a bad idea... One could argue that not setting the proxy explicitly
introduces a security risk though. Some SOAP transactions should not leave a
company's intranet.
I have a proposal for 2.2 to update the SOAPTransport structure to accept a
set of properties to configure parameters such as the HTTP proxy. This construct
would be similar to the way JNDI works. It would be easy to simply pick up
the system properties. I'll think about it...
bfn, Wouter