0 Replies Latest reply on Jun 15, 2006 8:51 AM by lukecrouch

    webservice request parameters mis-matched

    lukecrouch
      I'm trying to use an internal web service described by a WSDL file. The input message definition is:

      <wsdl:message name="processNobleInvoicesInput">
      <wsdl:part name="store" type="xsd:string" />
      <wsdl:part name="ticket" type="xsd:string" />
      <wsdl:part name="sub" type="xsd:string" />
      <wsdl:part name="resendFlag" type="xsd:string" />
      </wsdl:message>

      I've tried many different ways of invoking this service:

      <cfscript>
      ws = CreateObject("webservice",
      "processNobleInvoices.wsdl");
      returnVar = ws.processNobleInvoices(store="12", ticket="12345", sub="1", resendFlag="y");
      </cfscript>

      and

      <cfinvoke
      webservice="processNobleInvoices.wsdl"
      method="processNobleInvoices"
      store="12"
      ticket="12345"
      sub="1"
      resendFlag="y"
      ReturnVariable = "returnVar">
      </cfinvoke>

      and

      <cfinvoke
      webservice="processNobleInvoices.wsdl"
      method="processNobleInvoices"
      ReturnVariable = "returnVar">
      <cfinvokeargument name="store" value="12">
      <cfinvokeargument name="ticket" value="12345">
      <cfinvokeargument name="sub" value="1">
      <cfinvokeargument name="resendFlag" value="y">
      </cfinvoke>

      But every method breaks - on the server side, the variable values are all mixed up. Sometimes "y" is passed as the store, and/or "12345" is passed as the resendFlag, etc.

      Anyone seen this behavior before and know how to fix it?

      Thanks.