BlazeDS Service creation

Hi,
Which class does BlazeDS use to create the remote service object?
e.g: I say to the BlazeDS the destination. (e.g = "helloWorldService"). So, where this destination is turned into a concrete class?

I am fairly new to BlazeDS, but from my understanding is that, the remote objects are created by hand.  They're Java objects, POJOs.  Then on the server, in the services-config.xml, you would create your end-point.
<!-- services-config.xml -->
<channels>
     <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
          <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
     </channel-definition>
</channels>
You will then need to config the web.xml to handle the servlets...
<!-- web.xml -->
<servlet>
    <servlet-name>dispatcherServlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>dispatcherServlet</servlet-name>
    <url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
<servlet>
    <servlet-name>RDSDispatchServlet</servlet-name>
    <display-name>RDSDispatchServlet</display-name>
    <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
    <init-param>
         <param-name>messageBrokerId</param-name>
         <param-value>_messageBroker</param-value>
    </init-param>
    <init-param>
         <param-name>useAppserverSecurity</param-name>
         <param-value>false</param-value>
    </init-param>
    <load-on-startup>10</load-on-startup>
</servlet>
<servlet-mapping id="RDS_DISPATCH_MAPPING">
    <servlet-name>RDSDispatchServlet</servlet-name>
    <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
</servlet-mapping>
If you are asking about what remote class is mirrored for the Flex application, the data wizard in Flash Builder generated a com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper  sub-class for my remote service.  In the construct of this sub-class, it has the following:
    public function _Super_Foo()
        // initialize service control
        _serviceControl = new mx.rpc.remoting.RemoteObject();
        // initialize RemoteClass alias for all entities returned by functions of this service
        valueObjects.Bar._initRemoteClassAlias();
        var operations:Object = new Object();
        var operation:mx.rpc.remoting.Operation;
        operation = new mx.rpc.remoting.Operation(null, "getBars");
         operation.resultElementType = valueObjects.Bar;
        operations["getBars"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "addBar");
        operations["addBar"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "removeBar");
        operations["removeBar"] = operation;
        _serviceControl.operations = operations;
        _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
        _serviceControl.endpoint = "http://localhost:8080//messagebroker/amf";
        destination = "foo";
         model_internal::initialize();
The remote service that I have is a Java class named 'Foo'.  Notice the destination is 'foo'.
I'm using Spring BlazeDS with Hibernate, so there my be some differences.  The only references that I have used to grasp Spring BlazeDS is from James Ward.  All of the code above, is mostly explained by him in the following references.
Flash Builder 4 Data Wizards with Java / Spring
Flex 4, Java, Spring, and Hibernate in Flash Builder 4

Similar Messages

  • Examples about ABAP Proxies and Web Services creation

    Hi everybody.
    I have been reading SAP NW PI 7.1 help about Web Service creation and sincerely, I am a bit confused. Also I have searched SDN forums, blogs and documents but my confusion persist.
    I will try to depict my integration scenario below.
    SLD are conformed by two machines: SAP ECC 6.0 system, client 100 and SAP PI 7.1 system, client 001.
    There are two integration scenarios.
    1. ABAP Client Proxy -> PI -> Web Service
    I need to consume a Web Service provided by a third part. They provided me with WSDL files and I imported them into ESR. I already construted all other objects (data types, message types, etc.). In the examples I found I cann't see what to do with those definitions, I don't find any suitable example. This is an asynchronous scenario. The Web Service will be consumed from SAP ECC 6.0 system through an ABAP Cliente Proxy.
    2. Web Service -> PI -> ABAP Server Proxy
    I need to provide a Web Service for others to consume it. I already have created the WSDL for Service Interface I created in ESR using the respective wizard in Integration Builder. This is an asynchronous scenario. The Web Service will be consumed by others outside landscape configuration. When the Web Service is consumed must run an ABAP Server Proxy.
    In spite of my investigation about Web Services building in SAP NW PI 7.1 I cann't finish my work successfully.
    I just need a good example, any suitable example for each integration scenario.
    Thanks in advance.
    Rafael Rojas.

    Hi,
    1. ABAP Client Proxy -> PI -> Web Service
    1. Create all necessary objects in ESR
    2. Create integration scenario objects with PROXY as sender SOAP or WS adapter as receiver
    3. Create client proxy in your SAP backend using SPROXY
    4. Create ABAP client proxy to execute the proxy which then will call your PI runtime to execute the webservice.
    2. Web Service -> PI -> ABAP Server Proxy
    1. Create your necessary objects in ESR
    2. Generate server proxy in your back end system
    3. Create integration scenario objects with PROXY as receiver and SOAP or WS adapter as sender
    4. Generate WSDL from integration scenario and pass it to your partner.
    You can find many blogs which discuss these steps in more detail.
    Regards,
    Lim...

  • Issues with ODATA service creation

    Hi Gurus,
    I am facing some issues with ODATA service creation. I have an analytic view which I want to consume via SAP UI5.
    As per guides and blogs, I need to create 3 files, namely .xsaccess, .xsapp and .xsodata. I created these three files but at the same time .xsodata and .xsaccess got created at one more place. That place is my package which I checked out while creating the repository. Now when I try to activate my .xsaccess or .xsapp file, I get an error message - "The file name .xsaccess or .xsapp already exists and only 1 file is allowed per package"
    for more info please revert.
    Kindly help.
    Best regards,
    Chandan

    Chandan Sinha wrote:
    Can we add multiple analytic views in one ODATA service?
    Certainly.  You just have multiple entities then. You can even create associations between them. Here is an example that uses a combination of CDS Views, Attribute Views, and Analytic Views:
    service namespace "Wile.services" {
      "Wile.data.models::AN_EPISODES" as "Episodes"
      keys ("EPISODE_ID")
      navigates ("ToACMEItems" as "ACMEItems",
                "ToCoyoteNames" as "CoyoteNames",
                "ToRoadRunnerNames" as "RoadRunnerNames",
                "ToDirectors" as "Directors",
                "ToWriters" as "Writers");
      "Wile.data.models::AT_ACME_ITEMS" as "ACMEItems"
      keys ("EPISODE_ID","ITEM_ID");
      "Wile.data.models::AT_ACME_CATALOG" as "ACMECatalog"
      keys ("ITEM_ID")
      create using "Wile.services:ACMECatalogExits.xsjslib::itemsCreate"
      update using "Wile.services:ACMECatalogExits.xsjslib::itemsUpdate"
      delete using "Wile.services:ACMECatalogExits.xsjslib::itemsDelete";
      "Wile.data::WileECoyote.Episode.CoyoteNamesView" as "CoyoteNames"
      with ("EPISODE_ID","NAME_ID","NAME")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.RoadRunnerNamesView" as "RoadRunnerNames"
      with ("EPISODE_ID","NAME_ID","NAME")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.DirectorsView" as "Directors"
      with ("EPISODE_ID","NAME_ID","NAME","URL")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.WritersView" as "Writers"
      with ("EPISODE_ID","NAME_ID","NAME","URL")
      keys ("EPISODE_ID","NAME_ID");
      association "ToACMEItems" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "ACMEItems"("EPISODE_ID") multiplicity "*";
      association "ToCoyoteNames" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "CoyoteNames"("EPISODE_ID") multiplicity "*";
      association "ToRoadRunnerNames" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "RoadRunnerNames"("EPISODE_ID") multiplicity "*"; 
      association "ToDirectors" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "Directors"("EPISODE_ID") multiplicity "*";
      association "ToWriters" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "Writers"("EPISODE_ID") multiplicity "*";

  • Consume BlazeDS service from ColdFusion client? Cannot require Flash Player.

    Our current project is being written in CF9. We have been mandated to not require our customers to install any third-party plugins, such as Flash Player. Unfortunately, our back end data is a presented as a java-based BlazeDS service.
    I was thinking to wrap a proxy CFC around the backend service but it seems that ColdFusion doesn't know how to consume BlazeDS. I don't see a way to do it wih CreateObject.
    Is the way forward to create a java wrapper?
    I am hoping that I am missing something really obvious and simple.

    Well I can't really be much help here because I have never used it but I thought ColdFusion comes installed with some sort of BlazeDS functionality.
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSe9cbe5cf462523a0457623c812398942ba 2-8000.html
    Check out these articles:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec115d2 -7fff.html
    http://www.colderfusion.com/presentations/wiersma/CF_and_BlazeDS.pdf
    http://www.raymondcamden.com/index.cfm/2011/9/2/Crazy-Flex-Mobile-ColdFusion-BlazeDS-exper iment

  • XE install hangs on service creation

    I'm trying to install the latest version of XE on a windows XP box. I've had a version on this machine aleady that I've removed. Every time I do the install it just hangs on the service creation and starting step.
    I previously had a working version that stopped working all of sudden. I was building VMWare images but I can't see how that effected a local db. VMWare seems to create some services on the local box and some network connections. But I have no idea how the local XE could have been effected so I'm guessing it was something else.
    I'm in dire need of a local working db so any help would be very greatly appreciated. I'm really stuck....
    thanks,
    Dan

    so how am I using this ip address after I set it up? Do I reference it in the listener.ora?
    This XE install was working for months before something changed.
    When i type:
    C:\>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-NOV-2006 08:50
    :02
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Message 1070 not found; No message file for product=NETWORK, facility=TNSTNS-125
    57: Message 12557 not found; No message file for product=NETWORK, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=NETWORK, facili
    ty=TNS
    TNS-00527: Message 527 not found; No message file for product=NETWORK, facilit
    y=TNS
    The message seems to indicate some protocol was not loaded...

  • NT Service Creation failed-SPS09

    Hi,
    I am installing the SPS09, agent
    I have the following Error-
    ERROR 2007-12-19 01:04:12
    SMD-00005  NT service creation failed: please check the OS user and OS password. Note that the OS user must be filled with its domain!
    i have checked the user name and the password. We have no domain names.
    Any help..
    Thanks,
    Kris.

    got the solution,
    the port number was not correct/.

  • Deploy BlazeDS services separately from Flex client app?

    Is it possible to deploy my BlazeDS services app separate
    from the Flex client app? I would like to manage the 2 deployments
    separately. Every example and the instructions seem to link
    everything into one deployment bundle.

    Hi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
    I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
    'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
    '7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
    'consumer' consumer subscribe.
    'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
    'flextest-streaming-amf' channel settings are:
    'flextest-streaming-amf' pinging endpoint.
    'flextest-streaming-amf' channel is connected.
    'flextest-streaming-amf' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="flextest-message-destination"
      headers=(Object)#0
      messageId="8A592005-3C8A-4C6C-B074-380857710C00"
      operation="subscribe"
      timeToLive=0
      timestamp=0
    'consumer' consumer connected.
    'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
    'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
    Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think?

  • Error in Web service creation in CRM 7 Ehp1

    Hi,
    I am trying to define a web service  for the creation of letter templates in CRM 7 Ehp1 system
    using the WS_DESIGN_TOOL .But it is giving me error.
    The component GDCOIC ,Root object GDCOIRoot, does not have the key structure defined .
    So the system does not allows me selection of attribute Virtual Object for IC Web(GDCOIRoot).
    Can someone give me a head start as in what could be done ?
    Thanks ,
    Jaya

    issue resolved:)
    version issue..
    SAP NOTE (0001584041 Creating service object from GDCOIC component impossible) implemented.

  • Web service creation using the wizard

    Hi Friends,
    I am new to creation of web services. I am creating a web service for a FM which I have created using the wizard.
    In SE80, under Enterprise Solutions for my package, I am able to see the servicedefinitions . But when I open the serdefinition 's  " WSDL" tab, to note down the URL created,
    I am unable to see the XML code that is being generated.I have selected document style. Please help me out how can i get the xml code that is being generated. How can i view it? Or what is the step I have missed. Please reply if anyone knows  as it is an urgent requirement.
    Thanks,
    Uma.

    Hi,
    for future search:
    this happens if the related application is not running. On 700 you can check it in the deploy service of the Visual admin.
    Perhaps the deployment was succesful but due to various reasons the application could not be started (or died in the meantime). This case it won't show up in the list of /wsnavigator.
    Regards,
    Ervin

  • BlazeDS service issue

    Hey all,
    I am trying to build a Flex application with BlazeDS. I got to the point where I need to connect to the data service. I then get a wizard asking what type of service to add. I click on the service file and when I click finish I get the following message:
    "Project.Services is not available in the specified location. Try importing by unselecting the destination AppService"
    Is there a specific place that I need to place the service file or are there more files that I need to accompany this? Maybe it's with the XML config files that I need to play around with and figure out what's going on. I know that I'm close to getting my project up and running, but this error doesn't really help me like the other errors do. Any help would be greatly appreciated. Thanks
    ***Update***: I fixed the issue as it was how I was pointing to the file, but when I clicked finished I got a whole new error stating that:
    "Project.Services.AppService contains overloaded method and is not supported for Introspection. Try importing by unselecting the destination AppService"
    I've taken a look at this online and from what I've seen mentions the stack and how the JVM reads the functions. Any clarification on this would be greatly appreciated. Thanks
    Message was edited by: Flashy342

    Hi,
    Thanks for your feedback
    This seems to be a known issue to us, please refer to the following bug:
    https://bugs.adobe.com/jira/browse/FB-20492
    The bug has been fixed and you may verify the fix in the next public release.
    Thanks,
    Balaji

  • BlazeDS service introspection/code gen in Flash Builder

    The data-centric development features in Flash Builder support introspection of BlazeDS/LiveCycle Data Services destinations. You can use a wizard to introspect a remoting or web service destination and generate client-side proxy objects for working with the destination. For more information on using these features, see Building model-driven applications in the developer guide for LiveCycle Data Services 3 beta 1.
    Note: To use these features, you must have Flash Builder 4 Beta 1 and BlazeDS 4 Beta 1.

    Hi,
    Thanks for your feedback!
    This feature has been going through a lot of changes with the BlazeDS and Flash Builder builds.
    We request you to pick up the BETA2 build of Flash Builder and BlazeDS 4.0.0.10654, hopefully you should see things working fine.
    Kindly let us know if you still encounter problems.
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Service entry sheet (Confirmation for service) creation by supplier

    Service procurement MM-SUS.
    For processing service orders(no hirarcies, only one service line)
    I Have transfered the service Purchase order from ECC
    to SUS(SRM7.0).i am able to see the purchase order
    and POR created and transfered to ECC. Further confirmations
    for Creating SES in ECC,how?
    i have tried with create confirmations in start page of SUS.
    but service POs are not available.what are the settings  required in SUS (for service confirmation) to create SES in ECC.
    with screen shots is more helpful.
    regds
    Rami

    Hi Nikhil,
    thanks for your Feedback.
    we are not using EHP4. our ERP system is ECC6.0 only. I know EHP4 is required at ECC side. But  in this stage
    we are going with ECC6.0.with Custom developments. I think modifications are required in the Interfaces and at ECC side.
    as SRM is already upgraded to  SRM7.0.I think no custom developments needed at SRM side.only the service orders requests
    from ECC to PI and PI to SRM needs to be modified?
    scenario name  : ECC triggers Idoc to PI and PI generarate XML to SUS (Orders02 to Purchase order request).
    i have checked the Idoc and all  fields required for creating service order in SUS is available.is any other fields/check box required in Purchase order Idoc. so that we can map.
    in service purchase order Item detail screen(service lines) is not displaying in SUS side and also confirmation(SES creation).
    regds
    Rami

  • Proxy & business Services creation using XML

    Hi,
    can we create a proxy service & business service in OSB using an xml? usually we use to create using a WSDL defined by a webservice. can we create it using XML ? If so can anyone provide the doc or link for that.
    thanks

    You may create XSD from XML and then create WSDL from XSD using JDev. Using that WSDL you may create proxy or business service in OSB.
    Regards,
    Anuj

  • Service Creation

    Hi Experts,
    I want to store certain expenses as commitment through Internal Order. I want to create 5 services for every GL and Internal Order.
    1. How to create service and what is higher service no. is it necessary to create .
    2. What should be done for all(5) that services as Line Item in MIRO.
    Help will be greatly appreciated.
    Thank You.

    You can create services using T Code AC03. Here make sure that the Service Cat is Purchasing. Then you create a PO for the services and  in account assignment give "F" and provide your Internal Order Number.
    At PO item level just maintain a short text and item cat "D"
    In services tab in PO-item details you can maintain all the 5 services with prices and qty.
    Afte you have done the service entry through ML81N and accepted the document, you can post MIRO just like a normal material  invoice posting.

  • 11.2.0.3 Windows DB install of dbconsole , repos and service creation error

    Hello all,
    I am stumped at this error when recreating the repository on a windows 2008 server install of the dbconsole for a active database. It seems that it's not able to create or delete the service even after deconfiguring it. any ideas ? the install account is part of the windows admin group locally.
    D:\app\oracle\rdbms\11.2.0.2\xxxxxxxx\BIN>emca -config dbcontrol db -repos create
    WARNING: Error executing CMD /C D:\app\oracle\rdbms\11.2.0.2\cxxxx\bin\nmesrv
    ops.exe delete OracleDBConsolexxxxxxxxx
    Oct 10, 2013 2:02:01 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\app\oracle\rdbms\11.2.0.2\xxxx\bin\emctl.
    bat deploy dbconsole -d xxxxD:\app\oracle\rdbms\11.2.0.2\xxxxx\xxx
    SEVERE: Error instantiating EM configuration files
    thank you !

    hi TSharma ...nothing in reply ?!

Maybe you are looking for