
I am running smidump on "RFC1213-MIB" as follows:
smidump.exe --xsd-container --xsd-schema-url="http://localhost:8080/snmp-gw/xsd" -f xsd -o RFC1213-MIB.xsd RFC1213-MIB
The result is the following XML:
<xsd:schema targetNamespace="http://localhost:8080/snmp-gw/xsd/RFC1213-MIB" xmlns="http://localhost:8080/snmp-gw/xsd/RFC1213-MIB" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:smi="http://localhost:8080/snmp-gw/xsd/smi"
xmlns:RFC1155-SMI="http://localhost:8080/snmp-gw/xsd/RFC1155-SMI"
xmlns:SNMPv2-TC="http://localhost:8080/snmp-gw/xsd/SNMPv2-TC" xmlns:RFC-1212="http://localhost:8080/snmp-gw/xsd/RFC-1212" xml:lang="en" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://www.ibr.cs.tu-bs.de/projects/libsmi/xsd/smi" schemaLocation="http://www.ibr.cs.tu-bs.de/projects/libsmi/xsd/smi.xsd%22/
xsd:import namespace="http://localhost:8080/snmp-gw/xsd/RFC1155-SMI" schemaLocation="http://localhost:8080/snmp-gw/xs d/RFC1155-SMI.xsd"/ xsd:import namespace="http://localhost:8080/snmp-gw/xsd/SNMPv2-TC" schemaLocation="http://localhost:8080/snmp-gw/xsd/ SNMPv2-TC.xsd"/ <xsd:import namespace="http://localhost:8080/snmp-gw/xsd/RFC-1212" schemaLocation="http://localhost:8080/snmp-gw/xsd/R FC-1212.xsd"/> ...
Note the the namespace generated for smi ("http://localhost:8080/snmp-gw/xsd/smi") does not match the import ("http://www.ibr.cs.tu-bs.de/projects/libsmi/xsd/smi.xsd"). The import statement seems to be hardcoded in dump-xsd.c, but the xmlns is uses the specified commandline url prefix. Am I missing something? I am trying to use the snmp-xml gateway code and it is choking on this import. When I manually change the xmlns to reference www.ibr.cs.tu-bs.de, everything works fine.
Steve