locked
need help asp.net wcf rest 4.0 RRS feed

  • Question

  • User371513798 posted

    Dear Users,

    I am using WCF REST in .net framework 4.0 and made following two different solutions

    • One is hosting WCF REST 4.0 service contains POST PUT DELETE GET operations : 

                                   ||parameter object type:

                                   ||result stores in SQL DB:

                                   ||:used ServiceHost as Factory="System.ServiceModel.Activation.WebServiceHostFactory" so in browser it shows endpoint is not defined||

    • Another one is webform contains JSON scripting in the client application consuming this service

    All things are working correctly till WCF REST service and client JSON script webform exists in same solution.The problem comes when I put them in two different solution (i.e deploy in different separate application).I unable to make service refrence because it shows error of "metadata not defined",so I also not able to use code behind.I already defined endpoints as mexHttp and webHttp properly (WebConfig).Please tell me the solution how I communicate in Cross domain.

    Wednesday, February 27, 2013 12:08 AM

Answers

  • User371513798 posted

    Can you post youe config file of service here?

    Check this link for more info -

    Thanx for reply,

    i found this till time

    In vs 2010 , a template can be download for rest service and every thing is default configured in web config

    To refrence service I used $.post() at client side but now th problem is of passing  parameter as object which is being passed as null into REST

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 1, 2013 2:04 AM

All replies

  • User-1662538993 posted

    Can you post youe config file of service here?

    Check this link for more info -

    http://stackoverflow.com/questions/5221692/wcf-service-host-cannot-find-any-service-metadata

    Thursday, February 28, 2013 4:15 PM
  • User371513798 posted

    Can you post youe config file of service here?

    Check this link for more info -

    Thanx for reply,

    i found this till time

    In vs 2010 , a template can be download for rest service and every thing is default configured in web config

    To refrence service I used $.post() at client side but now th problem is of passing  parameter as object which is being passed as null into REST

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 1, 2013 2:04 AM