Skip to Content

SMP IGW Rest service tool issue

Hi,

I am building an Odata model for a rest service

Rest Service is URI:

http://localhost:8080/javaservice/webresources/notification

The above service is a POST service hence I wanted to create a "Create" connection in the Odata model using custom coding.

The SMP version is 3.0 SP06 and using Eclipse Kepler for OData modeling and the Api toolkit for SMP version is 1.4.1.

With the above information following are the 2 errors that I am seeing

1. When creating the OData model in Eclipse if I select "Target runtime as SP06" then when the Model is created and I perform "Select Data Source" and select "Rest Service" as data source and select "Create" then Finish button gets disabled and shows "Operation is not supported". But if the Target runtime is SP07 then it allows.

I have followed Carlos Roggan's blog and not sure why for SP06 its not allowing me to do a "Create" operation.

Integration Gateway: Understanding REST data source [9]: CREATE operation

2. For now I have created a Odata model for the above rest webservice using "Query" operation and added the Service as a Endpoint to SMP application.

SMP Hybrid Application Endpoint URL is :

https://shbsm2.groupc.net:8083/gateway/odata/SAP/RESTSERVICETEST;v=3

When I am trying to access the Odata model using the below URL via POST

http://localhost:8087/com.lehigh.test/NotificationObjSet

or

http://shbsm2.groupc.net:8087/com.lehigh.test/NotificationObjSet

I have passed necessary headers

Authorization

X-SMP-APPCID

X-CSRF-Token

Along with the POST payload. The SMP does the authentication and its successful but after that doesnt connect to the above service and gives and error response "403 Access to the specified resource has been forbidden."

Any suggestions will be helpful.

Regards,

Amit

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 04, 2015 at 09:49 AM

    Hi Amit,

    1) With latest release SMP3 SP07 server, SMP supports full CRUD on REST data source. Till SMP3 server SP06 only query and read were supported. Read here

    2).How come you doing a POST for Query operation? I don't get it.

    <<Please hide all your company related info host name, ip address>>

    Upgrade to SP07 to take advantage of full features of REST services.

    Regards,

    JK

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.