Consume WCF Service with an Add-In

384
2
08-08-2011 09:07 AM
deleted-user-ATjHIWsdQYmT
Regular Contributor
Is it possible to consume a WCF Service from a Desktop Add-In?  I Can't seem to get it to work.  I keep coming up with the attached error.
0 Kudos
2 Replies
RichardWatson
Regular Contributor III
I would definitely think that this is possible.

There are multiple ways to configure WCF.  One way is to do so using a config file which appears to be what you have done.  When you do that I think that it has to be application config file, i.e. ArcMap.  It might be better to investigate doing this programmatically.
0 Kudos
deleted-user-ATjHIWsdQYmT
Regular Contributor
I would definitely think that this is possible.

There are multiple ways to configure WCF.  One way is to do so using a config file which appears to be what you have done.  When you do that I think that it has to be application config file, i.e. ArcMap.  It might be better to investigate doing this programmatically.



I got it all worked out.  I changed the REST endpoint binding from custombinding to basichttpbinding and coded all of the parameters as opposed to using a config file (as you suggest) and it worked.  Thanks for the input.
0 Kudos