use the code below..
System.Xml.Serialization.XmlRootAttribute xRoot = new System.Xml.Serialization.XmlRootAttribute();
xRoot.ElementName = "EnvironmentConfigurations";
xRoot.IsNullable = true;
System.Xml.Serialization.XmlSerializer ser = new System.Xml.Serialization.XmlSerializer(typeof(<your Type>), xRoot);
<your type> x = (<your Type>)ser.Deserialize(new System.IO.StringReader());
The first line should be something like
<?xml version="1.0" encoding="utf-8" ?>
The second character of the first line must be a question mark, and that's the position shown in the error message. Obvioulsy, you've somehow lost your first line.
The problem was with the root node element which i changed. I kept the root name as ArrayOfEnvironmentConfigurations and the problem was solved. Thanks for replying.
When you expose your WCF service over HTTP you will be able to extract WSDL and Reference map for your service. You can use it in your JAVA application just like any other classic web service's WSDL and configure it to consume the same. My experience is close to 0 on JAVA so I'm not in a position to help you with the details.
WCF is supposed to be much more compliant with standards than webservices but I have no experience with java and couldn't tell you definitely. What I do know is that a developer writing a WCF service can certainly make it so that it would NOT work with java. Meaning because it's WCF doesn't automatically make it consumable from java. I am currently writing a WCF service and have gone to great lengths to make it as vanilla as possible for that reason ... I would be interested in trying this with you. I could write a very simple service and see if you can consume it. But again.. I wouldn't be able to help on the java side of things at all. ~j