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)

Web Services Connection

(0) ShareShare
ReportReport
Posted on by 160

We are using Dynamics GP with Web Services and are having difficulty.  

The Native endpoint is http://hermes:48620/Dynamics/GPService which indicates a wsdl at http://hermes:48620/Metadata/WCF/Full/schemas.microsoft.com.dynamics.gp.2010.01.wsdl. I have successfully retrieved the wsdl file with PHP and can produce a list of functions described by the document. I am attempting to call the "GetCurrencyList" method... but receive no response. The request header is as follows:

"

POST /Dynamics/GPService/GPService HTTP/1.1

Host: HERMES:48620

Connection: Keep-Alive

User-Agent: PHP-SOAP/5.3.3

Content-Type: application/soap+xml; charset=utf-8; action="schemas.microsoft.com/.../GetCompanyByKey"

Content-Length: 349

"

I typically develop with a 10 second socket timeout and have raised it to 5 minutes (once) to wait, unsuccessfully. I am curious why the wsdl file directs PHP to post to "/Dynamics/GPService/GPService". I tried explicitly setting the endpoint to " /Dynamics/GPService" and " /Dynamics/GPService/GPService.asmx" and receive 404 Not Found's from each.

The Programming Guide mentions the Native endpoint supports wsHttpBinding, so I attempted to implement WSSE in PHP to produce a SOAP envelope like the following:

"

<?xml version="1.0" encoding="UTF-8"?>

<env:Envelope xmlns:env="www.w3.org/.../soap-envelope" xmlns:ns1="schemas.microsoft.com/.../01" xmlns:ns2="schemas.xmlsoap.org/.../secext">

<env:Header>

<ns2:Security env:mustUnderstand="true">

<ns2:UsernameToken>

<ns2:Username>[username]</ns2:Username>

<ns2:Password>[password]</ns2:Password>

</ns2:UsernameToken>

</ns2:Security>

</env:Header>

<env:Body>

<ns1:GetPolicyByOperation/>

<param1>

<item>

<key>OrganizationKey</key>

<value>

<item>

<key>Id</key>

<value>01</value>

</item>

</value>

</item>

</param1>

</env:Body>

</env:Envelope>

"

Doing this produced no change.

When I preform a similar procedure with the legacy endpoint, the server responds with a 401 Unauthorized. I supplied the credentials of a privileged user created in the Admin area (per our last conversation) for basic HTTP authentication with no change. Additionally, the wsdl file directs PHP to post to "/DynamicsGPWebServices/DynamicsGPService.asmx" While I appreciate that this endpoint provides feedback, it does not meet our requisites for security.

*This post is locked for comments

I have the same question (0)
  • sandipdjadhav Profile Picture
    18,306 on at

    Hi,

    Are you able to resolve issue? I have installed GP2015 web services and exactly like you I am facing issue.  I am not getting  "/DynamicsGPWebServices/DynamicsGPService.asmx"

    Can you go through below post and help me if possible.

    https://community.dynamics.com/gp/f/32/t/204059

    Thanks much

    Sandip

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