Topic
  • 11 replies
  • Latest Post - ‏2013-05-21T11:08:55Z by kenhygh
etj
etj
108 Posts

Pinned topic Cannot see file in visible domain

‏2013-05-20T17:43:44Z |

Cannot see file in visible domain...

I've created a domain to hold Niem schema files and have added that Niem domain to two other domains on the datapower XI50 (to make the Niem domain visible).  For some reason, from the other domains I can't read the Niem files, but I can see them listed in proper directories.

My firmware is 5.0.0.1

Any ideas ?

I've also tried to access the Niem schema files from a wsdl in one of the other domains  (using import) .I cannot read the schema file.

Thanks,

El

 

 

  • kenhygh
    kenhygh
    2087 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T17:57:35Z  

    How are you trying to read them?

  • etj
    etj
    108 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T18:47:52Z  
    • kenhygh
    • ‏2013-05-20T17:57:35Z

    How are you trying to read them?

    1. trying to read it from the directory listing.

    2. trying to access it from the wsdl with an import

    Niem:///niem2.0/ansi-nist/2.0/ansi-nist.xsd

  • kenhygh
    kenhygh
    2087 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T18:54:57Z  
    • etj
    • ‏2013-05-20T18:47:52Z

    1. trying to read it from the directory listing.

    2. trying to access it from the wsdl with an import

    Niem:///niem2.0/ansi-nist/2.0/ansi-nist.xsd

    Niem:/// cannot possibly work. Try local:///

    from the non-Niem domain, go into files and see what it looks like, and use that name, e.g. local:///niem2.0/ansi-nist/2.0/ansi-nist.xsd

     

  • etj
    etj
    108 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T18:59:12Z  
    • kenhygh
    • ‏2013-05-20T18:54:57Z

    Niem:/// cannot possibly work. Try local:///

    from the non-Niem domain, go into files and see what it looks like, and use that name, e.g. local:///niem2.0/ansi-nist/2.0/ansi-nist.xsd

     

    According to this info, I use domain name instead of local...

    local:
    This directory contains miscellaneous files that are used by the services within the domain, such as XSL, XSD, and WSDL files. Each application domain contains one local: directory. This directory can be made visible to other domains. When viewed from other domains, the directory name changes from local: to the name of the application domain.

    from link...

    https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/DataPower

  • etj
    etj
    108 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T19:03:08Z  

    Then I tried this...

    local:///Niem/ansi-nist.xsd

    There was an error while reading WSDL 'local:///RAPInquiryService.wsdl'.
    Error: Error opening URL 'local:///Niem/ansi-nist.xsd'

  • etj
    etj
    108 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T19:09:23Z  

    Also tried this...

    Unable to open URL 'Niem:///ansi-nist.xsd'

  • kenhygh
    kenhygh
    2087 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T19:35:35Z  
    • etj
    • ‏2013-05-20T19:03:08Z

    Then I tried this...

    local:///Niem/ansi-nist.xsd

    There was an error while reading WSDL 'local:///RAPInquiryService.wsdl'.
    Error: Error opening URL 'local:///Niem/ansi-nist.xsd'

    So, the opening of 'local:///Niem/ansi-nist.xsd worked. Now you'll need to go into that XSD and fix its include of 'local:///RAPInquireService.wsdl'

    Probably to something like 'local:///Niem/RAPInquireService.wsdl'.

     

  • etj
    etj
    108 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T19:42:36Z  
    • kenhygh
    • ‏2013-05-20T19:35:35Z

    So, the opening of 'local:///Niem/ansi-nist.xsd worked. Now you'll need to go into that XSD and fix its include of 'local:///RAPInquireService.wsdl'

    Probably to something like 'local:///Niem/RAPInquireService.wsdl'.

     

    No, I have not been able to see the file in the Niem domain no matter how I try to access it.

  • kenhygh
    kenhygh
    2087 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T19:48:01Z  
    • etj
    • ‏2013-05-20T19:42:36Z

    No, I have not been able to see the file in the Niem domain no matter how I try to access it.

    well, that error message seems to say that something worked.

    Can you attach a screenshot of your File Management with the twisties opened up to see ansi-nist.xsd? from the other, failing domain?

    k

  • etj
    etj
    108 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-20T21:55:04Z  
    • kenhygh
    • ‏2013-05-20T19:48:01Z

    well, that error message seems to say that something worked.

    Can you attach a screenshot of your File Management with the twisties opened up to see ansi-nist.xsd? from the other, failing domain?

    k

    Can't do it by directly referencing file...

    http://www.redbooks.ibm.com/redbooks/pdfs/sg247901.pdf

    see Cross Domain File Visibility

     

    Would have to copy into the "using" domain.

  • kenhygh
    kenhygh
    2087 Posts

    Re: Cannot see file in visible domain

    ‏2013-05-21T11:08:55Z  
    • etj
    • ‏2013-05-20T21:55:04Z

    Can't do it by directly referencing file...

    http://www.redbooks.ibm.com/redbooks/pdfs/sg247901.pdf

    see Cross Domain File Visibility

     

    Would have to copy into the "using" domain.

    Wow, I thought I'd seen this at a customer's. Good catch.

     

    If you still have a lot of domains that will want to share a core set of files, you can create a service in a single domain that contains the files, and then reference them via an http:// url to that service.

    For example:

    SharedDomain has an XMLFW listening on :12345 that accepts requests such as GET /foo.wsdl, and

    Domain1 references http://127.0.0.1:12345/foo.wsdl

     

    This may be more work than you really want to do, depending on how many domains you want to have sharing files.

    k