I would recommend you check out the Database Accelerator Web Services Suite.
It may be useful to you instead of building web services fom scratch but also
there are support tutorials which show how to pass parameters to the
webservices which may be what you need.
http://www.qdabra.com

Signature
Thanks
Clay Fox
Qdabra Software
http://www.qdabra.com
InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
> I have an infopath form that I need to set the secondary datasources
> value at runtime. The value should be set to a value that is always in
[quoted text clipped - 14 lines]
> the main datasource out of the box? If not any code sample to point
> me in the right direction would be much appreciated.