4 Replies Latest reply on Jun 18, 2014 9:55 AM by cristianmiranda

    REST Basic Authorization

    cristianmiranda

      Hi guys,

       

           I've configured a rest:binding reference with basic authorization to consume an external REST service like this:

       

      <sca:reference name="RESTReference" multiplicity="1..1"
                             promote="RESTService/RESTReference">
                  <sca:interface.java interface="com.magick.magicktrader.rest.RESTReference"/>
                  <rest:binding.rest>
                      <rest:interfaces>com.myapp.rest.RESTResource</rest:interfaces>
                      <rest:address>http://192.168.1.51:9235</rest:address>
                      <rest:basic>
                          <rest:user>username</rest:user>
                          <rest:password>password</rest:password>
                      </rest:basic>
                  </rest:binding.rest>
              </sca:reference>
      
      
      

       

           REST service is being consumed but Authorization header is not being sent to the server.

       

      Any ideas? Something that I'm missing?

       

      Thanks in advance!