You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by Dmitry <re...@list.ru> on 2011/01/18 15:44:28 UTC

Can't manually add a Port to a Service

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!!!

Kind Regards,

Dmitry
-- 
------------------------------------------------------------------------
Barcelona Supercomputing Center National Institute of Bioinformatics, 
Life Science, Computational Node 6
Nexus II, Jordi Girona 29, 08034 Barcelona, Spain

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

Posted by Daniel Kulp <dk...@apache.org>.
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