You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Kaleb Walton <kd...@us.ibm.com> on 2007/08/21 21:44:06 UTC

Aegis Data Binding w/Spring


Anyone have a sample Spring configuration that shows how to set up Aegis
Data Binding for both server and client beans? I'm trying to get Scripted
Beans to work as the Service Implementors and am concerned that the
annotations are why they don't work with JAX. Thanks!

Regards,
Kaleb Walton

Re: Aegis Data Binding w/Spring

Posted by Kaleb Walton <kd...@us.ibm.com>.
Nevermind - I see that it uses the "address" as the reference. Being new to
the library I didn't realize that jaxws:server worked similarly to
jaxws:endpoint. Still trying to grasp all of the concepts - thanks!

Regards,
Kaleb


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Kaleb Walton/Southfield/IBM@IBMUS                                                                                                                 |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |cxf-user@incubator.apache.org                                                                                                                     |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |08/22/2007 08:47 AM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: Aegis Data Binding w/Spring                                                                                                                   |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Thank you for the detailed response!

How does that translate to a servlet based transport mechanism?

Regards,
Kaleb

Inactive hide details for Freeman Fang ---08/21/2007 11:31:38 PM---Hi
Kaleb,Freeman Fang ---08/21/2007 11:31:38 PM---Hi Kaleb,
                                                                           
                                                                           
 From:                  Freeman Fang <fr...@iona.com>               
                                                                           
                                                                           
 To:                    cxf-user@incubator.apache.org                      
                                                                           
                                                                           
 Date:                  08/21/2007 11:31 PM                                
                                                                           
                                                                           
 Subject:               Re: Aegis Data Binding w/Spring                    
                                                                           





Hi Kaleb,

For server side, if you are using jax-ws frontend,  you should use sth like
<jaxws:server address="/jaxwsAndAegis"
   serviceClass="org.apache.cxf.authservice.AuthService">
   <jaxws:dataBinding>
      <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
   </jaxws:dataBinding>
   <jaxws:serviceBean>
     <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
   </jaxws:serviceBean>
 </jaxws:server>

If you are using simple frontend, you should use sth like
<simple:server address="/service"
   serviceClass="org.apache.cxf.authservice.AuthService">
   <simple:dataBinding>
      <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
   </simple:dataBinding>
   <simple:serviceBean>
     <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
   </simple:serviceBean>
 </simple:server>

For client side, if you are using jax-ws frontend, you should use sth like
<bean id="aegisDatabinding"
             class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
   <bean id="client" class="org.apache.cxf.authservice.AuthService"
     factory-bean="clientFactory" factory-method="create"/>

       <bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
         <property name="serviceClass"
value="org.apache.cxf.authservice.AuthService"/>
         <property name="address"
value="http://localhost:9002/jaxwsAndAegis"/>
         <property name="dataBinding" ref="aegisDatabinding"/>
       </bean>

If you are uisng simple frontend, you should use sth like
<bean id="aegisDatabinding"
             class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
   <bean id="client" class="org.apache.cxf.authservice.AuthService"
     factory-bean="clientFactory" factory-method="create"/>

       <bean id="clientFactory"
class="org.apache.cxf.frontend.ClientProxyFactoryBean">
         <property name="serviceClass"
value="org.apache.cxf.authservice.AuthService"/>
         <property name="address" value="http://localhost:9002/service"/>
         <property name="dataBinding" ref="aegisDatabinding"/>
       </bean>

Best Regards

Freeman

Kaleb Walton wrote:
> Anyone have a sample Spring configuration that shows how to set up Aegis
> Data Binding for both server and client beans? I'm trying to get Scripted
> Beans to work as the Service Implementors and am concerned that the
> annotations are why they don't work with JAX. Thanks!
>
> Regards,
> Kaleb Walton
>

Re: Aegis Data Binding w/Spring

Posted by Kaleb Walton <kd...@us.ibm.com>.
Thank you for the detailed response!

How does that translate to a servlet based transport mechanism?

Regards,
Kaleb


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Freeman Fang <fr...@iona.com>                                                                                                              |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |cxf-user@incubator.apache.org                                                                                                                     |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |08/21/2007 11:31 PM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: Aegis Data Binding w/Spring                                                                                                                   |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Hi Kaleb,

For server side, if you are using jax-ws frontend,  you should use sth like
<jaxws:server address="/jaxwsAndAegis"
    serviceClass="org.apache.cxf.authservice.AuthService">
    <jaxws:dataBinding>
       <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
    </jaxws:dataBinding>
    <jaxws:serviceBean>
      <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
    </jaxws:serviceBean>
  </jaxws:server>

If you are using simple frontend, you should use sth like
<simple:server address="/service"
    serviceClass="org.apache.cxf.authservice.AuthService">
    <simple:dataBinding>
       <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
    </simple:dataBinding>
    <simple:serviceBean>
      <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
    </simple:serviceBean>
  </simple:server>

For client side, if you are using jax-ws frontend, you should use sth like
<bean id="aegisDatabinding"
              class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
    <bean id="client" class="org.apache.cxf.authservice.AuthService"
      factory-bean="clientFactory" factory-method="create"/>

        <bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
          <property name="serviceClass"
value="org.apache.cxf.authservice.AuthService"/>
          <property name="address"
value="http://localhost:9002/jaxwsAndAegis"/>
          <property name="dataBinding" ref="aegisDatabinding"/>
        </bean>

If you are uisng simple frontend, you should use sth like
<bean id="aegisDatabinding"
              class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
    <bean id="client" class="org.apache.cxf.authservice.AuthService"
      factory-bean="clientFactory" factory-method="create"/>

        <bean id="clientFactory"
class="org.apache.cxf.frontend.ClientProxyFactoryBean">
          <property name="serviceClass"
value="org.apache.cxf.authservice.AuthService"/>
          <property name="address" value="http://localhost:9002/service"/>
          <property name="dataBinding" ref="aegisDatabinding"/>
        </bean>

Best Regards

Freeman

Kaleb Walton wrote:
> Anyone have a sample Spring configuration that shows how to set up Aegis
> Data Binding for both server and client beans? I'm trying to get Scripted
> Beans to work as the Service Implementors and am concerned that the
> annotations are why they don't work with JAX. Thanks!
>
> Regards,
> Kaleb Walton
>

Re: Aegis Data Binding w/Spring

Posted by Freeman Fang <fr...@iona.com>.
Hi Kaleb,

For server side, if you are using jax-ws frontend,  you should use sth like
<jaxws:server address="/jaxwsAndAegis"
    serviceClass="org.apache.cxf.authservice.AuthService">
    <jaxws:dataBinding>
       <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
    </jaxws:dataBinding>
    <jaxws:serviceBean>
      <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
    </jaxws:serviceBean>
  </jaxws:server>

If you are using simple frontend, you should use sth like
<simple:server address="/service"
    serviceClass="org.apache.cxf.authservice.AuthService">
    <simple:dataBinding>
       <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
    </simple:dataBinding>
    <simple:serviceBean>
      <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
    </simple:serviceBean>
  </simple:server>

For client side, if you are using jax-ws frontend, you should use sth like
<bean id="aegisDatabinding"
              class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
    <bean id="client" class="org.apache.cxf.authservice.AuthService"
      factory-bean="clientFactory" factory-method="create"/>

        <bean id="clientFactory" 
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
          <property name="serviceClass" 
value="org.apache.cxf.authservice.AuthService"/>
          <property name="address" 
value="http://localhost:9002/jaxwsAndAegis"/>
          <property name="dataBinding" ref="aegisDatabinding"/>
        </bean>

If you are uisng simple frontend, you should use sth like
<bean id="aegisDatabinding"
              class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
    <bean id="client" class="org.apache.cxf.authservice.AuthService"
      factory-bean="clientFactory" factory-method="create"/>

        <bean id="clientFactory" 
class="org.apache.cxf.frontend.ClientProxyFactoryBean">
          <property name="serviceClass" 
value="org.apache.cxf.authservice.AuthService"/>
          <property name="address" value="http://localhost:9002/service"/>
          <property name="dataBinding" ref="aegisDatabinding"/>
        </bean>

Best Regards

Freeman

Kaleb Walton wrote:
> Anyone have a sample Spring configuration that shows how to set up Aegis
> Data Binding for both server and client beans? I'm trying to get Scripted
> Beans to work as the Service Implementors and am concerned that the
> annotations are why they don't work with JAX. Thanks!
>
> Regards,
> Kaleb Walton
>