Issues with XML PORTS

I am trying to develop an xml port .

XML port direction is set to both.

Some values are provided from user using request PAGE.

The issue i am facing is that the values stored in request page (entered by the user) are lost when i run the xml port (in PRE XML dataitem).

can anybody help me how to resolve the issue.

Thanks in advance.

What do you mean with lost? Have you used the debugger and evaluated when the “disapear”?

yes i tried to debug it.

what happens exactly is i am running codeunit after validating the content of request page.

and what happens is when codeunit is called the values got lost from request page.

I tried to set the xml port direction as export but that also dosent work for me.