Skip to Content
0

REST URL parameters syntax

Sep 26, 2017 at 05:47 AM

54

avatar image
Former Member

When we use SOAP UI 5.3 to test REST Service using the following parameters , we get correct response with complete structure.

For Example:

( parameter ?filter=status eq approved &count=true&select=*)

But the same URL with same parameters does not work in PO REST URL The

question for the experts--> , DOES PO7.5 REST adapter works differently because of spaces after 'status' and eq . In the audit log, I could see RESTOUT_HTTP_HEADER individually , but it does not show complete URL. Any suggestions to get this working correctly ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Sep 27, 2017 at 07:20 AM
0

Hello Prasad,
As you may know, according to W3C standards no spaces are allowed in URL string. SAP follows commonly accepted industrial standards, thus such URL format is not allowed. Moreover, I'd say that service with such URL routing rules cannot be considered as RESTful - https://en.wikipedia.org/wiki/Representational_state_transfer#Relationship_between_URL_and_HTTP_methods

As a possible workaround, you could just accept spaces by substituting them in query string as any browser does it (escaped as %20). But, I'd recommend to create the routing rules on the REST service and have "friendly" URLs - https://en.wikipedia.org/wiki/Semantic_URL

Best regards,
Vadym

Share
10 |10000 characters needed characters left characters exceeded