Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Service to Receive XML from Client
    primarykey
    data
    text
    <p>I'm trying to implement at WCF Service which can receive and send the XML and display the response on Client's website. </p> <p>I'm new for this WCF development , let me start development with online receiving XML on WCF project. </p> <p>Step1-- For this I have created a WCF project.<br> Step2-- I have created a OptionContract and DataContract as below </p> <p><strong>In Customers.cs file</strong> </p> <pre><code>{ [ServiceContract] public interface ICustomers { [OperationContract] CustermerDetails GetCustomerDetails(Product prod); } [DataContract] public class Customers { [DataMember] public string ID { get; set; } [DataMember] public string ProductCategory { get; set; } } [DataContract] public class CustomersDetails { [DataMember] public string ID { get; set; } [DataMember] public string Name { get; set; } [DataMember] public string Address1 { get; set; } [DataMember] public string Address2 { get; set; } [DataMember] public string Balance { get; set; } } } </code></pre> <p><strong>XML Receive Format Would be</strong> </p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?OSX OSXHEADER="200" VERSION="201" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE" ?&gt; &lt;Bank&gt; &lt;Customers&gt; &lt;ID&gt;1234567890&lt;/ID&gt; &lt;/Customers&gt; &lt;/Bank&gt; </code></pre> <p><strong>XML Response Format Would be</strong> </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?OSX OSXHEADER="200" VERSION="201" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE" ?&gt; &lt;Bank&gt; &lt;Customers&gt; &lt;ID&gt;1234567890&lt;/ID&gt; &lt;Name&gt;1234567890&lt;/Name&gt; &lt;Addresss1&gt;1234567890&lt;/Addresss1&gt; &lt;Addresss2&gt;1234567890&lt;/Addresss2&gt; &lt;Balance&gt;1234567890&lt;/Balance&gt; &lt;/Customers&gt; &lt;/Bank&gt; </code></pre> <p>Step-3:<br> I was doing Google a lot to read the XML to implement the ICustomers interface.<br> Please any one can suggest me, how kind of steps I have to make to read the received XML and based on the received XML, How can I send response back to client server? </p>
    singulars
    1. This table or related slice is empty.
    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.
    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