Skip to Content.
Sympa Menu

mace-opensaml-users - unable to obtain typed builder for ...

Subject: OpenSAML user discussion

List archive

unable to obtain typed builder for ...


Chronological Thread 
  • From: owen nirvana <>
  • To:
  • Subject: unable to obtain typed builder for ...
  • Date: Mon, 22 Mar 2010 15:54:46 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=MNFUKaRIEInuEpbBxS/8hZwokoP8644u8ao/vJ3ZdBjk+UalvZR3fBHK+xorOGrZ02 BZWAwtsN/nhKgDxLN4FQ7GRoKedkx86stxCDfJHxrkZl8/MaSnhN6n2/N6GVZMrY4bNt fVxqUJ9OEsDl1zqOtQXrHpOknQ4q9zguEmChY=

hi, I am a new bie.

I try to write an app to issue SAML assertion with opensaml-2.3.0, xmltooling-1.3.3, xml-security-1.5.1, xerces-c-3.1.0.

the following code will throw a XMLObjectException, error info "unable to typed builder for issuer"

Issuer issuer = IssuerBuilder::buildIssuer();

it is the same as NameID, Subject, Conditions ...  

I am sure I have included all header files which should be included.

the following is stdafx



/*
 * ==============================
=======================================================
 *
 *       Filename:  stdafx.h
 *
 *    Description: 
 *
 *        Version:  1.0
 *        Created:  2010年03月18日 07时56分09秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Fu Zombo (),
 *        Company:  61s
 *
 * =====================================================================================
 */

#include        <ctime>
#include    <cstdlib>
#include    <sstream>
#include        <fstream>
#include    <iostream>
#include        <exception>

#include    <string>
#include    <vector>
#include        <valarray>
#include    <iterator>
#include    <algorithm>
#include    <functional>

#include    <boost/foreach.hpp>
#include    <boost/tuple/tuple.hpp>
#include    <boost/assign.hpp>
#include    <boost/assign/list_inserter.hpp>

using namespace std;

using namespace boost;

#define foreach BOOST_FOREACH



#include <xercesc/dom/DOM.hpp>
#include <xercesc/framework/LocalFileInputSource.hpp>
#include <xercesc/framework/StdInInputSource.hpp>
#include <xercesc/framework/Wrapper4InputSource.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/sax/SAXParseException.hpp>

#include <xercesc/util/Base64.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/PlatformUtils.hpp>

using namespace xercesc;

#include    <xmltooling/exceptions.h>
#include        <xmltooling/logging.h>
#include    <xmltooling/XMLObject.h>
#include    <xmltooling/XMLObjectBuilder.h>
#include        <xmltooling/XMLToolingConfig.h>
#include        <xmltooling/util/ParserPool.h>
#include        <xmltooling/util/DateTime.h>
#include        <xmltooling/util/URLEncoder.h>
#include    <xmltooling/validation/Validator.h>
#include        <xmltooling/security/Credential.h>
#include        <xmltooling/security/CredentialCriteria.h>
#include        <xmltooling/security/CredentialResolver.h>
#include        <xmltooling/security/Credential.h>
#include        <xmltooling/security/SignatureTrustEngine.h>
#include        <xmltooling/signature/KeyInfo.h>
#include        <xmltooling/signature/Signature.h>
#include        <xmltooling/signature/SignatureValidator.h>

using namespace xmlsignature;

using namespace xmlconstants;

using namespace xmltooling::logging;

using namespace xmltooling;

#include    <saml/SAMLConfig.h>
#include    <saml/exceptions.h>
#include    <saml/saml2/core/Assertions.h>
#include    <saml/saml2/metadata/Metadata.h>
#include        <saml/saml2/metadata/MetadataProvider.h>
#include        <saml/saml2/metadata/MetadataCredentialCriteria.h>
#include        <saml/signature/SignatureProfileValidator.h>
#include        <saml/util/SAMLConstants.h>


using namespace opensaml::saml2md;

using namespace opensaml::saml2;

using namespace samlconstants;

#define SUCCESS 1
#define FAILURE 0





Archive powered by MHonArc 2.6.16.

Top of Page