You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Daniel Kulp <dk...@apache.org> on 2011/01/18 21:48:08 UTC

Re: Can't manually add a Port to a Service

On Tuesday 18 January 2011 9:44:28 am Dmitry wrote:
> Hello!
> 
> Using jbossws-cxf-3.4.1.GA (CXF-2.3.1) not able to manually add ports
> into a JAX-WS service.
> The code works with JDK 6 jax-ws, as well as with jbossws-native-3.4.1.GA.
> 
> 
> QName sName = new QName("service");
> QName pName = new QName("port");
> 
> javax.xml.ws.Service service = Service.create(sName);
> service.addPort(pName, SOAPBinding.SOAP11HTTP_BINDING,
> "http://mysite.org/test");
> 
> Iterator<QName> ports = service.getPorts(); // iterator has no elements!!!

That's definitely a bug.  I'm testing a fix now, but it won't make it for 
2.3.2 which is already being voted on.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog