<
client> ><endpoint address="http://localhost:2269/MyTest/Service.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_JobService" contract="JobServiceClient.JobProxy.JobService" name="BasicHttpBinding_JobService" /></client>
public
XmlElement GetJobTypeList(){
XmlElement jobTypeList = null; using (JobProxy.JobServiceClient jobServiceClient = new JobProxy.JobServiceClient()){
jobTypeList = jobServiceClient.GetJobTypeList();
}
return jobTypeList;}
JobService
jobService = new JobService(); XmlElement jobServiceList = jobService.GetJobTypeList();
I get an error that says "Could not find default endpoint element that references contract ..."
It seems like it is looking in my main app for the end point when it should be just using the GetJobTypeList method that encapsulates all of that for me.... any ideas on how I can get this to work correctly?
"C Downey" <colle...@hotmail.com> wrote in message news:Og4oYtRB...@TK2MSFTNGP04.phx.gbl...