Written by

Software Engineer at Shift Tecnologia e Servicos Ltda
Question Carlos Salomao · Sep 9, 2019

How to use WriteSOAPBodyMethod method?

Would anyone please have an example of how to use the WriteSOAPBodyMethod method?

 

The webservice method I'm trying to overwrite the body looks like this:

Method RecepcionarLoteRps(EnviarLoteRpsEnvio As %String(CONTENT="MIXED")) As %String(CONTENT="MIXED",XMLNAME="EnviarLoteRpsResposta") [ Final, ProcedureBlock = 1, SoapBindingStyle = document, SoapBodyUse = literal, WebMethod ]
{
 Set ..WriteSOAPBodyMethod = "override"
 Quit ..WebMethod("RecepcionarLoteRps").Invoke($this,"",.EnviarLoteRpsEnvio)
 Set ..WriteSOAPBodyMethod=""
}
Method override(proxy As %SOAP.ProxyDescriptor, tag As %String) As %String
{
Quit ""
}
Thanks!!

Comments

Carlos Salomao  Sep 10, 2019 to Alexander Koblov

It worked, thank you very much.

0