Exposing other classes (as well as the EF Model) from a WCF Service?

Hello,
I have been following some of the tutorials on the Oracle.Net development centre, such as creating a Data Service for the Entity framework:-
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkWCF/WCFEntityFramework.htm
This is good - However, I have written a number of extra classes as part of my model i.e. buddy classes for data annotations/meta data (for strongly typed views) and various extra classes that contain LINQ statements looking at the EF Entity classes.
Can anyone explain how I go about moving all my classes to the WCF data service, such as above ?
I tried to alter the *.svc file (as created in above example like) to include more than one entity, but it's not keen:-
E.g.
public class TasService : DataService < TasEntities >  *: DataService < OrganisationService>* //<-- this bit doesn't work
      public static void InitializeService(DataServiceConfiguration config)
            config.SetEntitySetAccessRule("*", EntitySetRights.All);
            config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
}I can find other example of creating a WCF library and hosting out services with I.P addresses stored in an App.config file, but the above example only stored a web.config file.
Thus, I have tried created a WCF Data Service and WCF Library, but still cannot successfully expose all my model classes + Entity Framework Model.
Does anyone have a solid example OR has anyone managed to achieve this task ? Someone must be in the know... please don't hold out on us mere mortals ......
Thanks,
Graeme
Edited by: user4487499 on 21-Apr-2011 03:24
Edited by: user4487499 on 21-Apr-2011 03:25

Do you have any mapping done on the response message from the WCF service . ?
If so Better to copy the suspended message coming from the WCF service and validate against the custom response Schema you have created.
Note : You can try running fiddler tool to check the response from from the web service incase of failure.
Also try logging the message in the event viewer or any debug tool.
Thanks
Abhishek

Similar Messages

  • I have several layers for this image: Background, Moon, Tree, Grass and Clouds.  When I try to use the Move tool to move the Moon, the tool jumps to the Tree layer.  The same thing happens with the other layers as well (except the background layer).  How

    I have several layers for my image: Background, Moon, Tree, Grass and Clouds.  When I try to use the Move tool to move the Moon, the tool jumps to the Tree layer.  The same thing happens with the other layers as well (except the background layer).  How can I keep the move tool from jumpimg to the Tree layer?

    1. Pre-select (highlight) the layer to move in the Layers panel.  or-
    2. [ALT+Right mouse click]  to select the wanted layer in the image window.
    and maybe
    3. Set the PS option to "Auto-select" a layer with cursor hover.  (can be very confusing!)

  • My bookmark glasses icon is missing as well as the bookmark icon from preference pane.  The reading list is still there although completely grey colour and all the pages have the same blue icon. Can anyone advise how to fix this problem?  Mac os x 10.7 Sa

    My bookmark glasses icon is missing as well as the bookmark icon from preference pane. There is no + sign to add to the reading list.  The reading list is still there although completely grey colour and all the pages have the same blue icon. Can anyone advise how to fix this problem?  Mac os x 10.7.5  Safari 6.1.

    My bookmark glasses icon is missing as well as the bookmark icon from preference pane. There is no + sign to add to the reading list.  The reading list is still there although completely grey colour and all the pages have the same blue icon. Can anyone advise how to fix this problem?  Mac os x 10.7.5  Safari 6.1.

  • Object Class Invalid when downloading the pricing procedure from ECC to CRM

    Hi,
    I want to download the pricing procedure for that I have created the ZDNL_CUST_CND which contains only the following tablesT683, T683S, T683T and T683U.
    When I check in R3AM1 status is Red.
    The following Error have been found in SLG1
    •     Object class invalid
    •     Error in inbound data check
    Message no. CND_MAP120
    Diagnosis
    During the receiving inspection, serious errors were found in the consistency of the exchange object.
    System Response
    Data exchange is terminated
    •     Data exchange terminated     
    Message no. CND_MAP122
    Diagnosis
    Data exchange has been terminated due to serious errors. No exchanged data has been posted in the system.
    The following Error has been found in SMQ1
    •     R3AD_CONDITIONS     STOP
    Details of STOP
    Set by Host name: litldq; Transaction: ; Report: SAPMSSY1
    I have checked the connection, everything is perfect.
    What may be the problem?
    Thanks

    Hi,
      Please try to re-generate the adapter object (ZDNL_CUST_CND) services using trx.
    SMOGGEN
    . After this, try re-running the load.
    I assume that your CRM inbound mapping module are correctly coded. If the problem persists, try de-registering the R3AD_CONDITIONS inbound queue using trx.
    SMQR
    and then debugging the inbound queue from the same trx. after re-starting the load.
    Reward if this helps!
    Regards,
    Sudipta.

  • Sharing the Struts model layer as web service ?

    Hi
    I am currently trying to work out how to best share the model layer on a Struts application, so that this layer is also accessible from ie. a Swing based application.
    I was thinking about using Web services in JDeveloper to do this, but it seemes that I need to deploy the web service as a seperate "application" and thus duplicate the whole model layer (because it is no longer accessible for the web service), one for the Struts application and one for the web service.
    My Struts app is based on the DAO framework, there is no EJB layer.
    Does anyone have any tips, links or any information on how to "publish" some of the bussiness layer of a Struts application for usage on external clients using other technologies like SWING?
    Are there other methods to do this using JDeveloper?
    I'd rather not have both the Struts and the Swing to call an external webservice, just to expose some of the funtionality from Struts to other clients.
    Regards

    Hi ADF seemes to be a framework for creating common "front ends" that both web and swing can use.
    - If I understood it correctly that is.
    This is really not what I am looking for, the SWING based applications use their own frameworks (they are in production), the same is also true for the other web sollutions that one likes to talk to our sollution.
    We need to expose the bussiness logic part of our system, not have a common "front end" for the various applications.
    Z

  • How to transport the distribution model from devlopment to quality in idocs

    Hi ,
    I am developing settings for idocs for the basic idoc type 'MATMAS03'.
    By using SM59 , I gave the connections of two logical systems.
    I created the distribution model by using BD64. when I generate the partner profiles , automatically, port and partner profiles are created.
    How to transport from DEV to QUALITY of RFC connections, Distribution model and automatically generate partner profils and port ?
    Plz give me the answer in broad way
    Regards
    NTR

    hi,
    Refer to this link...
    how to transport distribution model

  • Master Data Service: how to remove the dirty data from master data service from a table using store procedure?

    hello, we need to remove the dirty data from MDS, but we found we can only do this from MDS web, and we need to do this by store procedure to make this process automatically. is there any easy method to remove the data from MDS automatically? thank.
    Warren

    Hi Warren,
    Assuming the dirty data is easily identifiable, all you need to do is use the staging process with import type of 5 (de-activate - i.e., soft delete) or import type of 6 (hard delete).
    Could give more details if I knew the version of MDS you are running (SQL 2008R2 or SQL 2012).
    Kind regards,
    M

  • ERROR_NOT_FOUND: there is no credentials associated with the given resource name. + WCF Service while Retrieving WindowsCredentials

    Hi guys,
    I am struck with a problem while retrieving the Windows Credentials from WCF service.
    1. I have used WSHttpBinding.
    2. I have configured the Website and App pool to run under a specific user who is an Administrator for the server.
    3. I have created the windows Credential of Generic type using Credential manager with the same user.
    4. I configured the Website to allow only Anonymous and Windows Authentication in IIS (IIS Version: 8.5).
    5. I tried the same code in the same server by logging into server with same user and debug the service. The service is returning the windows Credential requested.
    6. But i am unable to retrieve the Windows Credentials from the same code when published in IIS in the same server.
    i configure the Security in Server and client as below:
       <bindings>
          <wsHttpBinding>
            <binding name="wsHttpEndpointBinding">
              <security mode="Transport" >
                <transport clientCredentialType="Windows"/>            
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
    7. I tried to read the error code generated by Credential Manager API from  my code and it returned the below error when i am accessing the deployed service.
    ERROR_NOT_FOUND: there is no credentials associated with the given resource name.
    8. I have also checked this with other environments out side my virtual machine with the same code and config file. All environments it is working fine except my environment. Can any body help me out on this...

    Hi pavan kumar,
        As per this case, I have shared the details below :
    1.where you got stuck & receive error message whether in service side or client side ?
    2.if its in service side, then I suggest you to enable tracing on wcf service for debugging purpose to findout the root cause.
    3.For configure tracing refer here "https://msdn.microsoft.com/en-us/library/ms733025.aspx"
    4.To know about WCF Extensibility – System.Diagnostic Tracing ,then refer the below link
    http://blogs.msdn.com/b/carlosfigueira/archive/2011/08/02/wcf-extensibility-system-diagnostic-tracing.aspx
    5.If its in Client side, Please make sure that the client is in the same or trust domain as service. 

  • Can i copy the data model from report?

    hi all
    I use oracle reports 6i newlly
    I want to make a copy of the data model in one report and paste it to an other report
    as they have almost the same structure with little modifications
    how can i do that ?
    Regards

    hi all
    I use oracle reports 6i newlly
    I want to make a copy of the data model in one report
    and paste it to an other report
    as they have almost the same structure with little
    modifications
    how can i do that ?
    RegardsCan't you save the Report1 as Report2 (by doing this you will have your Data Model and everything from Report1 will be copied to Report2) and do those little modifications in the Report2.
    OR
    Take the SQL statement from the Report1 and use that in the Report2.

  • Trying to get home shaing working on apple tv using Cisco Access points and a Cisco WLC 5508 with 7.2.110 code.  I can get devices working individually but they never see each other.  I can ping the apple tv from my laptop and ipad.

    Trying to get home sharing working on a corporate wireless network.  Cisco wireless.
    WLC5508 controller
    Cisco 3502 access points
    All apple devices on same WLAN - security WPA2-PSK
    ITunes account up to date
    All devices laterst software.
    Can ping apll tv from laptop
    can ping apple tv from ipad
    Can ping ipad from laptop
    can ping laptop from ipad.
    Apple tv never sees any other device.
    Any ideas?

    Fascinating just reading about your setup. I have a WRT350N and have noticed that it will drop its speed, sometimes down to 1Mbps. It seems to do so at about the same time every day, but usually comes back to speed in about 5 minutes. In my experience, the Apple TV will disconnect if the speed falls this low. Try monitoring the Linksys with Netstumbler, Vistumbler, or just in the Windows Network utility.
    Check the "lease obtained" and "lease expired" times for your router to see if that is when the network fails. I've just finished reading an angry thread over at the Linksys forum about the WRT330N where someone mentioned that the router wasn't renewing its lease.
    "I cannot set it run off automatic DHCP from the WRT330N, the router will not assign it an IP every time the lease expires, causing me to have to manually set an IP on the Print server. That's annoying. Having the router drop IP's to individual machines after 12-48 hours...very annoying."
    http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread .id=67412
    If that is the problem, then I would consider setting up a Static IP address for your Apple TV. You can do that through the user interface -> Settings -> Network -> Configure ... (Quite intuitive as you only have change IP address and the subsequent details remain the same.)
    My router assigns IP Addresses in the ranges of 192.168.1.100 ->149. The idea here is to choose an address outside of that range but is not greater than 192.168.1.253 (and should not end in the number 1). You shouldn't have to change the linksys router as long as 50 clients are assigned in that range. You'll have to figure that out by accessing your router webpage at browser address 192.168.1.1 -> the default password is "admin" (without the quotes).
    Good luck.

  • How to revert back the essbase installation from 'as a service'

    Hi,
    at the time of installing Hyperion essbase ver9.3.1,I installed it as a service, so now I can't see the essbase server window any more. Is there any process to revert back the aforesaid, so that I can start the essbase server manually and can see the server window afront?
    Thanks & Regards.

    Hi,
    Yes, it worked fine. Thanks for your support.
    Regards.

  • Resolving the Server Name from a TNS Service name

    A computer client has an Oracle ODBC connection that is attached to a TNS Service Name "X". The TNS Service Name is running in Server "Y".
    Does anybody know a quick way to resolve the Server Name "Y" from the TNS Service Name "X" ???
    Our current solution is based on opening the file tnsnames.ora, which is normally located in $ORAHOME\network\ADMIN\TNSNAMES.ORA, and by parsing the file resolve the server name. However, we were wondering if there would be a more reliable way to do this. Is there an Oracle API that we can execute? Something like "GetHostName(TNSServiceName)"?
    Many Thanks

    Not that I'm aware of.
    If you were using an Oracle Names server to resolve tnsnames, rather than a tnsnames.ora file, this would be a lot easier. You'd just update the Oracle Names server and all the clients would start pointing at the right machine.
    Justin

  • Can some one tell me how to get this imessage (i think thats what it is they are in blue) off my flippin phone because they are going to other ppl as well as ppl intended and i keep recieving msgs from randoms grrr please help

    i recently went from a iphone 3 to a 4 and when i send messages they are going to other ppl as well as the ppl they are intended for this did happen once with the iphone 3 but now its all the time i have been in settings but it's not high lighted so dont know how to get the **** thing off so i can just send normal msgs, please advise 

    i didnt have any on but i disabled it then enabled lol dunno how but i have done it i think thanks for your help there is tooooo many settings on the phone for me i was ok with the 3GS just flicking through settings again and my face time as dissapeared lol any ideas

  • Flash Vars is not working when we accessing from other class files

    Hi all, I'm currently developing a flex application where i
    need to pass the data from the flash vars to the other class files
    instead of the main actionscript class file.
    Does any body know how i should go about doing that?? you can
    see this below code : please help me out if u know how to solve
    testnew2.as file
    package {
    import flash.display.Sprite;
    import flash.display.LoaderInfo;
    public dynamic class testnew2 extends Sprite {
    public var
    xmlfile:String=String(root.loaderInfo.parameters.lists);
    public function testnew ():void{
    package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.display.LoaderInfo;
    public dynamic class testnew extends testnew2 {
    public function testnew () {
    var myText:TextField = new TextField();
    // this assumes that you are going to pass in an id variable
    // on the end of the myFile.swf?id=12345 or
    // use FlashVars in the HTML parameter list for instance
    // 'FlashVars', 'id=123456', 'width', '1024',
    myText.text = new testnew2().xmlfile;
    addChild(myText);
    but if we access in same file it is working fine:
    package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.display.LoaderInfo;
    public dynamic class testnew extends Sprite {
    public function testnew () {
    var myText:TextField = new TextField();
    myText.text = String(root.loaderInfo.parameters.lists);
    addChild(myText);

    Pass the data into the main app, then from there either pass
    it into the sub-components or use
    Application.application.parameters, or bind to the values.
    Tracy

  • Append output from other class

    Hello!
    I have a blackjack game where I have used a.append(); to send output to a graphic textarea instead of the console.
    My game consists of several classes where one of them is the one who runs the actual game with graphic things and so on.
    In this class the a.append works fine since the textarea is in that class.
    But how shall I do to append output in other classes? If I try to compile I get the error message "Error resolving symbol" since the other class does not recognize the graphical textarea a.
    How do I make the other classes to recognize the graphical object?
    Thanks very much!

    This is the computer class:
    import javax.swing.*;
    public class Dator extends Spelare {
    private Spelare motspelare;
    public Dator(Kortbunt k, Spelare mot){
    super(k);
    motspelare = mot;
    public void spela() {
    nyttSpel();
    while (p < 21 && p < motspelare.po�ng()) {
    a.append("Datorn fick " + nyttKort() + "\n");
    a.append("Datorn har " + p + " po�ng.\n");
    The a.append only works in the class where the graphical object lies. I want this class to recognize the graphic object in the other class so that it understands the append code.

Maybe you are looking for