0 Replies Latest reply: Jul 25, 2013 6:48 AM by 984273 RSS

    Problem with ws-security and MTOM

    984273

      Hi all,

       

      I have seriuos problem with WS-Swcurity and MTOM. When I anebled WS-Swcusriy on WSDl, MTOM messagies have all attachments inline, not as a part of message. Here my WSDL definition:

      <wsp:Policy wsu:Id="WSMTOMPolicy">

           <wsp:ExactlyOne>

               <wsp:All>

                   <wsoma:OptimizedMimeSerialization

                          xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" />

               </wsp:All>

           </wsp:ExactlyOne>

             </wsp:Policy>

             <wsp:Policy name="UsernameToken" wsu:Id="WSSecurityPolicy">

            <sp:SupportingTokens>

                  <wsp:Policy>

                        <sp:UsernameToken

                              sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">

                              <wsp:Policy>

                                   <sp:WssUsernameToken11 />

                              </wsp:Policy>

                        </sp:UsernameToken>

                  </wsp:Policy>

            </sp:SupportingTokens>

          </wsp:Policy>    

       

      Does anybody advise for me, some solution of this problem?

       

      Martin