Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Error in consuming the...
Finance forum

Error in consuming the external webservice from D365FO

(0) ShareShare
ReportReport
Posted on by 104

Hi All

I am trying to call external webservice from the D365FO, I got the following error. 

An exception of type 'System.ServiceModel.Security.MessageSecurityException' occurred in mscorlib.dll but was not handled in user code

Additional information: The HTTP request was forbidden with client authentication scheme 'Anonymous'.

Any help to resolve this would be highly appreciated.

pastedimage1569500063469v2.png

  • SKO Profile Picture
    312 on at
    RE: Error in consuming the external webservice from D365FO

    Ramakrishna,

    Have you resolved this issue. If yes please share the solution and it would be very helpful.

    Thanks

    Srikanth

  • rama.krishna.tanneeru@munich-airport.de Profile Picture
    104 on at
    RE: Error in consuming the external webservice from D365FO

    Hi Blue Wang

    do you mean machine.config file and the config file of webservice ?

    My issue is not yet resolved. Clueless on how to move forward.

    Do you have an example of resolving this issue ?

    Thanks

    Ramakrishna

  • Suggested answer
    Andrew Xu Profile Picture
    3,877 on at
    RE: Error in consuming the external webservice from D365FO

    seems that service needs your client to have certificate installed. you can create a console app to consume that soap service to see if that works, and then let D365 call it.

  • Blue Wang Profile Picture
    on at
    RE: Error in consuming the external webservice from D365FO

    HI Rama,

    Have you  updated your app.config to include the same binding as your server?

    In addition it prompts permission issues, do you have checked your permissions?

    docs.microsoft.com/.../troubleshooting-exceptions-system-servicemodel-security-messagesecurityexception

  • Suggested answer
    Pedro Tornich Profile Picture
    955 on at
    RE: Error in consuming the external webservice from D365FO

    Hi,

    I see you are trying do consume a SOAP web service in D365FO, and based on the screen shot you shared I imagine that you created a .Net class library to consume the web service.

    There must be something in the way you are consuming the web service in your .Net project, because if the web service requires authentication it should ask for credentials when you add it as a reference.

    Please, refer to the following link and check if you did all the necessary steps:

    https://ariste.info/en/2019/07/consume-a-soap-web-service-in-dynamics-365-for-finance-and-operations-using-channelfactory/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans