I'm new here so forgive my ignorance for a moment. I have followed the
Axis2 pojo examples and have created and deployed my own service and
client (RPCClient). For simple things like getting and setting
properties on a pretty dumb little pojo, things seem ok, but I'm having
issues now that I'm trying to implement axis2 into one of my webapps.
In summary, my service creates an instance of a class called History
that goes to the db and gets some data,the puts that data in instances
of a class called HistoryItem which get put into a List. The service
class method List getHistory() calls history.getHistory() to do the
work and returns the List of HistoryItem objects. This all works fine up
to the point the list is about to be returned. I'm getting an error when
I run the client that says "org.apache.axis2.AxisFault: Mapping qname
not fond for the package: com.app.csp.alerthistorysvc.beans"
Q 1. How do I define a custom type mapping, and do I need to do this?
The AlertHistory object is just a plain old data object with strings and
gettters/setters.
Q 2. Do I have a problem because I'm defining my return types properly?
See example:
QName opGetHistory =
new QName("http://ws.alerthistorysvc.cps.app.com/xsd", "getHistory");
Object[] opGetHistoryArgs = new Object[] { };
Class[] returnTypes = new Class[] { List.class }; // should this be
List.class,HistoryItem.class ?
Object[] response =
serviceClient.invokeBlocking(opGetHistory,opGetHistoryArgs,
returnTypes); // exception happens here.
Object result = response[0];
Other calls to the service, before this one, work without a hitch.
Any ideas?
Thanks!
B
_____________________________________________________
You can't wait for inspiration. You have to go after it with a club.
Jack London <http://www.quotationspage.com/quotes/Jack_London/>
-----------------------------------------
The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.