function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mcclurecmcclurec 

Relationship between Salesforce 'outbound message' and generated WSDL

In my Salesforce workflow I have created an outbound message that sends an xml payload to an ASP.Net 4.0 ashx handler page. I can get the payload and parse it the old fashioned way, but with .Net 4.0 using WCF I think there should be an easier way. I have been able to add the WSDL as a web reference and I can access it like a class. So how do I marry the xml to the wsdl so I could presumably do something like:

 

customerHairColor = sfObject.hairColor;

 

Is this possible? I'm just missing the connection between the WSDL and the XML payload. I understand that the WSDL defines the XML, but how do I exploit this and make my code easier.

 

Thanks!!

SuperfellSuperfell

You need to import it as a server implementation not a client, prior to WCF this would be done by running wsdl.exe /server the.wsdl (or /serverInterface), there should be some equivalent of this for WCF.

ArsalanArsalan

You should use the following line in the visual studio command line to generate your CS. This should work with .net 4.0; I used it.

 

c:\>wsdl.exe wfoutbound.wsdl /serverInterface

 

it generated the interfaces and I implemented the interface in a webservice that uses .net 4,0