SOAP :: default values in a web service
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > SOAP :: default values in a web service




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    SOAP :: default values in a web service  
BA


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-22-05 07: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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:34 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register