Consuming a Service Reference


#1

Scenario:

I am trying to consume a Service Reference, as described in this post: https://www.uipath.com/kb-articles/consuming-a-soap-service-using-custom-activities.

Current Behavior:

Although I am following the steps of the guide, I get the following error message:
Could not find default endpoint element that references contract [NAME OF REFERENCE] 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.

In UiRobot.exe.config there is no client section or bindings section, which is weird. I tried to create them myself, but I still got the same error message as written above.

I got it working with Studio ver. 2016.2.6274 and 2018.1.4, but not with 2018.2.0

Studio/Robot/Orchestrator Version:

2018.2.0.


#3

Hi @TDagsvik,
You are right. I have handled this in a different way without using the app.config. Below I have attached the source. and nuget package.

C#.net Code: TestApp.zip (33.3 KB)

UiPath xml : Main.zip (1.7 KB)

Nuget Package :BalaReva.Calculator.Activities.1.0.0.nupkg (4.8 KB)

Regards
Balamurugan


How to invoke api BARCODE detector in uipath?
#4

Thanks @balupad14 it’s work…