Hi guys,
I have a problem that I seem unable to solve. Since I cannot find anything on it on the web I assume it's either incredibly stupid, or rather unique.
I have a WCF service that works well. It creates an XMLDocument and return doc.InnerXML. I debbuged its contents, this is 100% correct XML.
But.
If I call the service from a browser (or directly call the service from code) I get something extra that I did not expect, or can get rid off:
<?xml version="1.0" encoding="UTF-8"?>
<string><tblPatientCollection><tblPatient FirstName="E.M.J."><PatientId>7</PatientId><decimal>1,2</decimal></tblPatient></tblPatientCollection></string>
Notice the
<string>
at the beginning and the closing string at the end? The doc itself does not contain that, as I can see when I debug the code.
Could it be my config? Something else?
<system.serviceModel>
<services>
<service behaviorConfiguration="ServiceBehavior" name="iOSService.TheService">
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" contract="iOSService.TheImplementation" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="True"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp defaultOutgoingResponseFormat="Xml" defaultBodyStyle="Bare" helpEnabled="False" />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="True" />
</system.serviceModel>
Help would be very much appreciated!
Thx, Michel.