Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-4124

External APIs - Merchant, Budget, Deployment, Yahoo API throws exception for Media/type application/xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Mercury
    • Fix Version/s: Mercury
    • Component/s: API
    • Labels:
      None
    • Environment:
    • Sprint:
      Sprint 24

      Description

      1.Send SOAP request for Merchant API as media/type: application/xml

      <?xml version="1.0" encoding="utf-8"?>
      <merchant>
      <customerId>TestMediaType</customerId>
      </merchant>

      2.Observe the response

      Actual result:

      HTTP/1.1 400 Bad Request
      Server: Apache-Coyote/1.1
      Date: Tue, 03 May 2016 14:29:57 GMT
      Content-Type: text/plain;charset=UTF-8
      Transfer-Encoding: chunked
      Connection: close

      JAXBException occurred : unexpected element (uri:"", local:"merchant"). Expected elements are <

      {http://www.admaxlocal.com/external-api/merchant}

      merchant>. unexpected element (uri:"", local:"merchant"). Expected elements are <

      {http://www.admaxlocal.com/external-api/merchant}

      merchant>.

      Note : Post/PUT method is having this issue for other APIs - "Budget","DeploymentAPI" and "Yahoo Credentials "

        Attachments

          Activity

            People

            • Assignee:
              atul.sanagar Atul Sanagar (Inactive)
              Reporter:
              atul.sanagar Atul Sanagar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: