コミュニティ

Calling external Web Service from FlexiCapture

Hi,
I am using FlexiCapture 11R7 and I need to call external web service, and I know we can do it by using External .NET DLL. However, the .NET DLL will need to access the App.Config.

My question is how I can attach App.Config file to FlexiCapture, because the ".Net References" screen only allows me to select and attach Assembly File.

Thanks.

 

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    When I have faced the similar problem (connecting FC to SAP), I have used the Visual studio Connected services mechanics.

    https://www.nuget.org/packages/Microsoft.VisualStudio.ConnectedServices/ (unfortunately, I am not sure if this is the right link)

    However, it is not clear to me why your dll needs to access the app.config file. Could you please let me know more about your scenario? What kind of web service is this? How do you plan to use it?

    Alexey

     

     

     

    0
  • Avatar
    Permanently deleted user

    Hi, 
    When I created a Proxy class to my WCF using "svcutil" tool, it generated 2 files: ProxyClass.cs and Config files (refer to the attached image).

    The config file contained the bindings and endpoint of the WCF which was referred by the ProxyClass.cs.

    Whenever, I called the methods inside ProxyClass from FlexiCapture, it always threw an error saying the configuration file cannot be found.

    Thanks.

     

    0
  • Avatar
    Permanently deleted user

    Hello,

    Thank you for explanation. By design there is no way to add files to the project on server other than dll.

    In my project I store the endpoint in the environmental variables of the project. 

    They can be accessed as Batch.Project.EnvironmentVariables.Get("EndPoint").

    Username and password are stored in the private static class in the dll.

    If you find better solution, please let me know.

    Alexey

     

     

    0

サインインしてコメントを残してください。