cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL URL

former_member188791
Participant
0 Kudos

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)

http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet?senderParty;<senderService>;<receiverParty>;<...>

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Baskar, Rajiv asked how to remove soap envelope. But perhaps you are right and he is really trying to change the namespace!

former_member188791
Participant
0 Kudos

Hi Baskar/Aaron,

Thank you for your reply.

But still its not working.

Former Member
0 Kudos

Please add more detail to your issue. What is the error?

former_member188791
Participant
0 Kudos

Hi Aaron,

I am getting Heap size error/out of memory ,this is might be because of my code not alligned with the structure,can any body help with the Java code to remove the enveop

former_member188791
Participant
0 Kudos

Hi Group,

Can any body help with my queyr

iaki_vila
Active Contributor
0 Kudos

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.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You can use XSLT or Java mapping to remove the structure. This is one approach.

former_member188791
Participant
0 Kudos

Hi Bhaskar,

can you please help me with Java code how to remove the envelop.