Web Processing Service

XxPrOdiGyxX

Senior member
Dec 29, 2002
631
6
81
Right now we are trying to provide some geoprocessing services for some analysis engines, that are currently stood up on an ArcGIS server, under the generic OGC WPS standard. Here is where I'm at:

I've taken the XML schema files for the response XML our server is supposed to send back to the client and deserialized the schema to create classes. Using these classes I am trying to populate the different fields and then serialize the information when completed and spit the XML to the client. However, I am having a problem with a field. The input parameters can be a complex, literal, or bounding box type. I'm having a problem generating an XML for an input that is, essentially, a drop down box with string literals as values. I am able to access the coded domain field of the parameter and pull out the values. However, when I try to set the AllowedValues property the program crashes when serializing the information. I've tried everything I can and the documentation sucks. Does anyone have any experience with this????
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Would help if you posted a bit more about what language you are writing this in and some code snippits where your problem is. We're not all mind readers!
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
I'm kind of a noob to XML serialization in C#, I've only used binary serialization. However, you need to be careful about which classes are being included in your serialization. Some classes, especially ones you inherit from will prohibit you from serializing without proper care.

http://msdn.microsoft.com/en-us/library/ms950721.aspx

That's a really good guide with some pointers :)