0

SOAP xml Web サービスで文字列を渡す方法。文字列に HTML 形式が含まれています。submit xml をクリックすると出力が表示されますが、データを取得できません。文字列 (HTML ではない) の代わりに、完璧な応答が得られました。私のコードは、

string = @"<table class=\"\" style=\"width: 100%;\" cellspacing=\"0\" cellpadding=\"0\">"
 "        <tr>"
 "<td bgcolor=\"#7ea34b\" height=\"88\" style=\"padding-left: 10px; font-weight: bold; font-size: 10pt;color: #ffffff; font-family: Verdana\" align=\"center\">"
 "Book Your New Car @ <a href=\"http://www.test.com/\">www.test.com</a>"
 "or Call 123456789 <br />"
 "<a href=\"http://www.test.com//unsubscribe.aspx?email="
 "\">Click Here</a>"
"to Unsubscribe from this List" "</td></tr>"
"</table> </table>";

助けてくれてありがとう。

4

2 に答える 2

6

次のよう<![CDATA[ ... ]]>にHTML をラップする必要があります。string

string = @"<![CDATA[<table class=\"\" style=\"width: 100%;\" cellspacing=\"0\" cellpadding=\"0\">"
 "        <tr>"
 "<td bgcolor=\"#7ea34b\" height=\"88\" style=\"padding-left: 10px; font-weight: bold; font-size: 10pt;color: #ffffff; font-family: Verdana\" align=\"center\">"
 "Book Your New Car @ <a href=\"http://www.test.com/\">www.test.com</a>"
 "or Call 1-888-284-4718<br />"
 "<a href=\"http://www.test.com//unsubscribe.aspx?email="
 "\">Click Here</a>"
"to Unsubscribe from this List" "</td></tr>"
"</table> </table>]]>";
于 2013-10-16T10:35:31.297 に答える