<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
h2
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:14.0pt;
        font-family:Verdana;
        color:maroon;
        font-weight:normal;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If I try to access a map via .net fusion
I always get this error…Code works fine in regular viewer. Am
I missing something?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#2b91af"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#2B91AF'>MgUserInformation</span></font><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> userInfo = </span></font><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>new</span></font><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgUserInformation</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'>(mgSessionId);<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgSiteConnection</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> siteConnection = </span></font><font size=2
color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>new</span></font><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgSiteConnection</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'>();<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
siteConnection.Open(userInfo);<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgResourceService</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> resourceService =
siteConnection.CreateService(</span></font><font size=2 color="#2b91af"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#2B91AF'>MgServiceType</span></font><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>.ResourceService) </span></font><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>as</span></font><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgResourceService</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgMap</span></font><font size=2
color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> map = </span></font><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>new</span></font><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font
size=2 color="#2b91af" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>MgMap</span></font><font size=2
color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
map.Open(resourceService, smgMap);</span></font><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><font
size=4 color=maroon face=Verdana><span style='font-size:14.0pt;font-family:
Verdana;color:maroon;font-style:italic'>Resource was not found:
Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//SoleburyTwp.Map</span></font></i><font
size=4 color=maroon face=Verdana><span style='font-size:14.0pt;font-family:
Verdana;color:maroon'> <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=1 color=black
face=Verdana><span style='font-size:8.5pt;font-family:Verdana;font-weight:bold'>Description:
</span></font></b><font size=1 face=Arial><span style='font-size:8.5pt;
font-family:Arial'>An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code. <br>
<br>
</span></font><b><font size=1 face=Verdana><span style='font-size:8.5pt;
font-family:Verdana;font-weight:bold'>Exception Details: </span></font></b><font
size=1 face=Arial><span style='font-size:8.5pt;font-family:Arial'>OSGeo.MapGuide.MgResourceNotFoundException:
Resource was not found:
Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//SoleburyTwp.Map<br>
<br>
</span></font><b><font size=1 face=Verdana><span style='font-size:8.5pt;
font-family:Verdana;font-weight:bold'>Source Error:</span></font></b><font
size=1 face=Arial><span style='font-size:8.5pt;font-family:Arial'> <o:p></o:p></span></font></p>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
bgcolor="#FFFFCC" style='width:100.0%;background:#FFFFCC'>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 color=black face="Lucida Console"><span
style='font-size:9.0pt;font-family:"Lucida Console"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face="Lucida Console"><span
style='font-size:9.0pt;font-family:"Lucida Console"'>Line
28: MgResourceService
resourceService = siteConnection.CreateService(MgServiceType.ResourceService)
as MgResourceService;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face="Lucida Console"><span
style='font-size:9.0pt;font-family:"Lucida Console"'>Line
29: MgMap map = new MgMap();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=red face="Lucida Console"><span
style='font-size:9.0pt;font-family:"Lucida Console";color:red'>Line
30: map.Open(resourceService,
smgMap);<o:p></o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 color=black face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype"'>Brian Berdel</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face="Palatino Linotype"><span
style='font-size:10.0pt;font-family:"Palatino Linotype"'>McMahon Associates,
Inc.</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face="Palatino Linotype"><span
style='font-size:10.0pt;font-family:"Palatino Linotype"'>p: 215.283.9444</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face="Palatino Linotype"><span
style='font-size:10.0pt;font-family:"Palatino Linotype"'>www.mcmtrans.com</span></font><o:p></o:p></p>
</div>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Kenneth, GEOGRAF A/S<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, March 28, 2008 9:49
AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">MapGuide
Users Mail List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [mapguide-users]
Fusion with jsp</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Even though there is no .Net or JSP implementation for
Fusion, you can still use the MapGuide API to work with mapguide in .Net or
JSP.<br>
It is only if you need to modify/interact with the Fusion server side scripts
that you need a ported version.<br>
<br>
You can read the sessionID from Fusion, and use that when you open the
connection.<br>
<br>
<o:p></o:p></span></font></p>
<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Regards, Kenneth, GEOGRAF A/S<br>
<br>
Ivan Milicevic skrev: </span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I don't thing that
there is jps version of fusion just like .NET.<u5:p></u5:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>You'll have to
rewrite existing PHP code to jsp.<u5:p></u5:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><u5:p> </u5:p></span></font><o:p></o:p></p>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Abdrabba Yassine<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, March 28, 2008 11:35
AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">MapGuide
Users Mail List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [mapguide-users] Fusion
with jsp<u5:p></u5:p></span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><u5:p><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'> <o:p></o:p></span></font></u5:p></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Hi,<br>
I'm developing a web application with mapguide using the JAVA Web extensions
API, and for the viewer i want to use the Fusion Viewer.<br>
My question is how i can implement functionality that requires direct access to
the MapGuide Server. Because as I know the additional functionality is <br>
implemented only in PHP on top of the MapGuide Web Tier API. <br>
Could anyone tell me where I can find a JSP implementation.<br>
thank you in advance.<br clear=all>
<br>
-- <br>
Abdrabba Yassine<br>
Blog: <a href="http://a-yassine.blogspot.com" target="_blank"
moz-do-not-send=true>http://a-yassine.blogspot.com</a> <o:p></o:p></span></font><u5:p></u5:p></p>
<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>
<hr size=4 width="90%" align=center>
</span></font></pre><pre><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>mapguide-users mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre></div>
</body>
</html>