sumitd
(Sumit)
April 21, 2020, 10:11am
1
Hi,
Using a “Soap Request” activity, I am trying to get a response from a SOAP (WSDL) call.
I am passing 5 parameters.
Instead of the complete response, I am just getting “System.Data.DataSet”.
I have tried creating Loading Web Services in Libraries , but was not able to add parameters.
Works as expected in SoapUI.
Any suggestions how to fix this?
Thank you for looking.
@loginerror
1 Like
loginerror
(Maciej Kuźmicz)
April 23, 2020, 1:55pm
2
Hi @sumitd
What was the issue there? Normally it should allow you to initialize a variable needed to pass the parameters, as per this very long, but somewhat helpful Orchestrator Swagger tutorial here:
#FeatureBlog - 19.4 - SOAP and Swagger (based REST services for Library projects)
1 Like
sumitd
(Sumit)
April 23, 2020, 8:01pm
3
Thanks @loginerror - will go through the tutorial.
Also, is there no fix for the actual error - Just receiving “System.Data.DataSet” as response?
sumitd
(Sumit)
April 24, 2020, 2:06am
4
@loginerror - this post from you is super helpful - thanks for sharing.
After all configurations are done, I am still getting System.Data.DataSet as the response.
GetOrderHistoryResponse
{
GetOrderHistoryResult=[System.Data.DataSet]
}
Not sure what I am missing. Could you please suggest.
Thank you!
1 Like
loginerror
(Maciej Kuźmicz)
April 24, 2020, 8:21am
5
I did a quick research
Basically, I think it was already working properly the first time.
The System.Data.DataSet variable is basically a collection of System.Data.DataTable variables
To access them, you can simply use this syntax:
result.Tables(0)
This will return you the DataTable variable, which you can then use however you want.
For example, to output the content to the Output panel:
1 Like
sumitd
(Sumit)
April 24, 2020, 10:04am
6
Holy ****! That’s it - that was an amazing catch @loginerror - thank you very much for your support - much appreciated! I should have noticed this earlier
1 Like
sumitd
(Sumit)
April 25, 2020, 9:09pm
7
@loginerror - would like to add that result.Tables(0)
will be “called” different for different APIs.
In my case, it was called GetOrderHistoryResult.Tables(0)
1 Like
system
(system)
Closed
April 28, 2020, 9:09pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.