title: How to use Spring WebClient to make a subsequent call with different header setting?
body: <p>I need to call an third party API which requires an authentication call beforehand to get an authentication token. The Authentication API is in json but the subsequent call is in XML.</p>
  <p>I have separately :</p>
  <pre><code>webclient.post().uri(&quot;/auth&quot;).header(ACCEPT,JSON).retrieve()
        .bodyToMono(AuthToken.class);
  webclient.post().uri(&quot;/api&quot;).header(ACCEPT,XML).header(&quot;AUTH&quot;,authToken).retrive().bodyToFlux();
  </code></pre>
  <p>How should I implement the method to be able to access the second API?
  I tried to assign a variable inside the method with <code>token = firstCall.block()</code> but I've got <code>block() is not supported</code> error.</p>