cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,
I have to add namespace in below xml tag:-
Actual xml:-

<sendData>
<MicInterfaceRequest>
  <Connection>
    <connectionID>MICWebService</connectionID>
    <partnerID>MICTest</partnerID>
    <dateTime>2014-02-12T20:00:00.123Z</dateTime>
  </Connection>
</MicInterfaceRequest>

Required xml:-

<MicInterfaceRequest xmlns="urn:http://www.mic-cust.com/Webservice/MicInterface/v1.0">
  <Connection>
    <connectionID>MICWebService</connectionID>
    <partnerID>MICTest</partnerID>
    <dateTime>2014-02-12T20:00:00.123Z</dateTime>
  </Connection>
</MicInterfaceRequest>

Please help how to achieve this using xslt mapping

Regards

Mahesh

0 Likes
View Entire Topic
Former Member
0 Likes

Hello Mahesh,

Try adding the XML namespace in the Message type.

And for XSLT check the below link

add Namespace in message mapping | SCN

manemahesh
Participant
0 Likes

Hi Sritharan,

link you have given is used and its creating node as below :-

e.g.

<MicInterfaceRequest xmlns="urn:http://www.mic-cust.com/Webservice/MicInterface/v1.0">

<MicInterfaceRequest>    

  <Connection>

    <connectionID>MICWebService</connectionID>

    <partnerID>MICTest</partnerID>

    <dateTime>2014-02-12T20:00:00.123Z</dateTime>

  </Connection>

</MicInterfaceRequest>

which is not expected.

Former Member
0 Likes

Hello Mahesh,

Did you add the namespace in the message type and check?

Former Member