Friday, July 8, 2011

Blog Post: NF-e Process fails with XML schema error 215 due to missing namespace

Problem:

Resolution:

Load the attached Microsoft.Dynamics.AX.NFe.dll file and register the .dll.  The make the following code changes.

\Classes\EFDocMsgTransport_WebServiceV4_BR\createBinding

From:

System.ServiceModel.Channels.TextMessageEncodingBindingElement       messageEncodingBinding;

To:

Microsoft.Dynamics.AX.NFe.CustomTextMessageBindingElement         customTextMessageBindingElement;

From:

messageEncodingBinding =

//BP Deviation Documented

new System.ServiceModel.Channels.TextMessageEncodingBindingElement(

                          System.ServiceModel.Channels.MessageVersion::get_Soap12(),

                          System.Text.Encoding::get_UTF8());

To:

CustomTextMessageBindingElement = new Microsoft.Dynamics.AX.NFe.CustomTextMessageBindingElement("utf-8",

                     "application/soap+xml",

                    System.ServiceModel.Channels.MessageVersion::get_Soap12());

From:

bindingElementArray.SetValue(messageEncodingBinding, 0);

To:

bindingElementArray.SetValue(CustomTextMessageBindingElement, 0);

Jennifer Scholle Tatiana Zavialova Tila Tequila Tamie Sheffield Kelly Monaco

No comments:

Post a Comment