zoukankan      html  css  js  c++  java
  • WebService的简单应用

     具体看项目源文件:包含: ip地址查询, QQ在线状态查询,和自定义的MD5 破解和加密(呵呵有形无势...)

              http://pan.baidu.com/s/1bn09WQj

    SOAP 1.1

    
    

    The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

    
    
    POST /MD5Crack.asmx HTTP/1.1
    Host: localhost
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/MD5Encrypt"
    
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <MD5Encrypt xmlns="http://tempuri.org/">
          <plainText>string</plainText>
        </MD5Encrypt>
      </soap:Body>
    </soap:Envelope>
    
    
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <MD5EncryptResponse xmlns="http://tempuri.org/">
          <MD5EncryptResult>string</MD5EncryptResult>
        </MD5EncryptResponse>
      </soap:Body>
    </soap:Envelope>
    
    

    SOAP 1.2

    
    

    The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

    
    
    POST /MD5Crack.asmx HTTP/1.1
    Host: localhost
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length
    
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
        <MD5Encrypt xmlns="http://tempuri.org/">
          <plainText>string</plainText>
        </MD5Encrypt>
      </soap12:Body>
    </soap12:Envelope>
    
    
    HTTP/1.1 200 OK
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length
    
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
        <MD5EncryptResponse xmlns="http://tempuri.org/">
          <MD5EncryptResult>string</MD5EncryptResult>
        </MD5EncryptResponse>
      </soap12:Body>
    </soap12:Envelope>
    
    

    HTTP POST

    
    

    The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

    
    
    POST /MD5Crack.asmx/MD5Encrypt HTTP/1.1
    Host: localhost
    Content-Type: application/x-www-form-urlencoded
    Content-Length: length
    
    plainText=string
    
    
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    
    <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="http://tempuri.org/">string</string>
     
  • 相关阅读:
    《Docker技术入门与实践》Docker入门4-使用Dockerfile创建镜像
    《Docker技术入门与实践》Docker入门3-网络基础配置
    《Docker技术入门与实践》Docker入门2-数据管理
    Git管理多个SSH密钥,Git多帐号配置
    《Docker技术入门与实践》Docker入门
    java获取汉字笔画数
    NSBundle、UIImageView、uibutton
    动画帧的使用
    结构体的转换
    IOS字符串的处理例子
  • 原文地址:https://www.cnblogs.com/wjshan0808/p/3753851.html
Copyright © 2011-2022 走看看