6 Replies Latest reply: Jun 19, 2014 2:11 PM by 936114 RSS

    OSB is not sending correct query parameters to REST backend

    936114

      HI,

       

      I am facing problem while invoking REST webservice. My OSB is sending request to backend REST server but it is not sending correct query parameters, Every time i am getting 404.

       

      My backend is:

       

      Https://xxx.com/myREST?user_id=user@gmail.com;incl=radio

       

      My business service is configured with get protocol and with Https://xxx.com/myREST backend server.

       

      In Proxy service, i am adding route node to business and replacing query parameter in outbound. My REST webservice is reaching to backend but it is not fetching any data.

       

      Can someone help me to send my query parameters(user_id=user@gmail.com;incl=radio) and fetching data from backend.

       

      Thanks in advance!!!

        • 1. Re: OSB is not sending correct query parameters to REST backend
          936114

          Any idea how to do this in OSB?

          • 2. Re: OSB is not sending correct query parameters to REST backend
            936114

            Hi,

             

            Can some one let me know java callout option and how to perform java callout for query parameters decode, as my query parameters are passing as encode value. I have tried java call out as well but unfortunately it is not working. Can  some one provide java call out jar and steps to do it. My project is delaying because of this and i have tried all available option on web, but nothing is working, need help from this community on this

             

            Thanks in advance!!

            • 3. Re: OSB is not sending correct query parameters to REST backend
              StefanOEG

              Hi,

               

              You have have to provide a lot more details if there can be any chance to help you out. Provide the full Debug Trace from a request, take screenshots or describe how you have built your policy!

               

              Cheers,

              Stefan

              • 4. Re: OSB is not sending correct query parameters to REST backend
                936114

                Hi Stefan,

                 

                I have configured business connected to real backend. where backend expect query parameters without URL encode.(eg: ?user_id=user@gmail.com;incl=radio), but OSB is sending query parameters in form of ?user_id=user%40gmail.com%3Bincl%3DRadio, Backend is not able to under stand this, i have tried java call out but seems not to be working in my case.

                I ll be very helpful if you can provide steps to do this on osb.(Steps to configure and java call out)

                • 5. Re: OSB is not sending correct query parameters to REST backend
                  936114

                  ####<Jun 13, 2014 5:11:39 PM UTC> <Info> <OSB Kernel> <ct11bzapp227.am.mot-solutions.com> <osb_server1> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-226DEC19C123> <7de1ff7b372fac5c:-75d9b50b:1468b0d0da2:-8000-00000000000121ab> <1402679499772> <BEA-398076> <

                  [OSB Tracing] The following variables are changed:

                  $inbound = <con:endpoint name="ProxyService$APEX-REST1$APEX1PS" xmlns:con="http://www.bea.com/wli/sb/context">

                    <con:service/>

                    <con:transport>

                      <con:uri>/AP</con:uri>

                      <con:mode>request-response</con:mode>

                      <con:qualityOfService>exactly-once</con:qualityOfService>

                      <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                        <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">

                          <tran:user-header name="Cache-Control" value="max-age=0"/>

                          <tran:user-header name="Cookie" value="LanguagePref=; ADMINCONSOLESESSION=C8C3TbnQyyYy89SZqL6sG1GyQldh72GZMhnDhxzyntGdy5JhGZbn!569795305; WINDOW_JSP_ID=ChangeCenter_Activate_Session; WINDOW_X_POS=0; WINDOW_Y_POS=0"/>

                          <http:Accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8</http:Accept>

                          <http:Accept-Encoding>gzip,deflate,sdch</http:Accept-Encoding>

                          <http:Accept-Language>en-US,en;q=0.8,hi;q=0.6</http:Accept-Language>

                          <http:Connection>keep-alive</http:Connection>

                          <http:Cookie>&lt;cookie-values xmlns="http://www.bea.com/wli/sb/transports/http">

                    &lt;value>LanguagePref=; ADMINCONSOLESESSION=C8C3TbnQyyYy89SZqL6sG1GyQldh72GZMhnDhxzyntGdy5JhGZbn!569795305; WINDOW_JSP_ID=ChangeCenter_Activate_Session; WINDOW_X_POS=0; WINDOW_Y_POS=0&lt;/value>

                  &lt;/cookie-values></http:Cookie>

                          <http:Host>ct11bzapp556:7012</http:Host>

                          <http:User-Agent>Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36</http:User-Agent>

                        </tran:headers>

                        <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">iso-8859-1</tran:encoding>

                        <http:query-string>user_id=user@gmail.com;incl=radio</http:query-string>

                        <http:query-parameters>

                          <http:parameter name="user_id" value="user@gmail.com;incl=radio"/>

                        </http:query-parameters>

                        <http:client-host>xx.xx.xx.xx</http:client-host>

                        <http:client-address>xx,xx,xx,xx</http:client-address>

                        <http:http-method>GET</http:http-method>

                      </con:request>

                      <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                        <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">

                          <http:Content-Type>application/json</http:Content-Type>

                        </tran:headers>

                        <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>

                      </con:response>

                    </con:transport>

                    <con:security>

                      <con:transportClient>

                        <con:username>&lt;anonymous></con:username>

                      </con:transportClient>

                    </con:security>

                  </con:endpoint>

                  >

                   

                  [OSB Tracing] Inbound response was sent.

                   

                   

                  Service Ref = APEX-REST1/APEX1PS

                  URI = /AP

                  Message ID = 4666871504850147283--75d9b50b.1468b0d0da2.-7fb1

                  • 6. Re: OSB is not sending correct query parameters to REST backend
                    936114

                    Hi Stefan,

                     

                    Any clue to do it. My project is pending because of this issue. it ll be great help if you can provide some hint.

                     

                    Thanks,

                    Sachin