cancel
Showing results for 
Search instead for 
Did you mean: 

Send empty "SOAP-ENV:Body"

asdasd_asdasd
Active Participant
0 Kudos

Hi Experts,

I bring a problem for me but "challenge" other, need to consume a WebService which does not receive any XML, I mean that the "SOAP-ENV: Body" must send empty (otherwise fails).

WSDL: "http://fwshomo.afip.gov.ar/wslpg/LpgService?wsdl"

Operation: "dummy"

Using the XMLSpy XML request is generated as:

<SOAP-ENV: Envelope xmlns: SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: SOAP-ENC = "http://schemas.xmlsoap.org/soap/encoding/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema">

<SOAP-ENV:Body/>

</ SOAP-ENV: Envelope>

In PI could not make it work the method, I tried mapping graphics, xsl and java, but always PI expected XML on mapping output (no matter what), I was looking if there were any module to remove the payload, but did not find .

Anyone know if you can send a corresponding request from PI?.

Best Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Maxi,

Couple of things needs to be clarified:

1. PI can not work with anything other than XML, so the Output of any mapping has to be a XML.

2. If your Web Service is SOAP based, it should always accept XML. Please elaborate more your requirement.

The above XML which you mentioned can be achieved by Java Mapping. You can use "Do not use SOAP Envelope" at Receiver SOAP Adapter and generate this empty envelope within Java Mapping.