on 06-19-2009 11:02 AM
Hi all,
What is meant by "desearilizing error" ? Please provide information or links on this.
And what should be done inorder to overcome it.
I have a client proxy in SAP and i am trying to consume a WEB SERVICE from .NET.
The services has 1 input parameter which is String datatype.
But when i test it i am getting Deserializing Error as
'CX_SY_CONVERSION_NO_DATE_TIME:XSLT exception'.
Please help. I am on the end of my wits :).
Thanks & Regards.
Yats.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question: what is DESERIALIZATION ERROR
Answer: When you get the replay from .NET server, it is an XML document that needs to be converted into ABAP objects. The ABAP proxy tries to parse that XML and populate the ABAP objects -- this is called DESERIALIZATION.
The way ABAP proxy parses the XML response from a remote server depends on what is the XML "structure" it was programmed to expect. That "structure" is described in XSD part of WSDL. If you manually trim WSDL, the inner XSD (schema) definition may be compromised, and although you successfully create the proxies, yet those proxies would be expecting a slightly different structure of XML streams. Hence when the XML stream comes in, and the proxy tried to de-serialize (parse) to create ABAP object, it fails. This is called DESERIALIZATION ERROR.
You mentioned that you could successfully get a single record, while when multiple records came from server, it failed.
This happens because XSD schema is telling the proxy generator to somehow expect a single record, instead of creating a collection (Array) of records -- again a schema mismatch.
Solution: You need to analyze the incoming stream of XML through a tool e.g. Altoa XML Spy. That way you would figure out if the incoming stream is according to the trimmed WSDL you used to create you ABAP proxies.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.