Reputation
261
Top tag
Next privilege 300 Rep.
Create new tags
Badges
1 11 27
Impact
~68k people reached

  • 0 posts edited
  • 0 helpful flags
  • 18 votes cast
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
@KitMenke Yes, I'm using the REST factory (not the SOAP) but I'm using JSON to return a list of custom presentation objects. I've included a simple Test method that works when browsed but doesn't when trying to call it from Fiddler or .NET code.
Dec
18
revised How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Added service contract and implementation
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
@natdico Tried that, still 400. Even dragging a successfull request made by jQuery in Fiddler to the composer and run it from there doesn't work, but throws 401 unauthorized. So there is something that is being passed by the browser (cookies?) that doesn't seem to be included when calling it from another client (.NET project, Fiddler).
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Adding this makes the error change to "(401) Unauthorized" even when using a full farm admin. Anyway, this couldn't be a proper solution because this will be installed on clients servers and we can't force it to use basic authentication if they don't want to.
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
That is for a SOAP service, this is a REST service.
Dec
18
revised How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Added details
Dec
14
accepted How to know if JS file has been registered in a visual web part?
Dec
14
accepted How to show documents in a webpart like Sharepoint does?
Dec
14
accepted How to simulate content and usage
Dec
7
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
I don't think it's a problem with the headers because typying the url of the web method in the browser works fine. But trying to do a GET request (which is what jQuery does) using Fiddler or .NET returns a 400 - Bad request. My guess is that it doesn't work because I'm not "logged in" to the Sharepoint Site while using Fiddler or .NET, but in the browser I am.
Dec
6
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
@natdico I think I've found the problem. The web service is using the factory that creates a REST service, to be accessible via jQuery. But in order for .NET to access needs to be a SOAP service with the endpoints. Is there any way to have both?
Dec
6
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Ok, I have Fiddler, what exactly do you need me to copy? Also, just a normal jQuery.ajax() request and just entering the web method url in the browser returns the expected result. It's only trying to do it via C# that throws BAD REQUEST, so maybe I need to use some other C# object to do it.
Dec
6
asked How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Nov
6
comment How to show documents in a webpart like Sharepoint does?
Sure, but how can I populate it client-side (jQuery)? This seems only possible to populate in the .NET side.
Nov
6
asked How to show documents in a webpart like Sharepoint does?
Oct
25
comment How to simulate content and usage
Great, this is a good start. Thank you. I'll search for this Contoso Sharepoint. The only thing is that I just find an HyperV VM... and I'm already using a Cloudshare VM... Maybe the can install it for me.. Anyway, thanks man.
Oct
25
asked How to simulate content and usage
Sep
12
awarded  Popular Question
Aug
7
awarded  Notable Question
May
22
awarded  Popular Question