manually defining endpoints (SharePoint 2010 BDC WCF data source related)

597 views
Skip to first unread message

Amr Ellafy

unread,
Feb 17, 2012, 3:28:25 AM2/17/12
to ServiceStack .NET Open Source REST Web Services Framework
first thanks for this wonderful library !

the issue:

I developed a simple web service to expose data to SharePoint as an
External Content Type. SharePoint supports WCF data sources.

in order to add a WCF data source in SharePoint Designer you have to
provide two urls:

1- Service Metadata url
2- Service Endpoint url

I refer to this post https://groups.google.com/d/msg/servicestack/GMd3JwNq7eA/kEmslhX1GhYJ
were Demis advised to use the either /servicestack/soap11 or /
servicestack/soap12, but this doesn't work with SharePoint designer
and i keep getting the following error "Cannot find any matching
endpoint configuration"

already said, 'SyncReply.svc' and 'AsyncOneWay.svc are deprecated now
and SharePoint will accept them during as Service Endpoint url while
you setup WCF data source, but later on querying the following error
will raise:

System.ServiceModel.EndpointNotFoundException: There was no endpoint
listening at http://myserver/ServiceStack/SyncReply.svc that could
accept the message. This is often caused by an incorrect address or
SOAP action. See InnerException, if present, for more details. --->
System.Net.WebException: The remote server returned an error: (404)
Not Found.

Demis Bellot

unread,
Feb 17, 2012, 3:38:26 AM2/17/12
to servic...@googlegroups.com
Note: SyncReply.svc no longer exists and has been deprecated for a while.

So you'll need to concentrate on the WSDL that's generated by ServiceStack.

/servicestack/soap11 and /servicestack/soap12 should return the WSDLs but will only do so if you've mounted servicestack at /servicestack
If you installed the ServiceStack.Host.AspNet version from NuGet it's hosted at / - so will be /soap12
and if you installed ServiceStack.Host.Mvc version from NuGet it's hosted at /api - so will be /api/soap12

Doing a GET against against /soap11 will return a WSDL whilst POST'ing the SOAP message will execute the web service.
So you first need to make sure the urls you give SharePoint designers are returning WSDLs.

Cheers,

Amr Ellafy

unread,
Feb 17, 2012, 3:49:03 AM2/17/12
to servic...@googlegroups.com
yes, they return WSDLs but SharePoint somehow is trying to discover endpoints by reading the WSDL file so it locates SyncReply.svc as it is defined in the generated WSDLs by ServiceStack. 

can i override ServiceStack configuration so i can have real endpoints i can use with SharePoint ?

Demis Bellot

unread,
Feb 17, 2012, 4:04:36 AM2/17/12
to servic...@googlegroups.com
I can't see the SyncReply.svc declared in the WSDL here.
What version of ServiceStack are you running?

Can you upload a copy of your WSDL?

Cheers,

Amr Ellafy

unread,
Feb 17, 2012, 4:16:50 AM2/17/12
to servic...@googlegroups.com
Hi,

I'm using the recent package on NuGet (version: 3.5.1)

WSDL can be found here : http://pastebin.com/wMZ3Asib

you can see SyncReply.svc defined at the end of the WSDL.

Demis Bellot

unread,
Feb 17, 2012, 4:32:02 AM2/17/12
to servic...@googlegroups.com
okie I see the problem, it was falling back to the old urls if the incoming request urls wasn't the same:

I've updated and pushed a new version to NuGet v3.54 can you do an update and let me know if that fixes it?

Cheers,

Amr Ellafy

unread,
Feb 17, 2012, 4:37:58 AM2/17/12
to servic...@googlegroups.com
Thanks for your quick response ! NuGet latest version now is 3.5.3, is it the same ?

Demis Bellot

unread,
Feb 17, 2012, 4:39:26 AM2/17/12
to servic...@googlegroups.com
Crap apologies, I forgot to hit submit, it should be there now:

Can you try again?

Amr Ellafy

unread,
Feb 17, 2012, 4:57:35 AM2/17/12
to servic...@googlegroups.com
simply awesome ! very good job !

NSZ

unread,
Jan 12, 2015, 5:45:55 PM1/12/15
to servic...@googlegroups.com
Hello,
Check below link for SharePoint 2010 Introduction to Publishing


Thanks
NSA
Reply all
Reply to author
Forward
0 new messages