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.
3 replies Latest Post - ‏2012-11-19T10:41:16Z by kenhygh
Daviiid
Daviiid
282 Posts
ACCEPTED ANSWER

Pinned topic url-open failed

‏2012-11-16T16:50:38Z |
HEllo

I try to access at this url (strange url, right) :

http:
//x02581pa:9126/us-web/services/demandeJeton?contexte=<?xml version="1.0" encoding="UTF-8"?> <FluPar xmlns:dpquery="http://www.datapower.com/param/query"><DonEttTec><VerEtt>001</VerEtt><IdeFlu>Flux de test</IdeFlu><TsEvt>2006-12-08 00.00.00.000</TsEvt><TyFlu>AUTHENTIFICATIO</TyFlu><UrgFlu>0</UrgFlu><CSec>0</CSec><CerPro>String</CerPro><Usn>SMAUSN</Usn><IdeEns>PACIFICA</IdeEns><EviExu>VALIDATION</EviExu><AplPrgCtuFlu>x</AplPrgCtuFlu><AplCbl>CONNEXION</AplCbl><IdeUtiCnn>x</IdeUtiCnn><PflUtiUsn>SMAPRO01</PflUtiUsn><NomUtiCnn/><PrnUtiCnn/><TypImp>LOCALE</TypImp><CmpDonEns/><Jtn/></DonEttTec><DonEttFon><VerFluFon>001</VerFluFon><EvtOriFlu/><IdeCliUsn/><IdeCliEns>CC11078488</IdeCliEns><IdePrpEns>00000195358EXP907</IdePrpEns><NatDos>CLIENT</NatDos><NatIdeDos>MUNA</NatIdeDos><IdeDos>CC11078488</IdeDos><IdeApp>PRODR01</IdeApp><LApp>SUuper Dupont</LApp></DonEttFon><DonMet><IdeUtiResOpEns>JCDADSLQRLP</IdeUtiResOpEns></DonMet></FluPar>


When i do that with my browser, it's ok. With SoapUI, ok. With Http client, OK. With a plugin in FireFox, it's ok. (it works with websphere message broker too!!)

But, in datapower, i have a strange error :

HTTP invalid response returned 505 HTTP Version Not Supported, from URL 
'http://x02581pa:9126/us-web/services/demandeJeton?contexte=<?xml version="1.0" encoding="UTF-8"?> <FluPar xmlns:dpquery="http://www.datapower.com/param/query"><DonEttTec><VerEtt>001</VerEtt><IdeFlu>Flux de test</IdeFlu><TsEvt>2006-12-08 00.00.00.000</TsEvt><TyFlu>AUTHENTIFICATIO</TyFlu><UrgFlu>0</UrgFlu><CSec>0</CSec><CerPro>String</CerPro><Usn>SMAUSN</Usn><IdeEns>PACIFICA</IdeEns><EviExu>VALIDATION</EviExu><AplPrgCtuFlu>x</AplPrgCtuFlu><AplCbl>CONNEXION</AplCbl><IdeUtiCnn>x</IdeUtiCnn><PflUtiUsn>SMAPRO01</PflUtiUsn><NomUtiCnn/><PrnUtiCnn/><TypImp>LOCALE</TypImp><CmpDonEns/><Jtn/></DonEttTec><DonEttFon><VerFluFon>001</VerFluFon><EvtOriFlu/><IdeCliUsn/><IdeCliEns>CC11078488</IdeCliEns><IdePrpEns>00000195358EXP907</IdePrpEns><NatDos>CLIENT</NatDos><NatIdeDos>MUNA</NatIdeDos><IdeDos>CC11078488</IdeDos><IdeApp>PRODR01</IdeApp><LApp>SUuper Dupont</LApp></DonEttFon><DonMet><IdeUtiResOpEns>JCDADSLQRLP</IdeUtiResOpEns></DonMet></FluPar>' (Version HTTP/1.1 is not supported)


So i pass in http 1.0. Same response

I don't understand!
Updated on 2012-11-19T10:41:16Z at 2012-11-19T10:41:16Z by kenhygh
  • kenhygh
    kenhygh
    1461 Posts
    ACCEPTED ANSWER

    Re: url-open failed

    ‏2012-11-17T11:34:10Z  in response to Daviiid
    What error do you see in the logs of the server at that URL? Is DP doing a POST and all your other accesses a GET?
    Ken
    • Daviiid
      Daviiid
      282 Posts
      ACCEPTED ANSWER

      Re: url-open failed

      ‏2012-11-19T08:33:04Z  in response to kenhygh
      Hi Ken

      I found a solution.

      i forgot to use dp:encode('http://x02581pa:9126/us-web/services/demandeJeton?contexte=<?xml version="1.0" encoding="UTF-8"?> <FluPar xmlns:dpquery="http://www.datapower.com...','url')

      Thanks Ken
      • kenhygh
        kenhygh
        1461 Posts
        ACCEPTED ANSWER

        Re: url-open failed

        ‏2012-11-19T10:41:16Z  in response to Daviiid
        Good solution, thanks for posting it.

        Ken