Thanks Pablo,
But the problem continues. I really need some help, now the error is:
Action.c(31): Error: The "XML={response}" argument (#3) is invalid or
not recognized at this position in the function call
Action.c(31): Error: Xml Validation "Valida_XML" execution failed
Action.c(31): Error: C interpreter run time error: Action.c (31):
Error -- memory violation : Exception ACCESS_VIOLATION received.
Action.c(31): Notify: CCI trace: Action.c(31): soa_xml_validate
(0x03b6021a "StepName=Valida_XML", 0x03b60207 "SnapShot=teste.inf",
0x03b601f8 "XML={response}", 0x03b601e9 "XSD=Schema.xsd", 0x03b60246
"LAST")
.
Action.c(31): Notify: CCI trace: Compiled_code(0): Action()
-------------------------------------------------------------------------------------
The code of script:
lr_save_string( lr_decrypt("4976f9019a4656a2bfc4acac9d"),
"password" );
web_service_call( "StepName=autenticarUsuarioDiretorio_102",
"SOAPMethod=ServicosSegur.serviceagent|ServicosSegurSoap|
autenticarUsuarioDiretorio",
"ResponseParam=response",
"Service=ServicosSegur.serviceagent",
"ExpectedResponse=SoapResult",
"Snapshot=t1232473679.inf",
BEGIN_ARGUMENTS,
"xml:parameters="
"<parameters>"
"<codUsuario>user</codUsuario>"
"<senha>{password}</senha>"
"<sistema>system</sistema>"
"</parameters>",
END_ARGUMENTS,
BEGIN_RESULT,
"parameters/returnAutenticarUsuario=Param_returnAutenticarUsuario",
"parameters/msgRetorno=Param_msgRetorno",
END_RESULT,
LAST);
lr_output_message("Mensagem: %s", lr_eval_string("{response}"));
soa_xml_validate( "StepName=Valida_XML",
"SnapShot=teste.inf",
"XML={response}",
"XSD=Schema.xsd",
LAST );
On Jan 21, 3:10 pm, pablo martinez <
pablo.daniel.marti...@gmail.com>
wrote:
> sorry, I was with version 8.1. Now I checked the 9.10
>
> I've just tested it. Just replace your :
> soa_xml_validate( "Valida_XML",
>
> with :
> soa_xml_validate( "*StepName=*Valida_XML",
>
> On Wed, Jan 21, 2009 at 11:28 AM, Wellington <
wellington.as...@gmail.com>wrote:
>
>
>
> > It's in the version 9.1 of LR. What is your version?
>
> > This is the code:
>
> > soa_xml_validate( "Valida_XML",
> > "XML={Param_returnAutenticarUsuario}",
> > BEGIN_CHECKPOINTS,
> > CHECKPOINT, "XPATH=parameters[1]/returnAutenticarUsuario[1]",
> > "Value=false",
> > END_CHECKPOINTS,
> > LAST );
>
> > 2009/1/21 pablo martinez
pablo.daniel.marti...@gmail.com
>
> >> Also, I didn't find the funcion soa_xml_validate on vugen's help
> >> where is it?
>
> >> On Wed, Jan 21, 2009 at 9:22 AM, pablo martinez <
> >>
pablo.daniel.marti...@gmail.com> wrote:
>
> >>> I'm not sure, but it seems that it's taking
> >>> {Param_returnAutenticarUsuario}
> >>> as your string instead of its value.
> >>> Try to replace it with:
> >>> lr_eval_string("{Param_returnAutenticarUsuario}")
>
> >>> On Wed, Jan 21, 2009 at 8:32 AM, Wellington <
> >>>
wellington.as...@gmail.com> wrote:
>
> >>>> Hi,
>
> >>>> I am testing an webservice and I need validate a response XML with
> >>>> function SOA_XML_VALIDATE, but one error occurred. Can anybody help
> >>>> me? See below...
>
> >>>> Action.c(30): Error: The "Valida_XML" argument (#1) is invalid or not
> >>>> recognized at this position in the function call
> >>>> Action.c(30): Error: Xml Validation execution failed
> >>>> Action.c(30): Error: C interpreter run time error: Action.c (30):
> >>>> Error -- memory violation : Exception ACCESS_VIOLATION received.
> >>>> Action.c(30): Notify: CCI trace: Action.c(30): soa_xml_validate
> >>>> (0x03b60265 "Valida_XML", 0x03b60241 "XML=
> >>>> {Param_returnAutenticarUsuario}", 0x03b6022f "BEGIN_CHECKPOINTS",
> >>>> 0x03b60224 "CHECKPOINT", 0x03b601f5 "XPATH=parameters[1]/
> >>>> returnAutenticarUsua...", 0x03b601e9 "Value=false", 0x03b601d9.
> >>>> Action.c(30): Notify: CCI trace: "END_CHECKPOINTS", 0x03b60270
> >>>> "LAST")
> >>>> .
> >>>> Action.c(30): Notify: CCI trace: Compiled_code(0): Action()
> >>>> Regards,
> >>>> Wellington
> >>>> Vitória - ES, Brazil.- Hide quoted text -
>
> - Show quoted text -