Commit 7e451a72 authored by Srikanth Chikkulapelly's avatar Srikanth Chikkulapelly
Browse files

Updated web accessible credential schema location.

parent 994a9404
......@@ -28,13 +28,13 @@ my $OUTERBOSS_NODENAME = "@OUTERBOSS_NODENAME@";
my $user = "geniuser";
my $group = "GeniSlices";
use vars qw($EXTENSIONS_NS $XSI_NS $EXTENSIONS_PREFIX $EXTENSIONS_SCHEMA_LOCATION);
use vars qw($EXTENSIONS_NS $XSI_NS $EXTENSIONS_PREFIX $EXTENSIONS_SCHEMA_LOCATION $CREDENTIAL_SCHEMA_LOCATION);
#Extensions namespace URI.
# TODO: pick the right NS URI, prefix and update here.
$EXTENSIONS_NS = "http://www.protogeni.net/resources/credential/ext/policy/1";
$XSI_NS = "http://www.w3.org/2001/XMLSchema-instance";
$EXTENSIONS_PREFIX = "policyExt";
$EXTENSIONS_SCHEMA_LOCATION = "http://www.protogeni.net/resources/credential/ext/policy/1/policy.xsd";
$CREDENTIAL_SCHEMA_LOCATION = "http://www.protogeni.net/resources/credential/credential.xsd";
sub GENI_PURGEFLAG() { return 1; }
......
......@@ -222,7 +222,7 @@ if ($root->nodeName eq "credential") {
my $newroot = XML::LibXML::Element->new('signed-credential');
$newroot->setNamespace($GeniUtil::XSI_NS, "xsi", 0);
$newroot->setAttributeNS($GeniUtil::XSI_NS, "noNamespaceSchemaLocation"
, $SCHEMA);
, $GeniUtil::CREDENTIAL_SCHEMA_LOCATION);
$newroot->setAttributeNS($GeniUtil::XSI_NS, "schemaLocation"
, $GeniUtil::EXTENSIONS_NS . " "
. $GeniUtil::EXTENSIONS_SCHEMA_LOCATION);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment