One more thing I forgot to add is that I do not want to retrieve any data for the infopath form. I only want to use the receive web method to get the schema for the form. I do not know if the above code is the best for this or not.
I also have another dilemma. I cannot use a direct database connection to retrieve my schema because image type is not supported, so I need to use web services. Howerver, I read that web services or using an XSD schema has another issue: that int types cannot be blank in the form. (This is not a problem with database connections that can optional int types with null). The only solution I have read is to manually edit the XSD file to add the nil attribute or buy the Qdabra suite. Editing the file is not reasonable for me, since I have over 1000 fields. The Qdabra would be great, but it is very expensive for my company. I am just so frustrated with this infopath stuff already.
thanks