1 Reply Latest reply on Sep 27, 2012 8:08 AM by kcbabo

    [UI problem] Set SOAPContextMapper and SOAPMessageComposer

    tangblack

      I am using SwitchYard 0.6 night build version.

       

      There are two sthings strange when setting customer SOAPContextMapper and SOAPMessageComposer.

      • SOAPMessageComposer can't be presented in the text field but it is really in switchyard.xml.
      • contextMapper in switchyard.xml is little strange and it causes SwitchYard can't do context mapping correctly.

       

      Is it a bug?

       

      Thanks in advance!

       

      <contextMapper xsi:type="soap:Con...>
      
      
      I think it should be
      
      <soap:contextMapper xsi:type="soap:Con...>
      

       

      switchyard UI.png

       

      <?xml version="1.0" encoding="UTF-8"?>
      <switchyard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:switchyard-config:switchyard:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:soap="urn:switchyard-component-soap:config:1.0" name="delete_it" targetNamespace="urn:com.example.switchyard:delete_it:0.0.1-SNAPSHOT">
        <sca:composite name="delete_it" targetNamespace="urn:com.example.switchyard:delete_it:0.0.1-SNAPSHOT">
          <sca:service name="Delete">
            <sca:interface.java interface="com.example.switchyard.delete_it.Delete"/>
            <soap:binding.soap>
              <contextMapper xsi:type="soap:ContextMapperType" class="org.switchyard.component.soap.composer.SOAPContextMapper"/>  <!-- This should be soap:contextMapper not contextMapper -->
              <soap:messageComposer class="org.switchyard.component.common.composer.MessageComposer"/> <!-- messageComposer here!! -->
              <soap:wsdl>META-INF/Delete.wsdl</soap:wsdl>
              <soap:wsdlPort>DeletePort</soap:wsdlPort>
              <soap:contextPath>delete_it</soap:contextPath>
            </soap:binding.soap>
          </sca:service>
        </sca:composite>
      </switchyard>