HI Sheo Sir,
Thanks for your response.
In continuation to my post i'm able to deserialize the code but still i'm getting the XML Attribute values as NULL, i tried some workaround to resolve it at my level kindly see the below code
Hi i'm getting the xml values as null kinldy help.
<pre lang="C#">public logistics GetGeneralInfo(int StoreId)
{
var storeInfoWebService = new UATStoreReportServiceReference.oraclemdb1SoapClient("oraclemdb1Soap");
var logisticsInfoFromService = storeInfoWebService.GetLogistics(StoreId.ToString());
XmlSerializer serializer = new XmlSerializer(typeof(logistics));
StringReader rdr = new StringReader(logisticsInfoFromService);
logistics resultingMessage = (logistics)serializer.Deserialize(rdr);
return resultingMessage;
}</pre>
This is my XML string coming in variable logisticsInfoFromService as
<b>
<results>
<response mode="all" value=""/>
<logistics>
<freight
rdc1="01 - HARVARD"
rdc2="01 - HARVARD"
freightrate="0 %"
offshoredelivery="Y"
stratcode="Y"
multipledelivery="N"
palletized="N"
totesshipped="0"
totesreturned="0"
toteslastdate="5/30/2001 12:00:00 AM"
containersshipped="0"
containersreturned="0"
containerslastdate="5/30/2001 12:00:00 AM"/>
<routes/>
</logistics>
</results></b>
I'm gettting the values for freightrate and OffshreDelivery as NULL
Join Hands Change lives
Thanks & Regards
Straight Edge Society
Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator