Select to view content in your preferred language

ConvertWebMapToMapDocument and extra_conversion_options

502
3
08-07-2013 07:04 AM
JoãoFerreira
Deactivated User
Hi,

I'm with a struggle on using the extra_conversion_options on the ConvertWebMapToMapDocument function.

Basically i'm trying to have multiple SERVER_CONNECTION_FILE on the same dictionary.
Well since this variable is a dictionary I cannot have multiple keys with the same name. So how can I achieve this?

I tried:
AGSSecureServerServices = {"SERVER_CONNECTION_FILE":[r"c:\file1.ags",r"c:\file2.ags"]}
AGSSecureServerServices = {"SERVER_CONNECTION_FILE":r"c:\file1.ags",r"file2.ags"}
and several other variations, but none worked

If I try the connection individually i can execute everything correctly (e.g.: AGSSecureServerServices = {"SERVER_CONNECTION_FILE":r"c:\file1.ags"}

But since my map has several secure connections from multiple secure servers can you guys help me on accomplish this?

Thank you
Tags (2)
0 Kudos
3 Replies
MayJeff
Deactivated User
Can you share your code?  I try to set up my secured services but can't figure it out.
Thanks.
0 Kudos
JasonScheirer
Esri Alum
You can't set more than one value for SERVER_CONNECTION_FILE as the function currently works. Please contact tech support to add an issue, it would be easy for me to fix in a service pack.
0 Kudos
MayJeff
Deactivated User
Thanks for information.  Now I try to set up one connect only but can't get it to work.  Can you help me to take a look?  From ArcCatalog,  here is my connection file (GIS Servers\ags101 on serv101 (user)) and I might not write it correctly.  Do you use this to print advanced high quality map on your web application?  I am not familiar with python.


Python script:
credentials = {"SERVER_CONNECTION_FILE": r"GIS Servers\ags101 on serv101 (user).ags"}


Thanks again.
0 Kudos