����Linux�Ż�
Linux����

Linux��ʹ��ab����webservice����

����ʱ��:2015-11-10 10:28:06��Դ:linux��վ����:TechRunner

׼������

1����װapache httpd server
2��׼���ô����Ա��ģ�����SoupUI�ϵ�ͨ��Ŀͻ��˷��ͱ��ģ�����Ϊt.xml��


ʹ��abģ�����webservice

ab���

ab -c 10 -t 30 -p t.xml  -H 'Content-Type: text/xml;charset=UTF-8' -H 'SOAPAction: ""' +web����ӿڵ�ַ

���У�-c ��ʾ��������-t ��ʾʱ�䣬-p t.xml, t.xmlΪ��


����ʾ����

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.***.com">
<soapenv:Header/>
<soapenv:Body>
<web:callProcedure soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<spxml xsi:type="xsd:string" xs:type="type:string" xmlns:xs="http://www.w3.org/2000/XMLSchema-instance">
<![CDATA[<?xml version="1.0" encoding="UTF-8"?><root>**�ӿڽ�������**</root>]]>
</spxml>
</web:callProcedure>
</soapenv:Body>
</soapenv:Envelope>


��Ӧ�ó�ΪWeb�����ߵ�5�����ɣ�//m.ajphoenix.com/linux/15223.html

Linux�°�װHttpd Web��������//m.ajphoenix.com/linux/14831.html

Web������������HTTP��ͷ�ͻ�����ԣ�//m.ajphoenix.com/linux/12213.html