Eviware Forum

soapUI => soapUI => Topic started by: BhuvanShanmugam on July 30, 2008, 03:29:44 pm



Title: Transfer of property from one request's response to next request - Error
Post by: BhuvanShanmugam on July 30, 2008, 03:29:44 pm
Hi,

I have a 'Open' request and want to use the 'session ID' from its response in the 'Close' request.

I did this using GetData->Open->Response->sessionID and it throws the following error dring validation.

Code:
"error: decimal: Invalid decimal value: unexpected char '36'; T=int@http://www.w3.org/2001/XMLSchema"

The XPath value that I am setting is
Code:
"${Open#Response#//tol:authenticateUserResponse[1]/tol:sessionId[1]}"

The field type is integer. The ascii value of $ is 36 and somehow there seems to be a relation between these...

Any help is appreciated.

Thanks,
Bhuvan.

I also tried to insert a 'project level' property as show below for this field. That too gave the same error for validation.

Code:
${#Project#ID12345}



Title: Re: Transfer of property from one request's response to next request - Error
Post by: omatzura on July 30, 2008, 11:03:18 pm
Hi,

this is a bug in the current version that incorrectly tries to validate the property-expansion expression (and not its value) against the corresponding type.. will be fixed in next version.. sorry..

regards,

/Ole
eviware.com


Title: Re: Transfer of property from one request's response to next request - Error
Post by: BhuvanShanmugam on July 31, 2008, 03:03:33 pm
Ole,

If I use a project level property, it works all right.
On a Mock service If I use a request field to fill a response field, it works all right there too.

I wonder if the problem is specific to using a field from one responses field to next request ?!

Could you also let me know when are you planning for a next patch / full version.

Thanks,
Bhuvan.


Title: Re: Transfer of property from one request's response to next request - Error
Post by: BhuvanShanmugam on August 06, 2008, 04:34:15 pm
Ole,

This problem is hitting me a bit strongly.

I am not able to use a data from the request nor a project level property to fill in a field for the mock response. (For example I need the 'session id' field to be sent back and forth for a set of req/resp but copying this field doesnt seem to work out.

Do you suggest any other alternatives?

Thanks,
Bhuvan.

PS: I am a Pro version user.


Title: Re: Transfer of property from one request's response to next request - Error
Post by: omatzura on August 07, 2008, 12:27:40 am
Hi Bhuvan,

Can you send me your project file and tell me exactly what you want to transfer from where and I'll have a look!

(ole@eviware.com)

regards,

/Ole
eviware.com


Title: Re: Transfer of property from one request's response to next request - Error
Post by: BhuvanShanmugam on August 07, 2008, 09:45:23 am
Ole,

I have sent a separate mai to you attaching required information. Thanks for the help.

Bhuvan.


Title: Re: Transfer of property from one request's response to next request - Error
Post by: BhuvanShanmugam on October 15, 2008, 05:00:43 pm
Hi Ole,

I have now installed the 2.5 BETA and that too throws the same error as reported. Could you please check if this is fixed?

Thanks,
Bhuvan.