当前位置: 技术问答>linux和unix
如何在SCO下采用C编程调用WEBSERVICE服务(SOAP)
来源: 互联网 发布时间:2015-07-19
本文导语: 下面是一个 SOAP 请求示例: POST /SingleMessageSender.asmx HTTP/1.1 Host: http://202.105.177.115:9092 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "Sunways.SMS.Web.Service/SendOneMessage" string stri...
下面是一个 SOAP 请求示例:
POST /SingleMessageSender.asmx HTTP/1.1
Host: http://202.105.177.115:9092
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Sunways.SMS.Web.Service/SendOneMessage"
string
string
string
string
string
string
请教大侠们,如何用c来实现通讯,直接发80端口吗?
POST /SingleMessageSender.asmx HTTP/1.1
Host: http://202.105.177.115:9092
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Sunways.SMS.Web.Service/SendOneMessage"
string
string
string
string
string
string
请教大侠们,如何用c来实现通讯,直接发80端口吗?
|
是的,你已经猜到了,为什么不动手试试呢?用socket send这串字符到80端口就可以了