BizTalk Server General - SOAP :: default values in a web service

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > July 2005 > SOAP :: default values in a web service





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SOAP :: default values in a web service
BA

2005-07-22, 2:56 am

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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com