0 Replies Latest reply on Sep 6, 2007 7:46 AM by Shanet

    Web Service Not Found

    Shanet
      I am trying to connect to a webservice that has layered/nested complex parameters and am getting the dreaded web service not found error. When I comment out a required parameter the webservice tells me that "Non nillable element is null" so I do know that the service is returning something back..

      My code looks as follows

      <cfset Hope=StructNew()>
      <cfset Auth=StructNew()>
      <cfset Clientstruct=StructNew()>
      <cfset Package=StructNew()>
      <cfscript>
      StructInsert(Auth,"UserCredential","xxxxx");
      StructInsert(Clientstruct,"AccountNumber","45345");
      StructInsert(Clientstruct,"MeterNumber","1234");

      StructInsert(Package,"Value","45678");
      StructInsert(Package,"Type","Tracking_Number_Or_Doortag");

      StructInsert(Hope,"AuthenticationDetail",Auth);
      StructInsert(Hope,"ClientDetail",Clientstruct);
      </cfscript>

      <cfinvoke
      Method="Track"
      returnvariable="any"
      webservice="website">
      <cfinvokeargument name="Trackrequest" value="#Hope#">
      </cfinvoke>

      From other posts I see that i may have to "omit" other WSDL arguements where the minOccurs=0 however they cannot be simply accessed by the CFINVOKEARGUMENT since they are nested complex types. I did try setting the values for these other arguments to NULL in the structure but I still got the same error message where the service could not be found..

      How can I get past this error? How can I OMIT these other nested complex types if this is the problem?

      Thank you