I have a request to monitor some web services and I have created scripts using the web_custom_request function. Here is an example
web_custom_request("myrequest", // Layer 7 URL
"URL=https://www.url",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"EncType=text/xml;charset=UTF-8",
"Body=<soapenv:Envelope xmlns:soapenv=\"http://XXXX/\" xmlns:aaa=\"http… " <soapenv:Header>\n" " SOAP request…
I have not had any problems in the past as I have always been able to paste in the soap request and URLs and have been able to validate the SOAP response.
My last attempts have been unsuccessful because of the presence of this in the SOAP response:
<reasonText>No signature in message!</reasonText>
The app dev team said I needed a certificate. I created a cert and followed the procedure in the Function reference for web_set_Certificate _ex to put it in .pem format. I then put the cert in the script folder.
This is what I put in code:
web_set_certificate_ex(
"CertFilePath=mycert.pem",
"CertFormat=PEM",
"KeyFilePath= mycert.pem ",
"KeyFormat=PEM",
//"Password=woowoo", LAST );
I am still getting the same No signature in message! in the response. In case my understanding of script folder was not correct, I tried specifying a folder on the c drive for the file and key path, still got the same response. The log say “web_set_certificate_ex was successful”. In fact, the log will say web_set_certificate_ex was successful even if I put complete nonsense in as the arguments.
How do I get web_set_certificate_ex to work or at least provide a reasonable message if it is not working.
I can try running this as winnet replay rather than sockets, in which case I’d only need to enter the cert Index from IE. How do I determine the cert Index?
I am using Vugen v 12.02, build 2739
Thanks,
Dave