title: Axisfault 302 when calling wso2 web services
body: <p>I am using the below code to register a user in wso2 IS 5.1:</p>
  
  <pre><code>  public static void main (String args[]){
      try {
          UserInformationRecoveryServiceStub stub = new UserInformationRecoveryServiceStub("https://localhost:9443/UserInformationRecoveryService");
          RegisterUser user=new RegisterUser();
          UserIdentityClaimDTO claim=new UserIdentityClaimDTO();
          claim.setClaimUri("https://wso2.org/claims/emailaddress");
          claim.setClaimValue("althaf.ashraf@gmail.com");
          UserIdentityClaimDTO[] claims=new UserIdentityClaimDTO[2];
          claims[0]=claim;
          user.setUserName("user10");
          user.setPassword("123456");
          user.setProfile("default");
          user.setTenantDomain("carbon.super");
          user.setUserIdentityClaimDTOs(claims);
          util.registerUser(user);
      } catch (AxisFault e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (RemoteException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (UserInformationRecoveryServiceIdentityMgtServiceExceptionException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  </code></pre>
  
  <p>And I am getting the below AXIS error</p>
  
  <pre><code>org.apache.axis2.AxisFault: Transport error: 302 Error: Found 
  </code></pre>
  
  <p>When I use it through a SOAP client like SOAPUI I am able to access the web service successfully.  </p>
  
  <p>When I looked into this have seen that this might happen if the WSDL internally uses HTTP and then redirect to HTTPS.</p>
  
  <p>Is there a way to figure out what I am missing here?</p>