Dear all i want to create & publish WMS from dynamic layer using C# unfortunely i'm getting stuck for setting Resource Header
my questions: 1. is it possible to publishing WMS from 'temporary layer' stored in session? 2. i dont know what is wrong in my test code, i have tried to create 'temporary layer' but the problem always happens when i set Resource Header. Here's my code : MgByteReader myByteReaderContent = new MgByteReader(XmlStringContent,"text/xml"); MgByteReader myByteReaderHeader = new MgByteReader(XmlStringHeader,"text/xml"); ........... // test 1 ResourceService.SetResource( myResourceIdentifier, myByteReaderContent, null); // Success, but no header // test 2 ResourceService.SetResource(myResourceIdentifier, myByteReaderContent, myByteReaderHeader); // Error, : OSGeo.MapGuide.MgNullReferenceException: Null reference. // test 3 ResourceService.SetResource( myResourceIdentifier, myByteReaderContent, null); ResourceService.UpdateRepository(myResourceIdentifier, myByteReaderContent, myByteReaderHeader); // Error, : OSGeo.MapGuide.MgInvalidResourceTypeException: Invalid resource type. // test 4 ResourceService.SetResource( myResourceIdentifier, myByteReaderContent, null); ResourceService.SetResourceMetadata(myResourceIdentifier, myByteReaderHeader); // Error, : OSGeo.MapGuide.MgNotImplementedException: Not implemented. and resource header as follows: http://osgeo-org.1803224.n2.nabble.com/file/n5704307/Layer1Header.xml Layer1Header.xml Thanks a lot for any Help anov Run on: MGOS v2.1.0.4283 MapGuideDotNetApi.dll v1.0.0.1 Win7 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Create-WMS-Layer-programmatically-tp5704307p5704307.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
