on 02-18-2016 12:09 PM
Hi,
I am working on sftp to jdbc scenarion in po7.4 for this i am using cdata mapping to convert complete file into a single field.
I have done mapping and tested in test tab it is converting into cdata, but while doing testing received jdbc adapter error.
where unable to see converted cdata payload in message monitoring empty payload received
In logs able to see wrong number type of arguments errors at receiver jdbc channel.
where my file structure look like this.
<xml>
<employer>
....
...
....
...
<employees>
<emp>
....
.....
...
</emp>
<emp1>
.....
....
.
.
</emp1>
</employees>
</employers>
</xml>
Kindly help how to convert this whole payload into single field.
Regards
Pavan
Hi Pavan,
This is what i have understood as your requirement correct me if i m wrong.
Sender is sending an XML file in encrypted format you are decrypting it ans using the XML in message mapping , now the encrypted XML doesn't has the message type name and hence the message mapping gets executed successfully but generate empty payload.
so 2 ways you can handle this :
1.As sender is sending an XML file you can ask them the respective XSD and use the same in MM or you need to give your message type XSD and ask sender application to generate XML using this XSD.
2.if you don't want ot go on the exchange of XSD file process i.e which you have implemented now and all you want is to embed the message type name to the decrypted XML then this can be done using java mapping i guess this can be done using graphical too ( please provide a decyrpted payload and also what exactly you are trying to embed so that we can help here).
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
1)Sender is sending an XML file in encrypted format you are decrypting it ans using the XML in message mapping ,
Yes from sender i have received encrypted file and My sender is SFTP where i am using PGP decryption module to decrypt the file. This decrypted file i have to insert in to DB
2)now the encrypted XML doesn't has the message type name and hence the message mapping gets executed successfully but generate empty payload.
No, decrypted file doesn't have message type the same i have to insert into DB.
I thought due to this reason it is not inserting into DB, Empty payload received at receiver end.
I am able to decrypt but that shouldn't embedded with my message type name
Hi Manoj,
I have used xslt mapping now for cdata, then it is working.
As i came to know in PO 7.4 it is not required to use xslt /java mapping for send whole xml to single field.
But i have used return as xml option to convert to cdata. but i didn't worked.
can i achieve with out xslt/java mapping. ? using return as xml option
Regards
Pavan
Pavan,
This is not Patch problem.
your source message type and the decrypted xml doesn't match so return as xml doesn't work until and unless these two matches this is the reason why i suggested you for the XSD approach .
you xslt approach works because it dosnt validate these two (source message type and decrypted xml) all it does is take in incoming xml and map it to target field.
so if you still want to go for return as xml approach then you need to make the source message type and decrypted xml to match easiest way is to take xsd from the sender application and make it as source message in your mapping.
or else you can proceed with your xslt approach which is currently working.
Br,
Manoj
Hello Pavan,
In JDBC how your inserting the payload?using query string or stored procedure?
and in JDBC in a single field you wish to add the wrapped XML?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is how my scenario look
we are receiving signed file i am decrypting using PGP(this is happening) and sending the whole xml payload into single .
Sender side i have defined complete structure but didn't mapped.
I have created a root node for cdata mapping selected return as xml, but at DB i am receiving empty payload
Regards
Pavan
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
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.