Request error with a complex object

0

I'm trying to make a request for a webservice.

Notice that with SoapUI it works normally

But by the Android passing exactly the same data

The following error occurred:

        SoapFault - faultcode: 'soap:Client' faultstring: 'System.Web.Services.Protocols.SoapException: O servidor não pôde ler a solicitação. ---> System.InvalidOperationException: Erro no documento XML (1, 297). ---> System.InvalidOperationException: O tipo especificado não foi reconhecido: nome='anyType', espaço para nome='http://www.w3.org/2001/XMLSchema', em <pDenuncia xmlns='http://localhost'>.
        em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read19_Denuncia_Grid_BD(Boolean isNullable, Boolean checkType)
     

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read50Disolicitar_Denuncia ()      in System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)      - - End of internal exception stack trace - -       in System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)      at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters ()      - - End of internal exception stack trace - -       at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters ()      at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest () 'faultactor:' null 'detail: org.kxml2.kdom.Node@ce52050

Remembering that the object has the same name and properties, both in the web service project and in the android project.

    
asked by anonymous 16.07.2018 / 19:29

1 answer

0

public class SuaClasse implements Serializable

And if your class has other classes, you'll also need to add implements Serializable to them

    
17.07.2018 / 02:09