[mapguide-users] Fusion with jsp

Berdel, Brian brian.berdel at mcmtrans.com
Fri Mar 28 11:07:04 EDT 2008


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?

 

MgUserInformation userInfo = new MgUserInformation(mgSessionId);

        MgSiteConnection siteConnection = new MgSiteConnection();

        siteConnection.Open(userInfo);

        MgResourceService resourceService =
siteConnection.CreateService(MgServiceType.ResourceService) as
MgResourceService;

        MgMap map = new MgMap();

        map.Open(resourceService, smgMap);

Resource was not found:
Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//So
leburyTwp.Map 

Description: 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. 

Exception Details: OSGeo.MapGuide.MgResourceNotFoundException: Resource
was not found:
Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//So
leburyTwp.Map

Source Error: 

 

Line 28:         MgResourceService resourceService =
siteConnection.CreateService(MgServiceType.ResourceService) as
MgResourceService;

Line 29:         MgMap map = new MgMap();

Line 30:         map.Open(resourceService, smgMap);

 

Brian Berdel

McMahon Associates, Inc.

p: 215.283.9444

www.mcmtrans.com

________________________________

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: Friday, March 28, 2008 9:49 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion with jsp

 

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.
It is only if you need to modify/interact with the Fusion server side
scripts that you need a ported version.

You can read the sessionID from Fusion, and use that when you open the
connection.



Regards, Kenneth, GEOGRAF A/S



Ivan Milicevic skrev: 

I don't thing that there is jps version of fusion just like .NET.

You'll have to rewrite existing PHP code to jsp.

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Abdrabba
Yassine
Sent: Friday, March 28, 2008 11:35 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Fusion with jsp

 

Hi,
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.
My question is how i can implement functionality that requires direct
access to the MapGuide Server. Because as I know the additional
functionality is 
implemented only in PHP on top of the MapGuide Web Tier API. 
Could anyone tell me where I can find a JSP implementation.
thank you in advance.

-- 
Abdrabba Yassine
Blog: http://a-yassine.blogspot.com 

 



________________________________



 
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080328/c7f192cb/attachment.html


More information about the mapguide-users mailing list