我建议个大概吧,
在tomcat上装个Apache Axis作为Web Service组件,然后撰写你的
Web Service的实现业务类,接着发布wsdl,然后分析他调用远程
方法时的发送给服务器端的soap报文,
比如下面这个
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP-ENV:Body>
    <ns1:echoString xmlns:ns1="http://soapinterop.org/">
      <testParam xsi:type="xsd:string">Hello!</testParam>
    </ns1:echoString>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>echoString 便是一个方法名,testParam 是一个参数你所要做的就是用http协议写一个如这样格式的报文,接着把你的
实际参数值填充 <testParam xsi:type="xsd:string">Hello!</testParam>
里面,比如这个这个hello!,然后发给Apache Axis,
如果应答正确的话,Apache Axis会返回一个报文,比如下面
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
  <SOAP-ENV:Body>
   <ns1:echoStringResponse xmlns:ns1="http://soapinterop.org/"> 
    <result xsi:type="xsd:string">Hello!</result>
   </ns1:echoStringResponse> 
  </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>这样返回数值便放入 <result xsi:type="xsd:string">Hello!</result>里面去了,
你所要做的自然就是从result里面把结果取出来就可以了。c肯定有很多支持http协议操作的开发库,你可以自己找一下,
不过这个是个很简单的例子,而且不稳定,不过调用.net写的
Web Service就正常,因为.net里面当你发布一个Web Service
的时候,会自动生成刚才我写的那些报文格式的描述页面,实
在是方便,还有这只是针对简单类型参数的函数调用,复杂的
我就不了解了,而且没加密,没会话。