Can you create a sample testcase?
My gut feeling is it stems from:
svrFactory.setServiceName(new QName("AService/1.0"));
I'm think if you set a namespace on that instead of using the default/empty
namespace, it may work better. (likewise client side)
Basically, it's trying to write out the wrapper element name, but for some
reason, the namespace is empty which isn't allowed at that point. With the
simple frontend, that would normally be the namespace of the service, so you
may need to set that on the factory to make sure it gets a namespace.
Dan
On Thu August 13 2009 9:52:24 am cj91 wrote:
> After solving the security exception, I'm back to the above error. Rather
> than double-posting, I'm reviving this thread.
>
> Here is the current way I'm generating my service/proxy:
> @BeforeClass
> public static void setupForTesting(){
> ServerFactoryBean svrFactory = new ServerFactoryBean();
> svrFactory.setServiceClass(AService.class);
> svrFactory.setAddress("cxf:vm://local/AService/1.0");
> svrFactory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
> svrFactory.setServiceBean(new AServiceImpl());
> //svrFactory.setInInterceptors(getInInterceptors());
> //svrFactory.setOutInterceptors(getOutInterceptors());
> svrFactory.setServiceName(new QName("AService/1.0"));
> svrFactory.create();
>
> ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
> factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
> factory.setServiceClass(AService.class);
> factory.setAddress("cxf:vm://local/AService/1.0");
> aServiceProxy = (AService) factory.create();
> }
>
> Googling is no help, and this forum only yields one hit, but the problem
> was never solved. Anyone have a working example of the vm/local transport?
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog