xfire,jax-ws soap请求及响应记录

来源:互联网 发布:手机cpu超频软件 编辑:程序博客网 时间:2024/06/16 21:42

----------------------xfire soap response ------------------------

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <ns1:getWeatherByAreaCodeResponse xmlns:ns1="http://service.weather.ws.demo"> <ns1:out> <areaCode xmlns="http://bean.service.weather.ws.demo">0516</areaCode>
<cityName xmlns="http://bean.service.weather.ws.demo">寰愬窞</cityName> <date xmlns="http://bean.service.weather.ws.demo">2010-08-18T00:00:00+08:00</date> <maxCent xmlns="http://bean.service.weather.ws.demo">35</maxCent> <minCent xmlns="http://bean.service.weather.ws.demo">25</minCent> </ns1:out> </ns1:getWeatherByAreaCodeResponse> </soap:Body> </soap:Envelope>

------------ jax-ws soap request --------------------------

POST /jaxws_demo/WeatherServicePort HTTP/1.1 Accept: text/xml, multipart/related Content-Type: text/xml; charset=utf-8 SOAPAction: "" User-Agent: JAX-WS RI 2.2.1-b01- Host: localhost:8088 Connection: keep-alive Content-Length: 269 <?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body><ns2:getWeatherByAreaCode xmlns:ns2="http://service.weather.ws.demo/">
<arg0>0516</arg0><arg1>2010-08-10</arg1></ns2:getWeatherByAreaCode>
</S:Body></S:Envelope>

------------------------ jax-ws soap response ---------------------

HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Wed, 18 Aug 2010 09:55:13 GMT <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body> <ns2:getWeatherByAreaCodeResponse xmlns:ns2="http://service.weather.ws.demo/">
<return><areaCode>0516</areaCode><cityName>寰愬窞</cityName><date>2010-08-10T00:00:00+08:00</date>
<maxCent>35</maxCent><minCent>25</minCent>
</return></ns2:getWeatherByAreaCodeResponse></S:Body></S:Envelope>