axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John G. Norman" <>
Subject Does Axis2 1.2 REST work with POJO service?
Date Fri, 08 Jun 2007 18:22:21 GMT
Does the Axis2 1.2 REST (oops, I mean, POX over HTTP :-) work with a
POJO service?

The short version of my question is that I'm making a GET request like this:


But am getting an exception regarding a namespace mismatch

Here's what I did to samples/pojo:

1. Have the default constructor to the sample/pojo AddressBookService
add a couple of Entry. E.g.,

  public AddressBookService() {
    Entry e1 = new Entry();
    e1.setStreet("1 Broadway");
    Entry e2 = new Entry();
    e2.setStreet("1600 Penn");
    entries.put(e1.getName(), e1);
    entries.put(e2.getName(), e2);

2. Build and deploy.

3. Try and access the service as follows:


4. Get exception like this:

Jun 8, 2007 1:56:30 PM
org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
SEVERE: Exception occurred while trying to invoke service method findEntry
org.apache.axis2.AxisFault: namespace mismatch require
http://service.addressbook.sample/xsd found none
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(
    at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(
    at org.apache.axis2.engine.AxisEngine.receive(

5. I haven't added a JIRA -- seems like this one deserves a sanity
check. Anyone?

I found this in my own code where a service which worked via the 1.1.1
Axis2RestServlet worked; but is now seemingly broken in the same way
as the above.

6. As an aside, the documentation here:

is quite thin. The very last section shows a regular GET accessing
version information via -- that's
perfectly nice, but showing a few more examples, e.g., accessing a
service with parameters -- would be more realistic. To be sure, one
might write a Java REST client, but I would hazard a guess that many
users are clients are in scripting languages and they just want to hit
the URL and get the XML representation back.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message