Just tested it, and it worked fine. ;)

Chances are the Object Instance Variable is incorrect in the "branched to" taf

The introspection error is typically caused by trying to call a method of a non existent object instance... Perhaps you should try rewriting

<@callmethod request$Common 'SelectShippingrequest(<@var request$FreeShip>)'>

as

<@CALLMETHOD OBJECT="Common" SCOPE="Request" METHOD="SelectShippingrequest(<@var request$FreeShip>)" METHODTYPE="invoke">

That's what my callmethod looks like in the example i've attached.

I've attached the 3 files i used to show that this works fine on 065

/John





Ben Johansen wrote:

Apparently not for TCF instances ;)

Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller Available for Witango Developement



-----Original Message-----
From: John McGowan [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: Branch Question


This is incorrect.... Request scope is valid for the entire "REQUEST" branching doesn't start a new request scope.

/John

Ben Johansen wrote:



Request scope is local to the TAF and I don't think it can cross branch
actions?

Try USER scope

Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller Available for Witango Developement



-----Original Message-----
From: Fogelson, Steve [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 12:59 PM
To: Witango User Group (E-mail)
Subject: Witango-Talk: Branch Question


If you instantiate a tcf object in a taf, and then branch to a taf
(branch
and return), do you have to instantiate the same tcf object again in


the


branched taf in order to perform a <@callmethod> in the branched taf?

I am getting the following error and wondering if this is the problem:

Also, what does "introspection information mean?

Error getting object's introspection information.
Couldn't find info for method SelectShippingrequest
<@assign request$Shippingrequest "<@callmethod request$Common
'SelectShippingrequest(<@var request$FreeShip>)'>" encoding=none>

Thanks

Steve Fogelson
Internet Commerce Solutions
_______________________________________________________________________


_


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


_______________________________________________________________________


_


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf






________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf




________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TAF SYSTEM "tango.dtd" >
<TAF Version="0x02000002" Debug="True">
	<Comments />

	<!--Main program-->
	<Program>
		<ActionRef Ref="Branch_Target" />
		<ActionRef Ref="test_Method" />
		<ActionRef Ref="callmethod_tag" />
	</Program>

	<!--Program actions-->
	<Actions>
		<GroupAction ID="Branch_Target" Sig="grop" />
		<CallMethodAction MethodID="test_Method" ID="test_Method" Sig="calm">
			<ObjectIdentity>TCF://tcf.tcf</ObjectIdentity>
			<ObjectName>tcf</ObjectName>
			<ObjectInstance>
				<Name>theTCF</Name>
				<Scope>Local</Scope>
			</ObjectInstance>
			<MethodResult Type="Void" Description="Any" NativeType="_ANY" />
			<CallParameterList />
		</CallMethodAction>
		<ResultAction ID="callmethod_tag" Sig="null">
			<ResultsOutput Ref="callmethod_tag.Results" />
		</ResultAction>
	</Actions>

	<!--Data sources-->
	<DataSources />

	<!--Output blocks-->
	<Outputs>
		<Output ID="callmethod_tag.Results" Type="HTML"><![CDATA[<@CALLMETHOD OBJECT="theTCF" SCOPE="local" METHOD="test_Method()" METHODTYPE="invoke">]]></Output>
	</Outputs>
</TAF>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TCF SYSTEM "tango.dtd" >
<TCF Version="0x02000002" Debug="True">
	<Comments />

	<!--Defined Classes-->
	<Classes>
		<ClassDef>
			<Name>tcf</Name>

			<!--Class constructor-->
			<On_Create>
				<Implementation />
			</On_Create>

			<!--Class destructor-->
			<On_Destroy>
				<Implementation />
			</On_Destroy>

			<!--Methods of this class-->
			<Methods>
				<MethodDef>
					<Name>test_Method</Name>
					<MethodParameterList />
					<Implementation>
						<ActionRef Ref="tcf.test_Method.Assign" />
					</Implementation>
					<ReturnValueName>returnValue</ReturnValueName>
					<ReturnValueType>Any</ReturnValueType>
				</MethodDef>
			</Methods>

			<!--Instance variables for this class-->
			<Variables />
		</ClassDef>
	</Classes>

	<!--Program actions-->
	<Actions>
		<AssignAction ID="tcf.test_Method.Assign" Sig="asgn">
			<AssignItem>
				<Name>ReturnValue</Name>
				<Value>OK</Value>
				<Scope>Method</Scope>
			</AssignItem>
		</AssignAction>
	</Actions>

	<!--Data sources-->
	<DataSources />

	<!--Output blocks-->
	<Outputs />
</TCF>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TAF SYSTEM "tango.dtd" >
<TAF Version="0x02000002" Debug="True">
	<Comments />

	<!--Main program-->
	<Program>
		<ActionRef Ref="Create_tcf" />
		<ActionRef Ref="test_Method" />
		<ActionRef Ref="callmethod_tag" />
		<ActionRef Ref="Branch" />
		<ActionRef Ref="test_Method1" />
		<ActionRef Ref="callmethod_tag1" />
	</Program>

	<!--Program actions-->
	<Actions>
		<CreateObjectAction ID="Create_tcf" Sig="cobj">
			<ObjectIdentity>TCF://tcf.tcf</ObjectIdentity>
			<ObjectName>tcf</ObjectName>
			<ObjectInstance ConnectToExisting="False">
				<Name>theTCF</Name>
				<Scope>Local</Scope>
			</ObjectInstance>
			<UserInfo Encrypted="True">
				<UserName />
				<Password />
			</UserInfo>
		</CreateObjectAction>
		<CallMethodAction MethodID="test_Method" ID="test_Method" Sig="calm">
			<ObjectIdentity>TCF://tcf.tcf</ObjectIdentity>
			<ObjectName>tcf</ObjectName>
			<ObjectInstance>
				<Name>theTCF</Name>
				<Scope>Local</Scope>
			</ObjectInstance>
			<MethodResult Type="Void" Description="Any" NativeType="_ANY" />
			<CallParameterList />
		</CallMethodAction>
		<ResultAction ID="callmethod_tag" Sig="null">
			<ResultsOutput Ref="callmethod_tag.Results" />
		</ResultAction>
		<BranchAction IsReturn="True" ID="Branch" Sig="bran">
			<ActionName>Branch_Target</ActionName>
			<DocumentName><![CDATA[<@CGIPATH><@APPFILEPATH>taf2.taf]]></DocumentName>
			<FullName>C:\Documents and Settings\mcgowan.LYNCH\Desktop\test\taf2.taf</FullName>
		</BranchAction>
		<CallMethodAction MethodID="test_Method" ID="test_Method1" Sig="calm">
			<ObjectIdentity>TCF://tcf.tcf</ObjectIdentity>
			<ObjectName>tcf</ObjectName>
			<ObjectInstance>
				<Name>theTCF</Name>
				<Scope>Local</Scope>
			</ObjectInstance>
			<MethodResult Type="Void" Description="Any" NativeType="_ANY" />
			<CallParameterList />
		</CallMethodAction>
		<ResultAction ID="callmethod_tag1" Sig="null">
			<ResultsOutput Ref="callmethod_tag1.Results" />
		</ResultAction>
	</Actions>

	<!--Data sources-->
	<DataSources />

	<!--Output blocks-->
	<Outputs>
		<Output ID="callmethod_tag.Results" Type="HTML"><![CDATA[<@CALLMETHOD OBJECT="theTCF" SCOPE="local" METHOD="test_Method()" METHODTYPE="invoke">]]></Output>
		<Output ID="callmethod_tag1.Results" Type="HTML"><![CDATA[<@CALLMETHOD OBJECT="theTCF" SCOPE="local" METHOD="test_Method()" METHODTYPE="invoke">]]></Output>
	</Outputs>
</TAF>

Reply via email to