header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 23, 2008, 04:31:17 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: Andreas
Welcome, Guest. Please login or register.
November 23, 2008, 04:31:17 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1]
1  soapUI / soapUI / Re: Insert a character stream into a CLOB column data (Oracle 9.x) on: April 16, 2008, 10:38:07 am
Hi Ole,

the problem was the installed driver Oracle JDBC Driver version - 9.0.2.0.0. Updated odbc14.jar for Oracle JDBC Driver version - 10.1.0.5.0 and it works fine Smiley
Thanks for your help.

regards!
Andreas
2  soapUI / soapUI / Insert a character stream into a CLOB column data (Oracle 9.x) on: April 14, 2008, 09:30:11 am
Hi,

to store the response (22534 bytes) of a soap request in the database into a CLOB column I used the following code in my groovy script:

// get the request object
def request = testRunner.testCase.testSteps["REQUEST"].testRequest

// get the actual messages
def requestContent = request.requestContent
def responseContent = request.response.contentAsString

// Update der Tabelle log um den Request
sql.executeUpdate("Update log set REQUEST = $requestContent where TRANSACTION_ID = $TRANSACTION_ID_NEW")

// Update der Tabelle log um den Request
sql.executeUpdate("Update log set RESPONSE = $responseContent where TRANSACTION_ID = $TRANSACTION_ID_NEW")

In this case an error rises:
Mon Apr 14 09:54:11 CEST 2008:ERROR:java.sql.SQLException: Datengröße größer als max. Größe für diesen Typ: 22534

This means that the string "responseContent" is too long.

So I used the following code:

Connection theCon = DriverManager.getConnection( database );
theStatement = theCon.prepareStatement ("Update log set RESPONSE = ? where TRANSACTION_ID = ?");
theStatement.setString(2, TRANSACTION_ID_NEW);

byte[] charDataBytes = responseContent.getBytes("UTF-8");
java.io.ByteArrayInputStream byteStream =  new java.io.ByteArrayInputStream (charDataBytes);
theStatement.setAsciiStream(1, byteStream, byteStream.available());
rs = theStatement.executeUpdate();

With this code no error rises but the column RESPONSE in table log remains empty.

I hope you have an idea, thanks
Andreas
3  soapUI / soapUI / Property Transfer with multiple target? on: February 20, 2008, 04:38:22 pm
Hi, I'm new in this forum and hope that you can help me.

Using the Property Transfer in SoapUI 2.0.2 Pro I would like to transfer one value into two targets in the same XML.
E.g. the name of a customer is selected from the database and stored in the property "NAME".
The name in the test request appears twice: as shipping address and as postal address like this

<gfpos>
<v1:shipping_address>
...
    <v1:name></v1:name>
...
</v1:shipping_address>
...
<v1:postal_address>
...
  <v1:name>?</v1:name>
...
</v1:postal_address>
</gfpos>

Is it possible to declare two targets during one transfer or must I do the transfer separately for each address?


Kind regards
Andreas
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header