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)

How to consume Dynamics GP web services from PHP

(1) ShareShare
ReportReport
Posted on by

Hello,


I have Dynamics GP web services 2015 installed and working.


I can consume successfully web services using Visual Studio C#.


My client has an application, central to its business, developed and working in PHP.  Both (GP and the php application) are physically located in different networks. So, we decided to consume GP web services from PHP.


I couldn't find documentation specific for this task. Can anyone give an example of how to connect to the native endpoint, authenticate a user and consume a service from PHP?

JC

*This post is locked for comments

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

    I found this information after several weeks of searching the internet. It explains how to call asmx or wcf web services from PHP. www.sbp-romania.com/.../how-to-call-a-wcf-asmx-web-service-from-php.aspx

  • Community Member Profile Picture
    on at

    I'd like to include here that this link given by Jamesss doesn't mention anything related to Authentication. It's a plain tutorial on how to setup SOAPClient on PHP and nothing else :(

  • Derek Albaugh Profile Picture
    on at

    Looking through our case history, the only thing I could find in regards to Web Services and PHP is that you have to flatten the wsdl with PHP or some PHP tool. How to do that or what that tool would be, I can't tell you because we don't have anything for it, nor has this ever been tested by our GP Development team.

    We support Visual Studio, where you don't need to do any of this.

    Maybe someone on this forums has tried something like this and can give some info.........

  • Community Member Profile Picture
    on at

    What do you mean by "flatten the wsdl file"? It's read just fine by PHP, the problem is there's no documentation whatsoever on what types of authentication are needed, nor the WSDL mentions that, nor there are ANY error messages sent by the server explaining what's needed. I had to discover by trial and error it needs WSA, for instance.

  • Derek Albaugh Profile Picture
    on at

    My apologies, as I was just copying what mentioned in the one and only support case I found that mentioned 'Web Services' for Dynamics GP and 'PHP'. That being said, there's no documentation because as mentioned PHP has never been tested and thus isn't supported with Web Services for Dynamics GP.

    Does this mean what you're doing won't work? No, it just means that as far as the Dynamics GP support team, even in a support case, there is little if anything we'd be able to provide unless you were actually getting some type of error or exception that was specific to how Web Services was working.

    Looking online as well, there isn't much found in regards to Web Services and PHP, so I don't know how many people have actually done any work with this, but hopefully someone may have something to add.........

    Thanks

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
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans