users@jaxb.java.net

xsom usage question

From: Meredith Gregory <lgreg.meredith_at_gmail.com>
Date: Thu, 9 Oct 2008 10:25:45 -0700

Jaxbians,
i'm trying to follow this basic usage
example<https://xsom.dev.java.net/userguide.html>and not getting much
success. i'm calling the methods from scala, but that
has never interfered with java behavior for me in the past. i've got a
schema associated with a wsdl file (see below). i need to process it. i
create an instance of

scala> new com.sun.xml.xsom.parser.XSOMParser();
new com.sun.xml.xsom.parser.XSOMParser();
new com.sun.xml.xsom.parser.XSOMParser();
res35: com.sun.xml.xsom.parser.XSOMParser =
com.sun.xml.xsom.parser.XSOMParser_at_b8b79b

scala>

i get a file stream to the schema in question

scala> new
java.io.FileInputStream("/Users/lgm/work/src/projex/bobj/magritte/pipe-cutter/java/Webutron/CalculatorApp/build/generated/wsgen/service/resources/CalculatorWSService_schema1.xsd")
new
java.io.FileInputStream("/Users/lgm/work/src/projex/bobj/magritte/pipe-cutter/java/Webutron/CalculatorApp/build/generated/wsgen/service/resources/CalculatorWSService_schema1.xsd")
new
java.io.FileInputStream("/Users/lgm/work/src/projex/bobj/magritte/pipe-cutter/java/Webutron/CalculatorApp/build/generated/wsgen/service/resources/CalculatorWSService_schema1.xsd")
res45: java.io.FileInputStream = java.io.FileInputStream_at_4fef8

scala>

i call parse and then ask for the result

scala> res35.parse( res45 )
res35.parse( res45 )
res35.parse( res45 )

scala> res35.getResult()
res35.getResult()
res35.getResult()
res47: com.sun.xml.xsom.XSSchemaSet = null

scala>

As you can see the schema set is null. Any help would be greatly
appreciated.

Best wishes,

--greg

-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com