Topic
4 replies Latest Post - ‏2012-10-26T17:55:36Z by SystemAdmin
SystemAdmin
SystemAdmin
6772 Posts
ACCEPTED ANSWER

Pinned topic WSRR Query to get content of the file based on parameters/classifications.

‏2012-10-24T18:20:48Z |
Hi , I am trying to get the content of a xml/WSDL file from the WSRR.

I can use "http://localhost:9080/WSRR/7.0/Content/bsrURI", where the bsrURI is of the Xml/WSDL Document.

But i need pick the file based on Classification , say like we have one XML/WSDL Doc classified as DEV , QA and Prod

Now I am using Two Query's to WSRR,
1) to get the bsrURI of the file based on the classification
2)us the bsrURI too get the content.

My quetsion:- Can we combine them to single Query?
Updated on 2012-10-26T17:55:36Z at 2012-10-26T17:55:36Z by SystemAdmin
  • OswaldoGago
    OswaldoGago
    20 Posts
    ACCEPTED ANSWER

    Re: WSRR Query to get content of the file based on parameters/classifications.

    ‏2012-10-24T21:06:46Z  in response to SystemAdmin
    Hi,

    I do believe it is possible to do both in one single REST GraphQuery.
    http://publib.boulder.ibm.com/infocenter/sr/v6r3/topic/com.ibm.sr.doc/rwsr_rest.html

    Says the Content API accepts only a <bsrURI> to uniquely identify the document you are retrieving.
    • OswaldoGago
      OswaldoGago
      20 Posts
      ACCEPTED ANSWER

      Re: WSRR Query to get content of the file based on parameters/classifications.

      ‏2012-10-25T15:31:27Z  in response to OswaldoGago
      Correction to my previous post:

      Hi,

      I do not believe it is possible to do both in one single REST GraphQuery.
      http://publib.boulder.ibm.com/infocenter/sr/v6r3/topic/com.ibm.sr.doc/rwsr_rest.html

      Says the Content API accepts only a <bsrURI> to uniquely identify the document you are retrieving.
  • SystemAdmin
    SystemAdmin
    6772 Posts
    ACCEPTED ANSWER

    Re: WSRR Query to get content of the file based on parameters/classifications.

    ‏2012-10-26T10:15:55Z  in response to SystemAdmin
    This type of functionality has been added in WSRR v8.0 and is documented in the Info Centre here:

    http://pic.dhe.ibm.com/infocenter/sr/v8r0/topic/com.ibm.sr.doc/rwsr_rest_retrieving_query.html

    An example of this is:

    http[s]://hostname:port/WSRR/8.0/Content?query=/WSRR/WSDLDocument&errorOnMultiple=true

    This will run the query and then return the content, ie the WSDL document that the query identifies. If there are more that 1 results returned from the query then the document from the first result will be returned. If the errorOnMultiple flag is set an error will be returned if more that 1 result is returned from the query.

    As this has only been added in WSRR v8.0 if you are using an earlier version of WSRR then the only way to perform the same functionality is as you are doing, by using 2 queries.
    • SystemAdmin
      SystemAdmin
      6772 Posts
      ACCEPTED ANSWER

      Re: WSRR Query to get content of the file based on parameters/classifications.

      ‏2012-10-26T17:55:36Z  in response to SystemAdmin
      This would work with WSRR 7.5 too

      Regards,
      Salla