[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pubscribe-dev
Subject:    Re: ws-fx/addressing Handler issue
From:       Ian Springer <ips () apache ! org>
Date:       2005-02-03 19:38:51
Message-ID: 42027DCB.2090704 () apache ! org
[Download RAW message or body]


>
> yesterday we talked about the addressing handler:
>
> -
> <ips> stefan: SOAPConnection is a JAX-RPC class. you get it via a factory
> <lischke> ok so no axis specific
> <ips> so when running w/ Axis in the cp, what you actually get back is 
> an Axis impl of
>  that class
> <ips> then (i think), Axis will pass the message through any client 
> handlers that are
>  configured
> <ips> we need to verify this last point
> -
>
> I have tested that, and i came to the conclusion, that the addressing 
> handlers are not passed, cause i was not able to configure the axis 
> engine in any way. Without JAX-RPC interfaces i used:
>
>        Service service = new Service(new 
> FileProvider("org/apache/ws/eventing/client-config.wsdd"));
>
> That client-config.wsdd set up the addressing handler for incoming and 
> outgoing, but since i'm just using :
>
>        SOAPConnectionFactory sconF= SOAPConnectionFactory.newInstance();
>        SOAPConnection scon = sconF.createConnection();
>
> I'm not able to configure the axis engine.......
>
>
> So we have to reinvent ws-fx/addressing ;-(
>
> any ideas?
>

I already gave Stefan the below answer via IRC, but I'm posting it here 
just for the records...

Even when you use SOAPConnection, it still ultimately passes through the 
Axis client engine, but the engine gets created w/ default settings 
under the hood.
However, you should be able to set the default config file location for 
the engine as follows:

AxisProperties.setProperty(EngineConfigurationFactoryDefault.OPTION_CLIENT_CONFIG_FILE, 
".../wse/client-config.wsdd" );

Or you can accept the default which is "client-config.wsdd" (ie - look 
for the config file in the root package in the classpath).

Ian

> Stefan
>


---------------------------------------------------------------------
To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: hermes-dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic