Re: Axis exception vending complex types service
Re: Axis exception vending complex types service
- Subject: Re: Axis exception vending complex types service
- From: Francis Labrie <email@hidden>
- Date: Wed, 5 Oct 2005 11:14:58 -0400
Hi,
Allen Cronce wrote:
[...]
The problem now is that I get the following error on the server side
when posting a request from my test client to the test server:
[...]
The AXIS engine could not find a target service to invoke!
targetService is TestService2
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:308)
at
com.webobjects.appserver._private.WOWebService.performActionNamed(WOWeb
Service.java:372)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest
(WOActionRequestHandler.java:240)
at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(
WOActionRequestHandler.java:142)
at
com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequ
est(WOWebServiceRequestHandler.java:88)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.ja
va:1306)
[...]
The error message and the stack trace are clear enough...
Note that I'm not calling WOWebServiceRegistrar.registerWebService in
my server application because I have my own wsdl and complex types. So
I think it doesn't make sense for me to expose methods of a class and
have WO generate the wsdl for me, like the Calculator sample. Instead,
my WSDL2JavaWO-generated helper class is calling a series of
WOWebServiceRegistrar.registerFactoriesForClassWithQName to register
the class serializers. My wsdd files are stock as generated when I
created my new server and client applications under WOLips.
That's the problem: if you want to use WebObjects own WebService
request handler, uou should then register your methods and your
datatypes using WOWebServiceRegistrar.
I've looked at the SOAP coming in by overriding dispatchRequest and it
looks OK. So my guess is that I'm missing some sort of glue between WO
and Axis, perhaps because I'm not calling
WOWebServiceRegistrar.registerWebService. But as I indicated, there
doesn't seem to be an appropriate service registration method to call
in my case.
Any recommendations on where to go from here would be appreciated.
Create your own dispatch request and Axis service stack. Or register
your methods and datatypes with WOWebServiceRegistrar.
--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden