GeoMedia Discussions

Search for an answer, post a question, or answer other users' questions in our GeoMedia support discussions. This discussion board is a great way to collaborate with industry peers around the world. It is intended for discussion and support of the GeoMedia Desktop and Add-on applications.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 76
Registered: ‎03-08-2017

SDI facade wont digest json response

[ Edited ]

Hi,

 

we have a WFS service that supports json as output.

 

When placed behind an SDI facade and using outputFormat=application%2Fjson parameter, SDI generates an error as it cannot "process" this output :

 

2019-10-10 11:54:47,204 [23] DEBUG Intergraph.GeoMedia.Web.SDI.Common.Utils.TimeMeasurmentService [(null)] - Caller: Intergraph.GeoMedia.Web.SDI.Common.Utils.HTTPService.HttpRetriever Remote resource retrieved. Time spent: 0s 78ms
2019-10-10 11:54:47,204 [23] DEBUG Intergraph.GeoMedia.Web.SDI.Common.SDIProFacadeInterface.SDIProCultureInfoContext [(null)] - Disposing of a culture info context
2019-10-10 11:54:47,204 [23] DEBUG Intergraph.GeoMedia.Web.SDI.Common.SDIProFacadeInterface.SDIProErrorHandler [(null)] - Trying to get exception factory for WFS,1.1.0
2019-10-10 11:54:47,204 [23] DEBUG Intergraph.GeoMedia.Web.SDI.Common.SDIProFacadeInterface.SDIProErrorHandler [(null)] - Got requested exception factory
2019-10-10 11:54:47,220 [23] WARN Intergraph.GeoMedia.Web.SDI.Common.SDIProFacadeInterface.SDIProErrorHandler [(null)] - Unhandled exception has been thrown.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(Stream inStream)
at Intergraph.GeoMedia.Web.SDI.WFS.Pipes.WFSOriginatingPipe.WFSOriginatingPipe.GetFeature(SDIMethodParameters getFeatureParams, AdditionalParametersCollection additionalParameters, IUserContext userContext)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Intergraph.GeoMedia.Web.SDI.Common.BasePipe.MethodDispatcher.SDIMethodDispatcher.Dispatch(Object actPipe, MethodParameterInfo methodInfo, SDIMethodParameters parametersClass, AdditionalParametersCollection additionalParameters, IUserContext userContext)
at Intergraph.GeoMedia.Web.SDI.Common.SDIProFacadeInterface.SDIProOperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

 

If the same GetFeature call is made without outputFormat parameter, GML is returned without errors.

 

We tried with SDI 2015 and 2018.

 

Does SDI supports json when used as a WFS facade ?

 

Thanks