cancel
Showing results for 
Search instead for 
Did you mean: 

WebIDE not pointing to Z gateway Service

Former Member
0 Kudos

Hello

I have created a  Z gateway service( on top of the standard sales order app service). Created a new extension of standard app in SAP WebIDE and called this new Z gateway service in "Component.js" file under "Service url variable".

Standard Service : SRA017_SALESORDER_CREATE_SRV

Z Gateway Service : ZTESTSRA017_SALESORDER_CREATE1_SRV

But when the sales order app is launched, i can see from chrome( F12) that the standard service is what is always called from the path

/sap/opu/odata/sap/SRA017_SALESORDER_CREATE_SRV/ and not the Z one.

IN SICF, this new Z service is also configured and ACTIVE and testing of this Z service works from backend, yet from the app always the standard service gets called? Why is this case?

Thanks

Abishek

Accepted Solutions (0)

Answers (5)

Answers (5)

AbhishekSharma
Active Contributor
0 Kudos

Hi Abishek,

Please have a look to below post.

Is there any changes in Virtual Host URL ?

Thanks-

Abhishek

Former Member
0 Kudos

Hi Abhishek

I will have a look into the link that you have posted. Any specific part u want me to focus on in that?

Also there have not been any changes to the virtual host url.

Thanks

Abi

AbhishekSharma
Active Contributor
0 Kudos

Hi Abishek,

Have a look to "Access Control" in HANA Cloud Connector.

Another thing is Destination part in HANA Cockpit.

Also I will suggest you to check Component.JS file ..

"ServiceConfig" is always get updated when ever you change any config from Cockpit.

http://scn.sap.com/thread/3778804

Thanks-

Abhishek

Former Member
0 Kudos

The  post url that is called is

I have another query, am using a trial version of SAP HCP. I configured WEBIDE in this. Is there any special settings that needs to be done for calling Z gateway services from HCP?

Thanks

Abishekk

Former Member
0 Kudos

no, the component.js is ok. Can you share the structure of your project directory in webide.

Former Member
0 Kudos

hello

please find the structure of the Z extension project.

Thanks

Abi

Former Member
0 Kudos

Hi Adem

It is exactly like you pointed out.

It was working fine a month ago. There has some updates in the backend system and after that it is not working. But the irony is when I test this Z service from backend it works perfectly fine.

It is only when i use the APP, the service called is the standard one and not the Z one.

Thanks

Abishek

Former Member
0 Kudos

Can you share how you replace the service of component.js.

It shold be like below;


  "sap.ca.serviceConfigs": [{

  "name": "SRA017_SALESORDER_CREATE_SRV",

  "serviceUrl": "/sap/opu/odata/sap/ZTESTSRA017_SALESORDER_CREATE1_SRV/",

  "isDefault": true,

  "mockedDataSource": "./localService/metadata.xml"

  }]

Former Member
0 Kudos

Hello

Any help would be greatly appreciated.

thanks

Abishek