title: Making a Get & a PUT call for an external rest service from inside a GET operation in Webflux
body: <p>We have exposed a GET operation in the rest service using WebFlux.
  Inside this GET operation if a call to the GET(or SET) operation of an external Rest service is made individually then everything works fine.
  However if we try to merge these 2 calls within the same operation then the code fails, it doesnt make any calls to the backend service.
  Sample code used inside a service operation called from the GET controller operation is  :</p>
  
  <p>public void handleAddress(Map handleAddressRequest)
    {
        Tuple4> serviceConnectionDetails = commerceConnectorHelper
                  .prepareDataForCheckOutCart(handleAddressRequest);  </p>
  
  <pre><code>  serviceConnectionDetails._3
               .get() 
               .uri(CartRequestTranslator.getAddressDetailsEndPoint(serviceConnectionDetails._1, serviceConnectionDetails._2, serviceConnectionDetails._4.get(ServiceOperation.GET_USER_ADDRESSES))) 
               .accept(MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML) 
               .retrieve() 
               .bodyToMono(MonoAddressModel.class)
               .map(add -&gt; add.getAddresses())
               .flatMapMany(Flux::fromIterable).filter(defaultAddress -&gt; defaultAddress.isDefaultAddress())
               .flatMap(obj -&gt; {
  
                   System.out.println("Address default is "+obj.getId());
  
                   serviceConnectionDetails._3
                   .put()
                   .uri(CartRequestTranslator.putAddressDetailsEndPoint(serviceConnectionDetails._1, serviceConnectionDetails._2, serviceConnectionDetails._4.get(ServiceOperation.GET_USER_ADDRESSES), obj.getId()))
                   .accept(MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML)
                   .exchange()
                   .flatMap(test -&gt; test.bodyToMono(String.class));
  
                   //returning a dummy flux object
                   return Flux.just("sdsdsd");
               });
  
     return ;
  </code></pre>
  
  <p>}</p>
  
  <p>It would be great if any of you could share any inputs here.</p>