Dear BasexTalk,
for different (good or bad) reasons, I would like to use the java HTTPConnection instead of the http:client module. But, I am not able to find the correct syntax for these statements. I have tried the middle dot character to force the correct type, without success I receive always the message : [XPTY0004] java.net.URL instance expected as first argument, xs:anyURI found.
Any idea? Thank you in advance
declare namespace HttpURLConnection ="java.net.HttpURLConnection"; declare namespace URL ="java.net.URL";
let $urlString := "https:www.google.com" let $url := URL:new($urlString) let $httpConn := URL:openConnection($url)
return $urlString