Topic
15 replies Latest Post - ‏2014-01-13T11:48:46Z by dp_techdev
GuruAthani
GuruAthani
13 Posts
ACCEPTED ANSWER

Pinned topic WSRR -schema validation ..how to fetch internally referred xsd's?

‏2013-12-02T10:26:39Z |

Hi,

I am trying to fetch a schema file from the wsrr so i am using content graph query http://WSRRHOST:PORT/WSRR/7.5/Content/bsruri in the validate action. but i am getting error saying unable to fetch internally reffered xsd. Do we have any solution for this ?

 

Thanks

Guru

 

 

 

  • OswaldoGago
    OswaldoGago
    27 Posts
    ACCEPTED ANSWER

    Re: WSRR -schema validation ..how to fetch internally referred xsd's?

    ‏2013-12-02T15:57:13Z  in response to GuruAthani

    Hi Guru,

    If you have created a WSRR Server object in DataPower, and you know the bsrURI of your .xsd that is store in your WSRR Server, then you should be able to reference the XSD in your validate action like this:

    wsrr://<mywsrr>/<bsrURI>/ 

    where
      <mywsrr> is the name of the DataPower WSRR Server object,
      <<bsrURI> is the xsd's bsrURI
     

    Do note the / at the end of the expression, if you leave it out it will not find it.

    • This reply was deleted by GuruAthani 2013-12-03T11:46:34Z. Reason for deletion: duplicate
    • GuruAthani
      GuruAthani
      13 Posts
      ACCEPTED ANSWER

      Re: WSRR -schema validation ..how to fetch internally referred xsd's?

      ‏2013-12-03T11:09:01Z  in response to OswaldoGago

      Hi Oswaldo,

      Thanks for the reply.

      I have tried this option, I am getting error related to namespace, I am declaring a targetnamespace in main xsd as "urn:com.namespace_main.com" and for the referenced xsd(ex sample.xsd) i am delcaring namespace as "http://namespace_inside", using targetnamespace. Though it is valid scenario and working locally.

      below is the error message what i am getting

      Fatal Error at http://WSSER_SERVER/Content/BSRURI/sample.xsd:2: Resource 'http://WSRR_SERVER/Content/BSRURI/sample.xsd:2' was imported/included with target namespace 'http://namespace_inside', but declares namespace 'urn:com.namespace_main.com'.

       

      Thanks

      Guru

       


       

       

      • OswaldoGago
        OswaldoGago
        27 Posts
        ACCEPTED ANSWER

        Re: WSRR -schema validation ..how to fetch internally referred xsd's?

        ‏2013-12-03T15:53:11Z  in response to GuruAthani

        Hi Guru,

        Could you attach your xsd to this post so we can try to see the error?   Also, what version of WSRR are you using?

        Thanks,

        OG

        • GuruAthani
          GuruAthani
          13 Posts
          ACCEPTED ANSWER

          Re: WSRR -schema validation ..how to fetch internally referred xsd's?

          ‏2013-12-09T09:41:20Z  in response to OswaldoGago

          hi OswaldoGago,

          Sorry for the delay in the reply,

          Please find the attached xsd files as well as datapower logs captured.

           

          Thanks

          Guru

          Attachments

          • GuruAthani
            GuruAthani
            13 Posts
            ACCEPTED ANSWER

            Re: WSRR -schema validation ..how to fetch internally referred xsd's?

            ‏2013-12-10T10:58:51Z  in response to GuruAthani

            Hi OswaldoGago,/Hermann,

            Need your help to resolve this. I am using WSRR with version 7.5.

             

            Thanks

            Guru

            • OswaldoGago
              OswaldoGago
              27 Posts
              ACCEPTED ANSWER

              Re: WSRR -schema validation ..how to fetch internally referred xsd's?

              ‏2013-12-14T02:28:50Z  in response to GuruAthani

              Hi Guru Athani,

               

              Can you show me how you have the validate action configured?  The logs you pasted still show an http:// content query.  I have attached mine for reference.

              The my-server-801 is my Datapower WSRR Server object.  The bsrURI is for sample.xsd and it has a / at the very end.

              Attachments

              • dp_techdev
                dp_techdev
                44 Posts
                ACCEPTED ANSWER

                Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                ‏2013-12-14T16:51:01Z  in response to OswaldoGago

                Hi Guru

                What i understand from your post you are trying to fetch the xsd from wsrr which has reference to another xsd's(include or import) .

                try this way.. http://WSRRHOST:PORT/WSRR/7.5/Content/bsruri?type=relative.

                ?type=relative will resolve all the internal references.

                Thanks

                 

              • GuruAthani
                GuruAthani
                13 Posts
                ACCEPTED ANSWER

                Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                ‏2013-12-16T09:43:08Z  in response to OswaldoGago

                Hi OswaldoGago

                I have attached a screen shot showing how i configured wsrr object and validate action and along with screen shots.

                 

                Thanks

                Guru

                Attachments

                • OswaldoGago
                  OswaldoGago
                  27 Posts
                  ACCEPTED ANSWER

                  Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                  ‏2013-12-16T16:13:56Z  in response to GuruAthani

                  Hi Guru,

                  I think the problem may be your SOAP url for the WSRR Server.  Your note says it is:

                  http://HOST:PORT/WSRRCoreSDO/Services/WSRRCoreSDOPort

                  I think it should be:

                  http://HOST:PORT/WSRRCoreSDO/services/WSRRCoreSDOPort

                  Note that 'services' in not capitalized.  I modified mine to match yours and I get the same error as you did.

                   

                  • GuruAthani
                    GuruAthani
                    13 Posts
                    ACCEPTED ANSWER

                    Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                    ‏2013-12-17T12:03:56Z  in response to OswaldoGago

                    Hi OswaldoGago,

                    I changed the SOAP URL for the wsrr server configuration, now it looks good.  But i see some other error now.

                    I am not getting any error when i do it locally through DP box. I am attaching xsd's(sample.xsd is main xsd), request msg and error screen shot.

                    We are using firmware XI50.4.0.2.0, is your firmware version is also same ?

                     

                    Thanks

                    Guru

                    • OswaldoGago
                      OswaldoGago
                      27 Posts
                      ACCEPTED ANSWER

                      Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                      ‏2013-12-17T13:59:13Z  in response to GuruAthani

                      I tried it with my DataPower version 6.0.1 and it validated without any problems.  Try to flush your cache to see if that helps.

                      • GuruAthani
                        GuruAthani
                        13 Posts
                        ACCEPTED ANSWER

                        Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                        ‏2013-12-23T05:45:02Z  in response to OswaldoGago

                        Hi,

                        I tried after stylesheet flushing, but getting same error as well.

                        Thanks

                        Guru

                        • OswaldoGago
                          OswaldoGago
                          27 Posts
                          ACCEPTED ANSWER

                          Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                          ‏2014-01-06T23:01:31Z  in response to GuruAthani

                          Hi Guru. 

                          Try restarting the domain, I did not have any problems.

                          OG

                          • GuruAthani
                            GuruAthani
                            13 Posts
                            ACCEPTED ANSWER

                            Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                            ‏2014-01-13T09:46:46Z  in response to OswaldoGago

                            Hi OswaldoGago

                            We upgraded firmware to Firmware:XI50.5.0.0.11, but still we are facing some issue. Attached the screen shot of the error where party.xsd is one of the internally referred xsd for the main xsd as well.

                            Thanks

                            Guru

                             

                             

                            Attachments

                            • dp_techdev
                              dp_techdev
                              44 Posts
                              ACCEPTED ANSWER

                              Re: WSRR -schema validation ..how to fetch internally referred xsd's?

                              ‏2014-01-13T11:48:46Z  in response to GuruAthani

                              Hi Guru

                              Have you tried the option which i posted in this thread ? If not try that it will work.

                              Thanks