226 reputation
926
bio website
location Argentina
age 27
visits member for 3 years, 7 months
seen Nov 3 at 18:13

Mar
1
accepted How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Mar
1
answered How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Mar
1
accepted How to search/query by Enterprise Keywords?
Mar
1
answered How to search/query by Enterprise Keywords?
Feb
28
comment How to search/query by Enterprise Keywords?
I have to do it programatically.
Feb
26
comment How to search/query by Enterprise Keywords?
And where exactly does that query go? SPQuery?
Feb
26
asked How to search/query by Enterprise Keywords?
Feb
26
awarded  Popular Question
Jan
4
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
@natdico Well this worked in a Console test project but it doesn't in a ASP.NET project. Maybe it's because the default credentials for each one are different? I mean they're running with different accounts? How can I check that?
Dec
19
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
The client and the Sharepoint Site are on the same server, same physical machine. There's nothing between them AFAIK.
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Well, thank you! It worked. Even without the cookies foreach. But for some reason it doesn't work without the first request. Any thoughts about why is that needed? Also, this will be installed in different Sharepoint 2010 servers, with different configurations. Do you think this could not work in any specific scenario? Thank you again, you saved my week.
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Well, this seems a step forward. The GetResponse() doesn't throw an exception like before, but when trying to read the res.GetResponseStream() throws an "Cannot access a disposed object. Object name: 'System.Net.HttpWebResponse'."
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
This is a REST based WCF service, there's no WDSL.
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Well, did what you suggested and now I'm getting a System.TimeoutException with an inner exception saying "The remote server returned an error: (504) Gateway Timeout.".
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Question, where does the IWebConnectorService come from? I mean, I don't have the serviec contract in this .NET project. Should I copy the service contract to this new project and use that?
Dec
18
comment How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?
Are you sure? Is that a custom WCF Restful service that you've created and hosted in the Sharepoint site? I'll try it. Thanks
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.