bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Reply To: Soap with attachment

E2E Forum Modeling & Development Soap with attachment Reply To: Soap with attachment

#2010

Alfred
Moderator

The MIME part for the SOAP part is automatically created from the object you give to the SOAP adapter and this SOAP part should always be text/xml.

If I enable Debug log level of my service I will get this:


2015-09-21 14:09:05 UTC:Debug:External:CURL:SendHeader:POST /Services/SOAPAttachmentService/Ports/SOAPAttachmentsPort HTTP/1.1
Host: localhost:12045
Accept: */*
SOAPAction: ""
Mime-Version: 1.0
Content-Type: multipart/related; boundary="00000008f03c92520000a72d14b557006c9b8ff0"; type="text/xml"; start="cid:00000007f03c92520000a72d14b557006c9b8fe0"
Content-Length: 1594
Expect: 100-continue

2015-09-21 14:09:05 UTC:Debug:External:CURL:ReceiveHeader:HTTP/1.1 100 CONTINUE
2015-09-21 14:09:05 UTC:Debug:External:CURL:SendData:--00000008f03c92520000a72d14b557006c9b8ff0
Content-Type: text/xml; charset="utf-8"
Content-ID: 00000007f03c92520000a72d14b557006c9b8fe0
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="utf-8"?>
<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" xmlns:bridge="http://e2e.ch/bridge" xmlns:ns0="urn:wsCycleon_CreateEvent" xmlns:ns1="urn:Services.SOAPAttachmentService.Ports.SOAPAttachmentsPort">
	<SOAP-ENV:Header>
		<bridge:TransactionID>00000005f03c92520000a72d14b557006c9b8ee0</bridge:TransactionID>
<ns0:AuthenticationInfo SOAP-ENV:MustUnderstand="true"><ns0:userName>x</ns0:userName><ns0:password>y</ns0:password><ns0:authentication>false</ns0:authentication></ns0:AuthenticationInfo>	</SOAP-ENV:Header>
	<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
		<ns1:useHeaderAndAttachment>
		</ns1:useHeaderAndAttachment>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--00000008f03c92520000a72d14b557006c9b8ff0

Can you post your generated SOAP message?

If you send us a small example model we could verify it.