Home Page › Forums › BizTalk 2004 – BizTalk 2010 › soap attachment › Re: soap attachment
Hi Xman71,
I come back to you for this soap attachment:
In visual studio 2005 from a wsdl file (sent by the custommer) i have generated port type and message type and everything that go with these.
the generated message type is this one :
<?xml version=”1.0″ encoding=”utf-16″ ?>
– <xs:schema xmlns:tns=”http://messages.commun.titi.toto.com” xmlns:b=”http://schemas.microsoft.com/BizTalk/2003″ elementFormDefault=”qualified” targetNamespace=”http://messages.commun.titi.toto.com” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<xs:element name=”Message” nillable=”true” type=”tns:Message” />
– <xs:complexType name=”Message”>
– <xs:sequence>
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”auditCre” nillable=”true” type=”xs:dateTime” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”auditUpd” nillable=”true” type=”xs:dateTime” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”avisCree” type=”xs:boolean” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”codeFournisseur” type=”xs:int” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”dateCree” nillable=”true” type=”xs:dateTime” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”datemsg” nillable=”true” type=”xs:dateTime” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”envCible” type=”xs:string” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”etatMsg” type=”xs:string” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”factureCree” type=”xs:boolean” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”fullEditCorrecteur” type=”xs:string” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”idMessage” type=”xs:int” />
<xs:element minOccurs=”1″ maxOccurs=”1″ name=”idPieceJointe” type=”xs:int” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”interchange” type=”xs:string” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”message” type=”xs:base64Binary” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”nomExp” type=”xs:string” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”refAsso” type=”xs:string” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”refMessage” type=”xs:string” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”repMess” type=”xs:string” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”typeMessage” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:schema>
this message will be sent thru the generated send port.
if, in the biztalk admin console, i configure the generated send port as a soap port, it works fine.
Now the element idMessage in the structure of the generated message make a reference to another xml file generated before in the same biztalk orchestration and i have to send these 2 messages together in the same soap envelope, the 2nd one as a soap attachment.
How to do that ?
I’ve tried to do this (it didn’t work) :
In the biztalk admin console
– i have configured the generated send port as a WCF-WSHttp port (Static Solicit-Response),
– in the Address (URI) i have put the url of the web service,
– in the Messages tab,
* in the inbound biztalk message body i have choosen Path
* and put the infopath of the main element of the attached xml file in the body path expression
for the moment no proxy, no certificate.
Something’s wrong ? something’s lacking ?
Thank you for your help.
Best regards.