axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John G. Norman (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2911) Request to REST endpoint returns org.apache.axis2.AxisFault: namespace mismatch
Date Fri, 06 Jul 2007 15:52:04 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John G. Norman updated AXIS2-2911:
----------------------------------

    Attachment: pojo.zip

This is the 1.1.1 samples/pojo, with the single alteration of the addition a default constructor
to AddressBookService so that the service has a bit of data before the REST endpoint is tested.

This works great on 1.1.1, but generates an exception when built and deployed with 1.2.

> Request to REST endpoint returns org.apache.axis2.AxisFault: namespace mismatch
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2911
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2911
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Java 1.4.2, Tomcat 5.0.28
>            Reporter: John G. Norman
>         Attachments: pojo.zip
>
>
> A REST service that works fine under 1.1.1 generates an exception under 1.2.
> To make this easy to spot, I tweaked the samples/pojo project. I simply added a constructor
to AddressBookService  to add an Entry to the addressbook, e.g.,
>   public AddressBookService() {
>     Entry entry = new Entry();
>     entry.setName("John");
>     entry.setStreet("1 Broadway");
>     entry.setCity("Cambridge");
>     entry.setState("MA");
>     entry.setPostalCode("02142");
>     addEntry(entry);
>   }
> Then I built and deployed as usual.
> Under 1.1.1, a request to http://localhost:8080/axis2/rest/AddressBookService/findEntry?param0=John
returns:
> <ns:findEntryResponse
> xmlns:ns="http://service.addressbook.sample/xsd"><ns:return><city
> xmlns="http://entry.addressbook.sample/xsd">Cambridge</city><name
> xmlns="http://entry.addressbook.sample/xsd">John</name><postalCode
> xmlns="http://entry.addressbook.sample/xsd">02142</postalCode><state
> xmlns="http://entry.addressbook.sample/xsd">MA</state><street
> xmlns="http://entry.addressbook.sample/xsd">1
> Broadway</street></ns:return></ns:findEntryResponse>
> Under 1.2 a request to the services endpoint (which in the default deploy handles everything)
http://localhost:8080/axis2/services/AddressBookService/findEntry?param0=John
> returns this in the log:
> Jul 6, 2007 11:10:26 AM
> 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(RPCMessageReceiver.java:98)
>        at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
>        at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:122)
>        at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:116)
>        at
> org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processURLRequest(AxisServlet.java:776)
>        at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:238)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> I will zip up and attach my modified samples/pojo

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message