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


你可能感兴趣的:(curl,调用webservice)