0 Replies Latest reply on Jan 15, 2008 9:47 AM by hhr_jb

    Referencing WSDL Variables

    hhr_jb
      Hello,

      I'm learning how to use wsdl in my code and need to do an api to it. I got some questions and hopefully someone can help me out or point me to so way.

      The wsdl def is http://voyager3.expedata.net/ExpeData_DAWS/DAWS.asmx?WSDL

      I'm able to authenticateuser, but when I try to start a session. I'm being to it will ref some variables. Not sure how to get the value of these variables. This is what I have so far. Any help would be greatly appreciated.

      Jimmy

      <CFSET Profile = structNew()>
      <CFSET Profile.Userid = "username">
      <CFSET Profile.Password = "password">
      <CFSET Profile.BatchID = "">
      <CFSET Profile.SessionID = "">
      <CFSET Profile.ErrorCode = "">
      <CFSET Profile.ErrorMsg = "">
      <cfinvoke
      webservice=" http://voyager3.expedata.net/ExpeData_DAWS/DAWS.asmx?WSDL"
      method="authenticateUser"
      returnvariable="authenticateUserRet">
      <cfinvokeargument name="userid" value="#Profile.UserID#"/>
      <cfinvokeargument name="password" value="#Profile.Password#"/>
      <cfinvokeargument name="errorcode" value="enter_value_here"/>
      </cfinvoke>
      <CFOUTPUT>#authenticateUserRet# #Profile.Errorcode#</CFOUTPUT><br />
      <br />
      <cfdump var="#authenticateUserRet#"/>
      <cfinvoke
      webservice=" http://voyager3.expedata.net/ExpeData_DAWS/DAWS.asmx?WSDL"
      method="startSession"
      returnvariable="startSessionRet">
      <cfinvokeargument name="password" value="#Profile.Password#"/>
      <cfinvokeargument name="userid" value="#Profile.UserID#"/>
      <cfinvokeargument name="batchID" value="#Profile.batchid#"/>
      <cfinvokeargument name="errorMsg" value="{profile.errormsg}"/>
      <cfinvokeargument name="sessionID" value="#Profile.sessionid#"/>
      </cfinvoke>
      <cfdump var="#startSessionRet#"/>

      <CFOUTPUT>#startSessionRet#</CFOUTPUT>