62,046
社区成员
发帖
与我相关
我的任务
分享
/// <summary>
/// IvrSpEngine 的摘要说明
/// </summary>
[WebService(Namespace = "http://www.suntektech.com")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[SoapDocumentService(RoutingStyle = SoapServiceRoutingStyle.RequestElement)]//防止java调用时出现无法识别 soapAction的问题
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
// [System.Web.Script.Services.ScriptService]
public class IvrSpEngine : System.Web.Services.WebService
{
/// <summary>
/// 用户订购关系同步(方向:IVR==>SP)
/// </summary>
/// <returns></returns>
[WebMethod(Description = "用户订购关系同步")]
//[SoapRpcMethod(Use = SoapBindingUse.Literal, Action = "", RequestNamespace = "http://www.suntektech.com", ResponseNamespace = "http://www.suntektech.com")]
public SyncSPUserResult RefreshUserOrder(UserOrderModel userorder)
{
Maticsoft.Model.IVR_UserOrder model = new Maticsoft.Model.IVR_UserOrder();
model.ServiceID = userorder.serviceID;
model.CommandID = userorder.commandID;
model.SequenceNo = userorder.sequenceNo;
model.SubMDN = userorder.subMDN;
model.USERNAME = userorder.USERNAME;
model.PASSWORD = userorder.PASSWORD;
model.STARTTIME = userorder.STARTTIME;
model.VALIDTIME = userorder.VALIDTIME;
model.FACTORY = userorder.FACTORY;
model.PACKAGE = userorder.PACKAGE;
model.PPFlag = userorder.PPFlag;
model.OCS = userorder.OCS;
model.ORDNO = userorder.ORDNO;
model.RESERVED = userorder.RESERVED;
Maticsoft.BLL.IVR_UserOrder bll = new Maticsoft.BLL.IVR_UserOrder();
bll.Add(model);
SyncSPUserResult re = new SyncSPUserResult();
int commandid = int.Parse(userorder.commandID) + 5;
re.commandID = commandid.ToString();
re.sequenceNo = userorder.sequenceNo;
re.result = "0";
re.resultContent = "成功";
/*0 成功
2000 用户容量已满
2001 用户MDN号码已存在
2002 用户MIN号码已存在
2003 系统黑名单用户
2004 重复订购
2005 用户不存在
2006 用户号码非法
2007 时间戳无效
2008 操作员非法
2009 参数错误
2010 数据库操作错误
2011 正在执行升位
2012 写受理日志错误
2013 语言属性错误(远端接口)
2014 业务代码不存在
2015 SP黑名单
2016 SP红名单
2017 CRM中无此用户
2018 CRM中该用户状态不正常
2019 未登记的SP或SPID非法
2020 SP红名单或SP黑名单已存在
2023 余额不足
3003 用户数据库断开
3006 其他错误
*/
return re;
}
}
2.1.2.4.1. 请求消息格式:
<?xmlversion="1.0"encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<RefreshUserOrderRequest>
<ServiceID>16885885</ServiceID>
<CommandID>10000</CommandID>
<SequenceNo>2008111014203900001</SequenceNo>
<SubMDN>09518552171</SubMDN>
<USERNAME>张三</USERNAME>
<PASSWORD>123456</PASSWORD>
<STARTTIME>2009-09-01 11:20:50</STARTTIME>
<VALIDTIME></VALIDTIME>
<FACTORY>4</FACTORY>
<PACKAGE>0</PACKAGE>
<PPFlag>0</PPFlag>
<OCS></OCS>
<ORDNO></ORDNO>
<RESERVED></RESERVED>
</RefreshUserOrderRequest>
</soap:Body>
</soap:Envelope>
和我抓包工具收到的消息格式都不一样,和他们沟通过后说那就按你抓到的消息格式开发。。。。[/quote]
呵呵,这种情况可以或者说应该用非技术手段来搞,跟他们说你们有需求变更,加钱加时间2.1.2.4.1. 请求消息格式:
<?xmlversion="1.0"encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<RefreshUserOrderRequest>
<ServiceID>16885885</ServiceID>
<CommandID>10000</CommandID>
<SequenceNo>2008111014203900001</SequenceNo>
<SubMDN>09518552171</SubMDN>
<USERNAME>张三</USERNAME>
<PASSWORD>123456</PASSWORD>
<STARTTIME>2009-09-01 11:20:50</STARTTIME>
<VALIDTIME></VALIDTIME>
<FACTORY>4</FACTORY>
<PACKAGE>0</PACKAGE>
<PPFlag>0</PPFlag>
<OCS></OCS>
<ORDNO></ORDNO>
<RESERVED></RESERVED>
</RefreshUserOrderRequest>
</soap:Body>
</soap:Envelope>
和我抓包工具收到的消息格式都不一样,和他们沟通过后说那就按你抓到的消息格式开发。。。。