Session Manager Routing Web Service json?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • avc859587618170
    Brainiac
    • Jun 2024
    • 66

    Session Manager Routing Web Service json?

    Hey gang.. I've got a few applications where I'm connecting to Session Manager Routing api's, and they all are using XML for the payload.. I thought I've read somewhere that you can now use JSON for the payload instead of XML? Is that true? I've tried converting a few calls to XML, and Session Manager doesn't seem to like that at all...

    Thanks for any help!

    Dave M.
    Dave Morrison
    Software Engineer
  • flynn1
    Brainiac
    .
    • Jun 2011
    • 82

    #2
    Unfortunately, nobody in this forum is likely to be able to help you with this. Session Manager Routing API is not an AES API.

    Martin

    Comment

    • le103
      Member
      .
      • Jun 2024
      • 2

      #3
      Hi,
      I've never tried with JSON and no document mention about this either. So I think it will not support.
      Thanks
      Vu

      Comment

      • avc859587618170
        Brainiac
        • Jun 2024
        • 66

        #4
        To keep everything in one spot, I'll post what I found. You can use json instead of xml. So, to update an ingress adaptation, in XML you would send:

        Code:
        <ingressadaptation>
        <notes>UpdateTest</notes>
        <deletedigits>2</deletedigits>
        <insertdigits></insertdigits>
        <matchingpattern>3136622189</matchingpattern>
        <maxdigits>10</maxdigits>
        <mindigits>10</mindigits>
        <addressToModify>destination</addressToModify>
        </ingressadaptation>
        That same in json would be:

        Code:
        {
        "notes": "Dave",
        "deletedigits": "10",
        "insertdigits": "3133734257",
        "matchingpattern": "3133734257",
        "maxdigits": "10",
        "mindigits": "10",
        "addressToModify": "destination"
        }
        I pass "application/json" ​for both the Content-type and Accept.. this works for me..

        Have a good day,

        Dave
        Dave Morrison
        Software Engineer

        Comment

        Loading