How to edit an existing service?

User offline. Last seen 18 weeks 9 hours ago. Offline
Joined: 04/10/2009
Points: 30
Groups: None

After creating a new service in "ServiceExplorer", how can I edit it?  Like, say I want to change the URL?  Or the output from a REST service changes?

0
Your rating: None

In both cases that you mentioned, you cannot edit the service for those updates. They change the fundamental "contract" of the service. You must remove the service and re-publish.

You can edit services for things such as changing access policies in Service Explorer.

Sara, technical writer/jackbe

 

User offline. Last seen 11 weeks 3 days ago. Offline
Joined: 02/12/2009
Points: 150
Groups: None

If you only care about the XML result, I don't think it matters if the result changes. i.e., you would not need to modify the registered/published service.  I do not populate the Sample JSON/XML parameter when registering an XML service. Thoughts?

michael.rollins's picture
User offline. Last seen 5 days 15 hours ago. Offline
Joined: 01/07/2009
Points: 201
Groups: None

In line with this thread, I have a database service.  Let's say I add a stored procedure to the database, do I need to remove and republish the service in order to obtain the new endpoint that corresponds with the new stored procedure?  What if I change an existing stored procedure by altering the inputs?

With database services, you can simply publish a new service and select your new stored procedure as the artifact in the DB for that service. The "service" doesn't necessarily cover the full scope of the database -- in fact it is generally a good idea to limit each service to much smaller pieces. One table, one view, and so on. This makes the services smaller, with more focused operations. Much easier for users to understand.

With stored procedures, they create an operation for the service. I believe that if the signature for the stored procedure changes you need to delete the existing service and re-publish in order to recognize the difference in the operation.

Sara, technical writer/jackbe

 

ljschrenk's picture
User offline. Last seen 7 weeks 22 hours ago. Offline
Joined: 10/13/2008
Points: 62
Groups: None

Along this same line:

We have a service that is already registered as REST with one OID of getData.  There are several inputs, some of which have a default value.  I can see which inputs have a default value set when running getServiceNSD from /presto/invokeRds.jsp.  I want to remove the defaultValue for just one of the inputs but have no idea how.  I do not want to have to re-register this service.  Is this possible?

Thanks in advance.
Lisa

girish's picture
User offline. Last seen 6 days 17 hours ago. Offline
Joined: 09/22/2008
Points: 70
Groups: None

Hi Lisa,

currently we do not allow editing of service definition once the service is registered since the service definition is a contract between an application that uses this service and the actual service.  So, in this case, you would have to delete the service and re-register it again with default input.

In future, we are planning to address this using service versioning.

- Girish@JackBe