Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Web Service Response XML file
    primarykey
    data
    text
    <p>I am using a data contract in WCF, but there is some unwanted response tags being sent in the xml file, I am not sure how to modify the data contract class so that I can avoid sending that unwanted response field. In the below XML file, all the text which is bolded and italics is unwanted. Thanks.</p> <pre><code> &lt;GetCertMailReceiptNumbersResponse xmlns="http://tempuri.org/"&gt; &lt;GetCertMailReceiptNumbersResult xmlns:a="http://schemas.datacontract.org/2004/07/WcfSmartConnect" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; ***&lt;a:AccountNumber i:nil="true" /&gt; &lt;a:Address1 i:nil="true" /&gt; &lt;a:Address2 i:nil="true" /&gt; &lt;a:City i:nil="true" /&gt; &lt;a:Name1 i:nil="true" /&gt; &lt;a:Name2 i:nil="true" /&gt; &lt;a:OrderNumber&gt;1325661&lt;/a:OrderNumber&gt; &lt;a:Password i:nil="true" /&gt;*** &lt;a:ReturnCode&gt;200&lt;/a:ReturnCode&gt; &lt;a:ReturnMessage /&gt; ***&lt;a:SoftwareID i:nil="true" /&gt; &lt;a:State i:nil="true" /&gt; &lt;a:TrackingStatus i:nil="true" /&gt; &lt;a:USPSReceipt i:nil="true" /&gt; &lt;a:UserID i:nil="true" /&gt; &lt;a:Zip i:nil="true" /&gt;*** &lt;a:lsCMRN&gt; &lt;a:CertMailReceiptNumbers&gt; &lt;a:AccountNumber&gt;1&lt;/a:AccountNumber&gt; &lt;a:Address1&gt;201 Test Ln&lt;/a:Address1&gt; &lt;a:Address2&gt;TSTCity TST 123456&lt;/a:Address2&gt; &lt;a:City&gt;TSTCity&lt;/a:City&gt; &lt;a:Name1&gt;pinu&lt;/a:Name1&gt; &lt;a:Name2 i:nil="true" /&gt; &lt;a:OrderNumber /&gt; ***&lt;a:Password /&gt; &lt;a:ReturnCode&gt;0&lt;/a:ReturnCode&gt; &lt;a:ReturnMessage i:nil="true" /&gt; &lt;a:SoftwareID /&gt;*** &lt;a:State&gt; TST &lt;/a:State&gt; &lt;a:TrackingStatus&gt;MAILED&lt;/a:TrackingStatus&gt; &lt;a:USPSReceipt&gt;71926389001019&lt;/a:USPSReceipt&gt; ***&lt;a:UserID /&gt;*** &lt;a:Zip&gt;123456&lt;/a:Zip&gt; &lt;a:lsCMRN /&gt; &lt;a:order&gt;1325661&lt;/a:order&gt; &lt;/a:CertMailReceiptNumbers&gt; &lt;a:CertMailReceiptNumbers&gt; &lt;a:AccountNumber&gt;10&lt;/a:AccountNumber&gt; &lt;a:Address1&gt;121 Mant Drive&lt;/a:Address1&gt; &lt;a:Address2&gt;TestCity Test 123456&lt;/a:Address2&gt; &lt;a:City&gt; TestCity &lt;/a:City&gt; &lt;a:Name1&gt;Kris &lt;/a:Name1&gt; &lt;a:Name2 i:nil="true" /&gt; &lt;a:OrderNumber /&gt; ***&lt;a:Password /&gt; &lt;a:ReturnCode&gt;0&lt;/a:ReturnCode&gt; &lt;a:ReturnMessage i:nil="true" /&gt; &lt;a:SoftwareID /&gt;*** &lt;a:State&gt;Test&lt;/a:State&gt; &lt;a:TrackingStatus&gt;MAILED&lt;/a:TrackingStatus&gt; &lt;a:USPSReceipt&gt;71926389000026&lt;/a:USPSReceipt&gt; ***&lt;a:UserID /&gt;*** &lt;a:Zip&gt;123456&lt;/&lt;/a:Zip&gt; &lt;a:lsCMRN /&gt; &lt;a:order&gt;1325661&lt;/a:order&gt; &lt;/a:CertMailReceiptNumbers&gt; &lt;a:CertMailReceiptNumbers&gt; &lt;a:AccountNumber&gt;2&lt;/a:AccountNumber&gt; &lt;a:Address1&gt;121 Technot&lt;/a:Address1&gt; &lt;a:Address2&gt;Test Tst 123456&lt;/a:Address2&gt; &lt;a:City&gt;Test&lt;/a:City&gt; &lt;a:Name1&gt;Alice&lt;/a:Name1&gt; &lt;a:Name2 i:nil="true" /&gt; &lt;a:OrderNumber /&gt; ***&lt;a:Password /&gt; &lt;a:ReturnCode&gt;0&lt;/a:ReturnCode&gt; &lt;a:ReturnMessage i:nil="true" /&gt; &lt;a:SoftwareID /&gt;*** &lt;a:State&gt;Tst&lt;/a:State&gt; &lt;a:TrackingStatus&gt;MAILED&lt;/a:TrackingStatus&gt; &lt;a:USPSReceipt&gt;7192638900000033&lt;/a:USPSReceipt&gt; ***&lt;a:UserID /&gt;*** &lt;a:Zip&gt;123456&lt;/&lt;/a:Zip&gt; &lt;a:lsCMRN /&gt; &lt;a:order&gt;1325661&lt;/a:order&gt; &lt;/a:CertMailReceiptNumbers&gt; &lt;a:CertMailReceiptNumbers&gt; &lt;a:AccountNumber&gt;3&lt;/a:AccountNumber&gt; &lt;a:Address1&gt;194 Green st&lt;/a:Address1&gt; &lt;a:Address2&gt;Matt MA 123456&lt;/a:Address2&gt; &lt;a:City&gt;Matt&lt;/a:City&gt; &lt;a:Name1&gt;Jewel Bondurant&lt;/a:Name1&gt; &lt;a:Name2 i:nil="true" /&gt; &lt;a:OrderNumber /&gt; ***&lt;a:Password /&gt; &lt;a:ReturnCode&gt;0&lt;/a:ReturnCode&gt; &lt;a:ReturnMessage i:nil="true" /&gt; &lt;a:SoftwareID /&gt;*** &lt;a:State&gt;MA&lt;/a:State&gt; &lt;a:TrackingStatus&gt;MAILED&lt;/a:TrackingStatus&gt; &lt;a:USPSReceipt&gt;71926389001000000040&lt;/a:USPSReceipt&gt; ***&lt;a:UserID /&gt;*** &lt;a:Zip&gt;123456&lt;/&lt;/a:Zip&gt; &lt;a:lsCMRN /&gt; &lt;a:order&gt;1325661&lt;/a:order&gt; &lt;/a:CertMailReceiptNumbers&gt; &lt;a:CertMailReceiptNumbers&gt; &lt;a:AccountNumber&gt;4&lt;/a:AccountNumber&gt; &lt;a:Address1&gt;123 Nasas&lt;/a:Address1&gt; &lt;a:Address2&gt;Mtar Tst 123456&lt;/a:Address2&gt; &lt;a:City&gt;Mtar&lt;/a:City&gt; &lt;a:Name1&gt;Terry &lt;/a:Name1&gt; &lt;a:Name2 i:nil="true" /&gt; ***&lt;a:OrderNumber /&gt; &lt;a:Password /&gt; &lt;a:ReturnCode&gt;0&lt;/a:ReturnCode&gt; &lt;a:ReturnMessage i:nil="true" /&gt; &lt;a:SoftwareID /&gt;*** &lt;a:State&gt;Tst&lt;/a:State&gt; &lt;a:TrackingStatus&gt;MAILED&lt;/a:TrackingStatus&gt; a:USPSReceipt&gt;7192630000057&lt;/a:USPSReceipt&gt; ***&lt;a:UserID /&gt;*** &lt;a:Zip&gt;123456&lt;/&lt;/a:Zip&gt; &lt;a:lsCMRN /&gt; &lt;a:order&gt;1325661&lt;/a:order&gt; &lt;/a:CertMailReceiptNumbers&gt; &lt;/a:lsCMRN&gt; &lt;a:order&gt;0&lt;/a:order&gt; &lt;/GetCertMailReceiptNumbersResult&gt; &lt;/GetCertMailReceiptNumbersResponse&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload