You need to sign in to do that
Don't have an account?
WebService to return an array of arrays? Complex Types
I created a custom wrapper object as such:
global class DocumentWrapper {
public List<Attachment> attchments { get; set;}
public Document__c document{ get; set; }
public DocumentWrapper (){
attchments = new List<Attachment>();
document = new Document__c();
}
}
I want to return a document with all the related attachments. The webservice returns a List of these DocumentWrapper objects. I generate the WSDL and I can call it from .NET.
However the DocumentWrapper object class that is generated in .NET has not fields in it, just an empty class? Is this possible? What am I doing wrong? I belive I remember someone saying force.com WSDLs cannot handel returning arrays?
Are there any work arounds to get Complex types to work in Apex web service calls. Will manually editing the WSDL work?
Hi there,
I had the same situation, and this is the way it works for me,
http://salesforcesource.blogspot.com/2009/12/flex-rich-clients-and-complex-logics.html
bon apetit ;)
All Answers
Hi there,
I had the same situation, and this is the way it works for me,
http://salesforcesource.blogspot.com/2009/12/flex-rich-clients-and-complex-logics.html
bon apetit ;)
Well, I have been hunting, and I sure couldn't find this documented.
But Simon's hint got me going. Here's how your code should look: