Hi Everyone,
I've encountered a problem with using the "Add Service Reference"
dialog within Visual Studio 2010 to add a reference to the services in
the example project (ServiceStack.Examples.Host.Web). The service
shows up in the dialog, and it appears to add it correctly, but the
resulting configuration that's added to my app.config file does not
have the right endpoint addresses. Here's exactly what I did:
1) Added a new Console project to the Examples solution.
2) Used the Add Service Reference command to add a reference to the
services at
http://localhost:59436/ServiceStack/Soap12 (note: I
switched the Host.Web project to use webdev server and assigned it a
static port number of 59436). The service is added to the project.
3) Checking the App.config file, I see that the endpoint addresses are
not correct. They are
http://localhost:59436/ServiceStack/SyncReply.svc
and
http://localhost:59436/ServiceStack/AsyncOneWay.svc, neither of
which work. Using the generated SyncReplyClient throws an
EndpointNotFoundException.
From looking at how the generated clients are used in the other
Example projects, it seems that the endpoint URL should have been
"
http://localhost:59436/servicestack/soap12". Indeed, changing the
endpoint address and the security mode to 'none' works, and I'm able
to call the service.
Any ideas on why it's generating the wrong endpoint address? I know
that using the 'Add Service Reference' path isn't the "best" way to
consume ServiceStack services, but the plan is for these services to
be exposed to other apps within our organization, some of which aren't
even going to be using .NET.
Thanks for making this framework. I'm really digging it!