Hello experts,
First of all, believe me I've been searching for a few days already and have tried way many different variants, but I still get an error message when testing from SAP side using SPROXY.
I'm working on a Synchronous scenario with a WebService that uses Envelope for Request and Response. Request seems to be working fine. Before using a custom Message Type MT_FacturasPendientesResp, I managed to get a response in SPROXY but still with a different error message.
The funny thing is when testing the XSL mapping in ESR works fine and I get the expected result. The error I get when using SPROXY is as follows.
Probably there's something I can't see, but seems some kind of misunderstanding perhaps namespaces?. Can anyone see any big mistakes?
Please advice.
I appreciate any help to solve this issue.
Thank you for your time.
Patricio.
Error testing Service Interface in SPROXY
Operation Mapping
I remove all namespaces with this template.
Output.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://xxxxxxx.com"> <xsl:output indent="yes"/> <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> <xsl:template match="/"> <xsl:apply-templates select="@* | node()"/> </xsl:template> <xsl:template match="*"> <xsl:element name="{local-name()}"> <xsl:apply-templates select="@*|node()"/> </xsl:element> </xsl:template> </xsl:stylesheet>
Then I try to build the same structure in MT_FacturasPendientesResp as in ESR
Output_2.xsl (namespace used here is same as MT in ESR)
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:p1="http://xxxxxxxxxxxxx.com"><xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <p1:MT_FacturasPendientesResp> <respuesta> <items> <factura> <xsl:for-each select="Envelope/Body/consultarFacturasConSaldosPendientesResponse/respuesta/items/factura"> <nroFactura> <xsl:value-of select="nroFactura"/> </nroFactura> </xsl:for-each> </factura> </items> </respuesta> </p1:MT_FacturasPendientesResp> </xsl:template></xsl:stylesheet>
MT_FacturasPendientesResp
Here's also MONI info: