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 GP (Archived)

webHttpBinding configuration for GP Web Services??

(0) ShareShare
ReportReport
Posted on by

We need GP web services to behave just like any other web service on the web. Normally, you consume web services from anywhere on the web. But we are having trouble getting GP web services to do this. We seem to only be able to consume web services from the local network, which is not what we need.

It seems like the default binding is wsHttpBinding, but this seemingly will not let us consume web services from other locations on the web. https://msdn.microsoft.com/en-us/library/ff624119.aspx

Would webHttpBinding allow us to consume these GP web services from the web? http://stackoverflow.com/questions/2650785/basichttpbinding-vs-wshttpbinding-vs-webhttpbinding

How do we configure GP web services to use webHttpBinding? Will this let us consume GP web services from the web? msdn.microsoft.com/.../ff624119.aspx

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    webHttpBinding is REST API.

    basicHttpBinding is for SOAP v1.1

    wsHttpBinding is for WCF.

    Accessing remote server using wsHttpBinding requires a fully qualified URL or IP address to be defined in the app.config.

    <endpoint address="1.2.3.4/.../GPService&quot;

    ...

    and you must supply proper credentials:

    wsDynamicsGP = new DynamicsGPClient();

    wsDynamicsGP.ClientCredentials.Windows.ClientCredential.Domain = "mydomain";

    wsDynamicsGP.ClientCredentials.Windows.ClientCredential.UserName = "myuser";

    wsDynamicsGP.ClientCredentials.Windows.ClientCredential.Password = "mypass";

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 GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans