You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "John G. Norman (JIRA)" <ji...@apache.org> on 2007/07/06 17:50:04 UTC
[jira] Created: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
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
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
[jira] Updated: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
Posted by "John G. Norman (JIRA)" <ji...@apache.org>.
[ 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
[jira] Assigned: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-2911:
----------------------------------------
Assignee: Deepal Jayasinghe
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-2911.
--------------------------------------
Resolution: Fixed
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
Posted by "John G. Norman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511130 ]
John G. Norman commented on AXIS2-2911:
---------------------------------------
Hi. I just checked against the snapshot at that URL, and it does seem to work in 1.3-RC1:
But awaiting Axis2 team to close this out . . .
Meanwhile: As long as I downloaded that snapshot, I figured I'd try all my code. I notice that when trying to build ADB stubs w/ 1.2 from a 1.3-RC1 service, I actually get a compilation error in my stub (a catch block needs to catch Throwable) . . . should I log this as a bug? Also, axis2-tools.jar seems to have disappeared from 1.3-RC1; or org.apache.axis2.tool.ant.AntCodegenTask has moved.
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511083 ]
Deepal Jayasinghe commented on AXIS2-2911:
------------------------------------------
could you please chcek with
http://people.apache.org/~deepal/axis2/1.3-RC1/
may be issue has fixed now.
Thanks
Deepal
> 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
[jira] Commented: (AXIS2-2911) Request to REST endpoint returns
org.apache.axis2.AxisFault: namespace mismatch
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org