web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX9: webservices and credentials

(0) ShareShare
ReportReport
Posted on by

Hello, I am going to write a feature to use webservice of serbian national bank (one of this available here: http://webservices.nbs.rs/CommunicationOfficeSiteDoc/SerCyrl/default.html). The point is that all of these webservices need some credentials (login/password and licenceId).

Well, the point is that I have some problems with credentials. I have no problem to use any webservice in AX9 without credentials, but I completly do not know what to do in such case.


I googled this: http://www.axaptapedia.com/Webservice, tried to make DLL as it is written, but it does not work.

Do you have any tips or do you know any tutorial for webservices with credentials in AX9?

Thanks,

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    Can you tell us more about the authentication mechanism used by the bank?

  • Community Member Profile Picture
    on at

    Good question. I know that credentials are: username, password and licenceId. Frankly speaking I don't know how it works, but there is a class AuthenticationHeader (with some method like set_password, set_username etc).

    I don't know if this returns any token or smth like that, as there are no documentation in english, only in Serbian which I don't understand and Google Translator fails many times.

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    AuthenticationHeader class is relatively easy to use, but it's just of possible ways. You really should find some information about the service before trying to write any code.

    Or at least tell us more about the problem than "it doesn't work", e.g. whether you get an authentication-related exception from WCF or a fault message returned by the service.

  • Community Member Profile Picture
    on at

    Thanks for the answer. I have never used AuthenticationHeader class for webservices so maybe this is a way how it works. Could you please write smth more how to do authentication by this?

    I wrote smth like this:

       ClassLibrary2.rs.nbs.webservices.AuthenticationHeader head;

       str username = 'username';

       str password = 'pass';

       guid licence = str2guid('smth');

       ;

       head = new ClassLibrary2.rs.nbs.webservices.AuthenticationHeader();

       head.set_LicenceID(licence);

       head.set_Password(password);

       head.set_UserName(username);

    OK, so probably I passed the credential yes? I have nothing back. What next? Did I get any token by this or smth like that?

    Thanks,

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    Your code merely created an object; it doesn't show how you use it. If you don't tell us what you did, you can expect us to tell you what should have happened. You should ask the provider of the service, not on a forum about Microsoft Dynamics AX.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans