Hi,
I am new to .Net. Actually I need to pass an XML string to a webservice.Belo w is the way how I assign the XML to a variable strXmlReportReq uest1.
strXmlReportReq uest1 = "<PARAMETERS><R eportPath>\\\\% COMPUTERNAME%\\ ezsb\\PMS\\</ReportPath><Rep ortName>ZZPMS</ReportName><For ceReport>True</ForceReport><Da taConnectionStr ing>DSN=COSPROD </DataConnectionS tring><ReturnTy pe>5</ReturnType><Dis playFormat>5</DisplayFormat>< PolicyNumber>LP R 0000771 04</PolicyNumber><C rystalReportNam e>rptMainInForc e.rpt</CrystalReportNa me><CrystalConn ection>PADBS000 1</CrystalConnecti on><UserID>FERp tUser</UserID><Passwor d>user</Password><DataB aseName>db_FSFE LIP</DataBaseName><R EPORTPARAMETERS ><EndDate>09/13/2008</EndDate><Policy Numbers>LPR 0000771 04</PolicyNumbers>< UserName>jkwood en</UserName><Locat ionTypes>01,02</LocationTypes>< LocationTypeNam es>FP,REO</LocationTypeNam es></REPORTPARAMETER S></PARAMETERS>";
Problem is when I am trying to get the string through response.write just after assignment . I am getting a weired string, I am getting all the node names lost !! -
\\%COMPUTERNAME %\ezsb\PMS\ZZPM STrueDSN=COSPRO D55LPR 0000771 04rptMainInForc e.rptPADBS0001F ERptUseruserdb_ FSFELIP09/13/2008LPR 0000771 04jkwooden01,02 FP,REO
So can any one help me , how can I retain the xml node names along with data.
I am new to .Net. Actually I need to pass an XML string to a webservice.Belo w is the way how I assign the XML to a variable strXmlReportReq uest1.
strXmlReportReq uest1 = "<PARAMETERS><R eportPath>\\\\% COMPUTERNAME%\\ ezsb\\PMS\\</ReportPath><Rep ortName>ZZPMS</ReportName><For ceReport>True</ForceReport><Da taConnectionStr ing>DSN=COSPROD </DataConnectionS tring><ReturnTy pe>5</ReturnType><Dis playFormat>5</DisplayFormat>< PolicyNumber>LP R 0000771 04</PolicyNumber><C rystalReportNam e>rptMainInForc e.rpt</CrystalReportNa me><CrystalConn ection>PADBS000 1</CrystalConnecti on><UserID>FERp tUser</UserID><Passwor d>user</Password><DataB aseName>db_FSFE LIP</DataBaseName><R EPORTPARAMETERS ><EndDate>09/13/2008</EndDate><Policy Numbers>LPR 0000771 04</PolicyNumbers>< UserName>jkwood en</UserName><Locat ionTypes>01,02</LocationTypes>< LocationTypeNam es>FP,REO</LocationTypeNam es></REPORTPARAMETER S></PARAMETERS>";
Problem is when I am trying to get the string through response.write just after assignment . I am getting a weired string, I am getting all the node names lost !! -
\\%COMPUTERNAME %\ezsb\PMS\ZZPM STrueDSN=COSPRO D55LPR 0000771 04rptMainInForc e.rptPADBS0001F ERptUseruserdb_ FSFELIP09/13/2008LPR 0000771 04jkwooden01,02 FP,REO
So can any one help me , how can I retain the xml node names along with data.
Comment