ウェブサービスコンシューマは、変圧器のメッセージを使用しているときに戻り値です。 xsltコンポーネントを使用しているときは機能しません。 nullを返します。ウェブサービスコンシューマコンポーネントのミュール
ここは私の流れです。
文字列 - > xslt-> webserviceコンシューマへのHttp->バイト配列。
誰でも助けてくれますか?ここ
は私の入力は
<?xml version="1.0" encoding="UTF-8"?>
<PayLoad>
<RoutingHeader>
<SourceID>1234</SourceID>
<SourceName>ISGN</SourceName>
<SourceRefNum>167309</SourceRefNum>
<SourceRoutingRef />
<DestinationID>999</DestinationID>
<DestinationRefNum />
<DestinationRoutingRef />
<TransDate>2017-04-17T09:04:24.702000-04:00</TransDate>
</RoutingHeader>
<PayLoad>
はXSLTコンポーネントここ
を使用して石鹸にこのXMLを変換しています私は、Webサービスの消費者のコンポーネントにこの石けんファイルを送信するときに私のXSL xodeは
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="URI_SOAP_WS">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:header/>
<soap:Body>
<xsl:apply-templates/>
</soap:Body>
</soap:Envelope>
</xsl:template>
<xsl:template match="*">
<xsl:element name="s:{local-name()}" namespace="http://spring.io/guides/s-
producing-web-service">
<xsl:apply-templates select="node()|@*" />
</xsl:element>
</xsl:template>
</xsl:stylesheet>
です、nullを取得しました
があなたの入力とXSLコードを追加してください - あなたを助けるために容易になります。 –
私は入力ファイルとxslファイルを追加しました。手伝って頂けますか? –