IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  401 Authorization Required

    Posted Tue August 22, 2006 01:03 AM

    I am trying to connect to the Tamino database with the following code:

    <?php
    
    require_once("TaminoAPI.php");
    require_once("TaminoHelperFunctions.php");
    
    
    // create TaminoAPI object
    $tamino = &new TaminoAPI("ssl://server.name.com",443,"test1","username","********");            
    
    $tamino->setHttpRequestMethod("POST");
    $tamino->setCollection("collection");
    
    $results = new DOMDocument();
    
    
    $query = "input()/quiz";
    
    if(!$tamino->xquery($query)){
    thfPrintError($tamino);
    }
    else{
    $tamino->printResultBody();
    }	
    
    ?>

    This code worked great for a previous project I was working on that had a different login, but when I change the username and password to the new account that I am working with it gives me a 401 Authorization Required error. I am absolutely sure that the username and password I am using are correct and I can access the database through the Tamino Interactive Interface with them. Any suggestions?


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 2.  RE: 401 Authorization Required

    Posted Wed August 23, 2006 07:31 PM

    Scott has solved this problem. He had to escape some special characters in his password.


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management