Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
9 replies Latest Post - ‏2015-04-30T13:43:43Z by NILAY97
smashyrahul
smashyrahul
377 Posts
ACCEPTED ANSWER

Pinned topic Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

‏2013-03-28T12:53:12Z |
Hello Experts,

During the validation step, I am getting below error in datapower.

==> Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

What might be the reason for the same?

Thanks,
Rahul
Updated on 2013-03-28T15:06:14Z at 2013-03-28T15:06:14Z by smashyrahul
  • kenhygh
    kenhygh
    1461 Posts
    ACCEPTED ANSWER

    Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

    ‏2013-03-28T13:11:14Z  in response to smashyrahul
    Your datapower box is not connected to the Internet.

    Ken
    • smashyrahul
      smashyrahul
      377 Posts
      ACCEPTED ANSWER

      Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

      ‏2013-03-28T13:37:12Z  in response to kenhygh
      Hi Ken,

      Thanks for your response.

      yes, I guessed so. I will now copy the schema.dtd to local and then test again.

      Cheers,
      Rahul
      • smashyrahul
        smashyrahul
        377 Posts
        ACCEPTED ANSWER

        Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

        ‏2013-03-28T15:06:14Z  in response to smashyrahul
        My issue has been resolved after copying the schema file on local.

        Cheers,
        Rahul
        • stephaneuh514
          stephaneuh514
          1 Post
          ACCEPTED ANSWER

          Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

          ‏2014-04-16T19:33:51Z  in response to smashyrahul

          Hi,

          I have the same kind of issue, I don't know why datapower is trying to get: http://www.w3.org/2001/XMLSchema.dtd, because I'm not using DTDs.

          But anyway, where did you put: XMLSchema.dtd, direcly on local:/// or is there a specific place?

          Thanks,

  • D_Sweta
    D_Sweta
    14 Posts
    ACCEPTED ANSWER

    Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

    ‏2015-04-30T09:35:52Z  in response to smashyrahul

    Hello,

    I have a requirment where I have MQ FSH and I have to send XML message to backend.I am doing a url-open to connect to the HTTP url.But,even before reaching the destination,my request is failing at validation with HTTP Response code as 400.

    Below is the error I am getting:


    1:51:55 PM network error 39158537 request    0x80e00041 mpgw (mpgwAdd): url-open: Error parsing response from 'http://******Exclusions/'
    1:51:55 PM xmlparse error 39158537 request    0x80e00001 mpgw (mpgwAdd): Could not open URL 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
    1:51:55 PM network error 39158537      0x80e00059 Could not resolve host for 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
    1:51:55 PM network error 39158537      0x80e00048 xmlmgr (mpgwAdd_XML_MGR): DNS Callback cannot resolve host 'www.w3.org': returning error
    1:51:55 PM network debug 39158537      0x80e00536 HTTP Header-Retention:Compression Policy: Off, URL: /TR/xhtml1/DTD/xhtml1-transitional.dtd
    1:51:55 PM network debug 39158537      0x80e003ca xmlmgr (mpgwAdd_XML_MGR): Attempting TCP connect to www.w3.org
    1:51:55 PM xmlparse debug 39158537 request    0x80e003a8 mpgw (mpgwAdd): Parsing external reference 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
    1:51:55 PM xmlparse debug 39158537 request    0x80e003a6 mpgw (mpgwAdd): Parsing document: 'http://******Exclusions'
    1:51:55 PM network debug 39158537 request    0x80e0039e mpgw (mpgwAdd): url-open: response code 400
    1:51:55 PM network info 39158537      0x80e0015b HTTP response code 400 for http://******Exclusions

    1:51:55 PM network debug 39158537 0x80e00159 Outbound HTTP on new TCP session using HTTP/1.1 to http://******Exclusions
    1:51:55 PM network debug 39158537 0x80e00536 HTTP Header-Retention:Compression Policy: Off, URL: /Exclusions

     

    I did a TCP connection test from DP appliance to www.W3.org and it failed.So does it confirm that DP cant connect to this site in any way?

    And even if I download this dtd file and place it under the same folder as my request xslt and then give referance to it from my xml block as below: <!DOCTYPE note SYSTEM "xhtml1-transitional.dtd">,its throwing illiegal character error. So how Can I use it from local?

     

    Thanks in Advance!

     

    Updated on 2015-04-30T09:37:48Z at 2015-04-30T09:37:48Z by D_Sweta
    • NILAY97
      NILAY97
      207 Posts
      ACCEPTED ANSWER

      Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

      ‏2015-04-30T10:42:59Z  in response to D_Sweta

      Sweta,

      Your box is not connected to internet for sure. Did you place the copy of .dtd in your application domain or default domain. Try storing this in local dir of default domain and let me know if this works.

      Thanks,

      Nilay

      • D_Sweta
        D_Sweta
        14 Posts
        ACCEPTED ANSWER

        Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

        ‏2015-04-30T13:18:55Z  in response to NILAY97

        Hi Nilay,

        I had kept it in application domain.But I checked in default domain too its present under the domain folder.

        Ideally speaking,Datapower should not try to validate the request going to the backend.Its the provider who should validate it and send the results to Datapower.I dont understand why Datapower is even trying to connect to this url and doing the validation.

         

        Cant we stop this in any way?

         

        • HermannSW
          HermannSW
          4488 Posts
          ACCEPTED ANSWER

          Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

          ‏2015-04-30T13:42:42Z  in response to D_Sweta

          Please attach a request and service export here (or create a PMR).
          Without it is not possible to tell what is responsible for reaching out to www.w3.org.

          Just storing the file locally is not enough, if it is referenced in a Schema you will have to add  @schemaLocation  attribute to give a hint where you stored the file. Btw, DataPower ships a file "store:///schemas/XMLSchema.dtd" ...


          Hermann.

           

        • NILAY97
          NILAY97
          207 Posts
          ACCEPTED ANSWER

          Re: Unable to retrieve http://www.w3.org/2001/XMLSchema.dtd.

          ‏2015-04-30T13:43:43Z  in response to D_Sweta

          Does the default domain has your application domain under its visible domains list?

          Thanks,

          Nilay