Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

javax.xml.ws.Service.create fails with WebServiceException "Unknown feature error"

$
0
0
Hi,

can anyone explain me why only acceptable features are the ones from "
javax.xml.ws" packages?

org.apache.cxf.jaxws.spi.ProviderImpl contains:

public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation,
QName serviceName,
@SuppressWarnings("rawtypes")
Class serviceClass,
WebServiceFeature ...
features) {
for (WebServiceFeature f : features) {
if (!f.getClass().getName().startsWith("javax.xml.ws")) {
throw new WebServiceException("Unknown feature error: " +
f.getClass().getName());

My client code:

javax.xml.ws.Service.create(wsdlURL, new QName(serviceNs, serviceName),
myCustomFeature)

fails miserably and I don't know what is the reason for this. (Of course,
myCustomFeature is not in javax.xml.ws.* package).

Many thanks for help,
Przemyslaw

Viewing all articles
Browse latest Browse all 5648

Trending Articles