萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> asp編程 >> asp怎麼訪問java的短信接口

asp怎麼訪問java的短信接口

 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="

copyright © 萬盛學電腦網 all rights reserved