Thanks David. You were right. I added this line:
conn.addRequestProperty(content-type, text/xml)
and it works perfectly.
Thanks again.
GA
On Oct 23, 2009, at 7:36 PM, David Pollak wrote:
In order to trigger XML parsing, you have to set the Content-Type to
text/xml
On Fri, Oct 23,
I have printed Req in the log and it looks like the XML is really empty:
Req(List(), Map(), ParsePath(List(api, person),,true,false), ,
PutRequest, Empty)
This is how I send the XML:
def post(url:URL):String = {
val message =
person
userNameJohn/userName
In order to trigger XML parsing, you have to set the Content-Type to
text/xml
On Fri, Oct 23, 2009 at 10:30 AM, GA my_li...@me.com wrote:
I have printed Req in the log and it looks like the XML is really empty:
Req(List(), Map(), ParsePath(List(api, person),,true,false), ,
PutRequest,