Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Need Help calling a Jaguar Component from Powersite

2 posts in General Discussion (old) Last posting was on 2000-03-15 13:45:16.0Z
Ewak Posted on 2000-03-15 05:39:19.0Z
Newsgroups: sybase.public.easerver
From: "Ewak" <ewak@md2.vsnl.net.in>
Subject: Need Help calling a Jaguar Component from Powersite
Date: Wed, 15 Mar 2000 11:09:19 +0530
Lines: 40
X-Newsreader: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
NNTP-Posting-Host: isdn5.pppmad.vsnl.net.in 202.54.7.55
Message-ID: <347_psnVZFkj$GA.261@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26397
Article PK: 157064

We have problem on Calling Jaguar components from within PowerSite/html
page.

I have created a powerbuilder component and have registered it with Jaguar
CTS 3.0
This component works after creating a proxy in the powerbuilder environment.

When the same component is called from PowerSite there is no response or the
component does not get created.

I have code the html like below
---------------------------------------------------------
as_name = psDocument.GetParam("user");
as_pwd = psDocument.GetParam("password");
psSession.SetValue("user",as_name);

cart = java.CreateComponent("pbserver/n_general","iiop://ewak_server:9000");
if (cart==null)
{
psDocument.Redirect("loginerror.htm");
psDocument.WriteLn(site.GetErrorInfo());
}
else


psDocument.Redirect("ewak_cart.htm");
psDocument.WriteLn(site.GetErrorInfo());
}
-------------------------------------------------------
What could be the reason for the problem?
Can you give me step by step instructions on how to achieve it using
Powersite.
I have Installed all the required software on a NT 4.0 SP 5.0.

Thanking you in Advance

Ve Ramesh Babu


Suresh Subrmaniam Posted on 2000-03-15 13:45:16.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 15 Mar 2000 08:45:16 -0500
From: Suresh Subrmaniam <ssubramaniam@psc.gov>
X-Mailer: Mozilla 4.08 [en] (WinNT; I)
MIME-Version: 1.0
To: Ewak <ewak@md2.vsnl.net.in>
Subject: Re: Need Help calling a Jaguar Component from Powersite
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 52
NNTP-Posting-Host: 158.72.55.43
Message-ID: <347_38CF93EC.D9BCA41D@psc.gov>
References: <347_psnVZFkj$GA.261@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26383
Article PK: 157052

Hi,

1. Make sure you have created Stubs/Skeletons for the Component
2. Compilie the stub in ..\Jaguar CTS 3.5\HTML\CLASSESS\PKG_...> javac *.java
3. After restarting the server, check for error messages
4. Looking at your code, I do not see login ID/Password for jaguar.

Here is the sample code.Hope this helps:
---------------------------------------
user = psDocument.GetParam("user");
var comp =
java.CreateComponent("pkg_validate/n__login","iiop://145.53.55.207:9000","jagadmin","");

if (comp == null) {
found = false;
psDocument.WriteLn("Error Creating Validate Component");
psDocument.WriteLn("Error Message: "+ site.GetErrorInfo());
} else {
retval = comp.uf_validate(user);
if (retval > 0 ) {
found = true;
}
}

Ewak wrote:

> We have problem on Calling Jaguar components from within PowerSite/html
> page.
>
> I have created a powerbuilder component and have registered it with Jaguar
> CTS 3.0
> This component works after creating a proxy in the powerbuilder environment.
>
> When the same component is called from PowerSite there is no response or the
> component does not get created.
>
> I have code the html like below
> ---------------------------------------------------------
> as_name = psDocument.GetParam("user");
> as_pwd = psDocument.GetParam("password");
> psSession.SetValue("user",as_name);
>
> cart = java.CreateComponent("pbserver/n_general","iiop://ewak_server:9000");
> if (cart==null)
> {
> psDocument.Redirect("loginerror.htm");
> psDocument.WriteLn(site.GetErrorInfo());
> }
> else
>
> psDocument.Redirect("ewak_cart.htm");
> psDocument.WriteLn(site.GetErrorInfo());
> }
> -------------------------------------------------------
> What could be the reason for the problem?
> Can you give me step by step instructions on how to achieve it using
> Powersite.
> I have Installed all the required software on a NT 4.0 SP 5.0.
>
> Thanking you in Advance
>
> Ve Ramesh Babu