Skip to Content

XSLT Mapping Help

Hi Gurus,

I have requirement as below:

Source XML -to-SOAP LookUP-to-Target XML.

I am getting the correct values of SOAP response into my target structure.

But in the target structure, I am not getting one namespace. Please see the below structures.

-----Getting Current Output:-----------

<?xml version="1.0" encoding="UTF-8"?>

<ns0:placeRequestWithCustomerRequestId xmlns:ns0="http://com.test.test.asic.dom.ws.services.rfc">

<authToken>string</authToken>

<requestDTO> string </requestDTO>

</ns0:CustomerRequestId>

---------Expected Structure:--------------

<?xml version="1.0" encoding="UTF-8"?>

<tns:CustomerRequestId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://com.test.test.asic.dom.ws.services.rfc" xsi:schemaLocation="http://com.test.test.asic.dom.ws.services.rfc ManagementService.xsd">

<authToken>String</authToken>

<requestDTO>string</requestDTO>

</tns:CustomerRequestId>

Regards,

Sreeni.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 10, 2016 at 03:10 AM

    Hi Sreeni!

    As I can see from your post your structures are different.

    So you need to change structure of your message? Then why your structures are different?

    Regards, Evgeniy.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2016 at 06:28 AM

    Hi Kancham,

    Share you source and target XML and your current XSLT. It will easier for us to guide you in this way.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.