Hi guys, i developed a widget to export my map in a cutom application in flex 4. this is the script that i used: public function PrintPDFx():void { var sURL:String; sURL = "http://193.204.163.134/ArcGIS/rest/services/Roma/Carg_Roma/MapServer/export"; sURL += "?bbox="+myMap.extent.xmin+","+myMap.extent.ymin+","+myMap.extent.xmax+","+myMap.extent.ymax; //sURL+="&layers="; sURL+="&size="+myMap.width+","+myMap.height; sURL+="&format=pdf"; sURL+="&trasparent=false"; //sURL+="&dpi"; sURL+="&f=image"; sURL+="&width"+myMap.width; sURL+="&height"+myMap.height; navigateToURL(new URLRequest(sURL),'_blank'); }
now i have a problem. this script in another application it's ok. now i my custom application i added a geocoding service and when i click my print function i have a server error. this is the error: Exception from HRESULT: 0x800706BE code 500 help me
I am not sure... I guess you would have to figure out how to pass a token or transmit the user name and password in clear text (probably not the best idea).