How to write sync service in sybase unwired platform

Hi
How to write sync service in sybase unwired platform?
Thanks in advance....

Hi!
A RESTful web service (also called a RESTful web API) is a simple web service implemented using HTTP and the principles of REST. It is a collection of resources, with three defined aspects:
- the base URI for the web service, such as http://example.com/resources/
- the Internet media type of the data supported by the web service. This is often JSON, XML or YAML but can be any other valid Internet media type.
- the set of operations supported by the web service using HTTP methods (e.g., POST, GET, PUT or DELETE).
On Sybase Unwired WorkSpace you can select, in Enterprise Explorer, REST Web Services connection defining a resource base URL and URI template, and then using this as MBO defining HTTP method and parameters.
Try this:
http://en.wikipedia.org/wiki/Representational_State_Transfer
and this:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01283.0155/doc/html/fre1261416769728.html
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01283.0155/doc/html/fre1261424660910.html

Similar Messages

  • How to write Sync service in ABAP

    Dear Experts,
                  i m very new to ABAP dev, can anybody help me how to write a sync service in ABAP and how to call a function module in to that sync service.
                   My requirement is i want to upload the data from the clint and download the data to client from the backend. i had written the function module to create a customer in CRM, now i want to push the data to create a customer from the client, for this i need to write a sync service for above requirement,
                plz help me out how to write a sync service.
                           Regards
                            eswar

    Hi Jyotirmoy,
    Check this thread for Subquery
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/dc7614099b11d295320000e8353423/content.htm
    Correlated, non-scalar subquery:
    REPORT demo_select_subquery_1.
    DATA: name_tab TYPE TABLE OF scarr-carrname,
          name  LIKE LINE OF name_tab.
    SELECT  carrname
      INTO  TABLE name_tab
      FROM  scarr
      WHERE EXISTS ( select  *
                       FROM  spfli
                       WHERE carrid   =  scarr~carrid AND
                             cityfrom = 'NEW YORK'        ).
    LOOP AT name_tab INTO name.
      WRITE: / name.
    ENDLOOP.
    This example selects all lines from database table SCARR for airlines that fly from New York.
    Scalar subquery:
    REPORT demo_select_subquery_2.
    DATA: carr_id TYPE spfli-carrid VALUE 'LH',
          conn_id TYPE spfli-connid VALUE '0400'.
    DATA: city  TYPE sgeocity-city,
          lati  TYPE p DECIMALS 2,
          longi TYPE p DECIMALS 2.
    SELECT  SINGLE city latitude longitude
      INTO  (city, lati, longi)
      FROM  sgeocity
      WHERE city IN ( select  cityfrom
                        FROM  spfli
                        WHERE carrid = carr_id AND
                              connid = conn_id      ).
    WRITE: city, lati, longi.
    This example reads the latitude and longitude of the departure city of flight LH 402 from database table SGEOCITY.
    Thanks,
    Vinay

  • JPA, how to write a service to persist objects in a 1-to-many relationship

    i am using JPA for data persistence. i have two objects that are involved in a one-to-many relationship. for example, i have an object, Company, and Company can have one or more, Employee. i then define a service called, CompanyDao, which has the usual create-read-update-delete (CRUD) operations. my problem is that when i instantiate a new Company with new Employees and call CompanyDao.create(Company), i keep getting an exception.
    Cannot add or update a child row: a foreign key constraint fails (`demo`.`employee`, CONSTRAINT `employee_ibfk_1` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`))
    i have an intuition on why this is happening. when i call CompanyDao.create(Company), the newly instantiated Company doesn't yet have an id (its unique identifier). that is why when it tries to insert the Employees of Company, i get this problem. but, my question is, shouldn't JPA take care of all of this for me? shouldn't it know that it is creating a new Company, will have to insert it, will have to retrieve the unique id (generated) and then populate the employee table with this id?
    i was thinking about this problem, and i thought maybe i could insert the company first and then the employees later. however, the problem is, once i insert the company, how do i get its unique id? i cannot query for it any other way (i.e. by name) that will return a unique result.
    if anyone knows of a good, comprehensive tutorial on how to write a service demonstration CRUD operations on objects with one-to-many relationship, please let me know.

    Hi,
    Could you please send CompanyDao.create(Company) code so that we can dig in to problem.
    Regards
    Murali N

  • New to Sybase Unwired Platform

    Hi Friends,
    I am new to Sybase Unwired Platform. Can  suggest anybody, How to start SUP, how to learn SUP  and send any links, sample demos, Configuration of SUP etc...
    Thanks in Advance
    Regards
    Sathya

    Hi Sathya,
                    I think a good place to start would be here.
                   You can use this doc to get to know the basics. This is a little old but i would suggest this to any newcomer.
                   If you are using iOS then here would be a good place to start.
    Best Regards,
    Sujith

  • Sybase Unwired Platform - Error in creating a Blackberry Application

    Hi Experts,
    I am working in the development of Blackberry application using Sybase Unwired Platform and SAP as the backend data source. As a part of this I had created a Remote enabled function module in SAP which returns an internal table as the output. In the Sybase Unwired Workspace I  had created an MBO with this function module and created the User Interface using Device Application Designer. When I test this application in the simulator BlackBerry Storm2 9550, It is showing an error which says
    Encountered error while synchronizing package <package_name> and synchronization group "default", see logs for details : com.Sybase.persistence.SynchronizeException: com.Sybase.persistence.ProtocolException: deivce's protocol version is incompatible with the server's protocol version. (1>0)
    I am using Sybase Unwired Platform 1.5.5 for this development and BlackBerry Storm2 9550 as simulator.
    Can anybody help me to solve this issue?
    Thanks and regards,
    Rinzy Deena Mathews.

    Hi pradeep,
          Application is connected with SUP because i tried a simple application using sampleDB.
            But when i used to connect SAP to Application, that error generated.
            I created SAP Connection successfully but its still show that "Could not initialize class com.sap.mw.jco.JCO in Sybase Control Center's Domain's log page.
            I am not able to understand why that error generate because i connected successfully with SAP in Sybase Workspace.
            I think that is the problem of 64 & 32 bit files problem.
    I used windows 7 64 bit.
    Please reply me.
    Thanks & Regards,
    Tapan

  • Is 'Sybase Unwired Platform' supports Android?

    Hi Experts:
    I am learning android develop , the SUP support blackberry and iphone , i want to konw if the 'Sybase unwired platform' support android , if support can you tell me some books and i can learn it.
    Thank you very much.
    Satish.

    hi
    Currently sybase supports Windows mobile ,iPhone ,blackberry Platforms  but soon it will support android also
    as android is growing very fast SYBASE will soon launch platform for android also.
    sybase site has all the relevant information on this though currently not for android but
    there is lot to learn in sybase you can go through this link
    Hope it may help you
    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.pubs.docset-SUP-1.5.5/doc/html/title.html
    regards
    suresh joshi

  • Sybase Unwired Platform - User Interface Validations

    Hi,
    Does the Sybase Unwired Platform have a mechanism that enables the developer to integrate User Interface Validations?
    Apple provides a standard way to validate user interfact items: http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/UIValidation/UIValidation.pdf
    Is there an inherent mechanism that is a part of the Sybase Unwired platform that triggers client-side validations to prevent unncessary round-trips for simple validations that can be processed by the client itself?
    Regards,
    Namrata

    Hi,
    For simple validations there is an in-built option in SUP. We can assign rule validations to edit box, this is well explained in [Sybase Infocenter|http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01284.0152/doc/html/vhu1232730866978.html]. Or else we can also do some custom coding and achieve user interface validations. This is also well explained in the [tutorial for blackerry application development using Device Application Designer|http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01210.0152/doc/html/vhu1272906484682.html].
    Regards,
    Rahul Muraleedharan.

  • HT5293 how to find sync services on my mac os x

    I have an operating system OS X 10.5 I want to transfer my bb 9750 contacts to my Mac , how do i put on my sync services . This is needed to work with the downloaded BB software to transfer my contacts

    10.9.5 is Mavericks.
    You'll have to check with Blackberry, it's their phone

  • How to write Tuxedo service with conversational mode ?

    Is there anyone do me a favour and tell me how to write the conversational service
    ? I failed to use tpconnect to set up the converational communication channel
    since the returned error number from tpconnect is 6.
    Many Thanks !

    "huchacha" <[email protected]> wrote:
    >
    Is there anyone do me a favour and tell me how to write the conversational
    service
    ? I failed to use tpconnect to set up the converational communication
    channel
    since the returned error number from tpconnect is 6.
    Many Thanks !Hello,
    1. TPNOENT=6 (from atmi.h).
    2. After tpconnect (from Tuxedo docs):
    [TPENOENT] Cannot initiate a connection to svc
    because it does not exist or is not a conversational service.
    3. Check SERVER section in ubbconfig,
    for example (from Tuxedo docs):
    CONV = {Y | N} specifies whether or not the server
    is a conversational server.
    Connections can only be made to conversational servers,
    and rpc requests (via tpacall() or tpcall()) can only be made
    to non-conversational servers. The default is N.
    Best regards,
    Vladimir

  • How to open sync services for blackberry?

    Hi
    Need to put blackbeery contacts onto i tunes but need to open sync services.
    Can someone help.

    HorseDaddy70 wrote:
    wow. it worked fine with Lion. since i upgraded to Maverick nothing.
    Yes, it was deprecated when Lion was released.
    That is Software-speak for, "we don't plan on supporting this much longer. You need to find another solution."
    They supported it through Lion and Mountain Lion, but have stopped supporting it with Mavericks.

  • How to write Web Service Log to a file in Java

    Hi..
    I have a requirement that I need to maintain Log file of my web service which is deployed on OC4J server.
    Is there any API for this ? Or any other way to do it ?
    Regards,
    Ajay

    Hi..
    Thanks.
    Instead of using Logging API, I created own class to handle Log.
    But my issue is When Ever I am appending Log to already created file the following Line is also appending.
    <?xml version = '1.0' encoding = 'UTF-8'?>I want this Line only one time in each log file.
    What should I do for this ?
    Regards,
    Ajay

  • How to Edit a Field inside an operation in Sybase Unwired Platform

    Hi,
    We are using SUP SP04 and back-end with SAP RFC.
    I have created an operation called 'CreateIssue'.
    The operation 'CreateIssue' uses an RFC called 'CREATE_ISSUE'.
    The mapping has been done between the client parameters of our operation and the remote operation arguments of the RFC.
    In SAP RFC, the datatype is defined as STRING(0). But In SUP it is showing as STRING(300).
    Among all the input parameters of the operation, I want to change the datatype of a variable from STRING(300) to STRING(3000).
    Since this is not editable, how to change the size of the string variable?
    Kindly suggest.
    Thanks in advance.
    Regards
    Debidutta

    hi Harish,
    you can make field catalog manually as shown below:
    PERFORM build_fieldcat TABLES i_fieldcat[]
      USING :
    *-Output-field Table          Len   Ref tab   Ref field    Heading     Col_pos
       'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'       ''                 1,
       'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'      ''                 2,
       'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'     ''                3,
       'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'        ''                4.
    and now u can make changes in it as per your format of output you want.
    regards
    rahul
    Edited by: RAHUL SHARMA on Dec 18, 2008 8:50 AM

  • TS1627 Any ideas on how to reset sync services on OSX Mavericks?

    http://support.apple.com/kb/TS1627 holds no answers.  The reset script sited for Mountain Lion doesn't exist for Mavericks.

    Thanks, GabrielHay. That's much clearer, now.
    I already use iCloud, and I'm looking for the iCloud equivalent of SyncServices (or something other than the suggestions I've found, so far, that will reset iCloud sync). That's what it seemed you were looking for: a way to reset sync in Mavericks, as opposed to a way to sync in Maverics. (Essentially.)
    So again, thanks.
    That said, there's no evidence that Apple has ever "mined" clients' data or would even care to. You're free, of course, to not like the idea of syncing via Apple's servers. But to suggest that Apple "chose to switch off SyncCervices" in order to "give themselves a bigger database of client data to mine" is simply unfounded.
    I'm always amused at the notion that despite Apple having hundreds of millions of customers, a given individual is somehow convinced that Apple would care about his data.
    Apple doesn't care about your calendar. Or your contacts. Seriously.
    Think of the many thousands of celebrities and dignitaries who use Apple products. If Apple were paying any attention to their data, let alone doing anything with it, the revolt and backlash would be legendary. I personally know many people who have the contact info for hundreds of celebrities and such in their Apple Contacts and Calendar apps, and not one breach has ever, ever occurred.
    Consider the unfortunate security breach that Target sustained, last week. It's been all over the news, every single day, for nearly a week. If Apple were doing anything of the sort, no one would stand for it. No one! Apple has far too much to lose to do something stupid like that. And to what end? So they can see where a user's having dinner? Or what time his staff meeting is? Even a celebrity's calendar is pointless. What good would it do Apple to know that Charlize Theron's having lunch with Ewan McGregor. None.
    You seem like an intelligent guy. If you think through what you're proposing, you'll realize Apple would stand to gain nothing by doing what you suspect -- and in fact would stand to lose everything.
    Thanks again for the clarification. And best of luck!

  • [Sybase Unwired platform] newbie questions

    Hi,
    I am a newbie to SUP (and Mobile app development ). I did go through a lot of stuff related to SUP and even succeeded in installing the same and pinging the unwired server.
    My queries are as follows :
    I have a mobile application (already developed) which is currently talking to the backend ABAP servers. But now this application needs to talk to  SUP in between and then SUP should be bridged to Netweaver gateway.
    To go about achivening this,
    1. I understand that I need to call the right SUP APIs from  application .Can anyone help/redirect me to SUP APIs  that I need to know and where can i find the same?
    2. What needs to be done to bridge the SUP to the Netweaver gateway and inturn to backend servers?
    3. Would this need relay server configuring?
    4. WHat do I have to learn (as a pre-requisite) to integrate my mobile application with SUP ?
    your replies would help me learn more!

    You can go through this document at sybooks.online which focuses on many APIs which are very much necessary.
    [Developer Reference APIs|http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01217.0200/doc/pdf/sup_devref_iOS.pdf]
    The API list has been mentioned at the end of the document

  • Sybase Unwired Platform for Blackberry

    Hi All,
    I could able to run RBS and MBS using SUP 2.0 on Simulator. When I try to do that in a device, I get communication error in SUP client log. Having said that,
    1) Does any one tried connecting SUP (2.0 or 1.5) to a Device. If yes, did you use BES or BIS?
    2) Can this communication happen only with BIS?
    As a side note, Emulator/Simulator is using a MDS simulator to connect SUP. Is BIS capable of providing needed services for SUP?
    Regards,
    Sreeram MC

    Hi Sreeram,
    I have tried it in the device using BES and as well as without BES also. But wehave configure our server in the relayserver.
    Please check the following link,
    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01205.0155/doc/html/ldi1236111118480.html
    Regards,
    Ram

Maybe you are looking for

  • Handling Null element in Data Template

    Hi experts , I am facing an issue, include_null_Element is not working properly. Find the sample code below and please help me out with your suggestion. Since my data template file is big i pasting less amount Data template file:- <?xml version="1.0"

  • Scan to Computer problem HP Officejet Pro 8500 (A909a) OSX 10.7.5

    Good afternoon, First of all I appologize if this question already has been asked a thousand times, but I am unable to find a solution in the somewhat simular stories. But reading thru all off them, while English is not my native language, was beginn

  • PO header level excise condition in MIGO are wrong

    Hello , While doing goods receipt Item excise Codition values are as follow BED  = 959.71 ECS = 19.24 SECESS = 9.62 But at header level it is showing as ( divide by 100) BED =  9.59 ECS = 0.19 SECess = 0.09 Please help  to resolve this issue

  • How do I get rid of the cloud icon out of my iTunes for Windows!!

    Hey, my request is really simple. I own no Apple products anymore and I'm down to using just one Apple product and now I have updated to the latest iTunes which I now regret hecause my podcast list was so much neater and simpler. I can't remove my ol

  • HDV captured on powerbook not opening on My G5...What the **** is going on!

    Hi all, I captured native HDV on my powerbook on FCP 5.04. Once transferring the files to my G5 to work on them neither QT nor FCP (same versions) is seeing it. QT just gives me a blank white frame and FCP just displays a black frame. I have a done a