title: How to Exposing secure rest/soap service in Mule, require best and simple approach
body: <p>In My flow, I have many HTTP Rest API call, I have used key-store (as below) which is fine for internal api calls. Now I need to expose rest/soap service to external api. Which is the simple and best way to secure mule api. I'm using Mule 3.5.1 Version.</p>
  
  <pre><code>&lt;https:connector name="HTTP_HTTPS" doc:name="HTTP-HTTPS"
      cookieSpec="netscape" receiveBacklog="0" receiveBufferSize="0"
      sendBufferSize="0" socketSoLinger="0" validateConnections="false"
      clientSoTimeout="10000" serverSoTimeout="10000" enableCookies="true"&gt;
      &lt;https:tls-key-store path="cer/check.jks"
          keyPassword="abc" storePassword="abc" /&gt;
  &lt;/https:connector&gt;
  
   &lt;flow name="service" doc:name="service"&gt;
      &lt;https:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8085" doc:name="HTTP" connector-ref="HTTP_HTTPS" responseTransformer-refs="ReponseProperty"/&gt;
      &lt;byte-array-to-string-transformer doc:name="Byte Array to String"/&gt;
      &lt;logger message="***Invoke****#[payload]" level="INFO" doc:name="Logger"/&gt;
   &lt;jersey:resources doc:name="REST"&gt;
       &lt;component class="com.services.CallImpl"/&gt;
       &lt;jersey:exception-mapper class="com.util.JerseyExceptionMapper"/&gt;
  &lt;/jersey:resources&gt; 
  &lt;byte-array-to-string-transformer doc:name="Byte Array to String"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>So that external api calls, shouldn't interfere with other mule services.
  Thanks in advance.</p>