paullux
13 years agoNew Contributor
How to load a list of objects into a Request (in Groovy)
Hey pros,
My SOAP request takes one parameter which is a List object. Objects in list are of type Order, a complexType in my soap.
I have the spreadsheet as input and trying to create objects to be placed in a list to be made part of Request.
**Important** I just want to send out SINGLE soap request out as part of my testing with this list as soap parameter **.
Now, I am able to read from spread sheet but how to create objects from it in Groovy script? How to reference 'Order' class so that I can create Order object from spreadsheet data?
If not Groovy, is there any other idea to accomplish this?
Any help would be greately appreciated. I just put in a small diagram of my Request object below
Thanks
Paul.
---------------|
Request |
---------------|
List <orders> |<=====load from spread sheet
|
|
---------------|
My SOAP request takes one parameter which is a List object. Objects in list are of type Order, a complexType in my soap.
I have the spreadsheet as input and trying to create objects to be placed in a list to be made part of Request.
**Important** I just want to send out SINGLE soap request out as part of my testing with this list as soap parameter **.
Now, I am able to read from spread sheet but how to create objects from it in Groovy script? How to reference 'Order' class so that I can create Order object from spreadsheet data?
If not Groovy, is there any other idea to accomplish this?
Any help would be greately appreciated. I just put in a small diagram of my Request object below
Thanks
Paul.
---------------|
Request |
---------------|
List <orders> |<=====load from spread sheet
|
|
---------------|