Comentários (5)

1 Alain_R comentou às Link permanente

Does this work for response pipeline as well? We are having issues interfacing with a raw HL7 receiver. Using an MPG are able to successfully send the HL7 message, but are having difficulty wrapping the HL7 response in xml to send back to the client. If we set the Response Type to "Pass-Thru" we can send back the raw HL7, but when we set it to "Non-XML" and use a response rule, we run into issues. Any suggestions?

2 HermannSW comentou às Link permanente

Non-XML data can be processed by a Transform Binary action. Thta can be generated by WTX or Contivo Analyst tool, or by a stylesheet like the one this blog posting is about. Please hear into the audio recordings of these two WSTE webcasts for details, samples are attached too (http://www-01.ibm.com/support/docview.wss?uid=swg27022977 , http://www-01.ibm.com/support/docview.wss?uid=swg27022979). Slide 10 of 1st webcast gives you a starter on HL7 backend response processing (because HL7 is ASCII, use Sting.utf-8.input.xsl).

3 Alain_R comentou às Link permanente

I created a Transform Binary action with the following:

 
{
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://www.datapower.com/extensions" extension-element-prefixes="dp">
<dp:input-mapping href="String.utf-8.ffd" type="ffd"></dp:input-mapping>
 
<xsl:output omit-xml-declaration="yes"></xsl:output>
 
<xsl:template match="/">
<xsl:copy-of select="."></xsl:copy-of>
</xsl:template>
</xsl:stylesheet>
}
 
the ffd file:
 
{
<File name="object" syntax="syn">
<Syntax name="syn" encoding="utf-8"></Syntax>
<Field name="message" type="String"></Field>
</File>
 
}

4 Alain_R comentou às Link permanente

Forgot to add that I'm getting the following error :-) :

 
"Transaction aborted in Step 0"
"Network error"

5 HermannSW comentou às Link permanente

Hi Alain,

 
I just used your stylesheet and FFD without problems.
Can you please post your problem on developerWorks DataPower forum and attach a service export demonstrating the problem you experience?
 
Hermann.

Incluir um Comentário Incluir um Comentário