[ 
http://jira.codehaus.org/browse/XFIRE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Diephouse updated XFIRE-691:
--------------------------------

    Fix Version/s:     (was: 1.2.6)
                   1.2.7

> Invalid XML elements are ignored but should throw error
> -------------------------------------------------------
>
>                 Key: XFIRE-691
>                 URL: http://jira.codehaus.org/browse/XFIRE-691
>             Project: XFire
>          Issue Type: Bug
>          Components: Aegis Module
>    Affects Versions: 1.2.2
>         Environment: OC4J 9.0.4 - UNIX - Java 1.4.2_11
>            Reporter: Gavin Hogan
>            Assignee: Dan Diephouse
>             Fix For: 1.2.7
>
>
> I was changed the name of some of the fields in in by Java interface and 
> classes that make up the soap body of a web service.  
> Once it was complete I ran a test client I have without realizing I had not 
> yet changed all of the filed names in the client.  
> I was surprised when I noticed the error I had made and  that no error was 
> detected by x-fire/AEGIS, In fact it serialized the object as though nothing 
> was wrong and when I saved to my DB the fields were blank (of course).  The 
> fields involved are optional so i cannot throw an exception simply because 
> they are absent but if there are fields with invalid names coming in as part 
> of the soap body I would like to be able to detect that as an error and throw 
> an exception.
> Below is a simple example from my client - passing an invalid element 
> <badCode/>
>  
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <soap:Body 
> xmlns="http://types.common.course.webservices.submission.institutionalresearch.sysadm.website.edu";
>  
> xmlns:course="http://common.course.webservices.submission.institutionalresearch.sysadm.website.edu";>
> <course:sendCourseBatchin0> 
>               <AddCourseServiceRequestType>
>                       <requestedAction>ADD</requestedAction>
>                       
> <actionEffectiveDate>2006-09-01T00:00:00</actionEffectiveDate>
>                       <newCourse>
>                               <CampusId>12255</CampusId>
>                               <campusCourseId>ADA 1510</campusCourseId>
>                               <courseTitle>Alcoholism</courseTitle>
>                               <courseLongTitle>Alcoholism</courseLongTitle>
>                               <courseLevelCode>2</courseLevelCode>
>                                   <!-- This is Invalid -->
>                               <badCode>015687</badCode>
>                               <creditBearing>true</creditBearing>
>                               <creditMinimum>3</creditMinimum>
>                               <creditMaximum>3</creditMaximum>
>                               <teacherCertification>0</teacherCertification>
>                               <generalEducation>false</generalEducation>
>                               
> <effectiveDate>2006-09-01T00:00:00</effectiveDate>
>                       </newCourse>
>               </AddCourseServiceRequestType>
> </course:sendCourseBatchin0>
> </soap:Body>
> </soap:Envelope>
> Thanks - Gvain

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to