Posts

Showing posts with the label Interceptors

ORVE WS (Dynamic) (3) : Interceptors and XML conversation. Retrieving the XML Message received from server

1. Introduction As we know from the two previous posts, there may be problems while unmarshalling the " AnyTypeArray " class. The solution provided was: Generate the scaffolding package " https.ssweb_seap_minhap_es.demoorve " with wsdl2java command. Modify the " AnyTypeArray " class and replace all occurrences of List<Object> with List< Integer >. The rest of the classes are not needed for the dynamic client. So they can be deleted (except  AnyTypeArray) . But if we want to analyze the XML conversation between client and server or log it or even change part of this XML, it can be used interceptors. NOTE: I have not been able to aply interseptors to get the REQUEST, only  I have got  the RESPONSE  XML code! For this case, I can only see how a class is transformed to XML Here is a procedure to creae an object dynamically, and the use Jackson parser to marshall to XML and after that you can test if this XML has the proper tags 1 2...