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.

Web Serice DataWindow: Conume a web service method in PB 11.2

3 posts in DataWindow Last posting was on 2008-09-17 08:06:52.0Z
Raju Golla Posted on 2008-09-16 13:30:42.0Z
Sender: 4a3c.48ce4bd6.1804289383@sybase.com
From: Raju Golla
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Web Serice DataWindow: Conume a web service method in PB 11.2
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48cfb502.1896.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Sep 2008 06:30:42 -0700
X-Trace: forums-1-dub 1221571842 10.22.241.41 (16 Sep 2008 06:30:42 -0700)
X-Original-Trace: 16 Sep 2008 06:30:42 -0700, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87765
Article PK: 417027

Trying to execute a Web Service method in Power Builder
11.2. It is requrired to Authenticate the user before
executing the method.
I 'm using Web Service Data Window to execute web Method.

After selecting .wsdl file clicking Next Next...okay. After
last Ok click it throws below exception:

Error message: The request failed with HTTP status 401:
Unauthorized

Like to know how can I set authentication properties?

Your help is highly appreciated


Bruce Armstrong [TeamSybase] Posted on 2008-09-16 16:54:35.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48cfb502.1896.1681692777@sybase.com>
Subject: Re: Web Serice DataWindow: Conume a web service method in PB 11.2
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48cfe4cb$1@forums-1-dub>
Date: 16 Sep 2008 09:54:35 -0700
X-Trace: forums-1-dub 1221584075 10.22.241.152 (16 Sep 2008 09:54:35 -0700)
X-Original-Trace: 16 Sep 2008 09:54:35 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87766
Article PK: 417021

What need to create a WSConnection object and then assign that object to the
DataWindow much the same way you would assign a transaction object. The
WSConnection object has properties you can set to support authentication.
Then you use the SetWSObject method of the datwawindow to assign it.

A sample from the help file:

int ii_return
wsconnection ws_1
ws_1 = create wsconnection
ws_1.username = "johndoe"
ws_1.password = "mypassword"
ws_1.endpoint = "myendpoint"
ws_1.authenticationmode = "basic"
ws_1.usewindowsintegratedauthentication = true
ii_return = dw_1.setwsobject (ws_1)

<Raju Golla> wrote in message news:48cfb502.1896.1681692777@sybase.com...
> Trying to execute a Web Service method in Power Builder
> 11.2. It is requrired to Authenticate the user before
> executing the method.
> I 'm using Web Service Data Window to execute web Method.
>
> After selecting .wsdl file clicking Next Next...okay. After
> last Ok click it throws below exception:
>
> Error message: The request failed with HTTP status 401:
> Unauthorized
>
> Like to know how can I set authentication properties?
>
> Your help is highly appreciated


Raju Golla Posted on 2008-09-17 08:06:52.0Z
Sender: 4a3c.48ce4bd6.1804289383@sybase.com
From: Raju Golla
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Web Serice DataWindow: Conume a web service method in PB 11.2
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48d0ba9c.4037.1681692777@sybase.com>
References: <48cfe4cb$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Sep 2008 01:06:52 -0700
X-Trace: forums-1-dub 1221638812 10.22.241.41 (17 Sep 2008 01:06:52 -0700)
X-Original-Trace: 17 Sep 2008 01:06:52 -0700, 10.22.241.41
Lines: 47
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87776
Article PK: 417030

Thank you. I am new to PB and sure how to do this. could you
suggest where can i find a good sybook or reference to do
this?

if you can help me step by step way would be highly
appreciated.

Regards
Raju

> What need to create a WSConnection object and then assign
> that object to the DataWindow much the same way you would
> assign a transaction object. The WSConnection object has
> properties you can set to support authentication. Then
> you use the SetWSObject method of the datwawindow to
> assign it.
>
> A sample from the help file:
>
> int ii_return
> wsconnection ws_1
> ws_1 = create wsconnection
> ws_1.username = "johndoe"
> ws_1.password = "mypassword"
> ws_1.endpoint = "myendpoint"
> ws_1.authenticationmode = "basic"
> ws_1.usewindowsintegratedauthentication = true
> ii_return = dw_1.setwsobject (ws_1)
>
>
> <Raju Golla> wrote in message
> > news:48cfb502.1896.1681692777@sybase.com... Trying to
> > execute a Web Service method in Power Builder 11.2. It
> > is requrired to Authenticate the user before executing
> > the method. I 'm using Web Service Data Window to
> execute web Method. >
> > After selecting .wsdl file clicking Next Next...okay.
> > After last Ok click it throws below exception:
> >
> > Error message: The request failed with HTTP status 401:
> > Unauthorized
> >
> > Like to know how can I set authentication properties?
> >
> > Your help is highly appreciated
>
>