是这样的,我现在要用JAVA来调用一个.net的webservice程序,我不知道怎么调用,我这里有.net的webservice
请知道的高手教我怎么写代码,我没有接触过这方面的东西,所以请帮我把代码都写出来,要能跑出来的,谢谢了啊,小弟感激不敬。
webservice代码如下:
Service1
Click here for a complete list of operations.SendAlarm2Test
The test form is only available for requests from the local machine. 
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.POST /AlarmService/MainService.asmx HTTP/1.1
Host: 10.25.116.242
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SendAlarm2"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendAlarm2 xmlns="http://tempuri.org/">
      <servicesystem_id>int</servicesystem_id>
      <report_time>string</report_time>
      <alarm_context>string</alarm_context>
      <post_flag>string</post_flag>
    </SendAlarm2>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendAlarm2Response xmlns="http://tempuri.org/">
      <SendAlarm2Result>boolean</SendAlarm2Result>
      <strOut>string</strOut>
    </SendAlarm2Response>
  </soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.POST /AlarmService/MainService.asmx HTTP/1.1
Host: 10.25.116.242
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendAlarm2 xmlns="http://tempuri.org/">
      <servicesystem_id>int</servicesystem_id>
      <report_time>string</report_time>
      <alarm_context>string</alarm_context>
      <post_flag>string</post_flag>
    </SendAlarm2>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendAlarm2Response xmlns="http://tempuri.org/">
      <SendAlarm2Result>boolean</SendAlarm2Result>
      <strOut>string</strOut>
    </SendAlarm2Response>
  </soap12:Body>
</soap12:Envelope>这个webservice是返回什么类型的结果我也不清楚,希望各位帮帮我,谢了