+ Start a Discussion
CRobertsBBFCRobertsBBF 

How to include fields from multiple related objects when building a WSDL ?

When I attempt to build a WSDL for an outbound message, the interface seems to limit me to chosing fields to use in the message to only one object. 

Is there a way to use fields from multiple related objects when building a WSDL?

Thanks

Chris

 

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

You will need to build an apex webservice class if you need to expose data from multiple objects in a single API

CRobertsBBFCRobertsBBF

I would need to expose data from the account, opportunity and productlineitems objects. 

 

So after i built the class, how do i reference that class when configuring an outbound message?

 

Thanks

 

Chris

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

Chris you would be using SOAP API to expose your service as WSDL through apex .

 

http://blog.deadlypenguin.com/blog/2012/01/06/creating-web-services-in-salesforce/

 

refer this.

CRobertsBBFCRobertsBBF

ok. I am not sure I follow completely. I am not a developer. 

 

What I ultimately need to do is send information to a 3rd party system each time an opportunity is closed/won and approved.  I need to also get a response back from that system that the information made it to the 3rd party system successfully.

 

The 3rd party system has a url that i can send an xml post to. 

 

The 3rd party has given me an WSDL to work from.

 

if this is something you are interested in developing, i have a small budget i can work from. 

 

Thanks

 

Chris