on 10-03-2008 9:21 PM
Hi,
I have a common xsd imported which has its own target namespace into my SWC namespace. Based on this xsd I have generated a Message Interface and webservice and given the wsdl to third party system for invoking my webservice.
The problem is I have done the message mapping based on xsd which has namespace but whereas the third party system which is consuming my webservice is sending the xml data without any namespace and because of which my mapping is failing (target structure is not getting generated as expected). I have tested the mapping with namespace and without namespace from IR already. I have explained this below with example.
I cannot change the xsd as it is a common and even cannot ask the end system to change the data format they are sending as they are sending the same data to some other systems also, which are not complaining.
How to resolve this issue in XI?
Actual xml data generated from my imported xsd (with namespace)
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Root xmlns:ns0="http://employee/types">
<ns0:EmployeeDetails>
<ns0:EmployeeId>12</ns0:EmployeeId>
<ns0:EmployeeName>XYZ</ns0:EmployeeName>
</ns0:EmployeeDetails>
</ns0:Root>
------------------------------------------------------
Actual Data coming from third party system (without namespace)
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<EmployeeDetails>
<EmployeeId>12</EmployeeId>
<EmployeeName>XYZ</EmployeeName>
</EmployeeDetails>
</Root>
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just wild guess:)
I am not 100% sure but i guess XSLT mapping does not checks the incoming payload against the sender message type.Within XSLT mapping you can add/remove namespace as you would like,use this XSLT mapping before your actual message mapping in interface mapping.
I am saying this coz recently i was able to generate XSLT mapping(in altova Map Transform) without even specifying any sender or receiver Message type and it worked just fine.
Thanx
Aamir
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.