cancel
Showing results for 
Search instead for 
Did you mean: 

How to Write IGW Custom code

Former Member
0 Kudos

Experts,

We are developing Enterprise level Ios application we have challenge of converting Non-Sap services to Odata Services.

Have configured plugin in Eclipse and create data model.

Since we have input parameters as Mandatory from my previous post Experts has suggested me for writing in Custom code.

After Deploying when im trying to hit Odata URL with collection Name it's giving error as HTTP-500.

for reference PFB image of data model ,Soap UI ,Custom Code.

Thank you

Regards

Sandeep p

Tags edited by: Jitendra Kansal (Moderator)

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sandeep,

I really wanted to try similar scenario using custom scripting feature but i couldnt find any publicly available WSDL having same tree. I suggest you to refer this guide posted by

Add  below logging code for troubleshooting

importPackage (com.sap.gateway.ip.core.customdev.logging);

  log.logErrors(LogMessage.TechnicalError, "This is first log"+message.getBody().toString());

You can find log details in SMP server log files.


It would be interesting to know how to handle parameter "Qualification" that is being passed in the body section as per SOAP UI screenshot. Please share your finding.


Regards,

JK

Former Member
0 Kudos

Dear Jitendra,

Added the code but couldn't see any log in Management cockpit.

Thank you.

Regards

Sandeep P

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Did you check server.log file ?  Admin cockpit > logs> Log File

Former Member
0 Kudos

Hi ,

I didn't got anything in my log file.

Alternatively my ABAP team is thinking to consume the SOAP services into ABAP and expose them as OData Services again. They are referring to the below url. Do you have any idea regarding this approach. Please advice.

http://scn.sap.com/docs/DOC-49811

Thanks & Regards,

Sandeep.