Hi Samuel

 

The line you’ve highlighted is just a reference to a model group. Model groups are treated as if the reference to the model group were resolved in place and the names of the elements etc. which the model group defines inserted in place. From your http://era.nih.gov/Projectmgmt/SBIR/dev/rarschema.xsd  schema it looks as though the model group ContactPersonType resolves to 2 elements: Name and ContactInformation. You should see getters/setters for those instead of for ContactPersonType.

 

Cheers,

 

Lawrence

 


From: Samuel B. Quiring [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 19, 2005 10:18 AM
To: [email protected]
Subject: How do I debug?

 

Greetings,

 

I have successfully compiled a schema.  I have an Eclipse project/program that is utilizing the generated classes.  The program reads in a SOAP file, breaks it apart, hands a SOAPElement to the parse() member, which returns a Document.  The code retrieves a simple value and prints it.  The value is correct!

 

However, the next value it retrieves is not so simple.  And that does not work, I get a null pointer exception.  How do I debug this?

 

The schema in question is http://era.nih.gov/Projectmgmt/SBIR/dev/personinforesponse.xsd.  Here's the excerpt that includes what's working and what's not:

 

<xs:element name="PersonAffiliationInfo">
    <xs:complexType>
        <xs:sequence>
            <xs:group ref="rar:ContactPersonType" />
            <xs:element name="PreferredAddressCode" type="pireq:YesNoIndicator" />
            <xs:element name="Degree" type="xs:token" maxOccurs="unbounded" />
            <xs:element name="PositionTitle" type="xs:token" />
            <xs:element name="PriorGrant" type="nih:GrantNumberType" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
    </xs:complexType>
</xs:element>

 

I am able to successfully retrieve the PositionTitle.  I am not able to retrieve the ContactPersonType, which comes from the schemas:

 

I have my fingers crossed that this works, but I'm starting to get nervous.

 

-Sam

Reply via email to