日期:2014-05-17  浏览次数:20882 次

c#如何根据这个要球写这个webservice呢?
这个接口要球用WEBservice方法,根据下面的WSDL这个方法要怎么入手写呢,哪个高手给整个DEMO啊?也没有个方法啥的,怎么光有参数啊
该接口采用Web Service方式。
4.1.5 接口内容
4.1.5.1 订购关系通知SP请求(OrderRelationUpdateNotifyReq)
参数名 类型 大小 描述
RecordSequenceID string 18 流水号, 
UserIdType integer 4 用户ID类型
1: MSISDN
2: PsedoCode
UserId string 36 用户手机号码或伪码
UserIdType填1 为手机号码
UserIdType填2 为伪码
ServiceType String 2 业务类型,见附录
SpId string 21 SP标识
ProductId string 21 产品标识(此为SP在PRM侧申请的SP_Productid)
UpdateType integer 4 更新操作的类型包括:
1:订购
2:退定
3:点播
4:定购关系变更(一般是修改有效期)(保留,暂不用)
5:改号
UpdateTime string 14 更新时间
UpdateDesc string 100 更新操作的详细描述
联通在信、彩信等定购、点播接入号,和CheckPrice请求中AccessNo字段一致;
对crm侧订购、退订由vac根据产品填写;对其他业务填空
LinkID string 20 事务关联ID,用于点播业务的临时定购关系关联,由平台产生。格式如下:
MMDDHHMMSS+10位随机序列号;
为空表示无效。
用户点播时使用。
Content string 140 内容,当UpdateType=5时,本字段填原用户手机号码或伪码,具体填写方式由UserIdType字段决定
EffectiveDate string 14 订购关系生效时间, 格式:yyyyMMddhhmmss
ExpireDate string 14 订购关系失效时间, 格式:yyyyMMddhhmmss
Time_Stamp string 10 时间戳由VAC生成,格式是: MMDDHHMMSS,月日时分秒。
EncodeStr string 32 采用32位的MD5加密串,以便SP鉴权定购关系来源的合法性, MD5 加密算法如下:
EncodeStr=UserId+共享密钥+ ProductId+ Time_Stamp
共享密钥由SP分配,时间戳由VAC设备生成,格式是:MMDDHHMMSS,月日时分秒。共享密钥的定义见BSS与VAC接口规范SP属性接口OrderKey
如果SP的OrderKey为空,VAC不加密

注:UpdateType=5时,表示用户改号后的订购关系迁移操作,sp将Content字段表示的用户的所有订购关系、绑定的附属信息均迁移到UserId字段用户。此时按照sp或业务信息中SPOrderUrl字段通知SP。
4.1.5.2 订购关系通知SP响应(OrderRelationUpdateNotifyRsp)
参数名 类型 字节大小 描述
RecordSequenceID string 18 流水号,与OrderRelationUpdateNotifyReq的流水号相同
ResultCode integer 4 结果识别码
0: 成功
1. 失败
当vac通知sp订购关系,但SP发现已经存在该订购关系时,SP返回VAC成功


XML code

<?xml version="1.0" encoding="UTF-8" ?> 
- <wsdl:definitions xmlns:tns3="http://rsp.sync.soap.bossagent.vac.unicom.com" xmlns:impl="http://soap.bossagent.vac.unicom.com" xmlns:intf="http://soap.bossagent.vac.unicom.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://req.sync.soap.bossagent.vac.unicom.com" xmlns:tns4="http://type.sync.soap.bossagent.vac.unicom.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://soap.bossagent.vac.unicom.com">
- <wsdl:types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://req.sync.soap.bossagent.vac.unicom.com">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
- <complexType name="ArrayOf_tns2_SubInfo">
- <sequence>
  <element maxOccurs="unbounded" minOccurs="1" name="item" type="tns2:SubInfo" /> 
  </sequence>
  </complexType>
- <complexType name="OrderRelationUpdateNotifyRequest">
- <sequence>
  <element name="recordSequenceId" nillable="true" type="soapenc:string" /> 
  <element name="subNotify" type="tns2:ArrayOf_tns2_SubInfo" /> 
  </sequence>
  </complexType>
- <complexType name="SubInfo">
- <sequence>
  <element name="userIdType" nillable="true" type="soapenc:int" /> 
  <element name="userId" nillable="true" type="soapenc:string" /> 
  <element name="serviceType" nillable="true" type="soapenc:string" /> 
  <element name="spId" nillable="true" type="soapenc:string" /> 
  &