cancel
Showing results for 
Search instead for 
Did you mean: 

Customize portal Web Service Response

Former Member
0 Kudos

Greetings,

Recently I've ran into a requirement to provide some web service to third party vendor, which requires specific XML request and response structure. I am developing the web service based on SAP Portal (7.0) and it is exposed to outside world with a web dispatcher.

When I edit the WS Virtual Interface (VI) I am able to call input parameters according to vendor requirements without any problem, but there is no option (at least in the editor) to rename export parameters. For instance, I have an "Attendee" Java class with several parameters that will be inside the response, and "firstName" field should be called "first-name" in the response structure.

Is there any way to do so?

Thanks in advance,

Ivan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ivan,

I haven't worked with Java VI's but I can offer a suggestion based on how I've seen it work on the Abap stack...

If you refere to this guide:

[http://www.google.co.za/url?sa=t&source=web&cd=10&ved=0CGEQFjAJ&url=http%3A%2F%2Fsapforum.biz%2Findex.php%3Faction%3Ddlattach%3Btopic%3D1785.0%3Battach%3D2548&ei=l7Q_TtaTNMXirAfQsOzwDw&usg=AFQjCNFvHGrQdDgBts8kGHUhiklMIssDvA]

You'll notice that in order to change the export parameters you need to make a copy of the exporting node & then re-name the copied structure parameters. You'll then need to reference the copied structure in your exporting node. This may not work for Java VI's of course, but it might be s starting point for you to start looking.

The third party vendor is dictating what you as the provider should do?? The world is changing as we know it

Regards, Trevor