高手请出,请教联通webservice短信接口调用问题!!!

下面是联通发的一些接口和规范:
1、ClientInterface.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://smsmonitor.asiainfo.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://smsmonitor.asiainfo.com">
<wsdl:types>
<xsd:schema targetNamespace="http://smsmonitor.asiainfo.com" elementFormDefault="qualified" attributeFormDefault="qualified">
<xsd:element name="report">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="messageID" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="mobileNumber" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="statusCode" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="timeStamp" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="reportResponse">
<xsd:complexType />
</xsd:element>
<xsd:element name="notification">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="mobileNumber" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="channelID" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="content" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="timeStamp" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="notificationResponse">
<xsd:complexType />
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="notificationRequest">
<wsdl:part element="tns:notification" name="parameters" />
</wsdl:message>
<wsdl:message name="reportResponse">
<wsdl:part element="tns:reportResponse" name="parameters" />
</wsdl:message>
<wsdl:message name="reportRequest">
<wsdl:part element="tns:report" name="parameters" />
</wsdl:message>
<wsdl:message name="notificationResponse">
<wsdl:part element="tns:notificationResponse" name="parameters" />
</wsdl:message>
<wsdl:portType name="SpSMServicePortType">
<wsdl:operation name="report">
<wsdl:input message="tns:reportRequest" name="reportRequest" />
<wsdl:output message="tns:reportResponse" name="reportResponse" />
</wsdl:operation>
<wsdl:operation name="notification">
<wsdl:input message="tns:notificationRequest" name="notificationRequest" />
<wsdl:output message="tns:notificationResponse" name="notificationResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SpSMServiceHttpBinding" type="tns:SpSMServicePortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="report">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="reportRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="reportResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="notification">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="notificationRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="notificationResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SpSMService">
<wsdl:port binding="tns:SpSMServiceHttpBinding" name="SpSMServiceHttpPort">
<wsdlsoap:address location="SERVICE_URL" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
2、ServerInterface.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://smsmonitor.asiainfo.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://smsmonitor.asiainfo.com">
<wsdl:types>
<xsd:schema targetNamespace="http://smsmonitor.asiainfo.com" elementFormDefault="qualified" attributeFormDefault="qualified">
<xsd:element name="send">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="taskID" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="mobileNumber" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="channelID" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="messageClass" type="xsd:int" minOccurs="1" maxOccurs="1" />
<xsd:element name="title" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="content" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="method" type="xsd:int" minOccurs="1" maxOccurs="1" />
<xsd:element name="scheduledTime" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="repeatTime" type="xsd:int" minOccurs="0" maxOccurs="1" />
<xsd:element name="repeatInterval" type="xsd:int" minOccurs="0" maxOccurs="1" />
<xsd:element name="repeatUnit" type="xsd:int" minOccurs="0" maxOccurs="1" />
<xsd:element name="permitedPeriod" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
<xsd:element name="priority" type="xsd:int" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="sendResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="sendResponse">
<wsdl:part element="tns:sendResponse" name="parameters" />
</wsdl:message>
<wsdl:message name="sendRequest">
<wsdl:part element="tns:send" name="parameters" />
</wsdl:message>
<wsdl:portType name="SMServicePortType">
<wsdl:operation name="send">
<wsdl:input message="tns:sendRequest" name="sendRequest" />
<wsdl:output message="tns:sendResponse" name="sendResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SMServiceHttpBinding" type="tns:SMServicePortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="send">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="sendRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="sendResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SMService">
<wsdl:port binding="tns:SMServiceHttpBinding" name="SMServiceHttpPort">
<wsdlsoap:address location="SERVICE_URL" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
3、send-sms.xml
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<!--m:abc xmlns:m="http://smsmonitor.asiainfo.com">aaaa</m:abc-->
<m:SpInfo m:SpID="wujl" xmlns:m="http://smsmonitor.asiainfo.com" m:SpPassword="wujl"/>
<m:TransactionInfo xmlns:m="http://smsmonitor.asiainfo.com" m:LinkID="06151437320481010001"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:send xmlns:m="http://smsmonitor.asiainfo.com">
<m:taskID>1230002</m:taskID>
<m:mobileNumber>86接收号码</m:mobileNumber>
<m:channelID>接入号</m:channelID>
<m:messageClass>1</m:messageClass>
<m:title></m:title>
<m:content>abc333123sdfdsfdsafldskkss</m:content>
<m:method>1</m:method>
<m:scheduledTime>2008-06-12 17:20:00</m:scheduledTime>
<m:repeatTime>0</m:repeatTime>
<m:repeatInterval>0</m:repeatInterval>
<m:repeatUnit>0</m:repeatUnit>
<m:permitedPeriod>String</m:permitedPeriod>
<m:priority>0</m:priority>
</m:send>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
5、SOAP Header信息
5.1.SP认证信息:
SP认证信息SOAP头部标签为:SpInfo,包含两个属性:
SpID,必选,类型:xsd:string,SP唯一标识吗,由短信监控平台分配SP使用;
SpPassword,必选,类型:xsd:string,SP口令,由短信监控平台分配SP使用。
5.2.会话信息:
会话信息SOAP头部标签为:TransactionInfo,可选。当且仅当该下行通道已授权进行主动推送时,可以忽略该项信息。
具有一个属性:
LinkID,必选,类型:xsd:string,短消息的上下文标识。由短信监控平台在处理上行短消息时分配给SP,SP在发送下行消息时须携带此标识。对于SP主动推送短消息的情况,该属性值可为空。
6、其他信息
业务名称:行业服务短信
接入号码:10655xxxxxxxxxx
接入方式: Webservice接口
网关地址:61.240.233.235
网关端口:20000
用户名:rixxxx
密码:cxxxxxx
验证SP的IP地址为:58.20.xx.xxx
--------------------------------
在网上搜索了好多天,都是那种傻瓜式的添加web引用的例子,而联通的好像是用C++ gSOAP开发的,那种添加web引用的方法行不通,我又试着用wsdl.exe把联通给的两个wsdl文件生成了对应的CS代码文件,直接实例化,调用里面的send()方法,行不通

还望各位程序大牛们不吝赐教,给小弟一些指导,谢谢,谢谢!!!!
相关推荐
Java实现发短信功能
企业发送短信的时候: 1.)运营商提供接口(Webservice、restful),运营商(移动、联通)帮你发(运营商,要求短信量非常大) 2.)买短信猫(设备,第三方公司开发),调用短信猫的接口。 开发应用两种方案: - 直接运营商方案 :直接谈,费用比较低,但要求量大!提供一个接口即可。 - 第三方运营商方案:很多(百度所有)–接口+硬件(短信猫-插sim卡)-大于 阿里大于官方示...
A股分钟数据涵盖个股、ETF、可转债及指数,提供日内高频行情 字段包含代码、名称、交易时间、开盘价、最高价、最低价、收盘价、成交量与成交额 数据按分钟粒度记录,可反映盘中价格变动与成交活跃度 ETF分
A股分钟数据涵盖个股、ETF、可转债及指数,提供日内高频行情。字段包含代码、名称、交易时间、开盘价、最高价、最低价、收盘价、成交量与成交额。数据按分钟粒度记录,可反映盘中价格变动与成交活跃度。ETF分钟数据覆盖主流交易型基金,可转债分钟数据包含转股溢价等特性指标,指数分钟数据涵盖宽基与行业指数点位及涨跌幅。所有数据均为复权前原始行情。 数据源:CMES金融数据库
技术转移平台怎么选?2026年权威测评:6家主流服务商横向对比.docx
技术转移平台怎么选?2026年权威测评:6家主流服务商横向对比
科技成果转化平台选型指南:2026年6大服务商技术经纪人团队能力对比.docx
科技成果转化平台选型指南:2026年6大服务商技术经纪人团队能力对比
双机并联逆变器自适应虚拟阻抗下垂控制(Droop)策略Simulink仿真模型
内容概要:本文围绕双机并联逆变器的自适应虚拟阻抗下垂控制(Droop)策略,构建了完整的Simulink仿真模型,旨在解决微电网中因线路阻抗差异导致的并联逆变器功率分配不均问题。通过引入自适应虚拟阻抗环节,动态调节逆变器输出阻抗,使其趋近于理想纯感性状态,从而有效提升有功与无功功率的分配精度。文章系统阐述了下垂控制的基本原理、虚拟阻抗的数学建模及其自适应调节机制,并提供了详细的系统控制框图与仿真参数设置。通过在不同负载条件和线路参数下的仿真实验,充分验证了该策略在提高功率均分精度、增强系统稳定性与鲁棒性方面的有效性。; 适合人群:具备电力电子、电力系统基础知识,从事微电网、分布式发电、逆变器控制等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:① 学习和掌握并联逆变器下垂控制的基本原理与实现方法;② 理解虚拟阻抗技术在功率精确分配中的作用;③ 掌握自适应控制策略的设计与Simulink仿真建模技巧,用于科研项目开发或工程方案验证。; 阅读建议:此资源以Simulink仿真为核心,建议读者在阅读时结合仿真模型文件,逐步理解各模块的功能与信号流向。应重点关注自适应虚拟阻抗环节的实现逻辑,并尝试修改线路参数或负载条件,观察仿真结果的变化,以加深对控制策略动态性能的理解。


Web Services
