p_nevilleuk
17 years agoNew Contributor
Groovy and encryption over http (not https)
Hello,
I am trying to modify the XML prior to sending by encrypting it using my own Cryptography classes (usign AES 256 bit). However, I can only see methods that take Strings when updating the request. For example,
def request = testRunner.testCase.getTestStepByName( "NewOperation - Request 1" );
def property = request.getProperty( "request" );
property.setValue(new String("xyz")); // I need this to take a byte[]
The next problem would be that I may get this error:
org.apache.xmlbeans.XmlException: error: Illegal XML
Can this be overcome?
Is there a way that SOAP-UI and groovy can send an encypted SOAP body but with plain http headers?
Thanks
I am trying to modify the XML prior to sending by encrypting it using my own Cryptography classes (usign AES 256 bit). However, I can only see methods that take Strings when updating the request. For example,
def request = testRunner.testCase.getTestStepByName( "NewOperation - Request 1" );
def property = request.getProperty( "request" );
property.setValue(new String("xyz")); // I need this to take a byte[]
The next problem would be that I may get this error:
org.apache.xmlbeans.XmlException: error: Illegal XML
Can this be overcome?
Is there a way that SOAP-UI and groovy can send an encypted SOAP body but with plain http headers?
Thanks