SAP.m JS/XML and Gateway service

Hello
I've been trying to consume a gateway service with the sap.m classes.
it turned out quite difficult for me as im new in this whole web thing, and most of the examples for sap.m are in XML.
i've tried to convert some of the examples in sap.common to sap.m but couldnt really figure it out.
my XML project returns the error:FlightsSet' refers to an entity set and not to a single entity
flightset is an entity in my gateway service.
my oninit function looks like this:
onInit: function() {
  var oModel = new sap.ui.model.odata.ODataModel("proxy/http/serveradress:8000/sap/opu/odata/sap/ZS_ELI_FLIGHT_PROJECT_SRV", false, 'user', 'pass', null);
    this.getView().setModel(oModel);
the xml:
<mvc:View
  controllerName="flightproject.TableView"
  xmlns:l="sap.ui.layout"
  xmlns:mvc="sap.ui.core.mvc"
  xmlns="sap.m">
  <Table id="idProductsTable"
    inset="false"
    items="{
      path: '/FlightsSet'
    }">
    <headerToolbar>
      <Toolbar>
        <Label text="Products"></Label>
      </Toolbar>
    </headerToolbar>
    <columns>
      <Column
        width="12em">
        <Label text="Flight company" />
      </Column>
      <Column
        minScreenWidth="Tablet"
        demandPopin="true">
        <Label text="Flight ID" />
      </Column>
    </columns>
    <items>
      <ColumnListItem>
        <cells>
          <ObjectIdentifier
            title="{Connid}"
            text="{Carrid}" />
          <Text
            text="{CITYFROM}" />
        </cells>
      </ColumnListItem>
    </items>
  </Table>
</mvc:View>
am i doing something wrong? thanks

Hi Lavanya,
If you are planning to use the TCP/IP destination on the SAP system in Register mode, then a siebel application has to register at the sap gateway using the <b>Program ID</b> given in the TCP/IP destination on the SAP system.
In the TCP/IP destination the gateway options should contain the gateway host of the sap system and the gateway service. usually the gateway host is the message server itself and the gateway service is "sapgwXX", where XX is the <system_number>.
Thanks,
Renjith.

Similar Messages

  • How to find the Values of SAP Gateway Server Host  and Gateway Service Valu

    Hi All,
    I installed SAPR/3 4.7 EE on Windows. For configuring SLD and LDAP i am unable to give the SAP Gateway Server Host and Gateway Service values.
    Can any one plz suggest me how to find these values.
    Regds
    Phanikumar

    Hello, SAP Gateway Server Host and Gateway Service are used to set up rfc connectivity, that is the host name and the system number where your sld and ldap is responding, if you have no sld and no ldap , just simply uncheck that options while installing.
    Have a nice week end, Luciano.

  • Gateway Host and Gateway Service

    Hi,
       How do I find the gateway host and gateway service when I am creating a RFC Destination. I am new R3 so please be as detailed as possible

    Hi, well i have a similar problem. I am trying to run the Template Installer after installing NetWeaver2004s.
    During the PIPostInstallProcess i am receiving following error while trying to import Execute SWF_XI_BPM_AUTO_CUSTOMIZE:
    Element 'SWF_XI_BPM_AUTO_CUSTOMIZE':Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=sapru02 SYSNR=00 GWHOST=sapru02 GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       max no of 100 conversations exceeded
    TIME        Mon May 14 14:54:27 2007
    RELEASE     700
    COMPONENT   CPIC (TCP/IP) with Unicode
    VERSION     3
    RC          466
    MODULE      r3cpic_mt.c
    LINE        10713
    COUNTER     1
    Element 'SAPDEMO.DX1.Backend.Unclassified':!AbapConfigurationWriter.FM_CALL!SWF_XI_BPM_AUTO_CUSTOMIZE!AbapConfigurationWriter.FAILED!
    Well the Host and the Gateway is right, i checked in SMGW. So what might be my problem?!
    thx in advance, Jens

  • Where ti find gateway host and gateway service of PO system?

    Hi,
    I am using a single-stack PO 7.4 system? I want to know how can I know the gateway host and gateway service of the system? basis team was not able to help so choosing this forum for this.
    Regards,
    Vikas

    Hi Vikas,
    you can find the default setting in below blogs or documents
    Sending and receiving IDOCs using a single stack SAP PO system
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5050119d-9c47-3110-eab0-d90ebd211e69?QuickLink=index&…
    Configuration of inboundRA in the Java IDoc_AAE Adapter - Process Integration - SCN Wiki
    Connect multiple SAP ECC clients from Java IDOC Sender Adapter by Resource Adapter Cloning
    regards,
    Harish

  • XML and Web Service Data Source Missing in Crystal Reports for VS

    I would like to use a Web Service as the data source for a Crystal Report that will be running outside of my Visual Studio application.  So setting the data source to the web service in code is not possible.  My understanding is Crystal Reports has a connection (in the Database Expert under New Connection) named XML and Web Service.  Here you can select web service and enter the WSDL URL for the web service.  However it does not appear in the list for Crystal Reports for Visual Studio.  Does this connection type come with the Visual Studio version of Crystal Reports and if not is their a way to obtain it? 
    Thank you for your assistance.

    None of the bundled versions of CR have the driver. Reason is that the driver responsible for these connections requires the Java framework and I suspect MS would not be too pleased if we installed the Java framework. The stand alone versions, since they are not part of any bundle can and do install the Java framework and the driver. Note that even the latest release of CR - CRVS2010 does not have the driver as it essentially becomes a bundle or a VS2010 plug-in.
    So, the short of it is; you have to obtain a stand-alone version of CR. I'd recommend CR 2008 (12.x) as CRXI R2 will run out of support in June of this year.
    - Ludek

  • Gateway hostname and gateway service name for XI

    Hi,
    Where can i find the Gateway hostname and gateway service name for XI Integration server. I need this info to input for creating RFC for SAPSLDAPI.
    Thanks in advance. Sri

    Sri,
    You can find this info from t-code SMGW
    Choose menu Goto->Parameters->Display and search for entries
    gateway hostname and gateway service (usually sapgw00)
    Reward if helpfull
    Vijay Kothapalli

  • Gateway host and gateway service query

    Hi Friends,
          Happy new year all.
            Im working on <b>sap-siebel</b> integration,in rfc(sm59) destinations -TCP/IP connections ....
        I need to give Program and gateway options in sap system.plz let me know where can i find the gateway host and program for this integration.
               All inputs will get reward points.
    Regards,
    Lavanya.

    Hi Lavanya,
    If you are planning to use the TCP/IP destination on the SAP system in Register mode, then a siebel application has to register at the sap gateway using the <b>Program ID</b> given in the TCP/IP destination on the SAP system.
    In the TCP/IP destination the gateway options should contain the gateway host of the sap system and the gateway service. usually the gateway host is the message server itself and the gateway service is "sapgwXX", where XX is the <system_number>.
    Thanks,
    Renjith.

  • Crossdomain.xml and Reporting Services

    Hi,
    I'm trying to get my Flex application to call a webservice on a remote Reporting Services instance, but am running up against insummountable problems with the Flash Player's cross-site scripting security.
    Due to the way that Reporting Services works, there is no root folder (i.e. http://theserver/ doesn't actually exist anywhere in the filesystem) - so we cannot have a master policy file at that location.
    However, we have been able - through extensive fiddling of the SSRS web.config - to get an XML and/or ASPX file into the http://myserver/ReportServer/ subfolder and have the "X-Permitted-Cross-Domain-Policies: all" HTTP header returned along with the content.
    We are then calling Security.loadPolicyFile("http://theserver/ReportServer/crossdomain.xml") before we try and start calling the WebService.
    We are then able to load the WebService description (GET /ReportServer/ReportService2005.asmx?wsdl). However, when we then try to make the actual call to the webservice - which is a HTTP POST of XML data to the same URL - /ReportServer/ReportService2005.asmx - we get the following errors in the Flex debugger (and the Flash Player log file):
    Warning: Failed to load policy file from http://theserver/crossdomain.xml
    Error: Request for resource at http://theserver/ReportServer/ReportService2005.asmx by requestor from http://localhost/modules/ReportsModule.swf is denied due to lack of policy file permissions.
    *** Security Sandbox Violation ***
    Are GET and POST requests handled differently, or is there something more sinister going on here? Can anyone think of a way to proceed in this investigation, apart from just giving up on Flash's ability to do anything cross-site, and writing our own Server-Side proxy for everything!
    regards
    Richard

    Sounds like the update for Flash 8 may help.

  • SAP NetWeaver 7.1 and Web Services

    Hi All,
    Can I deploy Web Services(dswsbobje.war) on Sap Netweaver 7.1 ?
    Where I can find documentation about that ?
    Best Regards,

    Hi Anne-Lise,
    You going to struggle to get this working on the CE server side. SAP xml deserialization works in a similar fashion as JAXB deserialization & JAX-WS ref. implementation in that it's fault tolerant, so it will just log a warning message if the severity of your tracing location is set to 'Warning'
    You could adopt the mediated SAP PI approach that Gourav has suggested OR increasing the severity of your tracing location & try to catch the warning message in you logic from the log OR (very dirty) just add aditional logic to try & catch it.
    Ultimately, you would want the consumer to fix their problems first though
    Regards, Trevor

  • Web.xml and web service

    In a web.xml file there is a section:
    *<service-ref>*
    <service-ref-name>xxxx</service-ref-name>
    <service-interface>x</service-interface>
    <wsdl-file>WEB-INF/x.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/x.xml</jaxrpc-mapping-file>
    <port-component-ref>
    <service-endpoint-interface>xxxxxxxx</service-endpoint-interface>
    </port-component-ref>
    *</service-ref>*
    I have two questions:
    1)To use web service, is this section mandatory or optional?
    2)If optional, what is this section used for?
    Thanks
    Scott

    With JAX-WS this is not required.

  • OSB and SAP integration using XML web services

    Hi Team,
    We are designing solution for asynchronous and synchronous scenarios integration between OSB and SAP using web services.
    Can you please provide some pointers which tells about how OSB and SAP integration works.
    For an example:
    If we are designing the above scenario between SAP PI and SAP ECC, we know the below communication protocols are avilable:
    1.Proxy
    2.RFC
    3.IDOCs
    And also we know how adapters will get connect.
    Now ODB wants to connect to SAP to send and receive data. Please help me with information like:
    1. Is Proxy, RFC or IDOCs are applicable for OSB as well?
    2. How webservice scenarios can be implemented?
    Thanks in Advance.
    regards,
    Vicky

    Hi,
    >>>and what are the Forms ? for SAP Business Connector Related Postings ??
    try WM (webmethods forums) or here since this is the only middleware related forum on SDN
    >>> I have a requirement to integrate sap to non-sap with Business Connector !!
    excellent
    >>>We need to Generate the SAP Data In xml Format ? and the Non-sap System can Understand Only XML Formated data.
    fairly easy
    >>>>Is there any way Business Connector Box can Pull the XML file from R/3 Application Server and store the file in the Business Connector Server. from that How do we Sent XML file to Non-sap. How do we Integrate ??
    business connector has both IDOC and RFC adapters so it can
    receive data from SAP (IDOC, RFC), send data to SAP (IDOC, RFC)
    and pull data from SAP (RFC only)
    >>>>what transaction code will trigger this event ? I mean is ther any SAP Transaction Code to Integrate Business Connector?
    either transaction from SAP (for sending IDOCs for example) or you can schedule (via BC scheduler)
    an RFC call to SAP that will fetch the data and put it in an XML file
    good luck,
    Regards,
    Michal Krawczyk

  • OWSM 10.1.3.4 and Non-SOAP XML-based web service

    Hi all,
    According to the OWSM 10.1.3.4 Administrator's Guide, "all Web services registered with an Oracle WSM Gateway are virtualized as both a SOAP and non-SOAP Web service." To access the non-SOAP (XML-only) web service, the documentation states "The non-SOAP virtualized URL can be determined from the virtualized SOAP URL by replacing the services keyword in the URL with the xml keyword."
    For example, if the SOAP virtualized endpoint is:
    http://host:port/gateway/services/SID0003001
    then, the non-SOAP XML service endpoint is:
    http://host:port/gateway/xml/SID0003001
    I have several web services registered with an OWSM gateway, running on SOA Suite 10.1.3.4, and can access those without any problem. However, when I attempt to access the "/gateway/xml" version of these services, I simply get an HTTP 200 response header with a null body.
    Does anyone have any ideas what could be causing this or what the secret is to get the non-SOAP XML service feature of OWSM to work?
    Thanks!
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi all,
    According to the OWSM 10.1.3.4 Administrator's Guide, "all Web services registered with an Oracle WSM Gateway are virtualized as both a SOAP and non-SOAP Web service." To access the non-SOAP (XML-only) web service, the documentation states "The non-SOAP virtualized URL can be determined from the virtualized SOAP URL by replacing the services keyword in the URL with the xml keyword."
    For example, if the SOAP virtualized endpoint is:
    http://host:port/gateway/services/SID0003001
    then, the non-SOAP XML service endpoint is:
    http://host:port/gateway/xml/SID0003001
    I have several web services registered with an OWSM gateway, running on SOA Suite 10.1.3.4, and can access those without any problem. However, when I attempt to access the "/gateway/xml" version of these services, I simply get an HTTP 200 response header with a null body.
    Does anyone have any ideas what could be causing this or what the secret is to get the non-SOAP XML service feature of OWSM to work?
    Thanks!
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using ABAP Web Service tor convert IDoc to XML and transfer to SOAP Server

    Hi all,
    I have a problem to use ABAP Web Service to convert IDoc's to XML and then send them to a SOAP Server.
    Currently we have the following landscape:
    SAP->XI->Archive
    The sap-system (ECC6.0) sends an IDoc to the Exchange Infrastructe. The XI maps the IDoc and converts it to the required XML format, used by the archive. Afterwards, the XML documents are sended to the SOAP Server.
    So I'm trying to replace the Exchange Infrastructure with ABAP Web Service.
    I've read a lot of posts and documents reagarding ABAP Web Serivce, converting IDoc's to XML, RFC and so on, but I'm not able to do the replacement.
    I don't know how to start and which steps are required.
    The required roles and authorizations at the sap-system and the service for soamanager and the Web Service Viewer are available.
    First I thought to create the RFC and partner profiles and then the report to convert IDoc to XML as a BAPI. With this BAPI I supposed to create and define a Web Service. The problem is, I don't know how to trigger the report if the Idoc should be send to the archive.
    Hopefully, someone has an idea or a how-to for me.
    Thanks in advance.
    Regards,
    Christoph
    Edited by: BigTicket on May 12, 2010 9:36 AM

    Hi BigTicket.
    A suggestion to trigger the BAPI / WebService at the IDoc receiving is to use a user exit or enhanced inside the idoc function module. When the idoc arrived to the idoc port the system start the related function module and then your user exit/enhanced in which you invoke your BAPI.
    I hope this help.
    Ciao.
    Nicola

  • How to Upload documents using Gateway Service in SAP UI5?

    Hi Team,
    How to upload documents using Gateway Service in UI5 app.
    This is Attachment Functionality.using Gateway Service in Controller.JS/View.JS.
    Thanks in Advance.
    Regards,
    Satya

    Hi,
    I suggest you use the search function on scn/google...
    Anyways, here are some usefull links:
    How To Upload and Download Files Using SAP NW Gateway SP06
    Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
    Kind regards,
    RW

  • SAP Fiori - Transports Dev to QA/Prod issues (Activate and Maintain Service)

    Hi All,
        We have configured and activated Fiori - PO and PR scenarios in development environment using Central Hub Architecture (Gateway-Backend system). It is working great. However, we are facing an issue while transporting the configuration between the environments. We configured the entries (System Alias, Activate and Maintain Service and Scenario) for QA/Prod Environment in Development environment and transporting those (as it lets us to create TR's and as any SAP Configuration or technical Object). The transports are imported successfully, however the service is not activated or seen in "Activate and Maintain Services" in QA/Production Environment. But, scenario definition for PO and PR are imported successfully and visible
    Steps and Transports:
    1. System alias configured for QA/Production (Central hub) entries in Development box and transported - Successfully imported and entries are seen
    2. Activate and Maintain Service entries are configured (workbench request- Loads Oauth and Metadata along with the System Alias assigned) - Transport import successfully, However not seen in "Activate and Maintain Services" (tried even creating a customization TR's)
    3. Scenario Definition (PO and PR) - These are successfully imported as well as we are able to see the entries in SPRO
    Solution Options:
    1. Configure the entries and import (No success yet)
    2. Manually re-configure or Activate and Maintain Service in each system [QA/Prod] (Again, SAP let us transport for this step - So, my understanding option 1 should work).
    Any recommendation or suggestions ? Or is the Option 2 the only way to go!
    Thanks in advance
    Cheers,
    Sri

    Hi Sri,
    I think the Support Package for Gateway is old.
    1922510 - Activated Gateway Services are transported only incompletely
    Regards, Masa
    SAP Customer Experience Group - CEG

Maybe you are looking for

  • Web Service Operation returns null values

    I got a Flash program that uses a Web Service.  I linked the actionscript to the Flex Files to get my connection to work.  I got it to work fine, but the problem is with sending it parameters.  This only works on functions without parameters.  But wh

  • PSE6 crashes when printing

    A new feature I just discovered in PSE6.  It crashes whenever I try to print.  No warning, no error...I click print, I get the print photo's dialog box, it acts like it's starting then just goes away.  No error messages, windows doesn't complain. I'v

  • Dequeue from multi consumer queue without consumer_name

    Are there any way to efficient emptying a multiconsumer queue where mesages by sender are taged with consumer_name, and there are multiple consumers?

  • Using non Internet wireless router for AirPrint, kills Internet experience via data plan.

    Just bought an HP Laserjet Pro 400 with AirPrint.  In order to use it I added a wireless router, that is not connect to the Internet, as I am remote.  How can I print and go on the Internet without have to turn on and off my wifi?  I work remotely so

  • Problems with downloading files

    I have Win8. I had Adobe Reader 11 which worked perfectly fine downloading any file in any destination. Now when I try to download files it either 1) totally locks up my computer 2) states I do not have the newest version. I tried to download the new