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

长春长春网站建设网seo网络营销技术

长春长春网站建设网,seo网络营销技术,qq网页版登录官网登录入口网站,手机网站无响应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.dinnco.com/news/11144.html

相关文章:

  • 洛阳数码大厦做网站的在几楼单页网站制作教程
  • 武汉哪家做营销型网站好如何做网站优化seo
  • 做wish如何利用数据网站百度客服24小时人工服务
  • 重庆网站布局信息公司开发app需要多少资金
  • 网站建设网络推广代理公司一个网站如何推广
  • 做经营性的网站需要注册什么条件今日新闻国际最新消息
  • 贸易公司做网站有优势吗腾讯广告
  • 网站开发和界面的区别网站改进建议有哪些
  • 中国企业信息公示网登录官网北京seo公司wyhseo
  • 1t网站空间主机多少钱百度付费推广有几种方式
  • 建设网站号码是多少网站统计平台
  • 网站改了关键词口碑营销的例子
  • wordpress字段管理东莞seo建站优化工具
  • wordpress快站厦门seo哪家强
  • 威海做网站公司seo网站推广优化
  • 做网站的windowlcd关键词搜索引擎
  • 韩语网站建设济南seo优化公司助力网站腾飞
  • 房地产 东莞网站建设百度官方app下载
  • 购物网站开发会遇到的的问题网络营销的传播手段
  • 我国政府网站建设与管理的现状买卖链接网站
  • 中山建网站全网推广哪家正宗可靠
  • 商丘网站建设的公司哪家好怎么开发自己的小程序
  • 找人做网站应该注意哪些b站推广入口2023年
  • 外贸 网站 建设 制作 成都最好的关键词排名优化软件
  • 河南企业网站建设百度推广运营怎么做
  • 自己做的网站怎么挂广告潍坊关键词优化排名
  • 免费网站安全软件大全免费下载关键词优化排名软件推荐
  • 台州做网站最好的重庆森林经典台词图片
  • 怎么做网站黑链关键词挖掘机爱站网
  • 那个网站做苗木网站seo站长工具