webmasterbeta
New Member
My .xml:
<?xml version="1.0"?>
<ImportRouterService xmlns="x-schema:http://myWebsite/ConfigFiles/ImportRouterServiceSchema.xml">
<RouterService>
<CustomerID>31065a</CustomerID>
<CPETypeID>13</CPETypeID>
<RouterTypeID>2</RouterTypeID>
<LocationID>1</LocationID>
<RouterOperationModeID>1</RouterOperationModeID>
<CentralManagementSystemID>1</CentralManagementSystemID>
<Hostname>TESTHOST</Hostname>
<VPNEnabled>1</VPNEnabled>
<FirmwareLevel>1.1</FirmwareLevel>
<ManagementWebPort>1</ManagementWebPort>
<ManagementSSLPort>2</ManagementSSLPort>
<ManagementTelnetPort>3</ManagementTelnetPort>
<ManagementSSHPort>4</ManagementSSHPort>
<RoutingProtocolInfo></RoutingProtocolInfo>
<PolicyInfo></PolicyInfo>
<HighAvailability>0</HighAvailability>
<Notes></Notes>
<OnsiteInstallDetails></OnsiteInstallDetails>
</RouterService>
<RouterService>
<CustomerID>31065</CustomerID>
<CPETypeID>13</CPETypeID>
<RouterTypeID>2</RouterTypeID>
<LocationID>1</LocationID>
<RouterOperationModeID>1</RouterOperationModeID>
<CentralManagementSystemID>1</CentralManagementSystemID>
<Hostname>TESTHOST2</Hostname>
<VPNEnabled>1</VPNEnabled>
<FirmwareLevel>1.1</FirmwareLevel>
<ManagementWebPort>1</ManagementWebPort>
<ManagementSSLPort>2</ManagementSSLPort>
<ManagementTelnetPort>3</ManagementTelnetPort>
<ManagementSSHPort>4</ManagementSSHPort>
<RoutingProtocolInfo></RoutingProtocolInfo>
<PolicyInfo></PolicyInfo>
<HighAvailability>0</HighAvailability>
<Notes></Notes>
<OnsiteInstallDetails></OnsiteInstallDetails>
</RouterService>
</ImportRouterService>
-------------------------------------------------------------------
my Schema.xml:
<Schema name="ImportRouterService"
xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="CustomerID" content="textOnly" model="closed"/>
<ElementType name="CPETypeID" content="textOnly" model="closed"/>
<ElementType name="RouterTypeID" content="textOnly" model="closed"/>
<ElementType name="LocationID" content="textOnly" model="closed"/>
<ElementType name="RouterOperationModeID" content="textOnly" model="closed"/>
<ElementType name="CentralManagementSystemID" content="textOnly" model="closed"/>
<ElementType name="Hostname" content="textOnly" model="closed"/>
<ElementType name="VPNEnabled" content="textOnly" model="closed"/>
<ElementType name="FirmwareLevel" content="textOnly" model="closed"/>
<ElementType name="ManagementWebPort" content="textOnly" model="closed"/>
<ElementType name="ManagementSSLPort" content="textOnly" model="closed"/>
<ElementType name="ManagementTelnetPort" content="textOnly" model="closed"/>
<ElementType name="ManagementSSHPort" content="textOnly" model="closed"/>
<ElementType name="RoutingProtocolInfo" content="textOnly" model="closed"/>
<ElementType name="PolicyInfo" content="textOnly" model="closed"/>
<ElementType name="HighAvailability" content="textOnly" model="closed"/>
<ElementType name="Notes" content="textOnly" model="closed"/>
<ElementType name="OnsiteInstallDetails" content="textOnly" model="closed"/>
<ElementType name="RouterService" content="eltOnly" model="closed">
<element type="CustomerID" minOccurs="1" maxOccurs="1"/>
<element type="CPETypeID" maxOccurs="1" minOccurs="1"/>
<element type="RouterTypeID" maxOccurs="1" minOccurs="1"/>
<element type="LocationID" maxOccurs="1" minOccurs="1"/>
<element type="RouterOperationModeID" maxOccurs="1" minOccurs="1"/>
<element type="RouterOperationModeID" maxOccurs="1" minOccurs="1"/>
<element type="CentralManagementSystemID" maxOccurs="1" minOccurs="1"/>
<element type="Hostname" maxOccurs="1" minOccurs="1"/>
<element type="VPNEnabled" maxOccurs="1" minOccurs="1"/>
<element type="FirmwareLevel" maxOccurs="1" minOccurs="1"/>
<element type="ManagementWebPort" maxOccurs="1" minOccurs="1"/>
<element type="ManagementSSLPort" maxOccurs="1" minOccurs="1"/>
<element type="ManagementTelnetPort" maxOccurs="1" minOccurs="1"/>
<element type="ManagementSSHPort" maxOccurs="1" minOccurs="1"/>
<element type="RoutingProtocolInfo" maxOccurs="1" minOccurs="1"/>
<element type="PolicyInfo" maxOccurs="1" minOccurs="1"/>
<element type="HighAvailability" maxOccurs="1" minOccurs="1"/>
<element type="Notes" maxOccurs="1" minOccurs="1"/>
<element type="OnsiteInstallDetails" maxOccurs="1" minOccurs="1"/>
</ElementType>
</Schema>
----------------------------------------------------------------
my .asp snippet:
Set objDOMDoc = Server.CreateObject("MSXML2.DOMDocument")
objDOMDoc.validateOnParse = True
objDOMDoc.async = False
If objDOMDoc.load (Server.MapPath("\ConfigFiles\" + XMLFilename)) Then
If Err Then
Response.ContentType = "text/html"
Response.Write "Error: " & Err.Description
Err.Clear()
Response.End
End If
.
.
.
.
End If
--------------------------------------------------------------------
my error I'm getting:
Error: Error opening input file: 'http://myWebsite/ConfigFiles/ImportRouterServiceSchema.xml'. Access is denied.
--------------------------------------------------------------------
For some reason when I add to the root element of the raw data .xml, the schema attribute, I get that error. Saying access denied, but the permissions are set to allow everyone full access, so it can't be that. Anyone else have an idea on whats going on. I'm running IE 6.0.2.
<?xml version="1.0"?>
<ImportRouterService xmlns="x-schema:http://myWebsite/ConfigFiles/ImportRouterServiceSchema.xml">
<RouterService>
<CustomerID>31065a</CustomerID>
<CPETypeID>13</CPETypeID>
<RouterTypeID>2</RouterTypeID>
<LocationID>1</LocationID>
<RouterOperationModeID>1</RouterOperationModeID>
<CentralManagementSystemID>1</CentralManagementSystemID>
<Hostname>TESTHOST</Hostname>
<VPNEnabled>1</VPNEnabled>
<FirmwareLevel>1.1</FirmwareLevel>
<ManagementWebPort>1</ManagementWebPort>
<ManagementSSLPort>2</ManagementSSLPort>
<ManagementTelnetPort>3</ManagementTelnetPort>
<ManagementSSHPort>4</ManagementSSHPort>
<RoutingProtocolInfo></RoutingProtocolInfo>
<PolicyInfo></PolicyInfo>
<HighAvailability>0</HighAvailability>
<Notes></Notes>
<OnsiteInstallDetails></OnsiteInstallDetails>
</RouterService>
<RouterService>
<CustomerID>31065</CustomerID>
<CPETypeID>13</CPETypeID>
<RouterTypeID>2</RouterTypeID>
<LocationID>1</LocationID>
<RouterOperationModeID>1</RouterOperationModeID>
<CentralManagementSystemID>1</CentralManagementSystemID>
<Hostname>TESTHOST2</Hostname>
<VPNEnabled>1</VPNEnabled>
<FirmwareLevel>1.1</FirmwareLevel>
<ManagementWebPort>1</ManagementWebPort>
<ManagementSSLPort>2</ManagementSSLPort>
<ManagementTelnetPort>3</ManagementTelnetPort>
<ManagementSSHPort>4</ManagementSSHPort>
<RoutingProtocolInfo></RoutingProtocolInfo>
<PolicyInfo></PolicyInfo>
<HighAvailability>0</HighAvailability>
<Notes></Notes>
<OnsiteInstallDetails></OnsiteInstallDetails>
</RouterService>
</ImportRouterService>
-------------------------------------------------------------------
my Schema.xml:
<Schema name="ImportRouterService"
xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="CustomerID" content="textOnly" model="closed"/>
<ElementType name="CPETypeID" content="textOnly" model="closed"/>
<ElementType name="RouterTypeID" content="textOnly" model="closed"/>
<ElementType name="LocationID" content="textOnly" model="closed"/>
<ElementType name="RouterOperationModeID" content="textOnly" model="closed"/>
<ElementType name="CentralManagementSystemID" content="textOnly" model="closed"/>
<ElementType name="Hostname" content="textOnly" model="closed"/>
<ElementType name="VPNEnabled" content="textOnly" model="closed"/>
<ElementType name="FirmwareLevel" content="textOnly" model="closed"/>
<ElementType name="ManagementWebPort" content="textOnly" model="closed"/>
<ElementType name="ManagementSSLPort" content="textOnly" model="closed"/>
<ElementType name="ManagementTelnetPort" content="textOnly" model="closed"/>
<ElementType name="ManagementSSHPort" content="textOnly" model="closed"/>
<ElementType name="RoutingProtocolInfo" content="textOnly" model="closed"/>
<ElementType name="PolicyInfo" content="textOnly" model="closed"/>
<ElementType name="HighAvailability" content="textOnly" model="closed"/>
<ElementType name="Notes" content="textOnly" model="closed"/>
<ElementType name="OnsiteInstallDetails" content="textOnly" model="closed"/>
<ElementType name="RouterService" content="eltOnly" model="closed">
<element type="CustomerID" minOccurs="1" maxOccurs="1"/>
<element type="CPETypeID" maxOccurs="1" minOccurs="1"/>
<element type="RouterTypeID" maxOccurs="1" minOccurs="1"/>
<element type="LocationID" maxOccurs="1" minOccurs="1"/>
<element type="RouterOperationModeID" maxOccurs="1" minOccurs="1"/>
<element type="RouterOperationModeID" maxOccurs="1" minOccurs="1"/>
<element type="CentralManagementSystemID" maxOccurs="1" minOccurs="1"/>
<element type="Hostname" maxOccurs="1" minOccurs="1"/>
<element type="VPNEnabled" maxOccurs="1" minOccurs="1"/>
<element type="FirmwareLevel" maxOccurs="1" minOccurs="1"/>
<element type="ManagementWebPort" maxOccurs="1" minOccurs="1"/>
<element type="ManagementSSLPort" maxOccurs="1" minOccurs="1"/>
<element type="ManagementTelnetPort" maxOccurs="1" minOccurs="1"/>
<element type="ManagementSSHPort" maxOccurs="1" minOccurs="1"/>
<element type="RoutingProtocolInfo" maxOccurs="1" minOccurs="1"/>
<element type="PolicyInfo" maxOccurs="1" minOccurs="1"/>
<element type="HighAvailability" maxOccurs="1" minOccurs="1"/>
<element type="Notes" maxOccurs="1" minOccurs="1"/>
<element type="OnsiteInstallDetails" maxOccurs="1" minOccurs="1"/>
</ElementType>
</Schema>
----------------------------------------------------------------
my .asp snippet:
Set objDOMDoc = Server.CreateObject("MSXML2.DOMDocument")
objDOMDoc.validateOnParse = True
objDOMDoc.async = False
If objDOMDoc.load (Server.MapPath("\ConfigFiles\" + XMLFilename)) Then
If Err Then
Response.ContentType = "text/html"
Response.Write "Error: " & Err.Description
Err.Clear()
Response.End
End If
.
.
.
.
End If
--------------------------------------------------------------------
my error I'm getting:
Error: Error opening input file: 'http://myWebsite/ConfigFiles/ImportRouterServiceSchema.xml'. Access is denied.
--------------------------------------------------------------------
For some reason when I add to the root element of the raw data .xml, the schema attribute, I get that error. Saying access denied, but the permissions are set to allow everyone full access, so it can't be that. Anyone else have an idea on whats going on. I'm running IE 6.0.2.