Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Web API : GetBooking & GetBookings error

Solved1.53K views21st September 2022error GetBooking GetBookings WebAPI
3
Wale Oguntoyinbo [SLC] [DevOps Advocate]3.39K 25th January 2021 0 Comments

I get the same error shown when using the GetBooking & GetBookings web api calls. Any ideas why ?

Error:

GetBooking:

<soap:Envelope xmlns:soap=”http://www.w3.org/2003/05/soap-envelope” xmlns:v1=”http://www.skyline.be/api/v1″>
<soap:Header/>
<soap:Body>
<v1:GetBooking>
<!–Optional:–>
<v1:connection>d3ee5cee-92f3-4df6-874a-583ab3bab40b</v1:connection>
<!–Optional:–>
<v1:bookingID>6e19ae89-74d2-42ed-9683-a6b02d493a73</v1:bookingID>
</v1:GetBooking>
</soap:Body>
</soap:Envelope>

GetBookings:

<soap:Envelope xmlns:soap=”http://www.w3.org/2003/05/soap-envelope” xmlns:v1=”http://www.skyline.be/api/v1″>
<soap:Header/>
<soap:Body>
<v1:GetBookings>
<!–Optional:–>
<v1:connection>d3ee5cee-92f3-4df6-874a-583ab3bab40b</v1:connection>
<!–Optional:–>
<v1:filter>
</v1:filter>
</v1:GetBookings>
</soap:Body>
</soap:Envelope>

Wale Oguntoyinbo [SLC] [DevOps Advocate] Selected answer as best 21st September 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Miguel Obregon [SLC] [DevOps Catalyst]18.84K Posted 25th January 2021 5 Comments

Hi Wale,

Please could you check first that you are running a DMA version higher than 10.0.3.0 (check DataMiner Web API documentation).

I performed a small test using DMA 10.1.1.0-9843 and I was able to retrieve bookings through the API. Please find below examples for each request (JSON):

GetBooking:

POST http://127.0.0.1/API/v1/json.asmx/GetBooking
Content-Type: “application/json”
{

“connection”: “abcd1234-1234-4321-5678-12345678abcd”,
“bookingID”: “8048d568-680f-4330-bd8b-b71a7d3e6a4e”
}

GetBookings:
POST http://127.0.0.1/API/v1/json.asmx/GetBookings
Content-Type: “application/json”

{
“connection”: “abcd1234-1234-4321-5678-12345678abcd”,
“filter”: {
“Children”: [],
“Condition”: {
“method”: “contains”,
“value”: “MyBookingName”,
“ID”: “ReservationInstanceExposers.Name”
}
},
“amount”: 1
}

Wale Oguntoyinbo [SLC] [DevOps Advocate] Selected answer as best 21st September 2022
Wale Oguntoyinbo [SLC] [DevOps Advocate] commented 25th January 2021

Thanks Miguel, I am using the same DMA version (10.1.1.0). I have narrowed down the issue further and the error occurs when the payload is in xml format. When I send the request in JSON like yours I get a succesful response.

Miguel Obregon [SLC] [DevOps Catalyst] commented 25th January 2021

Hi Wale,
I tested ‘GetBooking’ in my local setup and I got the same issue:
+++++++++++++++++++++++++++++
System.InvalidOperationException: The type System.TimeSpan was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically
+++++++++++++++++++++++++++++
Checking the WSDL specification, GetBooking requires only two inputs (connectioId and BookingId), but the error refers to a timespan not expected.
Unless another colleague confirms that we are missing another attribute,
could you create a task reporting this issue?

Wale Oguntoyinbo [SLC] [DevOps Advocate] commented 25th January 2021

Thanks for confirming further Miguel. I have created a task for this.

Wim Bruynooghe [SLC] [DevOps Advocate] commented 25th January 2021

This is indeed a software issue which should be investigated further by the software development team.

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 21st September 2022

Issue has been resolved from the following versions onwards:
10.1.0 [CU20] ; 10.2.0 [CU8] & 10.2.11

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs