Discussion:
ERROR: The resul of the method is type Variant RESERVED20.
(too old to reply)
anulot1331 last
2010-11-10 16:35:38 UTC
Permalink
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.



Submitted via EggHeadCafe
Fill out blank PDF form online and stream to browser with iTextSharp
http://www.eggheadcafe.com/tutorials/aspnet/a5e1109d-03bc-4e6b-a904-af4835f336cd/fill-out-blank-pdf-form-online-and-stream-to-browser-with-itextsharp.aspx
anulot1331 last
2010-11-11 10:26:26 UTC
Permalink
?Tendr? que ver algo con use="encoded"?

[code]

(...)
<wsdl:message name="actualizarPeticionResponse">
<wsdl:part name="actualizarPeticionReturn" type="xsd:long" />
</wsdl:message>
(...)

<wsdl:operation name="actualizarPeticion">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="actualizarPeticionRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded" />
</wsdl:input>
- <wsdl:output name="actualizarPeticionResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://client.pfirma" use="encoded" />
</wsdl:output>
</wsdl:operation>


[/code]

Submitted via EggHeadCafe
Dynamic Data Controls with Entity Framework
http://www.eggheadcafe.com/tutorials/aspnet/29c02d78-c90d-495a-82fd-c21fe6656ed6/dynamic-data-controls-with-entity-framework.aspx
Loading...