on 09-07-2007 7:19 AM
Hi @,
I need to convert a String which is in XML format into the moduledata that is returned from the custom adaptor module.
I know it is to be first converted to Message then pass it to setPrincipalData but how to convert XML String to message i dont know.
please help in this conversion .
Thanks in advance.
Regards
Hi,
In order to fill the message object you will first have to create payload. fill the payload.this payload will have your string which is in xml format.
XMLPayload xp = response.createXMLPayload();
// response is of type Message
xp.setText(xml string); //set your string here.
xp.setName("MainDocument");
xp.setDescription("My xml payload");
xp.setContentType("application/xml");
response.setDocument(xp);
regards
fariha.
>>reward if useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.