ERROR: The result of the method is type variant RESERVED20

anulot1331
Member Posts: 2
Good afternoon, I'm new to the forum and need urgent help ...
I am working with Axapta 3.0 and I am calling a Web service through a COM, and I can not get the return value of the method call. My code is as follows:
COM service = new COM('{630F005B-B908-3829-AA5C-848F01F5CB20}');
COMDispFunction funcShow;
COMVariant vuelta;
(...) //define for each parameter of the method a COMVariant
;
funcShow = new COMDispFunction(
service,
"actualizarPeticion",
COMDispContext::METHOD);
//The method that I call from the COM returns a long
vuelta = new COMVariant(
COMVariantInOut::Out_retVal,
COMVariantType::VT_I4);
//Call the method with all parameters that are of type COMVariant
//and add the parameter back to return in it the result.
funcShow.Call(idPeticionCOM,
app,
varFalse,
varFalse,
varFalse,
fecha,
fecha2,
remitente,
vacio,
vacio,
resumen,
resumen,
prioridad,
dniCOM,
vacio,
texto,
vuelta);
when I do the job run, the error is:
"The result of method 'actualizarPeticion' disagrees with the argument [retval] specified. The result of the method is type variant RESERVED20."
Which does not understand because in my web service the parameter back is type "long":
(...)
<wsdl:message name="actualizarPeticionResponse">
<wsdl:part name="actualizarPeticionReturn" type="xsd:long" />
</wsdl:message>
(...)
If you have another alternative for call a web service from Axapta 3.0 tell me, please, because I am novice in Axapta.
Many thanks and greetings.
I am working with Axapta 3.0 and I am calling a Web service through a COM, and I can not get the return value of the method call. My code is as follows:
COM service = new COM('{630F005B-B908-3829-AA5C-848F01F5CB20}');
COMDispFunction funcShow;
COMVariant vuelta;
(...) //define for each parameter of the method a COMVariant
;
funcShow = new COMDispFunction(
service,
"actualizarPeticion",
COMDispContext::METHOD);
//The method that I call from the COM returns a long
vuelta = new COMVariant(
COMVariantInOut::Out_retVal,
COMVariantType::VT_I4);
//Call the method with all parameters that are of type COMVariant
//and add the parameter back to return in it the result.
funcShow.Call(idPeticionCOM,
app,
varFalse,
varFalse,
varFalse,
fecha,
fecha2,
remitente,
vacio,
vacio,
resumen,
resumen,
prioridad,
dniCOM,
vacio,
texto,
vuelta);
when I do the job run, the error is:
"The result of method 'actualizarPeticion' disagrees with the argument [retval] specified. The result of the method is type variant RESERVED20."
Which does not understand because in my web service the parameter back is type "long":
(...)
<wsdl:message name="actualizarPeticionResponse">
<wsdl:part name="actualizarPeticionReturn" type="xsd:long" />
</wsdl:message>
(...)
If you have another alternative for call a web service from Axapta 3.0 tell me, please, because I am novice in Axapta.
Many thanks and greetings.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions