On Jul 28, 2008, at 11:27 AM, Glen Mazza wrote:
I'll try that again (I got it working with JaxWSProxyFactoryBean,
BTW). But
isn't createdFromAPI="true" is for when you doing Endpoint.publish()
or
similar to create the SOAP client? I'm not doing that in my clients
([1],
below).
If I can attach interceptors to an already existing client endpoint
via
jaxws:client, then what is the business case for
JaxWSProxyFactoryBean?
When would you need the latter--or is just an alternative method of
doing
the same thing?
Basically, under the covers, the jaxws:client element in the spring
config is just configuring a JaxWsProxyFactoryBean. That's pretty
much how it works. With the createdFromApi attribute set, that bean
is pretty much used as configuration of the bean used during the
"service.getDoubleItPort()" call. If createdFromAPI is not set, we
add the "create" call as the spring factory method and you can get the
bean from the application context by name.
Dan
Thanks,
Glen
dkulp wrote:
jaxws:client should work fine. The wsdl_first demo uses it to
configure schema validation.
Basically, you need to make sure the "name" is correct (no http-
conduit on the end) and add the "createdFromAPI="true"" attribute.
Dan
On Jul 26, 2008, at 8:16 PM, Glen Mazza wrote:
Hello, for my DoubleIt SOAP client[1] I would like to add a few
interceptors.
I know how to do that programmatically[2], but don't know how to do
that via
Spring configuration. In the cxf.xml that I place in the SOAP
client's
classpath, I would like interceptors to be declaratively added in
this type
of manner:
<jaxws:client
name="{http://www.example.org/DoubleIt}DoubleItPort.http-conduit">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
<jaxws:outInterceptors>
<ref bean="TimestampSignEncrypt_Request"/>
</jaxws:outInterceptors>
<jaxws:inInterceptors>
<ref bean="TimestampSignEncrypt_Response"/>
</jaxws:inInterceptors>
</jaxws:client>
But jaxws:client appears to create a new SOAP client (and NPE's
because I'm
not providing enough information)--it doesn't add these interceptors
to my
WSClient as I'd like. Is there a way to do what I'm trying to do?
Also,
what are the attributes to jaxws:client above that I need to add to
tie
these interceptors to my WSClient class?
Thanks,
Glen
[1] http://www.jroller.com/gmazza/date/20080417#WFstep10
[2] http://www.jroller.com/gmazza/entry/using_cxf_and_wss4j_to (Step
#2)
--
View this message in context:
http://www.nabble.com/Adding-interceptors-to-a-SOAP-client-using-Spring-tp18672098p18672098.html
Sent from the cxf-user mailing list archive at Nabble.com.
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog
--
View this message in context:
http://www.nabble.com/Adding-interceptors-to-a-SOAP-client-using-Spring-tp18672098p18690911.html
Sent from the cxf-user mailing list archive at Nabble.com.
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog