您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> asp编程 >> 正文

asp怎么访问java的短信接口

作者:佚名    责任编辑:admin    更新时间:2022-06-22

 asp 如何访问java的短信接口

对方程序是java做的,提供了一个地址,还有用户名,密码 说往这里传参数就可以发短信,
我用ie直接访问此地址,看到的是一个xml文件
asp这边需要如何传递短信的一些参数还有用户名密码给对方呢
希望别贴教程,点拨一下最好,因为我从网上找了一些范例,但总是只返回状态200 ok 没有任何返回值,也没有发送成短信,所以不知道为什么了
用户名密码是用来识别是谁要调用此接口发短信
对方提供的url地址 http://10.13.255.196/SmsDownlinkReceive/services/DownlinkServiceImpl?wsdl
下面是用ie访问这个地址后的xml文件
<?xml version="1.0" encoding="UTF-8" ?> 
<wsdl:definitions targetNamespace="http://service.downlink.sms.mdcl.com" xmlns:apachesoap="

http://xml.apache.org/xml-soap" xmlns:impl="http://service.downlink.sms.mdcl.com" xmlns:intf="http://service.downlink.sms

.mdcl.com" xmlns:tns1="http:

//exception.downlink.sms.mdcl.com" xmlns:wsdl

="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xml

ns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- 
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

  --> 
- <wsdl:types>
<schema elementFormDef

ault="qualified" targetNamespace="http://service.downlink.sms.mdcl.com" xmlns="http

://www.w3.org/2001/XMLSchema">
  <import namespace="http://exception.downlink.sms.mdcl.com" /> 
<element name="getSmsStateById">
<complexType>
<sequence>
  <element name="smsId" type="xsd:string" /> 
  </sequence>
  </complexType>
  </element>
<element name="getSmsStateByIdResponse">
<complexType>
<sequence>
  <element name="getSmsStateByIdReturn" type="xsd:string" /> 
  </sequence>
  </complexType>
  </element>
  <element name="fault" type="tns1:SmsException" /> 
<element name="sendSms">
<complexType>
<sequence>
  <element name="userName" type="xsd:string" /> 
  <element name="password" type="xsd:string" /> 
  <element name="importance" type="xsd:int" /> 
  <element name="mobile" type="xsd:string" /> 
  <element name="smsBody" type="xsd:string" /> 
  <element name="allowStartTime" type="xsd:int" /> 
  <element name="allowEndTime" type="xsd:int" /> 
  <element name="deadLineTime" type="xsd:dateTime" /> 
  <element name="appointTime" type="xsd:dateTime" /> 
  <element name="smsType" type="