HttpClient之main函数请求(xml的发送与接收)
一,项目结构 二,pom文件 <? xml version= "1.0" encoding= "UTF-8" ?> <project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi :schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > <modelVersion> 4.0.0 </modelVersion> <groupId> com.huawei </groupId> <artifactId> httpclient_tool </artifactId> <version> 1.0-SNAPSHOT </version> <name> httpclient_tool </name> <!-- FIXME change it to the project's website --> <url> http://www.example.com </url> <properties> <project.build.sourceEncoding> UTF-8 </project.build