Note that there are some explanatory texts on larger screens.

plurals
  1. POConsuming a webservice php with C#
    primarykey
    data
    text
    <p>here is the wsdl soap field </p> <pre><code>&lt;element name="transactionCle" nillable="true" type="xsd:int"/&gt; </code></pre> <p>when I call the WS in PHP and I show the soap with <code>__getLastResponse()</code></p> <p>I get that for the transactionCle : </p> <pre><code>&lt;transactionCle href="#id50"/&gt; </code></pre> <p>here is the ref of the field :</p> <pre><code>&lt;multiRef xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" id="id50" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:int"&gt;12708584&lt;/multiRef&gt; </code></pre> <p>I added a new WebReference to a wsdl provided by an Apache Server working with php.<br> The proxy class generated give me for the field :</p> <pre><code>private System.Nullable&lt;int&gt; transactionCleField; /// &lt;remarks/&gt; [System.Xml.Serialization.SoapElementAttribute(IsNullable=true)] public System.Nullable&lt;int&gt; transactionCle { get { return this.transactionCleField; } set { this.transactionCleField = value; } } </code></pre> <p>Now my Problem : </p> <p><strong>When I consume the WS in php the value of transactionCle is 12708584<br> when I consume the WS in C# the value of transactionCle is null</strong></p> <p>If I modify manualy the proxy class from System.Nullable to int And now C# give me the Good Value (12708584). </p> <p><strong>but when I update the Webreference I have to modify again the proxy classes.</strong> </p> <p>Here is my question : How can I :<br> or set transactionCle to int type without modify the proxy class?<br> or make the serialisation give me the Good Value?</p> <p><strong>edit : I'm not able to modify the WS php or the wsdl</strong></p>
    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.
    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