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

Content type of response message does not match content type of binding

(0) ShareShare
ReportReport
Posted on by

im getting this issue.im not able to understand what is exact issue regarding this issue when im syncing the order from magento  to AX 

"The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were:"

Could u plz anyone explain this ?.

*This post is locked for comments

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

    Hi CB,

    Looks like your meta are not match.

    Regards,

    Sci

  • Community Member Profile Picture
    on at

    Hi Sci,

    thanks for ur response.

    i want to know is this error from server side or client side ?.

    and which type of response it is expecting ?.

  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Look at the actual response. It seems that you expect XML but you got an HTML error page, therefore you should read the error message on the page.

  • Community Member Profile Picture
    on at

    Thank you Martin i'm very clear with your answer.

    and my another question is and i'm also assuming that .There is two scenarios to get that Error pages

    1.The data which is coming from the source ( Magento ) may be wrong data .Thats'y when we will get the response (Findkeys or Find )for that request it could be return the wrong response.

    2.is there any change in AX (Services level) it could be the wrong response.

    What would be the reason for that ?.

    Could u please tell me the main reason for that ?.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    I can't simply guess what the error is. Please look at the error message and if you need more help, share the error message with us.

    If the error message is too general, you may need more logging or debugging.

  • Community Member Profile Picture
    on at

    HI Martin,

    Below is the error message

    "Error Message: The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/.../xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
    fieldset{padding:0 15px 10px 15px;}
    h1{font-size:2.4em;margin:0;color:#FFF;}
    h2{font-size:1.7em;margin:0;color:#CC0000;}
    h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
    #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    background-color:#555555;}
    #content{margin:0 0 0 2%;position:relative;}
    .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
    <div class="content-container"><fieldset>
    '. Error Source: mscorlib Error Inner Exception:
    Server stack trace:
    at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
    at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout)
    at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at I95Dev.AX.Webservices.AXItemService.ItemService.findKeys(ItemServiceFindKeysRequest request)
    at I95Dev.AX.Webservices.AXItemService.ItemServiceClient.I95Dev.AX.Webservices.AXItemService.ItemService.findKeys(ItemServiceFindKeysRequest request) in D:\Tee-Zed\AX\AX Service\I95Dev.AX.Webservices\Service References\AXItemService\Reference.cs:line 8926
    at I95Dev.AX.Webservices.AXItemService.ItemServiceClient.findKeys(QueryCriteria QueryCriteria) in D:\Tee-Zed\AX\AX Service\I95Dev.AX.Webservices\Service References\AXItemService\Reference.cs:line 8932
    at I95Dev.AX.DataAccess.ProductDataAccess.GetChangedItemKeys(QueryCriteria queryCriteria) in D:\Tee-Zed\AX\AX Service\I95Dev.AX.DataAccess\ProductDataAccess.cs:line 265
    at I95Dev.AX.Service.Platinum.ProductService.ProductSync(DateTime startingTime, DateTime endTime) in D:\Tee-Zed\AX\AX Service\I95Dev.AX.Platinum.Service\ProductService.cs:line 143 Error data: System.Collections.ListDictionaryInternal"

    please help me.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Great, now you have much information than that "Content type of response message does not match content type of binding". You see that your attempt to call ItemService.findKeys() failed; the server returned error code 500. From the call stack, you can also see that it failed on authentication.

    If I was you, I would first review how you're authenticating the request, because the error is most likely there. If there is nothing obvious, I would go to AX OData logs to find more details.

    By the way, I think you should update the title of this thread according to the findings, or close the question about "Content type of response message" as answered and create a new thread about your problem with authentication.

  • Community Member Profile Picture
    on at

    Thank you Martin,

    Thank you for responding ,

    Actually i got the solution for that question .

    Solution in my case,

    Somebody changed the web.config file and services also not browsing. Thatsy i'm getting that error.I resolved that issue.

  • Suggested answer
    JUANKA Profile Picture
    on at

    Hey man, can you please share your solution involved? i got the same issue. Thanks!

  • P@van Profile Picture
    50 on at

    HI JUANKA,

    Could you please check your web.config file and make sure config file has not changed.

    In my case,somebody changed the Web config file and i reverted back it . working fine now.

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans