1 2 Previous Next 15 Replies Latest reply on Jan 15, 2014 6:07 AM by boanergesza11

    soap:timeout on soap webservice reference

    boanergesza11

      Hi Everybody;

       

      We are very close to releasing our first production application using SwitchYard. We are wrapping up some small outstanding issues, one of them is setting a timeout on our soap webservice request we make.

       

      The documentation https://docs.jboss.org/author/display/SWITCHYARD/SOAP says that we can just add <soap:timeout>, however when I do that I get the following at build time.

       

      Failed to execute goal org.switchyard:switchyard-plugin:1.0.0.Final:configure (default) on project PaymentGateway: Model [org.switchyard.config.model.switchyard.v1.V1SwitchYardModel] is invalid: cvc-complex-type.2.4.a: Invalid content was found starting with element 'soap:timeout'. One of '{"urn:switchyard-component-soap:config:1.0":basic, "urn:switchyard-component-soap:config:1.0":ntlm, "urn:switchyard-component-soap:config:1.0":proxy, "urn:switchyard-component-soap:config:1.0":mtom, "urn:switchyard-component-soap:config:1.0":inInterceptors, "urn:switchyard-component-soap:config:1.0":outInterceptors}' is expected. -> [Help 1]

       

      Here is our reference in the switchyard.xml :

          <sca:reference name="WsBICISOPortType" multiplicity="0..1" promote="Base24Bean/WsBICISOPortType">

            <sca:interface.wsdl interface="wsdl/BICISOWSDL4.wsdl#wsdl.porttype(wsBICISOPortType)"/>

            <soap:binding.soap>

              <soap:messageComposer unwrapped="true"/>

              <soap:wsdl>wsdl/BICISOWSDL4.wsdl</soap:wsdl>

              <soap:wsdlPort>wsBICISOPort</soap:wsdlPort>

              <soap:endpointAddress>https://172.18.191.200:31340/soap</soap:endpointAddress>

              <soap:timeout>30</soap:timeout>

            </soap:binding.soap>

          </sca:reference>

        1 2 Previous Next