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

本文档详细记录了使用Xfire进行SOAP请求以及通过JAX-WS收到的SOAP响应过程,涵盖了从请求到响应的完整交互。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

----------------------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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值