当前位置: 首页 > news >正文

宁波制作网站哪个好网站模板间距

宁波制作网站哪个好,网站模板间距,wordpress资源网,wordpress 优化变快soap协议的定义 soap即简单对象访问协议,通俗地说,它是使用http协议来发送XML格式的数据。soaphttp xml。 由于它基于http协议,所以它是能跨防火墙的。 soap协议的格式 必须有的Envelope元素,此元素将整个XML文档标识为一条soa…

soap协议的定义

    soap即简单对象访问协议,通俗地说,它是使用http协议来发送XML格式的数据。soap=http + xml。

由于它基于http协议,所以它是能跨防火墙的。

soap协议的格式

    必须有的Envelope元素,此元素将整个XML文档标识为一条soap消息

    可选的Header元素,包含头部信息

    必须有的Body元素,包含了请求或响应的信息

    可选的Fault元素,与错误有关的信息

soap协议监控

    通过代理的方式,可以监控客户端和服务端的交换。

监控代理的配置

    在eclipse中的配置如下所示,

分别启动服务端,客户端即可看到监控情况,下面是我本机的监控

soap请求:

GET /weather?wsdl HTTP/1.1
User-Agent: Java/1.8.0_131
Host: 127.0.0.1:333
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
POST /weather HTTP/1.1
Accept: text/xml, multipart/related
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://ws.gaoyi.smu/WeatherInterfaceImpl/queryWeatherRequest"
User-Agent: JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e
Host: 127.0.0.1:333
Connection: keep-alive
Content-Length: 205
<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:queryWeather xmlns:ns2="http://ws.gaoyi.smu/"><arg0>北京</arg0></ns2:queryWeather></S:Body></S:Envelope>

soap响应:

HTTP/1.1 200 OK
Date: Sun, 08 Oct 2017 08:57:09 GMT
Transfer-encoding: chunked
Content-type: text/xml;charset=utf-8

89f
<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e. --><!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.gaoyi.smu/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws.gaoyi.smu/" name="WeatherInterfaceImplService">
<types>
<xsd:schema>
<xsd:import namespace="http://ws.gaoyi.smu/" schemaLocation="http://127.0.0.1:333/weather?xsd=1"></xsd:import>
</xsd:schema>
</types>
<message name="queryWeather">
<part name="parameters" element="tns:queryWeather"></part>
</message>
<message name="queryWeatherResponse">
<part name="parameters" element="tns:queryWeatherResponse"></part>
</message>
<portType name="WeatherInterfaceImpl">
<operation name="queryWeather">
<input wsam:Action="http://ws.gaoyi.smu/WeatherInterfaceImpl/queryWeatherRequest" message="tns:queryWeather"></input>
<output wsam:Action="http://ws.gaoyi.smu/WeatherInterfaceImpl/queryWeatherResponse" message="tns:queryWeatherResponse"></output>
</operation>
</portType>
<binding name="WeatherInterfaceImplPortBinding" type="tns:WeatherInterfaceImpl">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
<operation name="queryWeather">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
</operation>
</binding>
<service name="WeatherInterfaceImplService">
<port name="WeatherInterfaceImplPort" binding="tns:WeatherInterfaceImplPortBinding">
<soap:address location="http://127.0.0.1:333/weather"></soap:address>
</port>
</service>
</definitions>
0

HTTP/1.1 200 OK
Date: Sun, 08 Oct 2017 08:57:09 GMT
Transfer-encoding: chunked
Content-type: text/xml; charset=utf-8

de
<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:queryWeatherResponse xmlns:ns2="http://ws.gaoyi.smu/"><return>晴</return></ns2:queryWeatherResponse></S:Body></S:Envelope>
0

可以看到客户端请求服务端过程中,一共发出了两次请求,第一次是请求wsdl。第二次才是真正的数据请求~


1.1   SOAP1.1SOAP1.2区别

l  相同点:

Ø  请求发送方式相同:都是使用POST

Ø  协议内容相同:都有EnvelopeBody标签

l  不同点:

Ø  数据格式不同:content-type不同

n  SOAP1.1text/xml;charset=utf-8

n  SOAP1.2application/soap+xml;charset=utf-8

Ø     命名空间不同:

n  SOAP1.1http://schemas.xmlsoap.org/soap/envelope/

n  SOAP1.2http://www.w3.org/2003/05/soap-envelope


http://www.yayakq.cn/news/218493/

相关文章:

  • 北京acc网站建设青岛易龙网站建设
  • 郑州建设网站推广公司wordpress 输出文章
  • 成都建设网站哪家好北京优化词网站
  • 新手建网站需要怎么做呢南京seo排名收费
  • 医院网站建设的宗旨如何选择网站开发
  • 做一个简单网站wordpress 删除 下载
  • c 网站做微信支付功能自己电脑做服务器发布网站
  • 温州网站升级哪个网站教人做美食
  • 南昌市 做网站的公司旅游时政热点新闻
  • 苏州手机网站seo如何提高百度搜索排名
  • 熊掌号网站的基础建设费用网站系统名称是什么
  • 常用网站开发软件6五金外贸网站
  • 北京建设网站公司网站北京市建设投标网站
  • 35互联网站建设怎么样php企业网站开发教程
  • 网站建设维护的相关基础知识网站根目录文件
  • 网站开发收费网站建设gon
  • 网站配置到iis后读不了数据网站建设费用价格明细表
  • 北京市住房与城乡建设网站能上国外网站的dns
  • 成都教育网站建设公司价格手工制作书签
  • 天津低价做网站seo网站优化系统
  • 企业网站网络营销华为官方手机商城
  • 有赞小程序开发报价云优化
  • 如何给公司网站做优化h5网站制作接单
  • 企业网站 php 下载利用已有网站 制作
  • 网站建设论文结束语wordpress仪表盘乱码
  • 珠海网站制作专业wordpress菜单的功能
  • 网站制作厦门网站建设 生产
  • 滨州网站seowordpress wp_get_archives
  • 广州网站建设app开发云南今天刚刚发生的新闻
  • 购买的网站怎么看网站空间大小衡水网站制作公司