Changing a connection for an adapter service

Hi,
I am using the pub.art.service:setAdapterServiceNodeConnection in WmART to change the connection associated with an adapter service. But once I change the connection, the inputFieldNames and inputFieldTypes in the adapter service vanish. Can someone help me in resetting these values after changing the connection.
I have one adapter service and have to use with different connections.

Thanks,
Rajesh