You need to sign in to do that
Don't have an account?

Can lists be passed to a web service method.
Hi,
Can lists be passed to a webservice methods. Or should they be passed as strings. If they should only be passed string whats the alternative to convert a list to a string.
please suggest.
Thank you
Yes, you can pass strings into webservices. Are you seeing behavior to the contrary?
Can list of records be passed into a web service
Doesn't that depend on the functionality of the web service? I imagine if you can get both sides to agree on the data type, and your application can create an object of that type, then you can pass it in, but the understanding of the data both sides is the problem.
In the web services that I have created, when working with lists, I've just marshal the data into a CSV text string, and then pass that, and then let the receiving end "unmarshal" it..
Great Thank you for the information. My confusion is cleared.
can you please provide me a sample of how Lists with records can be converted to a CSV format in APex.
That would be helpful
Thank you.
Shouldn't your WSDL solve the problem of figuring out how to get both sides of your integration to talk to each other?
The WSDL should be defiing the types and how they are represented, no?
Now I haven't validated this:
Agreed.
Would that work with a partner WSDL and lists of custom objects? I have never tested it. When working with partners, I have always used the csv method, and never taken the time to test it out.