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 :
Finance | Project Operations, Human Resources, ...
Answered

how to solve an unhandled exception of type system net webexception occurred in system dll in json web service

(0) ShareShare
ReportReport
Posted on by

5621.exception.PNG

Hi , 

I have to pass the arguments for the service class method like

(public str name(str name1)

{

     return name1

}

)

when i give the input for service class method parameter through url like ("/api/services/group_ak/service_ak/name/?name1=hi";),showing like this exception,

anyone give a suggestion or solution for it.

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The parameter for the service should not be provided as part of the URL like you have done.

    Please check Martin's post about the topic: community.dynamics.com/.../json-based-custom-service-with-parameters-ax-7

  • Community Member Profile Picture
    on at

    Hi Nicholas,

    Thanks for the response , will you please explain how to pass the parameters through URL to the service class, and i will take the above link you have shared i will go through it.

    Thanks,

    Ashokkumar M.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Why would you want to pass parameters through the URL to the service class? That's not the way to do it.

    Just check that blog and implement your code accordingly.

  • Community Member Profile Picture
    on at

    Hi Nikoalos ,

    I tried this but exception occurred (500 internal server error) again, what should i do

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Is your D365 system accessible via browser?

    If you call some standard service, is it working?

  • Community Member Profile Picture
    on at

    yes Nikoloas it's accessible,it's working

  • Community Member Profile Picture
    on at

    Hi Nikolaos Mäenpää, It's working thank you for your suggestion

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans