Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 80447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:18:15+00:00 2026-05-10T21:18:15+00:00

We are using C#, ASP.NET & WCF. I am trying to send form data

  • 0

We are using C#, ASP.NET & WCF. I am trying to send form data to a web service which in turn inserts/updates a database with the data from my form. How should I send over my data?

We have the forms populated fine but are having some issues with sending updates back to the web service. We have determined that it is not great practice to use datasets in this situation, it is slow and we have to do too many SELECT *’s for our liking.

I have about 15 fields that need to go across. One team member wants to pass everything as a parameter which I dont think is optimal. We tried sending everything across in an Object[] array but are receiving a weird error ‘Type ‘System.DBNull’ with data contract name ‘DBNull:http…’ is not expected. Add any types not known statically to the list of known types’,

Any suggestions are most welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:18:15+00:00Added an answer on May 10, 2026 at 9:18 pm

    We use WCF to define our Data Contracts and Data Methods using attributes.

    Basically we create an assembly to define all our classes and another assembly to provide the WCF connective bits

    OPur class assembly contains a service class and several message classes.

    We define an interface for our service and mark it up with relevant WCF markup. This is our Service Contract.

    [ServiceContract] public interface IExampleWebService {     [OperationContract]     CreateAccountResponse CreateAccount(int parameter, CreateAccountArguments another parameter);      [OperationContract]     DeleteAccountResponse DeleteAccount(int parameter); } 

    We implement this interface in a class and we create various data contracts (our response and argument classes).

    [DataContract] public class CreateAccountResponse {     [DataMember]     public bool CreatedOk { get; set; }      [DataMember]     public int AccountId { get; set; } } 

    These classes are exposed to our form using the Web Service (We create another assembly as a web service and have a class that inherits from our Service Class (not shown in this example) so we let Visual Studio do all the work setting up the WCF service as we reap the benefits with an easy to use and maintain Web Service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 64k
  • Answers 64k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer A common pattern to match the hidden items is .[^.]*… May 11, 2026 at 10:49 am
  • added an answer Since you're doing all of this in a single method… May 11, 2026 at 10:49 am
  • added an answer static const struct Foos foo = { 1, 2 };… May 11, 2026 at 10:49 am

Related Questions

We are using C#, ASP.NET & WCF. I am trying to send form data
We are using a Sony SNC-RZ30N IP-based webcam to monitor osprey nests and would
We are using PowerDesigner at work for database modelling. But there is a hell
We are using SQL 2005 and the try-catch functionality to handle all of our
We are using fmt:setBundle to load a resource bundle from a database (we extended
We are using TFS 2008 for project managmeent and I am looking for a
We are using JetBrains ' dotTrace . What other profiling tools can be recommended
We are using SQL Server 2005, but this question can be for any RDBMS
We are using c++ to develop an application that runs in Windows CE 4
We are using Hibernate 3.1 with Spring MVC 2.0. Our problem occurs when data

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.