1 Reply Latest reply on Sep 5, 2014 6:51 AM by Nishtha Malhotra

    wsdl http binding and multipart

    Nicolas-Xavier Vanderlinden Newbie

      Hello,

       

      I'm trying to deploy a wsdl with http binding (without soap) and multipart.

       

      {code}

          <wsdl:message name="Payload">
              <wsdl:part name="type" type="xsd:string" />
              <wsdl:part name="nature" type="xsd:string" />
              <wsdl:part name="source" type="xsd:string" />
              <wsdl:part name="payload" type="xsd:string" />
          </wsdl:message>

       

          <wsdl:portType name="BlablaErpService">
              <wsdl:operation name="postPayload">
                  <wsdl:input name="Payload" message="tns:Payload">
                  </wsdl:input>
                  <wsdl:output name="PayloadResponse" message="tns:PayloadResponse">
                  </wsdl:output>
              </wsdl:operation>

       

          <wsdl:binding name="BlablaServiceHttpBinding" type="tns:BlablaService">
              <http:binding verb="POST" />
              <wsdl:operation name="postPayload">
                  <http:operation location="/object" />
                  <wsdl:input name="Payload" />
                  <wsdl:output name="PayloadResponse" />
              </wsdl:operation>

      {code}

       

       

      {code}

      Caused by: org.switchyard.extensions.wsdl.WSDLReaderException: SWITCHYARD012801: Service operations on a WSDL interface must have exactly one parameter.

          at org.switchyard.extensions.wsdl.WSDLReader.getParts(WSDLReader.java:356)

          at org.switchyard.extensions.wsdl.WSDLReader.readWSDL(WSDLReader.java:100)

          at org.switchyard.extensions.wsdl.WSDLService.fromWSDL(WSDLService.java:100)

          at org.switchyard.extensions.wsdl.WSDLService.fromWSDL(WSDLService.java:83)

          at org.switchyard.deploy.internal.Deployment.loadServiceInterface(Deployment.java:413)

      {code}

       

      Does switchyard support wsdl http binding ?  I think http binding should support multipart but i'm far from wsdl expert.