cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP attachment - module development?

Former Member
0 Kudos

Hi,

I have an IDOC -> SOAP scenario where I have to call a webservice that uses SOAP attachment.

Example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ueb="IBrokerInterface">

<soapenv:Header/>

<soapenv:Body>

<ueb:TEBIBrokerInterface_PublishWS>

<aClientId>TEST</aClientId>

....

<aMessage>cid:file.xml</aMessage>

...

<aDuplicates>0</aDuplicates>

</ueb:TEBIBrokerInterface_PublishWS>

</soapenv:Body>

</soapenv:Envelope>

The "file.xml" has to be a SOAP attachment.

If I use a SOAP receiver channel how do I get the IDOC payload moved into a SOAP attachment and still keep the SOAP envelope?

Can this only be done with module development?

Thanks Rasmus

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

As Idoc adapter does not handle attachment and there is no standard for providing attachments from payload, there is no alternative. You have to create an adapter module.

Regards

Stefan

Former Member
0 Kudos

Thanks Stefan,

that was also my conclusion, but how about creating an attachment with XSLT in the mapping - couldn't that work?

Br. Rasmus

stefan_grube
Active Contributor
0 Kudos

Hi Rasmus,

You cannot create an attachment in mapping.

In PI 7.1 there will be a Java Mapping API for working with attachments, but the code will be similar to an adapter module. It will not be possible with XSLT.

Regards

Stefan

Former Member
0 Kudos

Thanks for the feedback!

I guess I will create a module then. The configuration possibilities of the SOAP receiver adapter seems a bit limited.

Br. Rasmus