on 07-30-2014 7:48 PM
Hi,
I have a file that SAP PI has to pick, which doesnt have namespace prefix in payload, that gives me mapping error; target can not be created
<?xml version="1.0" standalone="yes" ?>
<SLL_SPL_DATA_FILE xmlns="http://sap.com/xi/GTS">
<SLL_SPL_DATA_FILE>
but if put nsO as below the file works fine and mapping generates target structure.
<?xml version="1.0" standalone="yes" ?>
<ns0:SLL_SPL_DATA_FILE xmlns:ns0="http://sap.com/xi/GTS">
</ns0:SLL_SPL_DATA_FILE>
is there a config settings in PI, or i have to ask sender to send the file with namespace prefix?
Thanks.
Prema
Hi Prema,
Another thing you can do would be to add the designation elementFormDefault="unqualified" inside the xsd:schema node of the WSDL after exporting and re-importing it as an External Definition. If you use the External Definition as the source then it will accept the incoming message without the prefix tag and you shouldn't see the error.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prema,
Use XMLAnonymizerBean in sender file adapter to add namespace prefix in payload but this will add prefix to all nodes or else use java/xslt mapping to add prefix for namespace alone. Please check this link http://scn.sap.com/thread/3202784
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Praveen,
i tried adding bean in sender file adapter, yes it adds prefix to all nodes, but in the help it just adds where it is required, any inputs?
http://help.sap.com/SAPhelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm
The anonymizer.acceptNamespaces parameter has the following value:
urn:sap-com:document:sap:rfc:functions rfc urn:sap-com:document:sap:soap:functions:mc-style rfc
● Payload before using the XMLAnonymizerBean:
<Z_PAYMITEM_GET_LIST
xmlns="urn:sap-com:document:sap:rfc:functions"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<I_ACCOUNTIDENT xmlns="">
<ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
<BANK_COUNTRY>DE</BANK_COUNTRY>
<BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
</I_ACCOUNTIDENT>
</Z_PAYMITEM_GET_LIST>
● Payload after using the XMLAnonymizerBean:
<?xml version='1.0' encoding='utf-8'?>
<rfc:Z_PAYMITEM_GET_LIST
xmlns:rfc='urn:sap-com:document:sap:rfc:functions'>
<I_ACCOUNTIDENT>
<ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
<BANK_COUNTRY>DE</BANK_COUNTRY>
<BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
</I_ACCOUNTIDENT>
</rfc:Z_PAYMITEM_GET_LIST>
Try XMLAnonymizerBean
XMLAnonymizerBean (SAP Library - SAP Exchange Infrastructure)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.