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

Amila Chinthaka Suriarachchi commented on AXIS2-2911:
-----------------------------------------------------

this is fixed by now. please check the ADB issue with the RC2 release.


> 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
>            Assignee: Deepal Jayasinghe
>         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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to