Create reports in RESTful webservice

Hi
I am using BO 4.1 SP2.
I know that report can be created using restful url.
Is there any url to connect the created report with a particular universe. help me in this
Regards,
Kavitha S

Hi Mithila.
you can get the ID of the universe to add by requesting the list of uinverses.  Here's a simple workflow of creating a report and adding a dataprovider:
List out the universes
GET /biprws/raylight/v1/universes
response
<universes>
<universe>
  <id>5145</id>
  <cuid>AX3cE9nWhMBLtXyWJ56OoDQ</cuid>
  <name>eFashion</name>
  <type>unv</type>
  <folderId>532</folderId>
</universe>
</universes>
====================================
Create a document
POST /biprws/raylight/v1/documents
<document>
  <name>My new Document</name>
  <folderId>5848</folderId>
</document>
response
<success>
  <message>The resource of type "Document" with identifier "6757" has been successfully created.</message>
  <id>6757</id>
</success>
=====================================
Add a datasource to the new document (6757) using the name and ID from the universe you want to use
POST /biprws/raylight/v1/documents/6757/dataproviders
<dataprovider>
  <name>eFashion</name>
  <dataSourceId>5145</dataSourceId>
</dataprovider>
response
<success>
  <message>The resource of type "Data provider" with identifier "DP0" has been successfully created.</message>
  <id>DP0</id>
</success>
======================================
List the dataproviders in the new webi document
GET /biprws/raylight/v1/documents/6757/dataproviders
response
<dataproviders>
  <dataprovider>
    <id>DP0</id>
    <name>eFashion</name>
    <dataSourceId>5145</dataSourceId>
    <dataSourceType>unv</dataSourceType>
  </dataprovider>
</dataproviders>
I hope this helps,
Dan

Similar Messages

  • Create Document in RESTful webservice

    Hi,
    Anyone help me in java code
    how to create a webi document using restful webservice?
    My Code:
    HttpPost httpRequest_create_doc = new HttpPost( "http://localhost:6405/biprws/raylight/v1/documents");
      httpRequest_create_doc.setHeader("Accept","application/xml");
      httpRequest_create_doc.setHeader("Content-Type","application/xml");
      httpRequest_create_doc.setHeader("X-SAP-LogonToken", sLogonToken);
    I am getting this response
    HTTP/1.1 400 Bad Request [Server: Apache-Coyote/1.1, Date: Thu, 25 Sep 2014 12:12:19 GMT, Content-Type: application/xml, Content-Length: 135, Connection: close]
    Regards,
    kavitha S

    Hi Bhushan,
    Thanks for your information.I have added body.i am getting same response as
    HTTP/1.1 400 Bad Request .
    Help me if i done any wrong in my coding.
    String docname="Sampledocument.xml";
    String folder_id="1001";
    String create_doc = "<documents><name>"+docname+"</name><folderId>"+folder_id+"</folderId></documents>";
    HttpPost httpRequest_create_doc = new HttpPost( "http://localhost:6405/biprws/raylight/v1/documents");
      httpRequest_create_doc.setHeader("Accept","application/xml");
      httpRequest_create_doc.setHeader("Content-Type","application/xml");
      httpRequest_create_doc.setHeader("X-SAP-LogonToken", sLogonToken);
      httpRequest_create_doc.setEntity(new StringEntity(create_doc));
    HttpClient httpclient = new DefaultHttpClient();
    HttpResponse httpResponse= httpclient.execute(httpRequest_create_doc);
    Regards,
    kavitha S

  • Report data ( value ... tag) missing in the Webi report retrieved through RestFul Webservice

    I am trying the below URL to get the WEBi report from SAP BO using the Rest Webservice support that is now available.
    http://{serverIP:serverPort}/biprws/raylight/v1/documents/{documentId}
    I am able to get the report but as I compare the same report response when using SAOP Webservice, there seems to be a mismatch in the response. Here is what I see in the SOAP response:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" sid="-10"><ct >Some arbitrary value</ct><value type="xs:string">Some arbitrary value</value></cell>
    But when I run it through REST, I am missing the <value ..> tag:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" bt="1" sid="-10"><ct >Some arbitrary value</ct></cell>
    Apart from this right at the start of the xml response, I see some property mismatch as well.
    SOAP has this property extra:
    <property name="output.format.xml.valuemode">yes</property>
    While REST has these property extra:
    <property name="output.format.xml.option.style">1</property>
    <property name="output.format.xml.styledict.fontplatform">html</property>
    <property name="output.format.xml.td.bandinfo">yes</property>
    <property name="source.selected">data</property>
    <property name="xelement.xml.object">yes</property>
    <property name="xelement.xml.object.usemap">yes</property>
    <property name="xelement.xml.object.usersupportedformat">image/png</property>
    I am not sure if:
    the <value ...> tag miss is because of these missing/extra properties or
    current REST support has some issues
    For my application the value tag is a must and I can't do without this, but with REST it seems no way to obtain that.
    Any help or pointer(s) in this regard is appreciated!

    Hello Milind,
    According to our Product Owner Sam Polichouk, the solution should be available for you in 4.1 SP3, which is currently scheduled for release by the end of March 2014 (subject to change).  The product team recommends that you get the raw, unformatted data values from within the Dataset specific call.  This data contains a type to tell the end user what kind of data it is, so you can format it or use it properly.
    The updated documentation for the SDK will be available at SAP BusinessObjects Business Intelligence platform 4.1 – SAP Help Portal Page once the Support Pack is publicly released.

  • What are the ways to create RESTful webservices to expose backend data?

    Hi All,
    As far as i know, we can create RESTful webservices using,
    1. SAP Netweaver gateway.
    2. SAP PI using third party adapter.
    Please tell me if there is any other ways to create RESTful webservices in SAP.
    Thanks & Regards,
    Naseem

    Hi Haritha,
    Go to Tcode SE16, give your ODS active Table name and give width of output list as 1023.
    Now run transaction to see your data and then click Settings --> User parameters and Select ALV Grid Display.
    Now you should see and Excel Icon on top, click on it then select Table , then
    Microsoft Excel and it will open your data with all columns you want.
    I just tried for 213 columns
    Hope this helps.
    Thanks
    CK

  • Error while bringing up ATG REST Webservice

    Hi,
    I am trying to bring a REST Webservice using ATG 9.3 version.I am getting the below errors in the startup of the instance.I have added "REST" module in the Manifest file and am able to see the entry " C:\ATG\ATG9.3\REST\config\config.jar" in CONFIGPATH(Please let me know if there are other ways to find if the service has come up properly).I am trying to connect to the server using JAVA based REST Client as given below.Also,i have placed the jar files in the CLASSPATH of the module.I am hoping that the webservice have not come up properly because of these startup errors.Please help me out to resolve this issue.
    STARTUP EXCEPTION SEEN IN SERVER
    ========================
    2012-06-25 06:20:36,815 INFO [STDOUT] Unable to create class atg.rest.servlet.HeadRestServlet for configuration /atg/dynamo/servlet/dafpipeline/HeadRestServlet java.lang.ClassNotFoundException: No ClassLoaders found for: atg.rest.servlet.HeadRestServlet
    2012-06-25 06:21:56,325 INFO [nucleusNamespace.atg.userprofiling.sso.PassportAuthorityService] Starting passport authority service
    2012-06-25 06:21:56,460 INFO [STDOUT] **** Error
    2012-06-25 06:21:56,460 INFO [STDOUT]      
    2012-06-25 06:21:56,460 INFO [STDOUT] Mon Jun 25 06:21:56 EDT 2012
    2012-06-25 06:21:56,460 INFO [STDOUT]      
    2012-06-25 06:21:56,460 INFO [STDOUT] 1340619716460
    2012-06-25 06:21:56,460 INFO [STDOUT]      
    2012-06-25 06:21:56,460 INFO [STDOUT] /
    2012-06-25 06:21:56,460 INFO [STDOUT]      
    2012-06-25 06:21:56,460 INFO [STDOUT] Unable to set configured property "/atg/dynamo/servlet/Initial.initialServices" atg.nucleus.ConfigurationException: Unable to resolve component /atg/dynamo/servlet/dafpipeline/HeadRestServlet
    2012-06-25 06:22:06,528 INFO [STDOUT] Unable to create class atg.rest.RestConfiguration for configuration /atg/rest/Configuration java.lang.ClassNotFoundException: No ClassLoaders found for: atg.rest.RestConfiguration
    2012-06-25 06:22:06,528 INFO [STDOUT] **** Error
    2012-06-25 06:22:06,528 INFO [STDOUT]      
    2012-06-25 06:22:06,528 INFO [STDOUT] Mon Jun 25 06:22:06 EDT 2012
    2012-06-25 06:22:06,528 INFO [STDOUT]      
    2012-06-25 06:22:06,528 INFO [STDOUT] 1340619726528
    2012-06-25 06:22:06,528 INFO [STDOUT]      
    2012-06-25 06:22:06,528 INFO [STDOUT] /
    2012-06-25 06:22:06,528 INFO [STDOUT]      
    2012-06-25 06:22:06,528 INFO [STDOUT] Unable to set configured property "/atg/rest/Initial.initialServices" atg.nucleus.ConfigurationException: Unable to resolve component /atg/rest/Configuration
    CLASSPATH ENTRY
    ============
    <classpathentry exported="true" kind="var" path="C:/ATG/ATG9.3/REST/lib/atg-rest-1.0.jar"/>
         <classpathentry exported="true" kind="var" path="C:/ATG/ATG9.3/REST/lib/commons-fileupload-1.2.1.jar"/>
         <classpathentry exported="true" kind="var" path="C:/ATG/ATG9.3/REST/lib/commons-io-1.4.jar"/>
         <classpathentry exported="true" kind="var" path="C:/ATG/ATG9.3/REST/lib/dom4j-1.6.1.jar"/>
         <classpathentry exported="true" kind="var" path="C:/ATG/ATG9.3/REST/lib/log4j-1.2.15.jar"/>
         <classpathentry exported="true" kind="var" path="C:/ATG/ATG9.3/REST/client-lib/java/atg-rest-client-1.0.jar"/>
    REST CLIENT:
    ========
    import java.util.HashMap;
    import java.util.Map;
    import atg.rest.client.RestClientException;
    import atg.rest.client.RestComponentHelper;
    import atg.rest.client.RestResult;
    import atg.rest.client.RestSession;
    public class RestClient {
    RestSession mSession;
    protected void execute() throws RestClientException {
         System.out.println("inside execute");
         mSession = RestSession.createSession("localhost", 8080, "<USERNAME>", "<PASSWORD>");
         mSession.setUseHttpsForLogin(false);
         try {
         mSession.login();
         System.out.println("Login Successful");
         catch (Throwable t) {
         System.out.println(t);
         finally {
         try {
         mSession.logout();
         System.out.println("Logout Successful");
         catch (RestClientException e) {
         System.out.println(e);
    * @param args
    public static void main(String[] args) {
         System.out.println("inside main");
         // TODO Auto-generated method stub
         RestClient testATGRest = new RestClient();
         try {
         testATGRest.execute();
         catch (Throwable t) {
         System.out.println(t);
    REST CLIENT ERROR SEEN:
    =================
    atg.rest.client.RestClientException: java.io.IOException: Not Found http://localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser
    atg.rest.client.RestClientException: This session is not logged in and cannot be logged out

    I am trying to expose a method using REST Webservice and access the method using the browser.I have followed the steps specified in the thread:
    http://ecomwriter.com/2012/03/19/building-restful-web-services-using-atg/ .Have added a component called ProfileRESTWebservice and have defined a method “getLoginInfo” in the class file. The following entry is placed in the restSecurityConfiguration.xml
    <resource component="/atg/userprofiling/ProfileRESTWebservice" secure="true">
    <method name="getLoginInfo" secure="false"></method>
    </resource>
    But, I am receiving the following exception when trying to access the method using http://localhost:8080/rest/bean/atg/userprofiling/ProfileRESTWebservice/getLoginInfo
    10:07:33,147 ERROR [BeanServlet] Error code: 400
    atg.beans.PropertyNotFoundException: Can't find property named: getLoginInfo in class: com.vs.commerce.profile.ProfileRESTWebservice
    Can't find property named: getLoginInfo in class: com.vs.commerce.profile.ProfileRESTWebservice
    atg.rest.RestException: atg.beans.PropertyNotFoundException: Can't find property named: getLoginInfo in class: com.vs.commerce.profile.ProfileRESTWebservice
    at atg.rest.output.RestOutputCustomizerImpl.outputBeanProperty(RestOutputCustomizerImpl.java:616)
    at atg.rest.processor.BeanProcessor.doRESTGet(BeanProcessor.java:157)
    at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:394)
    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:237)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:298)
    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:241)
    Can you pl help me out on this?

  • BO 4.1 WEBI Metadata extraction using Java Restful Webservice

    Hi
    We are building an application using the Restful webservice and are trying to extract the metadata from the webi report.
    Whether there is any URL to retrieve Query filter in web Intelligence Report.
    Please help.
    Regards,
    Kavitha S

    Assuming this is a BEX query, you may want to check p. 296 in the following; SAP Web Intelligence RESTful web service SDK User Guide, SAP BusinessObjects Business Intelligence platform 4.1
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Url service data control - problem while  POSTing to a restful webservice

    Hi,
    I am trying to call a restful webservice to add a new employee .I have created the url service data control. The service method consumes XML.
    When i am creating the url service datacontrol I selected the http method as POST and giving the servicepath and servicename as the source. After providing the xsd's path and all , when I test the url connection, I am getting the following error message:
    URL Test: Received Error: Method Not Allowed
    This might be because the clicking of the test url button is sending the get request, but the actual method is POST.
    Now under the data controls navigator, If i view the newly created data control, i could see the loadData(Object) method which i assume is for retrieving the data from the service. But since i have mentioned the method as POST, why such a method is created? Also if its there, can I use the same for insert and update? I have used this loadData (Object) method to create a button which calls the webservice upon click. Under the data control property inspector, i changed the supportsupdate attribute's value to true. But when i am trying to save the employee from the jspx page, I am getting the following message in the integrated weblogic's log
    Couldn't get access to the data source. Cause Unsupported Media Type exception in rest service
    And on the server side I am getting the following error message:
    No message body reader has been found for request class Employee, ContentType application/octet-stream.
    I think the request is not going as XML. But while creating the datacontrol i have specified the xsd document for the iput xml request. Does ADF automatically creates the XML from the input parametres? If it does not, then what could be done to achieve that? The default actionListener of the submit button is #{bindings.loadData.execute}. Do i have to override it to send the XML request? Or have I missed anything in trying to achieve what i intend?
    I had refered this link for reference :
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_53/jdtut_11r2_53.html
    Rampal
    Edited by: user12011868 on Jan 22, 2012 10:03 PM

    Hi Frank,
    I had specified the HTTP method as POST as well as PUT. But the same error is appearing in the both the cases.
    URL Test: Received Error: Method Not Allowed
    And when I am clicking on the 'Test URL Connection' , I can't see any option of selecting the HTTP method. This option only appears in the step 2 of creating the URL service data control where we mention the URL endpoint and the source.
    What could be the reason for the error.
    Rampal

  • Invalid request when calling REST-webservice with UTL_HTTP.

    Hello,
    When i try to send some data to a REST-webservice i get as response "INVALID REQUEST"
    I Think it is about the request-body that seems to be no UTF-8.
    I tried to set the characterset with utl_http.set_body_charset(t_http_req, 'UTF-8').
    But when i read the characterset with utl_http.get_body_charset(t_charset);, is still get "ISO-8859-1"
    I am using: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    Some help would realy be appreciated because i am out of options trying to get the code working..
    ======MY CODE==========
    create or replace procedure ipm40_send_bekendmaking(p_bdmg_id in number)
    as
    r_bekendmaking ipm40_bekendmakingen%rowtype;
    r_gemeente ipm40_gemeenten%rowtype;
    l_url httpuritype;
    t_http_req utl_http.req;
    t_http_resp utl_http.resp;
    t_request_body varchar2(32767);
    t_respond varchar2(32767);
    -- t_teller integer := 1;
    -- t_output varchar2(2000);
    t_start number := 1;
    t_body_lengte number;
    t_chunkdata varchar2(4000);
    t_tijd_1 varchar2(256);
    t_tijd_2 varchar2(256);
    t_timeout integer;
    t_length number;
    t_charset varchar2(256);
    begin
    select *
    into r_bekendmaking
    from ipm40_bekendmakingen
    where id = p_bdmg_id;
    select *
    into r_gemeente
    from ipm40_gemeenten
    where gmte_code = r_bekendmaking.gmte_code;
    l_url := httpuritype.createuri('http://zwolle.stadsbeheer.com:82/apex/ipm40bekendmaking?p_bdmg_id='||r_bekendmaking.id);
    t_request_body := l_url.getClob();
    /* request that exceptions are raised for error Status Codes */
    --Utl_Http.Set_Response_Error_Check ( enable => true );
    /* allow testing for exceptions like Utl_Http.Http_Server_Error */
    --Utl_Http.Set_Detailed_Excp_Support ( enable => true );
    utl_http.set_transfer_timeout(300);
    t_http_req:= utl_http.begin_request( r_gemeente.url_webservice_bekendmakingen
    , 'POST'
    , 'HTTP/1.1');
    utl_http.set_body_charset(t_http_req, 'UTF-8');
    utl_http.get_body_charset(t_charset);
    utl_http.set_authentication(t_http_req,r_gemeente.user_webservice_bekendmakingen,r_gemeente.pw_webservice_bekendmakingen);
    t_length := length(t_request_body);
    utl_http.set_header(t_http_req, 'Content-Type', 'application/xml charset=UTF-8');
    utl_http.set_header(t_http_req, 'Content-Length', t_length);
    utl_http.set_header(t_http_req, 'Transfer-Encoding', 'chunked' ); --
    t_body_lengte := dbms_lob.getlength(t_request_body);
    loop
    t_chunkdata := dbms_lob.substr(t_request_body, 2000, t_start);
    utl_http.write_text ( t_http_req, t_chunkdata );
    t_start := t_start + 2000;
    if t_start > t_body_lengte
    then
    exit;
    end if;
    end loop;
    t_http_resp:= utl_http.get_response(t_http_req);
    utl_http.read_text(t_http_resp, t_respond);
    utl_http.end_response(t_http_resp);
    if instr(t_respond,'Successfully document processed') != 0
    then
    update ipm40_bekendmakingen
    set ind_status = 'S'
    , datum_verzonden = sysdate
    , response = t_respond
    where id = r_bekendmaking.id;
    else
    update ipm40_bekendmakingen
    set ind_status = 'F'
    , datum_verzonden = null
    , response = t_respond
    where id = r_bekendmaking.id ;
    end if;
    commit;
    exception
    when others
    then
    t_tijd_2 := to_char(sysdate,'HH24:MI:SS');
    t_respond := substr(sqlerrm,1,2000);
    update ipm40_bekendmakingen
    set ind_status = 'F'
    , datum_verzonden = null
    , response = t_respond
    where id = r_bekendmaking.id ;
    commit;
    end;
    ===THE RESPOND=============
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
    <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
    </HEAD><BODY>
    <H1>ERROR</H1>
    <H2>The requested URL could not be retrieved</H2>
    <HR noshade size="1px">
    <P>
    While trying to process the request:
    <PRE>
    POST /pushxml/pushxml-bm HTTP/1.0
    Authorization: Basic Ymtfc21hcnRob2xkaW5nOllyZXMzdlFR
    Content-Type: application/xml charset=UTF-8
    Content-Length: 2096
    Transfer-Encoding: chunked
    Connection: close
    </PRE>
    <P>
    The following error was encountered:
    <UL>
    <LI>
    <STRONG>
    Invalid Request
    </STRONG>
    </UL>
    <P>
    Some aspect of the HTTP Request is invalid. Possible problems:
    <UL>
    <LI>Missing or unknown request method
    <LI>Missing URL
    <LI>Missing HTTP Identifier (HTTP/1.0)
    <LI>Request is too large
    <LI>Content-Length missing for POST or PUT requests
    <LI>Illegal character in hostname; underscores are not allowed
    </UL>
    <P>Your cache administrator is [email protected].
    <BR clear="all">
    <HR noshade size="1px">
    <ADDRESS>
    Generated Fri, 12 Aug 2011 17:33:24 GMT by asd2cc001.asp4all.nl (squid)
    </ADDRESS>
    </BODY></HTML>

    Always check the access_log and error_log files of the Apache web server in such a case. This will identify whether the error comes from Apache itself, mod_plsql, the Apex run-time engine, or the Oracle database.
    I see that you're creating a HTTP/1.1 in PL/SQL - however, the web server response indicates a HTTP/1.0 call was received. Unusual. And could be part of the problem.

  • Making a REST webservice call. Error code: 401 Access to the requested resource is not allowed

    Hi All,
    I’m having a hard time figuring out how to make Rest WebService calls.
    I tried executing this directly through browser and I get an error.
    http:localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser?arg1=[email protected]&arg2=Password
    13:18:20,613 ERROR [RestSecurityServlet] Error code: 401
    Access to the requested resource is not allowed: /atg/userprofiling/ProfileServices
    atg.rest.RestException: Access to the requested resource is not allowed: /atg/userprofiling/ProfileServices
    at atg.rest.processor.RestSecurityProcessor.checkAccess(RestSecurityProcessor.java:546)
    at atg.rest.processor.RestSecurityProcessor.handleGetRequest(RestSecurityProcessor.java:313)
    at atg.rest.processor.RestSecurityProcessor.doRESTGet(RestSecurityProcessor.java:199)
    at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:417)
    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:260)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)
    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:264)
    at atg.rest.servlet.HeadRestServlet.service(HeadRestServlet.java:130)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)
    From the documentation I understand that I need to create a session, is the session only necessary to access secured components since this
    particular method “ProfileServices.loginUser “ has been declared as not secure in restSecurityConfiguration.xml
    Also, are there two different ways in which I can log in
    1.       Using RestSession.createSession providing the username and password.
    2.       Or using ProfileServices.loginUser or ProfileFormHandler
      Can someone please clarify

    If you are invoking the REST web-service from a Java client then you can create a RestSession object using the createSession method. But in your case you seem to be invoking it with a HTTP request which by default would be treated as a GET request by ATG's REST implementation. Therefore being a GET, it would try to fetch a property "loginUser" from /atg/userprofiling/ProfileServices component (based on your URL) which would always fail.
    To invoke loginUser() method of ProfileServices with your passed argument you need to tell ATG's REST system to treat your incoming request not as GET but as a POST request which you can do using  atg-rest-http-method control parameter in your request like this
    http:localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser?arg1=[email protected]&arg2=Password&atg-rest-http-method=POST
    It should work this way provided your restSecurityConfiguration.xml is proper.

  • What easy to use (MS or third party) tool can I use to create and host a webservice API on a SQL server database

    I'm looking for a (MS or third party) tool with which I can create, publish and host webservice API's on a custom SQL database. For example a API which presents all customers, or validates a user login.
    I prefer a tool that can be used without .NET programming skills, just using database scripts and queries.
    Could somebody suggest a tool for this?
    Many thank,
    Slowytech

    Use Visual Studio (Microsoft Visual Studio Express 2013 for Web ) and the WebAPI framework.  You can easily create REST endpoints for your data.  You can even
    use ODATA to enable RESTful queries over your data.
    See
    http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Pass json result of rest webservice into page items

    Hello,
    I have created a webservice reference, and a from with report on that webservice. I fill in a zipcode and click submit and the results will put in a collection.
    The response is a json object and is stored in the CLOB001 column of the collection. Example. : {"success":true,"resource":{"street":"Amsterdamseweg","postcode":"1181BP","town":"Amstelveen","municipality":"Amstelveen","province":"Noord-Holland","latitude":52.3163363636,"longitude":4.856420303}}.
    But I want that if you fill in a zipcode that only the values of street and town from the json object will passed in two seperated page items. What is the best way to achieve this?

    Hi
    See this thread
    /message/2187817#2187817 [original link is broken]
    Kind Regards
    Mukesh

  • Convert a report /BSP into webservice ?

    Hi All,
    Can you please tell me How much time would it take to convert a report /BSP into webservice ? Also let me know the process?
    I am new to WEBSERVICES.
    We will be doing this in ECC6.0.
    Thanks & Regards

    Hi Swapnil,
    You can create Web services for RFC-enabled function modules, function groups, BAPIs, and service interfaces.
    Go through the below links.
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/content.htm
    Regards,
    Ragunathan.R

  • Transport of Customized or created report.

    Hi Experts,
    I have a requirement to develop report in SAP BI, those reports are not available in Business Content.
    For this Please advice me on below queries.
    1. How to transport developed reports or how to add user developed(created) reports in TR?
    2. Can I develop report on production directly if all fields are available as per requirement?
    Thanks you in Advance.
    Regards

    Hi Taniya,
    Development should always be done in development server. Please follow below steps to move customized report to production:
    1) Create query in development, check and save.
    2) Go to RSA1 -> Transport Connection. Select Query under Query Elements -> Query and drag it to right side.
    3) Check all the objects you want to transport.
    4) Grouping -> Only necessary objects,Click on the truck icon ( Transport objects). Give appropriate package and create new request.
    All the objects for the query will be assigned to the request created.
    Goto SE10, check if all the objects required are present in request and release it. Give request no to BASIS guys, they will take care for rest.
    That's it.
    Hope it helps.

  • Getting error response while trying to access REST webservice through Powerbuilder

    Hi Team,
    I am trying to access a rest webservice through powerbuilder 12.5(.net).The rest webservice is secured through basic authentication.I am passing the userid and password through powerbuilder to acess the service,But its returning an error .But while i am trying to accss the same REST webservice through SOAPUI, i am able to get the response.
    Please find the below line of code which i have written in powerbuilder.
    p_testcleint2 lp_rest
    string ls_string
    lp_rest=create p_testcleint2
    PBWebHttp.WebClientCredential lsCredential             //configure credentials
    lsCredential = create PBWebHttp.WebClientCredential
    lsCredential.AccessAuthentication = PBWebHttp.AuthenticationMode.Basic!
    lsCredential.Password='Pa$$word1!'
    lsCredential.Username='admin'
    lp_rest.restConnectionObject.ClientCredential = lsCredential  //add credentials to connection
    try
       lp_rest.PostMessage()
    catch (System.Exception ee)
      messagebox("Failure",string(ee.Message))
    end try
    Error i am getting as below :
    The remote server returned an error:(401) unauthorized.
    Can you please let me know why this error is coming or do i need to any extra paramert in the lsCredential to handle this.
    Thanks in advance.
    Regards
    Subrat

    Hi Chris,
    Thanks for the reply.
    Yes i checked -in fiddler, the basic authentication request is not generating in the fiddler.
    In the same Rest service if i turned off the basic authentication then call is happening in Powerbuilder and its displaying in fiddler also.
    Regards
    Subrat

  • Creating reports using plsql

    Every months reports are created on the basis of t_variablen .wert_dat column basis
    For example if the value in thewert_dat column in t_variablen table is 01-oct-2010
    Then the report are created with the following values in the berichte table as
    brtid     period_von_dat     period_bis_dat     status     stand_dat     brt_type     mpr_id     rpa_id
    292     1/10/2010     31/10/2010     N     1/11/2010     MPR          
    The values for mpr_id and rpa_id are provided with the values already there in berichte table
    Please see my code
    Create or replace procedure p_copy_reports as
    Cursor c_cur is select brt_seq.nextval as brtid, to_char(stand_dat,’mmyyyy’)as datival,mpr_id, rpa_id from
    Berichte, t_variablen
    Where berichte.stand_dat=t_variablen.wert_dat
    And t_variablen.lang_bez=’planstand’;
    Begin
    For I in c_cur loop
    Insert into berichte (brt_id,
    period_von_dat,
    period_bis_dat,
    status,
    stand_dat,
    brt_type,
    mpr_id,
    rpa_id)
    Values(i.brt_id,trunc(to_date(i.dateval,’mmyyyy’)),trunc(add_months(to_date(i.dateval,’mmyyyy’),1)-1,
    ‘N’,
    Trunc(add_months(to_date(i.dateval,’mmyyyy’),1)),
    ‘MPR’,
    i.mpr_id,
    i.rpa_id);
    end loop;
    end;
    This was working fine upto month of October
    The problem arise when we don’t need to create reports for the month of nov
    And for the month of dec we need to create report on the basis of October (two months back)
    Example if t_variablen.wert_dat is 01-12-2010 then it should create reports as on the basis of October month
    And if the t_variablen.wert_dat is 01-11-2010 then it should go to end(don’t need to do anything)
    For rest of months the old process.
    I am stuck totally please help me out as soon as possible

    Hi,
    Welcome to the forum!
    I agree with the answers above; you should read them carefully and follow them.
    In particular, I agree with Andy that you could do this better with a single UPDATE statement: no loop, no cursor, you don't even need PL/SQL. (There are good reasons for using PL/SQL. If you have one, then you can do a single INSERT statement, like the one below, in PL/SQL.)
    Whenever you have a problem, it helps if you post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Not all versions of Oracle can do the same things (that's one reason why they have different versions). To give you the best answer for your version, we need to know what that version is.
    If you need to do different things, depending on whether t_variablen.wert_dat is 01-12-2010 or not, then use a CASE expression.
    I think you're looking for something like this:
    Insert into berichte
    (     brt_id,
         period_von_dat,
         period_bis_dat,
         status,
         stand_dat,
         brt_type,
         mpr_id,
         rpa_id
    SELECT  brt_seq.NEXTVAL,
         stand_dat,
         add_months ( stand_dat
                 , 1
                 ) - 1,
         ‘N’,
         add_months ( stand_dat
                 , 1
         ‘MPR’,
         mpr_id,
         rpa_id
    from     Berichte,
         t_variablen
    Where      berichte.stand_dat     = CASE
                               WHEN  t_variablen.wert_dat = TO_DATE ( '01-12-2010'
                                                      , 'DD-MM-YYYY'
                             THEN  ADD_MONTHS (t_variablen.wert_dat, -1)
                             ELSE  t_variablen.wert_dat
    And      t_variablen.lang_bez     = ’planstand’
    ;If stand_dat is a DATE, then you should only convert it to a string when you need to display it in a certain format.

Maybe you are looking for

  • Error while applying the patch 9909156

    while applying patch 9909156. I am getting jsp compilation errors in the patch log [1634474] !!COMPILATION ERROR(0) ibeCRgpPartnerPriCreate.jsp: this is similar MOS doc 579439.1 - Application Of Patch 5720979 Results In COMPILATION ERROR(0) ibeCOtdOr

  • How do I get rid of saved messages data on my phone?

    I have an iPhone that only has 8gb and I'm in desperate need of space until I'm able to upgrade. When I look at Usage, it says I have 1.8gb of saved messages. I deleted all the threads and rebooted but the data hasn't gone away. I also have a MacBook

  • My imac takes 20 min to boot

    since I've installed lion and ios5 my imac takes 20-30 mins to boot! help!

  • CRM 5.0 E-Commerce B2B Internet Sales Pricing Not Working

    We have configured a demo of B2B Internet Sales using SAP Best Practices Building Blocks (C14) along with other CRM building blocks. Pricing in CRM through CIC Web client is working properly. In Internet Sales, no pricing appears in the catalog or in

  • Customer Collateral for O&G industry for CRM Downstream

    Can anyone provide me some details on CRM implementation on Siebel for O&G downstream in areas such as retail and commercial. We are trying to sway a client on SAP CRM to move to any flavor of Oracle CRM and not limited to Siebel. The client is a who