garbagetown/playdocja — pull request #578 by wm3 (2014-03-12 16:34:33+00:00)
Title: manual/javaGuide/main/xml/JavaXmlRequests.md

- https://github.com/garbagetown/playdocja/blob/2.2.0/documentation/2.2.0/manual/javaGuide/main/xml/JavaXmlRequests.md
```
--- /Users/garbagetown/Desktop/2.1.5/manual/javaGuide/main/xml/JavaXmlRequests.md	2013-09-19 22:53:02.000000000 +0900
+++ /Users/garbagetown/Desktop/2.2.0/manual/javaGuide/main/xml/JavaXmlRequests.md	2013-09-19 10:11:22.000000000 +0900
@@ -2,7 +2,7 @@

## Handling an XML request

-An XML request is an HTTP request using a valid XML payload as request body. It must specify the `text/xml` MIME type in its `Content-Type` header.
+An XML request is an HTTP request using a valid XML payload as request body. It must specify the `application/xml` or `text/xml` MIME type in its `Content-Type` header.

By default, an action uses an **any content** body parser, which you can use to retrieve the body as XML (actually as a `org.w3c.Document`):

@@ -47,7 +47,7 @@

'''
curl
- --header "Content-type: text/xml"
+ --header "Content-type: application/xml"
--request POST
--data 'Guillaume'
http://localhost:9000/sayHello
@@ -88,10 +88,10 @@

'''
HTTP/1.1 200 OK
-Content-Type: text/xml; charset=utf-8
+Content-Type: application/xml; charset=utf-8
Content-Length: 46

Hello Guillaume
'''

-> **Next:** [[Handling file upload | JavaFileUpload]]
\ No newline at end of file
+> **Next:** [[Handling file upload | JavaFileUpload]]

```