I have setup my Web Service using the new eConnect dll’s (version 12.0.0.0) with my application and try to send the Accounts to GP 2013, but I am getting below error message.
"System.UriFormatException: Invalid URI: The Uri string is too long."
Below is the request I am sending to GP 2013 using Microsoft.Dynamics.GP.eConnect.dll (version 12.0.0.0)
<soap:Body><eConnectPost xmlns="RCWebService"><strRequest>VB6|JS82K424J52I78GDS8732BCX09493TYAS63J7H5F|[eConnect xmlns:dt="urn:schemas-microsoft-com:datatypes"][GLAccountType][taUpdateCreateAccountRcd][ACTNUMST]000-2100-00[/ACTNUMST][ACCTTYPE]1[/ACCTTYPE][ACTDESCR]Accounts Payable[/ACTDESCR][PSTNGTYP]0[/PSTNGTYP][CATEGORY]Accounts Payable[/CATEGORY][ACTIVE]1[/ACTIVE][TPCLBLNC]0[/TPCLBLNC][DECPLACS]0[/DECPLACS][FXDORVAR]0[/FXDORVAR][PostSlsIn]1[/PostSlsIn][PostIvIn]1[/PostIvIn][PostPurchIn]1[/PostPurchIn][PostPRIn]1[/PostPRIn][ACCTENTR]1[/ACCTENTR][UpdateIfExists]0[/UpdateIfExists][RequesterTrx]0[/RequesterTrx][/taUpdateCreateAccountRcd][/GLAccountType][/eConnect]</strRequest></eConnectPost></soap:Body>
Below is the Response I get from Microsoft.Dynamics.GP.eConnect.dll (version 12.0.0.0)
eConnectPostResponse xmlns="RCWebService"><eConnectPostResult>System.UriFormatException: Invalid URI: The Uri string is too long. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString, UriKind uriKind)
at System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri)
at System.Xml.XmlUrlResolver.ResolveUri(Uri baseUri, String relativeUri)
at System.Xml.Schema.XmlSchemaSet.Add(String targetNamespace, String schemaUri)
at Microsoft.Dynamics.GP.eConnect.EntityMessageContainer.ValidateMessageUsingXsd(String xsdSchemaFile, String xml)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.eConnect_EntryPoint(String connectionString, ConnectionStringType ConnectionType, String sXML, SchemaValidationType
Can anyone look into this and help me out.
Regards,
Geetanjali Agarwal
*This post is locked for comments