Skip to Content
avatar image
Former Member

REST URL parameters syntax

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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

    Add comment
    10|10000 characters needed characters exceeded