I'm developing a WCF Service to be consumed by InfoPath 2007 forms. After adding the Service as a secondary Datasource, InfoPath itself will autogenerate a certain Structure. for example:
my Problem with this are the generated xpaths. displayname's xpath for example:
/dfs:myFields/dfs:dataFields/ns3:whoamiResponse/ns3:whoamiResult/q1:displayname
Since my Webservice has to replace an older one which is implemented in many forms with logic refferencing exactly a certain xpath i have to get the exact same xpath generated in my new Webservice.
How can i influence these generated prefixes like ns3:whoamiResult/q1:displayname ?
I noticed that q1 appeared after i changed the return type of my Operation from DataSet to a custom Class. And tns/ns1/ns2/ns3 .. is depending on Namespaces i changed in the [ServiceContract], [ServiceBehaviour] and some other Attributes.
[ServiceContract(Name="Webservice", Namespace = "BestNamespaceToBeEnteredHere")]
public interface IWebservice
{
[OperationContract]
//...
}
Could someone point me into the right direction? Can i somehow pass a cusstom Schema with the Webservice Response where i can define how the structure should look like?
cheers! phil