Developer forum

Forum » Integration » setLanguage attribute must be set in the request

setLanguage attribute must be set in the request

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

I get this error message from the test tool when trying to connect to NAV 2018 (below).
This only happens if I try to use the GetProductsSimple function.

Ex. GetLanguages is working as expected.

I use this version of the tool DynamicwebConnectorTestTool (2.1.0).
What might be wrong?

System.ServiceModel.FaultException: setLanguage attribute must be set in the request

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   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 Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavDynamicwebService.DWWebService_Port.Process(Process request)
   at Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavDynamicwebService.DWWebService_PortClient.Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavDynamicwebService.DWWebService_Port.Process(Process request) in C:\Dynamicweb\Dynamicweb9\Integrations\DynamicwebConnectorService\Head\Dynamicweb.Ecommerce.Integration.Connectors.Nav\Service References\NavDynamicwebService\Reference.cs:line 163
   at Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavDynamicwebService.DWWebService_PortClient.Process(String& request) in C:\Dynamicweb\Dynamicweb9\Integrations\DynamicwebConnectorService\Head\Dynamicweb.Ecommerce.Integration.Connectors.Nav\Service References\NavDynamicwebService\Reference.cs:line 169
   at Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavConnector.ProcessRequest(String request) in C:\Dynamicweb\Dynamicweb9\Integrations\DynamicwebConnectorService\Head\Dynamicweb.Ecommerce.Integration.Connectors.Nav\NavConnector.cs:line 61
   at Dynamicweb.Ecommerce.Integration.ConnectorTestTool.TesterControl.RunTest_Click(Object sender, RoutedEventArgs e) in C:\Dynamicweb\Dynamicweb9\Integrations\DynamicwebConnectorService\Head\Dynamicweb.Ecommerce.Integration.ConnectorTestTool\TesterControl.xaml.cs:line 142

Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Martin,

you need to setup the setLangauge attribute in the request:
<GetEcomData Qty="10" ><tables><Products type="all" setLanguage="LANG1" /></tables></GetEcomData>
Regards, Dmitrij

Votes for this answer: 1

 

You must be logged in to post in the forum