Just to make sure. Are you aware that XFire doesn't support RPC/Encoded ?

On 5/22/07, David Melia <[EMAIL PROTECTED]> wrote:

Hi,

I am migrating from the Spring/Axis web service client to the Spring/XFire
client (XFireClientFactoryBean). The problem is I cannot find any examples
of mapping from my web service to my POJO's

Does anybody know how i can do the following JAX RPC AXIS mapping using the
XFire client. (i think you need to use
org.codehaus.xfire.service.binding.ObjectServiceFa ctory)


public class SsoRpcPortProxyFactoryBean extends JaxRpcPortProxyFactoryBean {

protected void postProcessJaxRpcService(Service service) {
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping mapping = registry.createTypeMapping();
registerBeanMapping(mapping, PrincipalValue.class,
"com_lsb_uk_sso_value_PrincipalValue");
registry.register("http://schemas.xmlsoap.org/soap/encoding/";, mapping);
}

protected void registerBeanMapping(TypeMapping mapping, Class type, String
name) {
QName qName = new QName("http://com.lsb.uk.sso/ISsoServices.xsd";, name);
mapping.register(type, qName, new BeanSerializerFactory(type, qName), new
BeanDeserializerFactory(type, qName));
}
}

Basically i am mapping the same object from the web service to my client but
with a different package name com.lsb.uk.oid.value.PrincipalValue to
com.lsb.uk.mqs.value.PrincipalValue.  If i leave the mapping out i get
blanks in my value object results
--
View this message in context: 
http://www.nabble.com/Migrating-Spring-Axis-to-XFire-Client--Binding-issue-%28JaxRpcPortProxyFactoryBean-equivilant%29-tf3795724.html#a10735968
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to