Details

    • Type: Bug
    • Status: Closed
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.5.0 M3
    • Fix Version/s: 4.5.0
    • Component/s: API
    • Labels:
      None
    • Severity:
      Blocker
    • Estimated Complexity:
      Moderate
    • Test cases added:
      No

      Description

      In the latest ESB packs, if you send a message to a defined uri-maping, ESB responds with HTTP 202 response.

      e.g:-

      Using the following synapse configuration, send a POST request as follows.

      POST http://localhost:8280/jaxrs/customers/ HTTP/1.1

      Accept-Encoding: gzip,deflate

      Content-Type: application/xml

      User-Agent: Jakarta Commons-HttpClient/3.1

      Host: localhost:8280

      Content-Length: 42

      <Customer>
      <name>Jack</name>
      </Customer>

      <api xmlns="http://ws.apache.org/ns/synapse" name="JaxrsServiceAPI" context="/jaxrs">
      <resource methods="GET" uri-template="/customers/

      {id}">
      <inSequence>
      <send>
      <endpoint>
      <address uri="http://appserver.wso2.com:8300/jaxrs_basic/services/customers/customerservice" />
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <send />
      </outSequence>
      </resource>
      <resource methods="POST" url-mapping="/customers/">
      <inSequence>
      <log level="full">
      <property name="API_MESSAGE" value="*****API" />
      </log>
      <send>
      <endpoint>
      <address uri="http://10.100.3.107:9764/jaxrs_basic/services/customers/customerservice" />
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <send />
      </outSequence>
      </resource>
      <resource methods="DELETE" uri-template="/customers/{id}

      ">
      <inSequence>
      <send>
      <endpoint>
      <address uri="http://appserver.wso2.com:8300/jaxrs_basic/services/customers/customerservice" />
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <send />
      </outSequence>
      </resource>
      <resource methods="PUT" url-mapping="/customers/">
      <inSequence>
      <send>
      <endpoint>
      <address uri="http://appserver.wso2.com:8300/jaxrs_basic/services/customers/customerservice" />
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <send />
      </outSequence>
      </resource>
      </api>

        Attachments

          Activity

            People

            • Assignee:
              nuwand@wso2.com Nuwan Dias
              Reporter:
              charitha@wso2.com Charitha Kankanamge
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: