I just recently started using axis myself, and I ran into this problem as
well.

My problem was that the service name that I was using in the code did not
match exactly the service name in the deployment descriptor.
look at the server-config.wsdd file in the you're appserver's WEB-INF
directory.
look at the tag: <service name="..."> the part in the quotes must match
exactly what's used in the call.setOperation(QName) method.

My particular problem was that I was using the string "myServiceName"
instead of "urn:myServiceName" when constructing the QName.

Hope that helps,

James


Jitender Singh Singh wrote:

> Hi,
>         I am novice in field of axis.I have successfully deployed the
> service and calling its methods using JWS File Deployment.When I
> am trying to use custom Deployment using WSDD, it is throwing
> following error.
>
> Exception in thread "main" The AXIS engine could not find a target
> service to invoke!  targetService is null.
>
>         When i list the services using AdminClient,
> the required service is being shown as deployed.
> Could you please shed some light on the probable reasons for the
> problem ?
>
> Thanks & Regards,
> Jitender
> _________________________________________________________
> Click below to visit monsterindia.com and review jobs in India or
> Abroad
> http://monsterindia.rediff.com/jobs

Reply via email to