cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: How to configure CXF client consume wsdl with overloaded methods?
Date Wed, 11 Nov 2009 13:34:18 GMT
Post a JIRA and attach the wsdl and we'll try to help.


On Wed, Nov 11, 2009 at 7:02 AM, Alpin, Luba <Luba.Alpin@lsi.com> wrote:

> I need a help to configure my CXF client to use XFire SOAP service with
> overloaded methods.
>
>
>
> IVolume interface has two method 'getVolumes' with different signature
>
>
>
> Wsdl has one 'getVolumes' and second 'getVolumes1'
>
>
>
> This is the dump of error:
>
>
>
> INFO: Creating Service {http://xfire.codehaus.org/IVolume}IVolume from
> WSDL: http://localhost:8080/public/services/IVolume?wsdl
>
> Nov 11, 2009 1:46:48 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> initializeWSDLOperations
>
> WARNING: Could not find a matching method for operation {
> http://xfire.codehaus.org/IVolume}getVolumes1. Operation will be
> unavailable.
>
> java.lang.NullPointerException
>
>      at
> org.apache.cxf.aegis.databinding.AegisDatabinding.getParameterType(AegisDatabinding.java:581)
>
>      at
> org.apache.cxf.aegis.databinding.AegisDatabinding.initializeMessage(AegisDatabinding.java:342)
>
>      at
> org.apache.cxf.aegis.databinding.AegisDatabinding.initializeOperation(AegisDatabinding.java:303)
>
>      at
> org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:267)
>
>      at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:363)
>
>      at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:459)
>
>      at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:212)
>
>      at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:163)
>
>      at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
>
>      at
> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
>
>      at
> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
>
>      at
> org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
>
>      at
> com.lsi.xfireConnector.CXFUtil.typedServiceProxyCreator(CXFUtil.java:67)
>
>
>
> This is my client:
>
>
>
>      JaxWsProxyFactoryBean client = new JaxWsProxyFactoryBean();
>
>      client.setServiceClass(clazz);
>
>      client.setAddress(url);
>
>      client.setWsdlURL(url + "?wsdl");
>
>      AegisDatabinding db = new AegisDatabinding();
>
>      AegisContext context = new AegisContext();
>
>      context.setWriteXsiTypes(false);
>
>      context.setReadXsiTypes(true);
>
>      db.setAegisContext(context);
>
>      client.setDataBinding(db);
>
>      IVolume object = (IVolume) client.create();
>
>
>
> Thanks,
>
> Luba A.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message