none
Trying to catch FaultException but get CommunicationException RRS feed

  • Question

  • I have written a WCF client that consumes a web service (which I do not control), written in Java and based on the axis framework, that uses heighten security, 
    in using certificates, timestamp's etc.

    The service is working as intend apart from that I can't catch the FaultExceptions generated from it. When I try I get the follow CommuncationException:   

    Server returned an invalid SOAP Fault.  Please see InnerException for more details.
    InnerException: Unbound prefix used in qualified name 'soapenv:Server'.

    The exception is referencing the content of the faultcode field within the fault body. I logged the response and from that I can see that it has written soapenv:Server.

    <NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/">
      <NS1:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
        ...
      </NS1:Header>
      <NS1:Body>
        <NS1:Fault>
          <faultcode xmlns="">soapenv:Server</faultcode>
          <faultstring xmlns="">Server Error</faultstring>
          <detail xmlns="">
            <Status code="1" comment="Anmodning er allerede afvist"/>
            <NS2:Reason xmlns:NS2="http://www.atp.dk/oioidws/profile-1.1" systemId="ZFPCANC009" handle="15127105-e3c4-4708-96f0-1cbc015bc86f"/>
          </detail>
        </NS1:Fault>
      </NS1:Body>
    </NS1:Envelope>

    It has now come to my understanding that this behavior, to prefix values with namespaces, within the faultcode, is a SOAP 1.2 behavior.
    However my intent is to reference this service through SOAP 1.1.

    I believed that was what I did but I might miss something here.

    Below you will find my current binding to the service.

    <bindings>
      <customBinding>
        <binding name="FeriepengeinfoAnmodningerBinding1">
          <security allowSerializedSigningTokenOnReply="true" authenticationMode="MutualCertificateDuplex"
                    requireDerivedKeys="false" includeTimestamp="true" allowInsecureTransport="false"
                    messageSecurityVersion="WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10" />
          <textMessageEncoding messageVersion="Soap11WSAddressing10" />
          <httpsTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                    hostNameComparisonMode="WeakWildcard"/>
        </binding>
      </customBinding>
    </bindings>

    As you can see it is a custombinding which I would claim is configured to run SOAP 1.1 (due to the MessageVersion attribute).

    Could someone please give me a hint what I could do to solve the CommuncationException and make it possible to trap the FaultException instead?

    Any help would be appricated 


    For reference - Here is the WSDL to the axis service:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSpy v2009 (http://www.altova.com) by atp (atp) -->
    <wsdl:definitions xmlns:tns="urn:oio:atp:feriepengeinfo:anmodninger:wsdl:1.0.0" xmlns:fp="urn:oio:atp:feriepengeinfo:anmodninger:1.0.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns1="http://rep.oio.dk/cvr.dk/xml/schemas/2005/03/22/" xmlns:ns2="urn:oio:atp:1.0.0" xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" name="FeriepengeinfoAnmodninger" targetNamespace="urn:oio:atp:feriepengeinfo:anmodninger:wsdl:1.0.0">
      <wsdl:documentation><ServiceName>FeriepengeinfoAnmodninger</ServiceName><Version>1</Version></wsdl:documentation>
      <wsdl:types>
        <xsd:schema elementFormDefault="qualified" targetNamespace="urn:oio:atp:feriepengeinfo:anmodninger:1.0.0">
          <xsd:include schemaLocation="http://digitaliser.dk/resource/2722263/artefact/AfvisFeriepengeinfoAnmodning.xsd"/>
          <xsd:include schemaLocation="http://digitaliser.dk/resource/2722269/artefact/AfvisFeriepengeinfoAnmodningSvar.xsd"/>
        </xsd:schema>
      </wsdl:types>
      <wsdl:message name="AfvisFeriepengeinfoAnmodningRequest">
        <wsdl:part name="AfvisFeriepengeinfoAnmodningBody" element="fp:AfvisFeriepengeinfoAnmodning"/>
      </wsdl:message>
      <wsdl:message name="AfvisFeriepengeinfoAnmodningResponse">
        <wsdl:part name="AfvisFeriepengeinfoAnmodningResponseBody" element="fp:AfvisFeriepengeinfoAnmodningSvar"/>
      </wsdl:message>
      <wsdl:portType name="FeriepengeinfoAnmodningerInterface">
        <wsdl:operation name="AfvisFeriepengeinfoAnmodning">
          <wsdl:input name="AfvisFeriepengeinfoAnmodningRequest" message="tns:AfvisFeriepengeinfoAnmodningRequest">
          </wsdl:input>
          <wsdl:output name="AfvisFeriepengeinfoAnmodningResponse" message="tns:AfvisFeriepengeinfoAnmodningResponse">
          </wsdl:output>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="FeriepengeinfoAnmodningerBinding" type="tns:FeriepengeinfoAnmodningerInterface">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="AfvisFeriepengeinfoAnmodning">
          <soap:operation soapAction="urn:oio:atp:feriepengeinfo:anmodninger:wsdl:1.0.0:#AfvisFeriepengeinfoAnmodning"/>
          <wsdl:input name="AfvisFeriepengeinfoAnmodningRequest">
            <soap:body parts="AfvisFeriepengeinfoAnmodningBody" use="literal"/>
          </wsdl:input>
          <wsdl:output name="AfvisFeriepengeinfoAnmodningResponse">
            <soap:body parts="AfvisFeriepengeinfoAnmodningResponseBody" use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="FeriepengeinfoAnmodninger">
        <wsdl:port name="FeriepengeinfoAnmodninger" binding="tns:FeriepengeinfoAnmodningerBinding">
          <soap:address location="https://ws.atp.dk/FeriepengeinfoAnmodninger"/>
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>


    • Edited by Søren J Thursday, May 4, 2017 1:42 PM
    Thursday, May 4, 2017 11:47 AM

All replies

  • Hello Søren J,

    I might be misunderstanding your intent, but what it sounds like is the service is set to communicate in SOAP 1.2 (take a look at the wsdl (xmlns:xsd="http://www.w3.org/2001/XMLSchema")

    You are not able to change the communication protocol in the client.  In other words the server is in charge and you need to set your bindings to match the server.

    Hope this helps!


    Cheers, Jeff

    Friday, May 5, 2017 2:32 AM
  • Hi Jeff

    Thanks for your reply.

    I was not aware of that it was the namespace that defined the SOAP version. Getting smarter every day ;)

    So now I wonder how to solve this. You write the server is dictating which SOAP version the client may use.

    Now please correct me if I get this wrong but I assume that the client expect the messages to run SOAP 1.1 because I have set the MessageVersion to Soap11WSAddressing10.

    If that is true, the logical thing to do would be to change the MessageVersion so it uses SOAP 1.2 and everything should be good. Right?

    However when I use Soap12WSAddressing10 I will receive the following error:

    The HTTP service located at https://ws.atp.dk/FeriepengeinfoAnmodninger is unavailable.
    This could be because the service is too busy or because no endpoint was found listening at the specified address.
    Please ensure that the address is correct and try accessing the service again later.

    In addition - the very same WSDL I posted earlier, contains more Operations then listed, never the less I shortend it down due to the size. These Operations works with the current setup as long they do not throw an exception.

    However changing the MessageVersion from Soap11WSAddressing10 to Soap12WSAddressing10 will break the entire call, by throwing the very same exception listed above.

    I wondered if could have misspelled the property, so I misspelled the property on purpose to see what happens and could conclude that this would be detected by the following error message:

    The value of the property 'messageVersion' cannot be parsed.
    The error is: The value 'Soap123WSAddressing10' is not a valid instance of type 'System.ServiceModel.Channels.MessageVersion'.
    Parameter name: value

    Obvious there is something I do not do right here but I just can't figure out what. Do you have any suggestion what I could try instead?


    • Edited by Søren J Monday, May 8, 2017 11:47 AM
    Monday, May 8, 2017 11:44 AM
  • Hmmm.  The plot thickens.  If you generated your client based on the wsdl then my guess is the server you are connecting to is not a WCF service (I ran into these type of problems with Java based services).

    If this is the case then things get a little trickier.  The reason I say this is this looks weird/incorrect to me:

    <faultcode xmlns="">soapenv:Server</faultcode>

    I am surprised you are getting an error with this as it is content so it should not be parsed and through the error.

    Did you grab the error message using WCF Trace Viewer?  If so, could you open the file using a text editor (e.g., notepad++) and search for the error and copy the fault message.  Sometimes if there is a special character sent the message will fail but not show the special character in the WCF Trace Viewer.


    Cheers, Jeff

    Monday, May 8, 2017 8:48 PM
  • The service I consume is written in JAVA based on the AXIS2 engine - so your right in your first impression.

    I could not find any suspicious special characters but the trace log contains three Exceptions. This is the sequence in which they come:

    1. System.ServiceModel.Security.MessageSecurityException
    2. System.Xml.XmlException
    3. System.ServiceModel.CommunicationException

    Here is the entire log:

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:27.0527257Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" RelatedActivityID="{7ab8fb9b-252f-494b-b96d-03222326d3d3}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Start">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:27.0667265Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{7ab8fb9b-252f-494b-b96d-03222326d3d3}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Construct ChannelFactory. Contract type: 'atp.console.anmodninger.FeriepengeinfoAnmodningerInterface'.</ActivityName>
    						<ActivityType>Construct</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:27.4287487Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{7ab8fb9b-252f-494b-b96d-03222326d3d3}" RelatedActivityID="{00000000-0000-0000-0000-000000000000}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Stop">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:27.4287487Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{7ab8fb9b-252f-494b-b96d-03222326d3d3}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Construct ChannelFactory. Contract type: 'atp.console.anmodninger.FeriepengeinfoAnmodningerInterface'.</ActivityName>
    						<ActivityType>Construct</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:32.1310177Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" RelatedActivityID="{75a2a941-a787-44fd-bf7f-0c96b13777bc}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Start">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:32.1310177Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{75a2a941-a787-44fd-bf7f-0c96b13777bc}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Open ClientBase. Contract type: 'atp.console.anmodninger.FeriepengeinfoAnmodningerInterface'.</ActivityName>
    						<ActivityType>Open</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:33.8351151Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{75a2a941-a787-44fd-bf7f-0c96b13777bc}" RelatedActivityID="{00000000-0000-0000-0000-000000000000}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Stop">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:33.8361152Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{75a2a941-a787-44fd-bf7f-0c96b13777bc}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Open ClientBase. Contract type: 'atp.console.anmodninger.FeriepengeinfoAnmodningerInterface'.</ActivityName>
    						<ActivityType>Open</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:33.8431156Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" RelatedActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Start">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:33.8431156Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Process action 'urn:oio:atp:feriepengeinfo:anmodninger:wsdl:1.0.0:#AfvisFeriepengeinfoAnmodning'.</ActivityName>
    						<ActivityType>ProcessAction</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131075</EventID>
    		<Type>3</Type>
    		<SubType Name="Error">0</SubType>
    		<Level>2</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:41.8015708Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
    					<Description>Throwing an exception.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<Exception>
    						<ExceptionType>System.ServiceModel.Security.MessageSecurityException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    						<Message>Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.   This can occur if the service is configured for security and the client is not using security.</Message>
    						<StackTrace>   at System.ServiceModel.Security.SecurityStandardsManager.CreateReceiveSecurityHeader(Message message, String actor, SecurityAlgorithmSuite algorithmSuite, MessageDirection direction)
       at System.ServiceModel.Security.MessageSecurityProtocol.CreateSecurityHeader(Message message, String actor, MessageDirection transferDirection, SecurityStandardsManager standardsManager)
       at System.ServiceModel.Security.MessageSecurityProtocol.ConfigureReceiveSecurityHeader(Message message, String actor, SecurityProtocolCorrelationState[] correlationStates, SecurityStandardsManager standardsManager, IList`1&amp;amp; supportingAuthenticators)
       at System.ServiceModel.Security.AsymmetricSecurityProtocol.VerifyIncomingMessageCore(Message&amp;amp; message, String actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
       at System.ServiceModel.Security.MessageSecurityProtocol.VerifyIncomingMessage(Message&amp;amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterface.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningRequest request)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterfaceClient.atp.console.anmodninger.FeriepengeinfoAnmodningerInterface.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningRequest request)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterfaceClient.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningType AfvisFeriepengeinfoAnmodning1)
       at atp.console.Anmodninger.AfvisAnmodning()
       at atp.console.Program.Main(String[] args)
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    						</StackTrace>
    						<ExceptionString>System.ServiceModel.Security.MessageSecurityException: Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.   This can occur if the service is configured for security and the client is not using security.</ExceptionString>
    					</Exception>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>458802</EventID>
    		<Type>3</Type>
    		<SubType Name="Warning">0</SubType>
    		<Level>4</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:41.8135715Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Security.SecurityBindingVerifyIncomingMessageFailure.aspx</TraceIdentifier>
    					<Description>The security protocol cannot verify the incoming message.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/SecurityProtocolTraceRecord">
    						<SecurityProtocol>System.ServiceModel.Security.AsymmetricSecurityProtocol</SecurityProtocol>
    						<Action>urn:oio:atp:feriepengeinfo:anmodninger:wsdl:1.0.0:#AfvisFeriepengeinfoAnmodningResponse</Action>
    						<To>http://www.w3.org/2005/08/addressing/anonymous</To>
    						<EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
    							<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
    						</EndpointReference>
    						<MessageId>urn:uuid:3d3af1ba-124a-4d39-90a9-a5bc756c779b</MessageId>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131075</EventID>
    		<Type>3</Type>
    		<SubType Name="Error">0</SubType>
    		<Level>2</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:41.8385729Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
    					<Description>Throwing an exception.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<Exception>
    						<ExceptionType>System.Xml.XmlException, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    						<Message>Unbound prefix used in qualified name 'soapenv:Server'.</Message>
    						<StackTrace>   at System.ServiceModel.XmlUtil.ParseQName(XmlReader reader, String qname, String&amp;amp; localName, String&amp;amp; ns)
       at System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader reader, Int32 maxBufferSize)
       at System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32 maxBufferSize)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.TryGetSecurityFaultException(Message faultMessage, Exception&amp;amp; faultException)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterface.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningRequest request)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterfaceClient.atp.console.anmodninger.FeriepengeinfoAnmodningerInterface.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningRequest request)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterfaceClient.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningType AfvisFeriepengeinfoAnmodning1)
       at atp.console.Anmodninger.AfvisAnmodning()
       at atp.console.Program.Main(String[] args)
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    						</StackTrace>
    						<ExceptionString>System.Xml.XmlException: Unbound prefix used in qualified name 'soapenv:Server'.</ExceptionString>
    					</Exception>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131075</EventID>
    		<Type>3</Type>
    		<SubType Name="Error">0</SubType>
    		<Level>2</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:41.8455733Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
    					<Description>Throwing an exception.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<Exception>
    						<ExceptionType>System.ServiceModel.CommunicationException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    						<Message>Server returned an invalid SOAP Fault.  Please see InnerException for more details.</Message>
    						<StackTrace>   at System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32 maxBufferSize)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.TryGetSecurityFaultException(Message faultMessage, Exception&amp;amp; faultException)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterface.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningRequest request)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterfaceClient.atp.console.anmodninger.FeriepengeinfoAnmodningerInterface.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningRequest request)
       at atp.console.anmodninger.FeriepengeinfoAnmodningerInterfaceClient.AfvisFeriepengeinfoAnmodning(AfvisFeriepengeinfoAnmodningType AfvisFeriepengeinfoAnmodning1)
       at atp.console.Anmodninger.AfvisAnmodning()
       at atp.console.Program.Main(String[] args)
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    						</StackTrace>
    						<ExceptionString>System.ServiceModel.CommunicationException: Server returned an invalid SOAP Fault.  Please see InnerException for more details. ---&amp;gt; System.Xml.XmlException: Unbound prefix used in qualified name 'soapenv:Server'.
       at System.ServiceModel.XmlUtil.ParseQName(XmlReader reader, String qname, String&amp;amp; localName, String&amp;amp; ns)
       at System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader reader, Int32 maxBufferSize)
       at System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32 maxBufferSize)
       --- End of inner exception stack trace ---</ExceptionString>
    						<InnerException>
    							<ExceptionType>System.Xml.XmlException, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    							<Message>Unbound prefix used in qualified name 'soapenv:Server'.</Message>
    							<StackTrace>   at System.ServiceModel.XmlUtil.ParseQName(XmlReader reader, String qname, String&amp;amp; localName, String&amp;amp; ns)
       at System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader reader, Int32 maxBufferSize)
       at System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32 maxBufferSize)</StackTrace>
    							<ExceptionString>System.Xml.XmlException: Unbound prefix used in qualified name 'soapenv:Server'.
       at System.ServiceModel.XmlUtil.ParseQName(XmlReader reader, String qname, String&amp;amp; localName, String&amp;amp; ns)
       at System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader reader, Int32 maxBufferSize)
       at System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32 maxBufferSize)</ExceptionString>
    						</InnerException>
    					</Exception>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:41.8495735Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" RelatedActivityID="{00000000-0000-0000-0000-000000000000}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Stop">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:41.8495735Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{ddbdc3f3-d5f8-4860-93ec-ccea465324a9}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Process action 'urn:oio:atp:feriepengeinfo:anmodninger:wsdl:1.0.0:#AfvisFeriepengeinfoAnmodning'.</ActivityName>
    						<ActivityType>ProcessAction</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:56.0773873Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" RelatedActivityID="{beefbdbf-de07-4ec7-89bb-873eb8cd518a}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Start">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:56.0773873Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{beefbdbf-de07-4ec7-89bb-873eb8cd518a}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Close ClientBase. Contract type: 'atp.console.anmodninger.FeriepengeinfoAnmodningerInterface'.</ActivityName>
    						<ActivityType>Close</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>0</EventID>
    		<Type>3</Type>
    		<SubType Name="Transfer">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:56.1133894Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{beefbdbf-de07-4ec7-89bb-873eb8cd518a}" RelatedActivityID="{00000000-0000-0000-0000-000000000000}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData/>
    </E2ETraceEvent>
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    	<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    		<EventID>131085</EventID>
    		<Type>3</Type>
    		<SubType Name="Stop">0</SubType>
    		<Level>255</Level>
    		<TimeCreated SystemTime="2017-05-09T10:42:56.1133894Z" />
    		<Source Name="System.ServiceModel" />
    		<Correlation ActivityID="{beefbdbf-de07-4ec7-89bb-873eb8cd518a}" />
    		<Execution ProcessName="atp.console.vshost" ProcessID="12912" ThreadID="10" />
    		<Channel/>
    		<Computer>PC</Computer>
    	</System>
    	<ApplicationData>
    		<TraceData>
    			<DataItem>
    				<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Stop">
    					<TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier>
    					<Description>Activity boundary.</Description>
    					<AppDomain>atp.console.vshost.exe</AppDomain>
    					<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord">
    						<ActivityName>Close ClientBase. Contract type: 'atp.console.anmodninger.FeriepengeinfoAnmodningerInterface'.</ActivityName>
    						<ActivityType>Close</ActivityType>
    					</ExtendedData>
    				</TraceRecord>
    			</DataItem>
    		</TraceData>
    	</ApplicationData>
    </E2ETraceEvent>

    The only out of the ordinary I see from this, is the first exception - The MessageSecurityException claims the service is running secure but the client might not.

    I am a little puzzled about this one... Could that really be true?

    Tuesday, May 9, 2017 11:46 AM
  • OK.  It was worth a shot over the special character.  This is what I believe is happening...

    I believe the server you are sending the message is rejecting it due to a security issue.  I am not familiar with the custom security you are using.  Hopefully you can get some guidance from the owners of the server.  They might want a more detailed trace.  If so you can turn on a more detailed trace.

    The original issue is because WCF's xml reader is not able to parse the soap fault returned.  In the detailed trace you sent I did not see the message (though I spotted the fault).  Was messageLogging set to log the message?  Looking at your first post, I do not see why WCF would complain over soapenv:Server as it is in the faultcode element.  

    I am hoping you will find the soapenv:Server somewhere else in the message.  Otherwise System.ServiceModel.XmlUtil.ParseQName is doing something weird and trying to parse the content of a node.  

    Good luck.  You will get it but it might require assistance from the owners of the services as well as a custom message inspector to make sense of the response message.

     

    Cheers, Jeff

    Tuesday, May 9, 2017 8:30 PM
  • Hi Jeff

    Thanks for the link.

    What I had posted was the trace log. The original snippet of the error (soapenv:Server), that I posted at the beginning of this thread, came from the message log. I must however admit that I am not too comfortable to post the entire messagelog, because I am not certain if there might be any sections that could contain compromising data.

    The reason that I believed this was version conflict on the client part came from the following article, where the faultcode difference between SOAP 1.1 and SOAP 1.2 was described.

    https://msdn.microsoft.com/en-us/library/ms789039(v=vs.110).aspx#Anchor_1

    The format of the FaultCode reminded me a little about what I received.

    I had actually a go on implement the message inspector and can see that it triggers just fine for the other services that do not receive a FaultCode.

    When I try to run it against the operation in question, then it triggering the BeforeSendRequest event just as expected. However the AfterReceiveReply event is never called because the CommunicationException is thrown before it is triggered.

    I guess i will try to get in touch with the provider of the service again. The main problem is just that they only work in JAVA do not have any expierence with the WCF framework...


    • Edited by Søren J Wednesday, May 10, 2017 9:06 AM
    Wednesday, May 10, 2017 9:02 AM
  • Ok, you have made good progress.  Might not feel that way but integration can be tricky between java/wcf despite standards.

    One thing to try is giving them the trace using System.Net tracing or Fiddler.  They can then do something similar and compare the two traces to see what is missing.

    I have had a situation where I needed to alter the message payload to have exactly the namespace declarations in the way the java app was expecting.  The xml was valid but on the service side they implemented it not using an xml reader but a text base parser.

    Regardless, best thing is to get in touch with them.  The good news is you have done your research and have a lot of info to provide them so they should appreciate that.

    Best of luck!


    Cheers, Jeff

    Wednesday, May 10, 2017 9:02 PM