This has now been sorted in so much that I can get the clr stored proc to call the wcf service. The only issue I now have is that for some reason it does not want to see the config file as I'm getting the error message:
Msg 6522, Level 16, State 1, Procedure spTrackNTraceOutBound, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "spTrackNTraceOutBound":
System.InvalidOperationException: Could not find default endpoint element that references contract 'Delarue.Isa.ServiceContracts.ITrackNTrace' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
System.InvalidOperationException:
at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()
at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
at System.ServiceModel.ClientBase`1..ctor()
at Delarue.Isa.ServiceContracts.TrackNTraceProxy..ctor()
at Delarue.Isa.Service.SqlClient.StoredProcedures.spTrackNTraceOutBound(String routeId, String filePath)
. Evan though the end point is in the config file and I have placed a copy of this file in the root of the SQL server instance binn folder. Any suggestions?