on 07-11-2012 10:09 PM
Hi Group,
We are using PI provided webservice to receive third party request message,we shared the below webservice link to thirdparty
for sending request to PI(copied link from ID->tools->display wsdl)
when third party sending message PI processing message but in MONI we are getting the below message structure:
Third Party Message Header (URL)
---------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <MT_trsreg xmlns="urn:trsreg" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<XMLMessage xmlns="">
Request Message
</XMLMessage>
</MT_trsreg>
But when we are testing in soapUI with WSDL the below structure is generating:
SOAP UI Request Header (WSDL)
----------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <urn:MT_trsreg xmlns:urn="urn:trsreg" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<XMLMessage>
Request Message
</XMLMessage>
</urn:MT_trsreg>
Can any body suggest in the the case of URL how we can get rid of SOAP envelop ,tried with XMLanonymizer but its not working.
Hi Rajiv,
Please have a look at your SOAP channel in IB / Enterprise Service Builder / Config.
On the General Tab under Conversion Parameters, there is an option for "Do not use SOAP Envelope"
Also, maybe you are hitting a SOAP version problem.
http://wso2.org/library/articles/differentiating-between-soap-versions-looking-soap-message
-Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue to be resolved here is removing the unwanted namespace and its prefix not the soap envelope structure. Inaki's XSL would help if you want to do XSLT mapping. If you are looking for learning and understanding to code java mapping you can see this wiki
http://wiki.sdn.sap.com/wiki/display/XI/Sample+JAVA+Mapping+code+using+PI+7.1+API
Hi Rajiv,
With this XSL you can leave only the namespace desired:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<urn:MT_trsreg xmlns:urn="urn:trsreg">
<XMLMessage>
<xsl:value-of select="urn:MT_trsreg/XMLMessage"/>
</XMLMessage>
</urn:MT_trsreg>
</xsl:template>
</xsl:stylesheet>
It's clear if the XML is more complicated the XSL will be longer.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use XSLT or Java mapping to remove the structure. This is one approach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
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.