[mapguide-users] New configuration problems
Robert Bray
robert.bray at autodesk.com
Mon Mar 13 01:43:31 EST 2006
This may be a known issue. Would it be possible to zip up the SHP file
and send it directly to me (not the list)?
The second one is a bit easier, but not obvious. MapGuide security is
forcing the challenge response. The sample application gets around that
by pre-authenticating. If you look at the source code for the sample
application, the MapGuide Viewer is embedded within a frame (could be an
iframe). The PHP/ASPX/JSP that generates that frameset first
authenticates with MapGuide using an anonymous account, creates a
session, and passes that into the viewer.
Here is the code in ASPX (PHP and JSP is similar). In this code note the
creation of the sessionId variable followed later by the sessionId value
being passed into ajaxviewer.aspx. This is what you need to do to avoid
the viewer generating a challenge/response.
<%
// Initialization and error checking code removed
String webLayout =
"Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout";
String sessionId = "";
MapGuideApi.InitializeSockets();
InitializeWebTier();
MgUserInformation userInfo = new MgUserInformation("Anonymous",
"");
MgSite site = new MgSite();
site.Open(userInfo);
sessionId = site.CreateSession();
MapGuideApi.TerminateSockets();
%>
<html>
<head>
<title>Viewer Sample Application</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<link href="styles/globalstyles.css" rel="stylesheet"
type="text/css">
</head>
<frameset rows="110,*" frameborder="NO" border="0" framespacing="0">
<frame src="title.aspx?AppName=AJAX" name="TitleFrame" scrolling="NO"
noresize>
<frame src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=
sessionId %>&WEBLAYOUT=<%= webLayout %>" name="ViewerFrame">
</frameset>
Bob
_____
From: Eric Brown [mailto:ericbrown at netxn.com]
Sent: Sunday, March 12, 2006 11:06 PM
To: users at mapguide.osgeo.org
Subject: Re: [mapguide-users] New configuration problems
Bob,
I'm not sure where to pose this question - but I'm attempting to load a
145mb shape file (my parcel layer) - and it hangs and hangs and hangs
and hangs - then - eventually returns back error free, but the layer
isn't there. I've attempted the load several times all with the same
results.
Also - although I haven't fought very much with this issue yet (and it's
fairly insignificant if I can't get my parcel layer to load) - how do I
make the map published in such a way that it doesn't require
challenge/response. I know this is probably some strange security issue
within IIS, but the permissions appear correct.
Any help would be greatly appreciated.
-- Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060312/67c58b3c/attachment.html
More information about the Mapguide-users
mailing list