You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by karoudja <ka...@hotmail.com> on 2010/07/02 14:26:49 UTC

Problem invoking a provider

Hi all,
I have implemented a Provider for my web service but the request doesn't
pass into my provider. To declare my provider I only have added there 2
lines before my class:
@javax.xml.ws.WebServiceProvider(portName="HelloWorldSoapBinding",
serviceName="HelloWorld")
@javax.xml.ws.ServiceMode(value = javax.xml.ws.Service.Mode.MESSAGE)

Is there no other thing to do?

thanks a lot,
Fabian.
-- 
View this message in context: http://old.nabble.com/Problem-invoking-a-provider-tp29055742p29055742.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem invoking a provider

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Hi Fabian,

You don't say how you're deploying the service, but assuming you're 
using a WAR file you need to supply an appropriate web.xml for CXF and 
an associated cxf-servlet.xml file. See the CXF documentation or my 
article http://www.ibm.com/developerworks/java/library/j-jws12.html for 
details.

  - Dennis

Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



karoudja wrote:
> Hi all,
> I have implemented a Provider for my web service but the request doesn't
> pass into my provider. To declare my provider I only have added there 2
> lines before my class:
> @javax.xml.ws.WebServiceProvider(portName="HelloWorldSoapBinding",
> serviceName="HelloWorld")
> @javax.xml.ws.ServiceMode(value = javax.xml.ws.Service.Mode.MESSAGE)
>
> Is there no other thing to do?
>
> thanks a lot,
> Fabian.
>