Tam
2010-09-02 11:30:03 UTC
Hi everyone
I want to use an external web service in Dynamics Ax 2009 but got this
exceptions:
Message --> Exception has been thrown by the target of an invocation.
Source --> mscorlib
Stack --> at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target,
Object[] arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture)
at ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* ,
ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength,
ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
Message --> Type 'System.ServiceModel.Channels.ReceivedFault' in assembly
'System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' is not marked as serializable.
Source --> Microsoft.Dynamics.IntegrationFramework
Stack --> at
Microsoft.Dynamics.IntegrationFramework.WebService.AppDomainRemotingProxy.ExecuteMethod(String methodName, Object[] args)
at
Samh.Webservice.SamWebServicePortClient.setQuarterlySale(String strAccessKey,
Int32 intSupplierCVR, Int32 intMemberCVR, Int32 intYear, Int32 intQuarter,
Single dblAmount)
I followed the White Paper Consuming Web Services in Microsoft Dynamics AX
2009
and restarted the AOS service after the Web Reference was created, still
errors.
My colleague called the web service by his .Net application it works fine.
Any idea to solve this issue? Any help will be appreciated.
Regards
Tam
I want to use an external web service in Dynamics Ax 2009 but got this
exceptions:
Message --> Exception has been thrown by the target of an invocation.
Source --> mscorlib
Stack --> at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target,
Object[] arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture)
at ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* ,
ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength,
ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
Message --> Type 'System.ServiceModel.Channels.ReceivedFault' in assembly
'System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' is not marked as serializable.
Source --> Microsoft.Dynamics.IntegrationFramework
Stack --> at
Microsoft.Dynamics.IntegrationFramework.WebService.AppDomainRemotingProxy.ExecuteMethod(String methodName, Object[] args)
at
Samh.Webservice.SamWebServicePortClient.setQuarterlySale(String strAccessKey,
Int32 intSupplierCVR, Int32 intMemberCVR, Int32 intYear, Int32 intQuarter,
Single dblAmount)
I followed the White Paper Consuming Web Services in Microsoft Dynamics AX
2009
and restarted the AOS service after the Web Reference was created, still
errors.
My colleague called the web service by his .Net application it works fine.
Any idea to solve this issue? Any help will be appreciated.
Regards
Tam