|
| Hello,
I am developing a BizTalk application using SOAP web services.
In my definition I have a field with a data type "long".
In my XSD I set a default value of 0 in case the value recieved is null
(otherwise the application breaks).
Problem is the default value never gets filled in when consume the web
service. I get a null value error:
The default appears in the WSDL here:
<s:element minOccurs="0" maxOccurs="1" default="0" name="Housenumber"
type="s:long" />
and in the DataTypes.cs file here:
/// <remarks/>
public long Housenumber;
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool HousenumberSpecified;
And here is my error:
..........
ERROR: The "SOAP" adapter is suspending an outbound message going to
destination
URL:"http://localhost/Zipcode/Zipcode_Orchestrations_Address.asmx".
Details:"There is an error in XML document (29, 8).".
..........
This location (29, 8) is where the "Housenumber" field is in the XML.
I'm sure its this field because if I add a "0" to an xml message it works.
Do web services use these default values, what are we missing here?
BA
|
|