Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3958316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:35:44+00:00 2026-05-20T02:35:44+00:00

I have a RIA service (CustomDomainService), which is composed by few methods that need

  • 0

I have a RIA service (CustomDomainService), which is composed by few methods that need authentication. Authentication is provided by an authentication service (AuthenticationDomainService). Everything works from Silverlight, which is the main client.

I need now to expose a couple of the existing methods via SOAP. Hence I changed my web.config configuration to allow the access via SOAP:

<domainServices>
  <endpoints>
    <add name="soap" type="Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory, 
                           Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, 
                           Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </endpoints>
</domainServices>

In a Windows Form Application that I’ve built for test purposes, I’ve added the reference to the SOAP webservice.

I can log in the Authentication service without any error, but I still get “Access denied” for any web method invokation on the actual service:

var auth = new myAuth.AuthenticationDomainService();
auth.Login("username", "password", true, false, "");
var svc = new myService.myDomainService();
var res = svc.GetDataByCustomerCode("", DateTime.Now, true, DateTime.Now, true);

I read around that the authentication service should return some cookies and those should be used in the actual business service. However after Login is called I cannot see any cookie in the auth.CookieContainer. Also, I don’t have any InnerChannel property, which I could use in order to grab the assigned cookie.

Could someone point out for me what I am doing wrong?

Thanks in advance,
Cheers,
G.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:35:45+00:00Added an answer on May 20, 2026 at 2:35 am

    Ok, I’ve found out what the issue is.

    I had added the two services as “old” Web Services. I removed them, and added back again, this time as standard Service References.

    After that, I was able to get a “myServiceSoapClient” and a “myAuthSoapClient”, which have a InnerChannel property, that is what I needed in order to retrieve the security token cookie.

    By getting the cookie from the auth sevice (after authentication) and setting it in the second service (the actual service) I have been able to access all methods I was supposed to access.

    Cheers,
    Gianluca.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a silverlight/RIA service application and in that, after I save the data
I have a complex RIA client that communicates with a WCF SOAP web service,
I have a WCF RIA Domain Service that contains a method I'd like to
I have a RIA service that is to return a list of schools and
I have a WCF Ria service which invokes several wcf services (non Ria). I'm
I have a SL 4 applicaiton with RIA service for authentication(Forms + IE9). Consider
I have a RIA Services data service that has several function calls that look
In a RIA Domain service I have added some utility functions. For instance we
I have the following methods on the server (RIA services): public IQueryable<Customer> GetCustomers() {
I have one project which has RIAService with entity framework that is referenced to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.