Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Assembler Service Issue Formatter Exception

Avatar

Level 2

Hello,

I'm currently using the assembler service in  solution that stores the forms and fragments xdp's inside a database as varchar(max).

After reading the text from the database I pass it to a blob.MTOM object using Encoding.UTF8.GetBytes(myTemplateInString).

After filling the inputMap and send it with the blob assembly object, I get the following exception:

Thanks for your help.

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://adobe.com/idp/services:invokeResponse. The InnerException message was 'Error in line 1 position 1733. Element 'http://xml.apache.org/xml-soap:value' contains data from a type that maps to the name 'http://adobe.com/idp/services:ProcessingException'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'ProcessingException' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.'.  Please see InnerException for more details.

Server stack trace:

   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameter(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, Boolean isRequest)

   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)

   at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)

   at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters)

   at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc& rpc)

   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   at FormDesigner.AssemblerSvc.AssemblerService.invoke(invokeRequest request)

   at FormDesigner.AssemblerSvc.AssemblerServiceClient.FormDesigner.AssemblerSvc.AssemblerService.invoke(invokeRequest request) in C:\Users\jrecio\Documents\Visual Studio 2010\Projects\FormDesigner\PDFAssembler\Service References\AssemblerSvc\Reference.cs:line 3793

   at FormDesigner.AssemblerSvc.AssemblerServiceClient.invoke(BLOB inDDXDoc, MyMapOf_xsd_string_To_xsd_anyType inputs, AssemblerOptionSpec environment) in C:\Users\jrecio\Documents\Visual Studio 2010\Projects\FormDesigner\PDFAssembler\Service References\AssemblerSvc\Reference.cs:line 3802

   at FormDesigner.PDFFormGenerator.byteArrayOfPrintedPDF(String assemblyName) in C:\Users\jrecio\Documents\Visual Studio 2010\Projects\FormDesigner\PDFAssembler\PDFDesigner\PDFFormGenerator.cs:line 374

0 Replies