web stats
Base64 encoded to webservice problem - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2012, 08:11 AM
psanders psanders is offline
OBX.2 Kenobi
 
Join Date: Nov 2011
Posts: 55
psanders is on a distinguished road
Default Base64 encoded to webservice problem

Hi all,

I have a problem trying to encode a xml message to be delivered to a webservice channel.

The scenario:
The channel (LabResults_DWToOpenCDS_b64Encode) takes the results from a database reader and sends it to another channel (LabResults_DWToOpenCDS_WebService) via a channel writer using the template:

<health>
<VMR>
${XmlUtil.encode(${message.LabResults_DWToOpenCDS_ VMR_encodedValue})}
</VMR>
</health>

The channel (LabResults_DWToOpenCDS_WebService) has some 3 transforms on the source. two to define variables and one to create the variables.

This channel then sends to a webservice on the destination

The error:
The first channel delivers just fine to the second channel, but I get this error on the second channel trying to connect to encode the data going to the webservice.

[2012-05-16 09:52:11,468] ERROR (org.mule.impl.DefaultComponentExceptionStrategy:9 5): Caught exception in Exception Strategy for: 0f983dc4-da62-42dc-b912-eead7d46ce53: java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: Content is not allowed in prolog., therefore unable to unmarshal input Semantic Payload xml string:
${FileUtil.encode(${message.LabResults_DWToOpenCDS _VMR_encodedValue})}

is the error I get. I've attached the channels, any suggestions?

Thanks
Attached Files
File Type: xml LabResults_DWToOpenCDS_WebService_516.xml (9.8 KB, 7 views)
File Type: xml LabResults_DWToOpenCDS_b64Encode_516.xml (24.3 KB, 6 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation