What i have done is, created a soap-java based client and calling the runscript method. Now i am able to get these fields but how to send these fields back to the client i.e. how to write this in response and then at client side how to read it from response.

1. How to write in response, which i think will be solved by above line of code as you mentioned.

2. Second is now how to read this response back where i have called the runscript method. Again i have read in the doc that this method returns RunScriptResponse but when i have seen ServicePortType class, it returns void. So here i got stuck. Now until and unless i read the response how could i find out that whether something is being written in response or not.