0 Replies Latest reply on Oct 17, 2006 8:05 AM by GlennV

    problem invoking a webservice

    GlennV
      I'm trying to invoke a .NET-based web service that returns a PDF document in a binary stream. I'm running ColdFusion MX version 6 on IIS 5. When I try to invoke it I get the following error:

      java.lang.NullPointerException

      Oddly enough, the error message is targeting one the the "cfinvokearguments" I'm passing instead of the binary content I'm trying to write. I've checked & rechecked the method name/arguments & they match the web service signature. I have no problem invoking methods from the same webservice that return strings, so the problem must be the binary data. I don't see how this can be a CF/.NET compatability issue. Binary data on the windows platform should be interchangable regardless of the applications that exchange it, shouldn't it?! Please tell me where I'm going wrong here!!

      The CF code follows:
      <cfinvoke
      webservice = " http://eqg508/PrintManager/PrintManager.asmx?WSDL"
      method = "DisplayAgreement"
      returnVariable = "foo">
      <cfinvokeargument name="AgreementId" value="473099">
      <!--- THIS IS THE LINE THAT IS CAUSING THE ERROR --->
      <cfinvokeargument name="CopyToDisplay" value="dealer">
      </cfinvoke>
      <cfcontent type="application/pdf">
      #foo#