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

  • SEARCH
  • Home
  • 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 8253029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:44:06+00:00 2026-06-08T00:44:06+00:00

I have a program that is consuming an external web service. 1 of the

  • 0

I have a program that is consuming an external web service. 1 of the fields I need to send in the request is a DateTime field however it seems to never be present even though I have set it, along with many others in the same object, and they are passed fine.

I put a message inspector and had a look at what it is sending, here is the request:

  <bettingRequest xmlns="">
    <accountPin>0</accountPin>
    <betDetailsRequestList>
      <acceptPartial>0</acceptPartial>
      <accumulatorBet>false</accumulatorBet>
      <accumulatorId>0</accumulatorId>
      <allUpFormula>0</allUpFormula>
      <betAmountList>
        <amountInvested>25</amountInvested>
        <returnsPerBet>0</returnsPerBet>
      </betAmountList>
      <betRefId>0</betRefId>
      <betType>Parimutuel</betType>
      <scheduledType>1</scheduledType>
      <fixedOddsProdCode>0</fixedOddsProdCode>
      <flexiBet>false</flexiBet>
      <legList>
        <prodCode>1</prodCode>
        <propositionNumber>0</propositionNumber>
        <raceNumber>2</raceNumber>
        <selectionList>
          <selectionName>TIM FIN</selectionName>
          <selectionNumber>6</selectionNumber>
          <selectionSeparator />
        </selectionList>
      </legList>
      <mystery>false</mystery>
      <notifyMethod>0</notifyMethod>
      <numMultiParlayBet>0</numMultiParlayBet>
      <ordinalNumber>1</ordinalNumber>
      <meetingCode>13</meetingCode>
    </betDetailsRequestList>
  </bettingRequest>

and here is what creates it:

        bettingRequest betReq = new bettingRequest();
        betDetailsReq betDetReq = new betDetailsReq();

        List<legDetailsReq> leglist = new List<legDetailsReq>();
        List<betSelection> sellist = new List<betSelection>();
        List<betAmount> betamtlist = new List<betAmount>();
        List<betDetailsReq> betdetaillist = new List<betDetailsReq>();

        betSelection sel = new betSelection();
        sel.selectionNumber = selection.ToString();
        sel.selectionName = Runner;
        sel.selectionSeparator = "";
        sellist.Add(sel);

        legDetailsReq leg = new legDetailsReq();
        leg.prodCode = 1;
        leg.propositionNumber = 0;
        leg.raceNumber = racenum;
        leg.selectionList = sellist.ToArray();
        leglist.Add(leg);

        betAmount betAmt = new betAmount();
        betAmt.amountInvested = betamt;
        betAmt.returnsPerBet = "0";
        betamtlist.Add(betAmt);

        betDetReq.betType = "Parimutuel";
        betDetReq.betAmountList = betamtlist.ToArray();
        betDetReq.legList = leglist.ToArray();
        betDetReq.allUpFormula = "0";
        betDetReq.acceptPartial = 0;
        betDetReq.accumulatorBet = false;
        betDetReq.betRefId = 0;
        betDetReq.scheduledType = 1;
        betDetReq.fixedOddsProdCode = 0;
        betDetReq.flexiBet = false;
        betDetReq.mystery = false;
        betDetReq.notifyMethod = 0;
        betDetReq.ordinalNumber = 1;
        betDetReq.meetingCode = meetingcode;
        betDetReq.meetingDate = DateTime.Now;
        betdetaillist.Add(betDetReq);

        betReq.betDetailsRequestList = betdetaillist.ToArray();
        bettingResponse resp = bet.validateBet(meta, betReq);

and here is the code for the serialization:

    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=11)]
    public System.DateTime meetingDate {
        get {
            return this.meetingDateField;
        }
        set {
            this.meetingDateField = value;
            this.RaisePropertyChanged("meetingDate");
        }
    }

The attribute that is missing is the betDetReq.meetingDate, the WSDL can be viewed at https://api.tab.com.au/tabapi/services/betting?wsdl

Can someone tell me where I am going wrong please? I have tried many different variations of DataTime all with the same missing result.

Thanks
Dean

  • 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. Editorial Team
    Editorial Team
    2026-06-08T00:44:07+00:00Added an answer on June 8, 2026 at 12:44 am

    Ensure you have set the “Specified” property to true.

    betDetReq.meetingDate = DateTime.Now;
    betDetReq.meetingDateSpecified = true;
    

    If you have an optional field (i.e. one where the minOccurs attribute is 0), then the proxy includes a “Specified” property. Unless you set this to true, the field does not get added to the request body.

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

Sidebar

Related Questions

I have a Lua program that is consuming data from an external device. The
I have program that has a variable that should never change. However, somehow, it
I have a Java program that needs to call the same external executable 6
I have a python program that performs several independent and time consuming processes. The
I have a Silverlight 2 application that is consuming a WCF service. As such,
I have a program that uses threads to perform time-consuming processes sequentially. I want
I have program that requires Python 3, but I develop Django and it uses
I have program that runs fast enough. I want to see the number of
I have a program that gets a JSON from the server using getJSON and
I have a program that saves an image in a local directory and then

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.