Hi,
I am trying to create a WCF REST Web Service (C#) to receive the Http Post feed from the ApplyWithLinkedIn button. Currently I am not receiving any request from LinkedIn when the button is clicked, but cannot determine why. When I call into my web service from Fiddler using an http post request, my webservice is called and correctly dumps the input stream to file.
I receive the email successfully when using data-email attribute, so I am pretty sure that the javascript on my recruitment site is correct.
<script type="IN/Apply"
data-companyId="XXXXX"
data-jobTitle="UX Architect"
data-onclick="myOnclickFunction"
data-onsuccess="myOnsuccessFunction"
data-url="http://dummyurl.cloudapp.net/ApplyWithLinkedIn.svc/LinkedInApplication">
</script>
The ApplyWithLinkedIn button is on a different domain to my web service, but would not expect this to be an issue.
Please can anyone help with this.
- Log in to post comments
OK, I now have my service working, albeit partially. I would like to use the data-urlFormat option to send my data as xml, but when I do this I get no data into my service. When omitting the data-urlFormat attribute, I do get the feed into my web service in Json format.
I am able to extract the feed using this syntax:
OperationContext.Current.RequestContext.RequestMessage.ToString()
BTW: Are there any examples on your site of using the ApplyWithLinkedIn API with WCF services???