Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

The specified account does not exist

(0) ShareShare
ReportReport
Posted on by 40

Hi, 

I have a PHP webapp that needs to connect to dynamics 365 ax soap services. 

I was given a wsdl url and from there i am trying to get the values. 

I am authenticating, getting token, and passing it with my POST method

POST /soap/services/ webservice HTTP/1.1

Host: domain.sandbox.ax.dynamics.com

Accept: text/xml

Connection:Keep-Alive

Content-type: text/xml

Authorization: Bearer tokenString

Soapaction: "http://tempuri.org/webservice/method"

Content-Length lengthOfXML

Server Response:

HTTP/1.1 500 Internal Server Error Cache-Control: private
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/10.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Set-Cookie: ASP.NET_SessionId=sessionid; path=/; secure;
HttpOnly Set-Cookie:
ms-dyn-csrftoken=longtokenstring; path=/; secure
ms-dyn-fqhn:
ms-dyn-namespace: namespacet
ms-dyn-tenant: tenantid
ms-dyn-role:
ms-dyn-aid: aid 
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
p3p: CP="No P3P policy defined. Read the Microsoft privacy statement at ">go.microsoft.com/.../
Strict-Transport-Security: max-age=31536000;
includeSubDomains Date: Thu, 01 Aug 2019 19:24:52 GMT Content-Length: 1112
a:ForbiddenForbidden1317System.ComponentModel.Win32ExceptionThe specified account does not exist0-2147467259

the account is used in a .net program and is able to call the method and receive values passed but with php  it isn't. even though the authorization token seems to be correct. 

*This post is locked for comments

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans