Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

POST Function Import in Gateway Builder

$
0
0

Hi everyone,

 

I am trying to create a new Function Import in SEGW transaction (Netweaver Gateway Builder).

I have followed different blogs (For example: Let’s code CRUDQ and Function Import operations in OData service!) and managed to create one.

 

However I am having 2 small differences:

1.  I am trying to make a Http POST Function Import which is a bit different in the way you call the service.

2. I have a parameter with type Edm.Guid.

 

I have not found any documentation about these 2 specific things.

 

Here is what I have...

 

My function and it`s parameters in SEGW:

FctImport.JPG

FctParam.JPG

My metadata:

FctMetadata.JPG

The URI I am trying with it`s payload:

 

/sap/opu/odata/sap/MY_SERVICE/AddTransferProducts

with

 

 

<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom=
"http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<atom:content type=
"application/xml">
<m:properties>
     <d:DocGUID>
guid’12345678-aaaa-bbbb-cccc-ddddeeeeffff’</d:DocGUID>
     <d:Products>R100000</d:Products>
</m:properties>
</atom:content>
</atom:entry>

 

 

With this setup I get the following error when I call the service: 404 not found

FctError.JPG

 

Anyone understands why it is not working ? Anyone already got this issue ?

 

Thank you very much.

Natalie


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>