POST
|
Hello, I'm trying to run through this http://blogs.esri.com/esri/arcgis/2010/03/11/sending-geometry-between-silverlight-and-the-server-using-wcf/ and when I try and run the svc file in a browser I am getting the error that numerous other people have listed - "Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified. " I've added this reference to my project already and I still get this. I'm not very good with Visual Studio so maybe I am adding things wrong. I have a sneaking suspicion that maybe it's the way I am adding the ESRI.ArcGIS.Client.dll since it doesn't error if I remove the ESRI data type. The way I am adding the ESRI dll this by right clicking on the projects and browsing to C:\Program Files\ESRI SDKs\Silverlight4\v3.1\ESRI.ArcGIS.Client.dll. I have no idea what WPF build of the ESRI.ArcGIS.Client.dll assembly vs the the Silverlight build of the ESRI.ArcGIS.Client.dll assembly so I've just been adding this file to both the web and the Silverlight projects. I am assuming this is wrong? This is the code of my svc file using System; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Activation; using ESRI.ArcGIS.Client.Geometry; namespace SilverlightApplication1.Web { [ServiceContract(Namespace = "")] [SilverlightFaultBehavior] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class Service1 { [OperationContract] public MapPoint Shift(MapPoint point, double amount) { return new MapPoint(point.X + amount, point.Y + amount); } // Add more operations here and mark them with [OperationContract] } } Thanks, Ben
... View more
08-21-2013
01:58 AM
|
0
|
0
|
2036
|
POST
|
Ok a little red faced here. I discovered a type I was sending "<WFS_Capibilites>". Anyway so that aside I can now see the feature list however when I select any of them I am getting Nogeometry as the name of the service. This is exmaple of the describefeaturetype returns this
<xsd:schema xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wgim="http://wfs.wgim.com" targetNamespace="http://wfs.wgim.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="Anomalytype">
<xsd:complexContent mixed="false">
<xsd:extension base="gml:AbstractFeatureType">
<xsd:sequence>
<xsd:element name="AssetName" type="xsd:string" />
<xsd:element name="AssetFullName" type="xsd:string" />
<xsd:element name="AssetFullNamePrimary" type="xsd:string" />
<xsd:element name="the_geom" type="gml:PolygonPropertyType" />
<xsd:element name="DateTime" type="xsd:dateTime" />
<xsd:element name="WebOverviewURL" type="xsd:anyURI" />
<xsd:element name="RefNo" type="xsd:string" />
<xsd:element name="AnomalyName" type="xsd:string" />
<xsd:element name="AnomalyNo" type="xsd:int" />
<xsd:element name="State" type="xsd:string" />
<xsd:element name="Description" type="xsd:string" />
<xsd:element name="CommentaryNotes" type="xsd:string" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="Anomaly" substitutionGroup="gml:_Feature" type="wgim:Anomalytype" />
</xsd:schema>
and getFeatures return members like this
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs">
<gml:featureMember xmlns:gml="http://www.opengis.net/gml">
<wgim:Anomaly fid="Anomaly.2043" xmlns:wgim="http://wfs.wgim.com/">
<wgim:AssetName>12" OEP</wgim:AssetName>
<wgim:AssetFullName>Wet Gas / Oil / 12" OEP</wgim:AssetFullName>
<wgim:AssetFullNamePrimary>Wet Gas / Oil / 12" OEP</wgim:AssetFullNamePrimary>
<gml:Geometry>
<gml:MultiPoint>
<gml:pointMember>
<gml:Point>
<gml:coordinates>426522,6724730</gml:coordinates>
</gml:Point>
</gml:pointMember>
<gml:pointMember>
<gml:Point>
<gml:coordinates>426522,6724730</gml:coordinates>
</gml:Point>
</gml:pointMember>
</gml:MultiPoint>
</gml:Geometry>
<wgim:DateTime>24/03/2009 5:09:22 PM</wgim:DateTime>
<wgim:WebOverviewURL>?searchKey=Anomaly&searchValue=2043</wgim:WebOverviewURL>
<wgim:RefNo>12" OEP</wgim:RefNo>
<wgim:AnomalyName>12" OEP / FS @KP2.22</wgim:AnomalyName>
<wgim:AnomalyNo>1</wgim:AnomalyNo>
<wgim:Status>Open</wgim:Status>
<wgim:State>Open</wgim:State>
<wgim:Description>Overlength freespan</wgim:Description>
<wgim:Comments />
</wgim:Anomaly>
</gml:featureMember>
</wfs:FeatureCollection>
And getCapabilites
<FeatureTypeList xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wgim="http://wfs.wgim.com/">
<Operations>
<Query />
</Operations>
<FeatureType>
<Name xmlns="http://www.opengis.net/wfs">wgim:Event</Name>
<Title xmlns="http://www.opengis.net/wfs">NEXUS-IC Events</Title>
<SRS xmlns="http://www.opengis.net/wfs">EPSG:28352</SRS>
<LatLongBoundingBox minx="392925.51" miny="764263.5289" maxx="2755906.55" maxy="8640950.97" xmlns="http://www.opengis.net/wfs" />
</FeatureType>
<FeatureType>
<Name xmlns="http://www.opengis.net/wfs">wgim:Anomaly</Name>
<Title xmlns="http://www.opengis.net/wfs">NEXUS-IC Anomailies</Title>
<SRS xmlns="http://www.opengis.net/wfs">EPSG:28352</SRS>
<LatLongBoundingBox minx="392925.51" miny="764263.5289" maxx="2755906.55" maxy="8640950.97" xmlns="http://www.opengis.net/wfs" />
</FeatureType>
</FeatureTypeList>
... View more
08-16-2012
04:41 AM
|
0
|
0
|
269
|
POST
|
Hello, I've been handed a half built GIS connector between our in house Database system and ArcGIS and have been asked to complete the project. The problem is I don't have the slightest idea how WFS and GIS systems works. So after about a week of reading up as much as I could find online I started modifying the existing code. I've got a test system but ArcMap doesn't seem to be able to find any Feature Types for the server. I've been tearing my hair out for days trying to work it out as it work in Gaia. The test wfs server is here http://wfs.wgim.com/default.aspx I've been using http://suite.opengeo.org/geoserver/wfs? as a bit of a template, since this at least works in ArpMap but I was wondering if anyone would be able to offer any assistance or guidence/general help/best practices/examples/etc. Thanks Ben
... View more
08-09-2012
05:38 AM
|
0
|
1
|
2484
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|