Topic by Phillip Moon
Content
Hi Guys,
I'm currently building a .NET desktop add-in for the RightNow Connect application. I want to be able to query the data on a specific answer by using the answer ID in the query.
As I understand I need to connect to the SOAP web service using the RightNowSyncPortClient object. I have followed the steps as provided in http://community.rightnow.com/developer/fileexchange/Connect_Web_Services_for_SOAP_May_2012/Content/Getting%20Started/Getting%20Started%20--%20.NET.htm
I've added the service reference but when I go to instantiate the RightNowSyncPortClient it throws the following exception,
Image may be NSFW.
Clik here to view.
Full Exception Text:
An exception of type 'System.InvalidOperationException' occurred in System.ServiceModel.dll but was not handled in user code
Additional information: Could not find default endpoint element that references contract 'OpnIdeqa2.RightNowSyncPort' 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.
<?xml version="1.0" encoding="utf-8" ?><configuration><configSections></configSections><system.serviceModel><bindings><customBinding><binding name="RightNowSyncBinding"><security defaultAlgorithmSuite="Default" authenticationMode="UserNameOverTransport"requireDerivedKeys="true" securityHeaderLayout="Lax" includeTimestamp="false"><localClientSettings detectReplays="false" /><localServiceSettings detectReplays="false" /></security><textMessageEncoding messageVersion="Soap11" /><httpsTransport /></binding></customBinding></bindings><client><endpoint address="https://opn-ideqa2.rightnowdemo.com/cgi-bin/opn-ideqa2.cfg/services/soap"binding="customBinding" bindingConfiguration="RightNowSyncBinding"contract="OpnIdeqa2.RightNowSyncPort" name="RightNowSyncPort" /></client></system.serviceModel></configuration>
I've tried passing in the endpoint name and address as parameters into the RightNowSyncPortClient but that didn't work either.
Has anyone else come across this issue, or had any success connecting to their SOAP web service?
Any help would be much appreciated.
Thanks,
Phillip
Code Block
Image
Image may be NSFW.Clik here to view.
