Topic
34 replies Latest Post - ‏2013-06-06T06:54:18Z by pcon
pcon
pcon
26447 Posts
ACCEPTED ANSWER

Pinned topic 502388

‏2013-04-14T06:36:35Z |
typical content.
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:35Z  in response to pcon
    {"siteID":"1","body":"Good article! I would love to see coverage of Spring MVC's HttpMessageConverter feature in a future article. This feature is the basis for the @ResponseBody\/@RequestBody elements of the programming model that are designed for implementing REST-based web services. The following Spring MVC showcase covers this comprehensively: http:\/\/blog.springsource.com\/2010\/07\/22\/spring-mvc-3-showcase\/.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/KeithDonald","commentID":"1280462400000","author":"KeithDonald","subject":"test","time":"30 July 2010"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:35Z  in response to pcon
    {"siteID":"1","body":"Thanks for the interest and your requests. We will post another further on article covers that. Please stay tuned.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Kendal","commentID":"1280721600000","author":"Kendal","subject":"test","time":"02 August 2010"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:35Z  in response to pcon
    {"siteID":"1","body":"Another further on article about using HttpMessageConverter is published.\nhttp:\/\/www.ibm.com\/developerworks\/web\/library\/wa-restful\/index.html","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Kendal","commentID":"1284264000000","author":"Kendal","subject":"test","time":"12 September 2010"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:35Z  in response to pcon
    {"siteID":"1","body":"Thanks for the article. It is what i am looking for..","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Vijay559","commentID":"1286510400000","author":"Vijay559","subject":"test","time":"08 October 2010"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:35Z  in response to pcon
    {"siteID":"1","body":"Good article! it was very helpful for me as a beginer in this domain","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/benothman","commentID":"1286683200000","author":"benothman","subject":"test","time":"10 October 2010"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:36Z  in response to pcon
    {"siteID":"1","body":"Hi,\n\n I have tried the above code with Spring 3.0.3 release.\n\nIt worked only if i had @PathVariable(\"id\")\nas\n @RequestMapping(method=RequestMethod.GET,value=\"\/employee\/!DWCURLYR!id!DWCURLYL!\")\n public ModelAndView getEmployee(@PathVariable(\"id\") String id)!DWCURLYR!\n \t Employee e = empDS.get(Long.parseLong(id));\n \t return new ModelAndView(XML_VIEW_NAME,\"object\",e);\n \t \n !DWCURLYL!\n\nWhy is it so?","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/fakeid","commentID":"1291525200000","author":"fakeid","subject":"test","time":"05 December 2010"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:36Z  in response to pcon
    {"siteID":"1","body":"Nice tutorial; I tried it and and seen working perfectly. You should also include JSON support.\nThanks,\nRaza","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/MRaza","commentID":"1295499600000","author":"MRaza","subject":"test","time":"20 January 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:36Z  in response to pcon
    {"siteID":"1","body":"I'm getting an exception \"Unable to locate object to be marshalled in model\" with Spring 3.0.5. Any hints? Nothing I came across through Google seemed related.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/seano","commentID":"1295499600000","author":"seano","subject":"test","time":"20 January 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:36Z  in response to pcon
    {"siteID":"1","body":"Answered my own question: the \"object\" model name needed to be added to the class via @XmlRootElement annotation. Probably something fundamental to something that I have no experience with.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/seano","commentID":"1295499600000","author":"seano","subject":"test","time":"20 January 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:36Z  in response to pcon
    {"siteID":"1","body":"HTTP Status 404 - \/Spring_web_example\/service\/employee\/3\n\nI am getting this Error when i am trying the Running the Code.\n\nneed your advice","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/fakeid","commentID":"1296450000000","author":"fakeid","subject":"test","time":"31 January 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:37Z  in response to pcon
    {"siteID":"1","body":"I have got almost the same set up. But I'm getting the following error whenevere i send a post request. Get requests work fine. Any help will be greatly appreciated. \n\nError 415: SRVE0295E: Error reported: 415","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/BDSU_Jayamohan_Ganesan","commentID":"1298350800000","author":"BDSU_Jayamohan_Ganesan","subject":"test","time":"22 February 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:37Z  in response to pcon
    {"siteID":"1","body":"As far as I writing the article, I use the following JARs, I recommend you try the same configure and see.\nThere is also a required_jars.txt in the package to tell you the version.\n\nIf you could provide the detailed exception information, it would help more.\n\ncom.springsource.com.sun.syndication-1.0.0.jar\ncom.springsource.org.codehaus.jackson.mapper-1.4.2.jar\ncom.springsource.org.codehaus.jackson-1.4.2.jar\ncom.springsource.org.jdom-1.1.0.jar\norg.springframework.asm-3.0.2.RELEASE.jar\norg.springframework.beans-3.0.2.RELEASE.jar\norg.springframework.context-3.0.2.RELEASE.jar\norg.springframework.core-3.0.2.RELEASE.jar\norg.springframework.expression-3.0.2.RELEASE.jar\norg.springframework.oxm-3.0.2.RELEASE.jar\norg.springframework.web.servlet-3.0.2.RELEASE.jar\norg.springframework.web-3.0.2.RELEASE.jar\ncommons-logging.jar\njaxb-api.jar\njaxb-impl.jar\njstl.jar\nlog4j-1.2.15.jar\nstandard.jar","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Kendal","commentID":"1298437200000","author":"Kendal","subject":"test","time":"23 February 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:37Z  in response to pcon
    {"siteID":"1","body":"Thanks for article.I am getting an error message like the following.How can I solve this problem ?\n\nSEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener\njava.lang.NoClassDefFoundError: javax\/servlet\/ServletContextListener","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/mke07","commentID":"1306555200000","author":"mke07","subject":"test","time":"28 May 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:37Z  in response to pcon
    {"siteID":"1","body":"mke07,\nIt looks like that you do not have a valid server runtime setup. javax\/servlet\/ServletContextListener should be in the standard j2ee servlet-api.jar. A correctly configured tomcat would save you.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Kendal","commentID":"1306814400000","author":"Kendal","subject":"test","time":"31 May 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:37Z  in response to pcon
    {"siteID":"1","body":"The POST XML is missing the !DWAMP!lt;\/email!DWAMP!gt; closing tag ; apart from this, the example worked like a charm. Thanks!","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/jaalex","commentID":"1310961600000","author":"jaalex","subject":"test","time":"18 July 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:37Z  in response to pcon
    {"siteID":"1","body":"Thanks for your comments. I have updated the code for both the POST and PUT code samples to include the !DWAMP!lt;\/email!DWAMP!gt; tag.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/jamaya","commentID":"1310961600000","author":"jamaya","subject":"test","time":"18 July 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"Thanks.\nIt worked. But I am getting only the xml output.\nIn internet explorer:\n!DWAMP!lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?!DWAMP!gt; \n<ul class=\"jive-dash\">\n<li>!DWAMP!lt;employees!DWAMP!gt;<\/li>\n<\/ul>\n !DWAMP!lt;count!DWAMP!gt;2!DWAMP!lt;\/count!DWAMP!gt; \n<ul class=\"jive-dash\">\n<li>!DWAMP!lt;employee!DWAMP!gt;<\/li>\n<\/ul>\n !DWAMP!lt;email!DWAMP!gt;wudongf@cn.ibm.com!DWAMP!lt;\/email!DWAMP!gt; \n !DWAMP!lt;id!DWAMP!gt;2!DWAMP!lt;\/id!DWAMP!gt; \n !DWAMP!lt;name!DWAMP!gt;Wu Dong Fei!DWAMP!lt;\/name!DWAMP!gt; \n !DWAMP!lt;\/employee!DWAMP!gt;\n<ul class=\"jive-dash\">\n<li>!DWAMP!lt;employee!DWAMP!gt;<\/li>\n<\/ul>\n !DWAMP!lt;email!DWAMP!gt;huangyim@cn.ibm.com!DWAMP!lt;\/email!DWAMP!gt; \n !DWAMP!lt;id!DWAMP!gt;1!DWAMP!lt;\/id!DWAMP!gt; \n !DWAMP!lt;name!DWAMP!gt;Huang Yi Ming!DWAMP!lt;\/name!DWAMP!gt; \n !DWAMP!lt;\/employee!DWAMP!gt;\n !DWAMP!lt;\/employees!DWAMP!gt;\n\nand using curl:\nC:\\DevTools\\curl!DWAMP!gt;curl -H\"Accept:text\/html\" http:\/\/localhost:8383\/RestWS\/service\/employees\n\n!DWAMP!lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?!DWAMP!gt;!DWAMP!lt;employees!DWAMP!gt;!DWAMP!lt;count!DWAMP!gt;2!DWAMP!lt;\/coun\nt!DWAMP!gt;!DWAMP!lt;employee!DWAMP!gt;!DWAMP!lt;email!DWAMP!gt;wudongf@cn.ibm.com!DWAMP!lt;\/email!DWAMP!gt;!DWAMP!lt;id!DWAMP!gt;2!DWAMP!lt;\/id!DWAMP!gt;!DWAMP!lt;name!DWAMP!gt;Wu Dong Fei!DWAMP!lt;\/name!DWAMP!gt;!DWAMP!lt;\n\/employee!DWAMP!gt;!DWAMP!lt;employee!DWAMP!gt;!DWAMP!lt;email!DWAMP!gt;huangyim@cn.ibm.com!DWAMP!lt;\/email!DWAMP!gt;!DWAMP!lt;id!DWAMP!gt;1!DWAMP!lt;\/id!DWAMP!gt;!DWAMP!lt;name!DWAMP!gt;Huang Yi M\ning!DWAMP!lt;\/name!DWAMP!gt;!DWAMP!lt;\/employee!DWAMP!gt;!DWAMP!lt;\/employees!DWAMP!gt;\n\nBothways I am getting the xml output only. Can you pls tell me as to where I am mixing. FYI, I am using the code downloaded. Its using ContentNegotiatingViewResolver.\n\npls help.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/NMurali","commentID":"1317268800000","author":"NMurali","subject":"test","time":"29 September 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"Sharing a Mavenised version at https:\/\/github.com\/timp21337\/spring3rest","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/TimP21337","commentID":"1319169600000","author":"TimP21337","subject":"test","time":"21 October 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"curl -HAccept:application\/xml http:\/\/localhost:8080\/rest\/service\/employee\/1 works as expected \ncurl -HAccept:applicatext\/html http:\/\/localhost:8080\/rest\/service\/employee\/1 gives empty collection (html table with headers) \n\nThere was a small error in rest-context.xml, the line http:\/\/www.springframework.org\/schema\/util needed to be added.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/TimP21337","commentID":"1319169600000","author":"TimP21337","subject":"test","time":"21 October 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"To make this work...\n!DWAMP!gt;!DWAMP!gt;curl -HAccept:text\/html http:\/\/localhost:8080\/spring3rest\/service\/employee\/1\n\nreplace your getEmployee by...\n\t@RequestMapping(method=RequestMethod.GET, value=\"\/employee\/!DWCURLYR!id!DWCURLYL!\")\n\tpublic ModelAndView getEmployee(@PathVariable String id) !DWCURLYR!\n\t\tEmployee e = employeeDS.get(Long.parseLong(id));\n\t\tList!DWAMP!lt;Employee!DWAMP!gt; employees = new ArrayList!DWAMP!lt;Employee!DWAMP!gt;();\n\t\temployees.add(e);\n\t\tEmployeeList list = new EmployeeList(employees);\n\n\t\treturn new ModelAndView(XML_VIEW_NAME, \"employees\", list);\n\t!DWCURLYL!","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/WadeYellow","commentID":"1320379200000","author":"WadeYellow","subject":"test","time":"04 November 2011"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"Thanks for this useful article. Can we generate WADL file with this ?. if yes then how ?","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/fakeid","commentID":"1326085200000","author":"fakeid","subject":"test","time":"09 January 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"This post apart from other one which describes JSON data interchange with Spring REST is wonderful.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/fakeid","commentID":"1326085200000","author":"fakeid","subject":"test","time":"09 January 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"@Anup Awasthi \nI'm not sure for this.. You may find the answer yourself :)","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Kendal","commentID":"1326085200000","author":"Kendal","subject":"test","time":"09 January 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:38Z  in response to pcon
    {"siteID":"1","body":"Hi,\nI get the below error when I try to run the application. \n\njavax.servlet.ServletException: Unable to locate object to be marshalled in model: !DWCURLYR!org.springframework.validation.BindingResult.employees=org.springframework.validation.BeanPropertyBindingResult: 0 errors, employees=dw.spring3.rest.bean.EmployeeList@7878529d!DWCURLYL!\n\torg.springframework.web.servlet.view.xml.MarshallingView.renderMergedOutputModel(MarshallingView.java:100)\n\torg.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)\n\torg.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)\n\torg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)\n\torg.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)\n\torg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)\n\torg.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)\n\tjavax.servlet.http.HttpServlet.service(Ht","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/sriramkasthuri","commentID":"1328072400000","author":"sriramkasthuri","subject":"test","time":"01 February 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"I downloaded the source code and deployed in tomcat 6. but in curl and browser, for url, http:\/\/localhost:8080\/rest\/service\/employees, i am getting HTTP Status 404 - \/rest\/service\/employees\n\nDeployment looks ok, no error in console, \n\nINFO: Initializing Spring FrameworkServlet 'rest'\nMar 29, 2012 12:14:06 PM org.apache.coyote.http11.Http11Protocol start\nINFO: Starting Coyote HTTP\/1.1 on http-8080\nMar 29, 2012 12:14:06 PM org.apache.jk.common.ChannelSocket init\nINFO: JK: ajp13 listening on \/0.0.0.0:8009\nMar 29, 2012 12:14:06 PM org.apache.jk.server.JkMain start\nINFO: Jk running ID=0 time=0\/27 config=null\nMar 29, 2012 12:14:06 PM org.apache.catalina.startup.Catalina start\nINFO: Server startup in 17335 ms\n\nPlease Help.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/fakeid","commentID":"1332907200000","author":"fakeid","subject":"test","time":"28 March 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"Excellent!! Still relevant and one of the best tutorials out there on the topic!","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/G52P_Neel_Sukhadia","commentID":"1333425600000","author":"G52P_Neel_Sukhadia","subject":"test","time":"03 April 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"Thanks for the tutorial. I was able to test it successfully. However, I think title for this tutorial is a misnomer. It should have been \"Build RESTful web apps using Spring 3\" or something like that since the main class in this tutorial is adorned with \"@Controller\" annotation instead of \"@WebService\" annotation. While a web app typically returns html back to the client, a web service returns data in xml or json notation. I was not able to figure out how to change this tutorial to act as web service though. \n\nThanks.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/fakeid","commentID":"1334203200000","author":"fakeid","subject":"test","time":"12 April 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"Hello Sir,\n\nIts a very nice Tutorials for beginners. I have learn a lot from this. But i have one question in my mind that I would like to ask you. Here We are getting data in the form of HTML in Browser. And by using curl we are getting data in XML on the Console. And I want to use my service in Mobile Application so what I need as a result is either XML\/JSON. So how can I get that? I also want to show data in the form of xml in browser also. So can you please guide me for that.\n\nOnce again thanks for such a nice tutorial.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Scorpion_Keyur","commentID":"1336363200000","author":"Scorpion_Keyur","subject":"test","time":"07 May 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"@Scorpion\nThis need you to implement the server side to support multiple representation: HTML\/XML\/JSON, etc.\nThen you can take two approach \n1. use a URL param to indicate what is the desired representation. eg. !DWAMP!#38;output=html, !DWAMP!#38;output=json, etc\n2. use request header 'Accept' to indicate what your client need (eg. Accept=application\/json), then in the server side parse this out and send output accordingly","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/Kendal","commentID":"1336363200000","author":"Kendal","subject":"test","time":"07 May 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"Nice tutorial. Which is the efficient way to create rest client APIs for Spring restful application? I have a requirement to create APIs for my spring restful application.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/AneeshSebastian","commentID":"1339041600000","author":"AneeshSebastian","subject":"test","time":"07 June 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:39Z  in response to pcon
    {"siteID":"1","body":"IG Group have recently open-sourced their RESTdoclet solution, which is specifically aimed at documenting services built using Spring\u2019s REST framework. We use this internally to automatically generate documentation for all our RESTful services and publish these via an internal web portal.\n \nMore info here: http:\/\/ig-group.github.com\/RESTdoclet\/\n \nRobert @ IG Group","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/RMorschel","commentID":"1343707200000","author":"RMorschel","subject":"test","time":"31 July 2012"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:40Z  in response to pcon
    {"siteID":"1","body":"Nice tutorial,\nbut as it is, retrieving employee by id is not working,\nrest-context.xml is wrong. will get \" org.xml.sax.SAXParseException: SchemaLocation: schemaLocation ...must have even number of URI's\" error msg.\n\nBut easy fix tho.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/gordonli","commentID":"1359090000000","author":"gordonli","subject":"test","time":"25 January 2013"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-04-14T06:36:40Z  in response to pcon
    {"siteID":"1","body":"also the use of POST vs PUT seems against the common practice , see http:\/\/vantsuyoshi.wordpress.com\/2012\/08\/10\/when-to-use-http-post-vs-put\/\ntho its not a big deal.","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/gordonli","commentID":"1359090000000","author":"gordonli","subject":"test","time":"25 January 2013"}
  • pcon
    pcon
    26447 Posts
    ACCEPTED ANSWER

    test

    ‏2013-06-06T06:54:18Z  in response to pcon
    {"siteID":"1","body":"Very Informative tutorial.\nI have a question- If I want to return an XML which has two beans (eg. XML contains Student as well as Library information). How can I do that?","contentID":"502388","profileurl":"https:\/\/www.ibm.com\/developerworks\/community\/profiles\/user\/RajlaxmiJoshi","commentID":"1370501651943","author":"RajlaxmiJoshi","subject":"test","time":"06 June 2013"}