急求助,第一个回答出来的50分全送!
<Request>
<streamingNo></streamingNo>
<opFlag></opFlag>
<productID></productID>
<serviceID></serviceID>
<SPID></SPID>
<chargingPolicyID></chargingPolicyID>
<status></status>
<statusEffectiveTime></statusEffectiveTime>
<chargingPolicyCN></chargingPolicyCN>
<chargingPolicyEN></chargingPolicyEN>
<corpOnly></corpOnly>
<releaseTime></releaseTime>
<subscriptionSyncFlag></subscriptionSyncFlag>
<needCnfm></needCnfm>
<packageFlag></packageFlag>
<portalUseFlag></portalUseFlag>
<sellFlag></sellFlag>
<productDesc></productDesc>
<CRBTProductType></CRBTProductType>
<accessNoAndfeatureStr>
<accessNo></accessNo>
<accessNoMatchMode></accessNoMatchMode>
<accessNoType></accessNoType>
<featureStr></featureStr>
<featureStrType></featureStrType>
<featureStrMatchMode></featureStrMatchMode>
</accessNoAndfeatureStr>
<RRID></RRID>
<productName></productName>
<trialFlag></trialFlag>
<subEffectMode></subEffectMode>
<PayType></PayType>
<isTrailInPeriod></isTrailInPeriod>
</Request>
这个是一个WS的字符串请求,我要怎么写才能将这个请求反序列化成类
我自己的代码:
XmlSerializer xs = new XmlSerializer(typeof(ProductInfoReqObject));
TextReader tr = new StringReader(ProductInfoReq.Request);
ProductInfoReqObject request = (ProductInfoReqObject)xs.Deserialize(tr);
会提示:XML 文档(1, 4)中有错误。 在 System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
在 System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
在 IsmpVnetEngine.ISMPVnetEngine.IsmpVnetEngine.IIsmpVnetEngineSoapBinding.vnetProductInfo(VnetProductInfoReq vnetProductInfoReq)
<streamingNo></streamingNo>
<opFlag></opFlag>
<productID></productID>
<serviceID></serviceID>
<SPID></SPID>
<chargingPolicyID></chargingPolicyID>
<status></status>
<statusEffectiveTime></statusEffectiveTime>
<chargingPolicyCN></chargingPolicyCN>
<chargingPolicyEN></chargingPolicyEN>
<corpOnly></corpOnly>
<releaseTime></releaseTime>
<subscriptionSyncFlag></subscriptionSyncFlag>
<needCnfm></needCnfm>
<packageFlag></packageFlag>
<portalUseFlag></portalUseFlag>
<sellFlag></sellFlag>
<productDesc></productDesc>
<CRBTProductType></CRBTProductType>
<accessNoAndfeatureStr>
<accessNo></accessNo>
<accessNoMatchMode></accessNoMatchMode>
<accessNoType></accessNoType>
<featureStr></featureStr>
<featureStrType></featureStrType>
<featureStrMatchMode></featureStrMatchMode>
</accessNoAndfeatureStr>
<RRID></RRID>
<productName></productName>
<trialFlag></trialFlag>
<subEffectMode></subEffectMode>
<PayType></PayType>
<isTrailInPeriod></isTrailInPeriod>
</Request>
这个是一个WS的字符串请求,我要怎么写才能将这个请求反序列化成类
我自己的代码:
XmlSerializer xs = new XmlSerializer(typeof(ProductInfoReqObject));
TextReader tr = new StringReader(ProductInfoReq.Request);
ProductInfoReqObject request = (ProductInfoReqObject)xs.Deserialize(tr);
会提示:XML 文档(1, 4)中有错误。 在 System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
在 System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
在 IsmpVnetEngine.ISMPVnetEngine.IsmpVnetEngine.IIsmpVnetEngineSoapBinding.vnetProductInfo(VnetProductInfoReq vnetProductInfoReq)
...全文
相关推荐
50个面试经典问题的回答
在IT行业的面试中,准备充分至关重要,而"50个面试经典问题的回答"这份资源恰好提供了这样的帮助。
50个面试常见问题技巧回答
50个常见面试技巧回答!标红的为常见中的重点!
蘑菇街HR问我有什么缺点,我的回答是我没有缺点!
这个时间是应届生应聘和员工跳槽的高峰期,你靠实力到了HR面试,却赢在了技术,输在了情商?
50个面试问题及常见回答
在准备面试时,了解并熟悉常见的面试问题及回答策略至关重要。以下是对提供的50个常见面试问题和答案的深入分析:1.
FPGA对50MHz分频出各种频率程序
标题中的"FPGA对50MHz分频出各种频率程序"是指使用现场可编程门阵列(FPGA)设计的一种数字电路,其主要功能是将输入的50MHz时钟信号进行分频,产生一系列不同频率的输出信号。


