Skip to Content
0
Former Member
Jun 06, 2005 at 05:50 PM

Deserialization Error

38 Views

Hi there,

I'Ve a surely very simple question...

After deploying and testing my webservice I always get following error:

XML Deserialization Error. XML is not valid. Node <item> child of <status> not described in Schema

If added an extra java class besides my beans called:

SystemStatusTableDTO

With the created WebService I want to return objects of that class containing a container of the also created StatusDTO class (shall be returned as array).

So what ever I do, I'm not able to get the class function with the StatusDTO Array. But I'm able to return single StatusDTO Objects.

Here is my code of the SystemStatusTableDTO class:

package com.dcx.mcg.itp.aa.projects.eeim.data;

import java.io.Serializable;


public class SystemStatusTableDTO implements Serializable
{
    
	protected	UsersDTO		user;
	protected	SystemsDTO		system;
	protected	StatusDTO[]		status;
    

	public SystemStatusTableDTO()
	{
	    
	}		  	

	
	public SystemsDTO getSystem()
	{
		return system;
	}

	public UsersDTO getUser()
	{
		return user;
	}

	

	public void setSystem(SystemsDTO systemsDTO)
	{
		system = systemsDTO;
	}

	public void setUser(UsersDTO usersDTO)
	{
		user = usersDTO;
	}

	public StatusDTO[] getStatus()
	{
		return status;
	}

	public void setStatus(StatusDTO[] statusDTOs)
	{
		status = statusDTOs;
	}

}

Where do I have to define the array?

Regards

Daniel