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