curl的用法


  • 調用webservice

1.請求報文內容

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:message xmlns:ns2="http://ws.zhao.com/">
            <operateType>0</operateType>
            <billType>2</billType>
            <erpCode>2013000001</erpCode>
            <status>0</status>
            <remarks>這只是測試的onlytest123</remarks>
        </ns2:message>
    </S:Body>
</S:Envelope>

2.請求webservice的wsdl地址:

http://127.0.0.1:8080/zhao-ws/export?wsdl

3.curl請求的完整命令【在xml文件的目錄執行】

curl -k --data-binary @java.xml -H "Content-Type:text/xml;charset=UTF-8"  http://127.0.0.1:8080/tcps-upc-ws/export?wsdl


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章