Do SMP3.0 supports JSON based RESTful services exposed via JBOSS server??

Hi All,
We are working on a PoC for a customer to consume JSON based RESTful (exposed via JBOSS Server) service from SMP 3.0. We were not able to get the DataSet. the below are the steps which we performed and the respective result.
1) Created a SMP Application - Able to ping the application with the base URL
2) Tested the connections - Able to create a Registration using Firefox POSTMAN client
3) Data Consumption from the service - We are not able to get the response for the service when we try the same via SMP,but we are able to get the data when we try the REST service URL directly from the browser.
How do we achieve this? Do SMP3.0 support JSON based RESTful service? Can Integration Gateway Help?
Thanks, Prem

hi Jitendra,
attached are the screen shots of both SMP service from postman we tried and the original service from the browser.
1- postman ping for SMP URL and header says success.
2- Response body with entity set structure and empty data there is no data inside the collection named "Connection" as well and if i call this i fails with 501, that not implemented, so i guess SMP3 is unable to create the entity set out the JSON REST services while converting it into Odata service internally.
3- i can view data if run directly the REST service from browser.

Similar Messages

  • Does DII support document based web service?

    Hi,
    I am writing a web service cleint DII, the web service is document based. I followed the sample in
    https://bpcatalog.dev.java.net/nonav/soa/standalone-client/
    Everything seems correct. When I call call.invoke, I got an exception saying "operation style: \"document\" not supported".
    Here is the code fragment, can anyone tell me what's wrong or does DII support document based service?
    Thanks a lot!
    Y. Zhao
    try {
    ServiceFactory factory = ServiceFactory.newInstance();
    service = factory.createService(new QName(EXTRACTURLSERVICE));
    port = new QName(EXTRACTURLPORT);
    } catch (Exception se) {
    // throw new Exception("Can not create stock service: " + se.getMessage());
    _endPointAddr = "http://www.atomic-x.com/xmlservices/HyperlinkExtractor.asmx";
    _qnameNamespaceURI = new QName("ExtractUrl");
    requestQname = new QName(NAMESPACE_URI, "ExtractUrl");
    responseQname = new QName(NAMESPACE_URI, "ExtractUrlResponse");
    Call call = null;
         try {
    call = service.createCall(port);
    call.setTargetEndpointAddress(_endPointAddr);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY,
    Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "http://www.atomic-x.com/xmlservices/HyperlinkExtractor/ExtractUrl");
    call.setProperty("javax.xml.rpc.encodingstyle.namespace.uri", "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "literal");
    call.addParameter("parameters", requestQname, ExtractUrl.class, ParameterMode.IN);
    call.setReturnType(responseQname, ExtractUrlResponse.class);
    result = (ExtractUrlResponse)call.invoke((Object[])params);
         } catch (Exception ex) {
    //throw new ServiceException("Can not get service: " + ex.getMessage());
    String msg = ex.getMessage();
    ex.printStackTrace();
         }

    There shouldn't be any restriction on the type of payload that's specific to DII.
    I did come across a similar message, but I found the cause back in the WSDL rather than the client code. Have a look at the WSDL and see if it mentions "RPC" meaning the web service is making available a remote procedure call interface.

  • RESTful Service: Expose BLOB file inside DB as RESTful service ??

    Hello,
    With Oracle Cloud we can expose the Data as RESTful Web Service, but how about exposing BLOB... we need to generate a link for that file which is stored in the DB.
    To make it clearer:
    Two Tables:
    Properties (Property_ID number PK, Project varchar2(40), Property_number varchar2(20) ...)
    Images  (ID number PK, Property_ID number FK, content blob,
    mimetype varchar2(200), filename varchar2 (200), filesize varchar2 (200))And I would like to expose this query as RESTful :
    Select p.property_id, p.project, p.property_number, i.content
    from properties p inner join images i on (p.property_id = i.property_id)Usually we use: [url http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#CHDICGDA] apex_util.get_blob_file_src  , but that one should be called from a valid apex session !!!!! ( in that query "i.content" should give a link.)
    How can we do it ???
    Another point, since we expose the data as JSON:
    Suppose I have a property with 10 images, then it does not make sense to get 10 rows fro the same property just to give different image. I think we need another level (nested level) for images !!!
    I hope that my point is clear,
    Thanks in advance ....
    Fateh

    Hi Fateh -
    Good question. You would identify the source type as a Media Resource, and use an SQL statement with the primary key and the BLOB column. When you use Media Resource, you are essentially telling your Database Cloud Service not to marshall the data, just to send it - which is exactly what you are looking for.
    With this implementation, you would have to have a separate SQL call for each BLOB retrieval. However, you might be able to use a PL/SQL block as the end point for the RESTful Service and take care of multiple BLOB processing in the block.
    Hope this helps.
    - Rick Greenwald

  • Exposing rest services in custom managed server

    Hi everybody,
    I want to know how can expose the rest sevices for custom managed server which is created from webcenter custom portal template ????
    Thanks.

    I mean that once i deployed my custom webcenter portal (including web 2.0 services) into managed server. it is possible or not to manage potal services (documents, discussions ..) through rest api using thz following URL: http://myManagedServer:myPort/rest/api/resourceIndex ????

  • Calling JSON based RESTful endpoint from Java

    I have a scenario where I need to call a RESTful web service based on JSON response object from Java.
    And then make a web service for this Java program that I have made.
    Can any one please help me with this?
    Thanks

    If you would have typed 'Java RESTful' in Google the answer would have come to you in about 2 seconds.
    Read up about using the JAX-RS API.
    http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html

  • Timeout to Web Services using via Proxy Server

    Hello,
    I'm wondering if anybody can help.
    I have a couple of preset web services on the coldfusion web server. As far as I know these have never worked since it's original installation back in June 2011.
    Whenever I attempt to refresh one of the web services using CF administrator I am seeing the following error message:
    Unable to refresh webservice.
    Unable to read WSDL from URL: https://www.****.cfc?wsdl.
    Error: java.net.ConnectException: Connection timed out: connect.
    The server does not have a direct connection to the internet as it is connected to the internal company network which uses a proxy server for internet connectivity.
    I am suspecting that CF is attempting to connect to the internet without the knowledge of the proxy server.
    I have looked high and low but unable to locate anything in CF admin to add a proxy server.
    I'm hoping somebody can reply with a simple solution to fix the above.
    Many Thanks,
    Andy

    Andy, two things.
    First, the problem could be proxy-related, but I notice also that the URL has https. And in that you’re getting a connection timeout, it could be that the destination server (at that URL in the web service call) is set to only allow SSL calls (or perhaps even calls to that specific site, directory, or file) from a specific IP address. Try visiting that URL from a browser running ON THAT SERVER (where CF is installed). It does not good to test the URL from your local development workstation. That would not be the same IP address from which the request would come when run via CF.
    Second, as for specification of proxy info, here’s something to consider: the CF Admin interface showing web services is populated by a call from within CFML code (using CFINVOKE/cfobject/createobject) invoking that web service. If you can find the code that is really calling the web service, you should find that you can specify the proxy info there. See:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_i_10.html (cfinvoke)
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_m-o_14.html (cfobject)
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions-pt0_23.html (createobject)
    Note that with createobject, you do it using a new (for CF8) argstruct. See the docs there for more, or my blog entry:
    http://www.carehart.org/blog/client/index.cfm/2007/9/5/cf8_hiddengem_createobject_argstruc t
    Let us know if any of this helps.
    /charlie

  • Want to access RESTful Services through Java Program

    We are trying to access RESTful Services exposed by Oracle database cloud through our Java code, with authentication enabled for a particular user.
    Till now, we have completed below steps:
    1) We have a working account with Oracle database cloud (Username – xxx.xxx)
    2) We log in using the credentials for above account, and navigate to Oracle Apex ? SQL Workshop ? RESTful Services
    3) We create a new “RESTful Service Module” by filling out the details as below:
         Name:                                  SampleTest 
         URI Prefix:                            test
         URI Template:                       /getallemp
         Pagination Size:                    25 (kept to default)
         Required Privilege:                 TestGroupPrivilege
         Resource Handler Details:
                    Method:              GET
                    Source Type:      Query
                    Format:               JSON
                    Source:               select * from emp
    After creating the above module and testing it, it works fine and the data is retrieved in JSON successfully.
    The resulting URL for above RESTful Service Module is: https://<HOST_URL>/apex/test/getallemp
    Note that “TestGroupPrivilege” is a privilege assigned to the user group “RESTful Services” and the user “xxx.xxx” is a member of “RESTful Services” user group.
    4) We are unable to call the RESTful services from Java program. We are passing username and password in request header as basic authentication. But, we are getting: Error 500--Internal Server Error
    5) If we change the “Required Privilege” to default i.e. no privileges present on the module, we can get the response through Java code and everything works perfectly fine.
    Please suggest us in: How to access RESTful Services through Java code by passing user credentials in HTTP header for authentication. Also let us know if we have to do any settings through Apex, in case we are missing any.
    Message was edited by: NeerajGirolkar
    - When we are logging in to Oracle cloud on browser and execute the Oracle cloud RESTful service in another tab of same browser, we are able to get the result. But when executed the same RESTful service from a different browser or java program we get internal server error.
    - After investigation, we found that when user logs in to oracle database cloud, a cookie is set in browser with name s “OAMAuthnCookie_cstest-domo.db.us1.oraclecloudapps.com:443” and value as some random token. This cookie is passed in the subsequent requests to the RESTful Service calls when using same browser and as a result, we are able to get the results
    - In the Java program, we copied the same cookie with random token in the HTTP Request header and we got the proper response from REST APIs.
    - It seems that this cookie is created by an Oracle Middleware tool/server called as OAM – Oracle Accounts Manager, which sends the authentication token after successful authentication and creates the cookie.
    - We found that the cookie that OAM creates on authentication is exactly in the same format i.e. ‘OAMAuthnCookie_cstest-domo.db.us1.oraclecloudapps.com:443’. So, we are guessing that Oracle cloud uses OAM for authentication. Please refer to following link for same : http://docs.oracle.com/cd/E14571_01/doc.1111/e15478/sso.htm
    Can anyone please suggest:
    1.     How to provide authentication to Oracle Cloud REST APIs from java program?
    2.     How to pass the username and password in Java code to OAM (or how to communicate with OAM using Java) so that we can receive the unique token from OAM. We can use the token in the further requests? 3.     Also in Oracle cloud white papers , it is mentioned that they support OAuth2.0. But we didn’t find any URLs for same. Can anyone please confirm?
    Thanks
    ~ Neeraj Girolkar

    Hi Nilesh,
    We tried to connect to Oracle Cloud Database using the way you suggested above, but unfortunately it is not working as well.
    Can you let us know the authentication process with Oracle Cloud Database? We found in documentation that it uses OAM (Oracle Access Manager) for authentication. Can you tell us a bit about that? That will be extremely helpful.
    Thanks,
    - Neeraj

  • BLOB on RESTful service

    Hello,
    With Oracle Cloud we can expose the Data as RESTful Web Service, but how about exposing BLOB... we need to generate a link for that file which is stored in the DB.
    To make it clearer:
    Two Tables:
    Properties (Property_ID number PK, Project varchar2(40), Property_number varchar2(20) ...)
    Images  (ID number PK, Property_ID number FK, content blob,
    mimetype varchar2(200), filename varchar2 (200), filesize varchar2 (200))And I would like to expose this query as RESTful :
    Select p.property_id, p.project, p.property_number, i.content
    from properties p inner join images i on (p.property_id = i.property_id)Usually we use: [url http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#CHDICGDA] apex_util.get_blob_file_src  , but that one should be called from a valid apex session !!!!! ( in that query "i.content" should give a link.)
    How can we do it ???
    Another point, since we expose the data as JSON:
    Suppose I have a property with 10 images, then it does not make sense to get 10 rows fro the same property just to give different image. I think we need another level (nested level) for images !!!
    I hope that my point is clear,
    Thanks in advance ....
    Fateh

    Thanks for your try:
    We would identify the source type as a Media Resource, and use an SQL statement with the primary key and the BLOB column. When we use Media Resource, we are essentially telling APEX Service not to marshall the data
    http://www.oracle.com/technetwork/database/database-cloud/public/restful-wp-1844130.pdf
    Re: RESTful Service: Expose BLOB file inside DB as RESTful service ??

  • Unable to deploy a simple WCF REST service on IIS

    Hi,
    I have create a simple WCF based REST service in VS. I am able to run this in VS while deploying it in IIS 8.5 is really difficult. I am not able to do this. Everytime IIS gives 500 error and gives possible errors but not the actual one. Is there any document
    for web service (REST based WCF) deployment on IIS 8.5 which I can refer to.
    Regards,
    UmeshB

    Check if the below articles helps-
    RESTful WCF Architecture
    – Hosting RESTful WCF Services in IIS
    Walkthrough on creating WCF 4.0 Service and Hosting
    Also, where is BizTalk in your flow?
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • ADF Mobile: JSON support for REST services?

    Will the JSON format be supported for REST services using ADF Mobile? Is there a workaround for now that can be used?

    For now you can write a Java class to communicate with your JSON service, and expose it as a data control.

  • SMP3.0 Kapsel support for SOAP and REST services(not ODATA) and Symbian platfrom

    Dear Experts,
    Can we develop apps using Kapsel on SOAP and REST services?
    As phonegap supports Symbian platform, will Kapsel apps work on Symbian???
    Regards
    Srini
    7730801444

    I think you should reconsidering the Phonegap supports Symbian part.
    As Phonegap is based upon Cordova, PG basically supports what Cordova supports. Cordova dropped Symbian a while ago. The latest release does not support Symbian: Apache Cordova
    The Platform section does not mention Symbian, but does some "exotic" ones like WebOS, Tizen, FirefoxOS.
    Same for PG: PhoneGap API Documentation -> no Symbian
    Sure, PG 2.x listed Symbian, but 2.x is based on another architecture than PG 3 and Cordova 3. As Kapsel is a set of SAP plugins for Cordova 3, Kapsel needs Cordova 3.
    As long as Symbian is not in the list of platform Cordova runs on, there won't be Kapsel for Symbian.

  • Calling REST Services that accept JSON objects from BPEL Process

    Hi,
    I do have a requirement of calling RESTful service from the BPEL process (SOA Suite 11.1.1.5). The RESTful service accepts the payload as JSON object.
    I have gone through the documentation of HTTP binding through which we can call RESTful services from BPEL. But the payload option is coming as only XML.
    So just wondering whether BPEL has out-of-the box support for JSON object payloads when calling REST service? Please let me know if you have any pointers on this.
    Thanks & Regards
    S

    Hi Vijay,
    Thanks for the links Vijay.
    Went through the links and the documentation. From that i could see the only way is coming up with Java based proxy which takes care of XML to JSON conversion and calling the REST based service. This would actually need a java developer now :)
    Regards
    Siva

  • Passing json object to a ReST service - Biztalk 2010

    Hi,
    I need to call a ReST service, passing a json object to a ReST service from BizTalk 2010. ( PUT operation)
    I am able to call a ReST service with 'http://xxx.com/xx/geterporders/param1/' from BizTalk 2010.
    Regards,
    Sharmishtha

    Nice idea shared by Leonid Ganeline. Refer: Biztalk
    2010 Json and REST
    In support, you can refer this link Xml
    to Json pipeline component (DotNetTypesToJsonConverter.cs)
    You can send out a Json Message to an external endpoint, one of the solution for this is to create a new pipeline component and use the Newtonsoft
    Json libraries JsonConvert.SerializeObject method to convert the xml stream into an object
    and generate a json string.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • OBPM BPM Studio support for SOAP 1.2 based Proxy services (OSB)

    Hi,
    I tried to import proxy services from OSB (as external resource). The proxy service is based on the SOAP 1.2 WSDL standard. When BPM studio introspective SOAP1.2 based proxy services, it is givng the following warninigs. Bacause of this i am unable to create a service object. Please help.
    Regards,
    Pandu
    Introspecting...
    downloading /sbresource?PROXY/RoutingAndMessagingService/proxy/OnRampService
    parsing /sbresource?PROXY/RoutingAndMessagingService/proxy/OnRampService
    [Warning] unknown tag 'header' from 'http://schemas.xmlsoap.org/wsdl/soap12/'.
    [Warning] unknown tag 'header' from 'http://schemas.xmlsoap.org/wsdl/soap12/'.
    checking /sbresource?PROXY/RoutingAndMessagingService/proxy/OnRampService
    parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlmessages%2Futilityservices%2Froutingandmessagingservice%2FRoute
    analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlmessages%2Futilityservices%2Froutingandmessagingservice%2FRoute
    parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlheaders%2FHeaderSchema
    analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlheaders%2FHeaderSchema
    parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FHeaderTypes
    analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FHeaderTypes
    parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FSimpleTypes
    analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FSimpleTypes
    http://www.michaelpage.com/wsdltypes/common/SimpleTypesv1.0 compiled
    http://www.michaelpage.com/wsdltypes/common/HeaderTypesv1.0 compiled
    http://www.michaelpage.com/wsdlheaders/Headerv1.0 compiled
    http://www.michaelpage.com/wsdlmessages/utilityservices/Routev1.0 compiled
    [Warning] The binding 'OnRampServiceSOAP' with type 's2:OnRampServicePort'is unsupported. Components will not be generaded for this binding..
    'http://www.michaelpage.com/wsdl/utilityservices/routingandmessagingservice/OnRampServicev1.0/' was parsed.
    Analyzing dependecies for module 'WS.OnRampService'...
    Analyzing dependecies for module 'WS.OnRampService'...
    Analyzing Components
    Storing Instrospected Types
    Introspection completed. Errors: 0, Warnings: 3.

    Pandu,
    OBPM 10g doesn't support SOAP 1.2 binding.
    Edited by: 4dyomi on Nov 20, 2009 11:41 AM
    Edited by: 4dyomi on Nov 20, 2009 11:42 AM

  • HT3152 I have triple play cable service. Phone service is internet based. i pay monthly charge for cable provider modem. I also want to use modem for my Apple ipad2. Can I replace with another modem that will support internet based phone as well as ipad2?

    I have cable triple play service. Phone service ios internet based and depends on cable provider modem. I pay monthly charge for modem. I also want to use modem for ipad2. Is there any modem that can support both internet based phone as well as ipad2?

    If I understand you correctly, I have the same configuration.  My modem supports Internet and phone service and my television service bypasses the modem.  It does not do any routing.  It has a single Ethernet port and I plugged in an external router with a WiFi radio - Apple Airport Express.  Works like a champ.
    Configuration of the Express was difficult.  I had to plug it in to AC power and to the modem.  Then, I opened up Airport Utility and had to click "yes" for each recommendation.  Then I had to really think hard to come up with a WiFi password.  Took me a horrendous thirty seconds from start to finish!

Maybe you are looking for

  • Windows 7 install failing on brand-new Apple-replaced harddrive

    I just got my (8-week-old) computer back from Apple, with a brand new hard drive. Before restoring all my files, I figured I'd get Boot Camp installed so the partitions are set, etc. Every time I try, the Windows 7 install fails about 10% of the way

  • Changing Data in the Cells in webanalysis

    Hi Iam trying to change Data in the cells,in my report for the combination's which i didn't have data it is showing as (-99). according to my functionality '-99' means 'NO',my USER is asking instead of showing -99 it has to display 'NO'. I tried to c

  • Webdynpro components integration procedure

    Hi, Any Body give me the suggestion, how to integrate the diffrent components into the one project.Like Each programmer creating their own project under project different webdynpro component created. Finally , to integrate all the component in one on

  • How to resolve warning LNK4229: invalid directive '/comment:'

    I am using intel compiler 11.1 to compiler my code and use VS2008 to link the objs. here are the setup details: OS: Windows server 2008 R2 Compiler: Intel c++ compiler 11.1 (64bit) Linker: Microsoft linker provided by VS2008 SDK: v7.0A Following is t

  • Delete with variable name

    I need to run a SQL command in one of the step in my procedure where I need to run command like >>>> Delete from TableA where Column1 LIKE 'MY_VAR' but while running its not substituting the value of MY_VAR.....Any clue how can I run command like thi