Making a http connection to send xml data

Possible Duplicate:
Sending HTTP POST Request In Java
Http POST in BlackBerry

I am trying to make a HTTP connection where i have to post some data to server the data that i have to send is a xml of the form as below

<userdata>
  <emailId>
  <![CDATA[xyz@gmail.com]]>
  </emailId>
  <dateTimezones>
    <dateInfo>
      <date>MAY 30,2012</date>
      <timezone>Asia/Kolkatta</timezone>
    </dateInfo>
    <dateInfo>
      <date>MAY 31,2012</date>
      <timezone>GMT</timezone>
    </dateInfo>
  </dateTimezones>
</userdata>

I am not aware of to send this data to server in java,i have never made a HTTP connection,i have searched but i did not got/understood to send this to server and receive the same data from server back in response.

Please explain this with an example.Here the client is blackberry device.The app has to send the data


如果它是您正在寻找的客户端方法,请尝试在Google上搜索HttpClient。

链接地址: http://www.djcxy.com/p/45834.html

上一篇: 修改POST标题

下一篇: 建立一个http连接来发送xml数据