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.

about soap/java--sample erro

5 posts in General Discussion Last posting was on 2007-07-05 01:32:04.0Z
ivan.deng Posted on 2007-06-22 08:33:27.0Z
Reply-To: "ivan.deng" <guohuadeng@hotmail.com>
From: "ivan.deng" <ivan.deng@sybase.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: about soap/java--sample erro
Lines: 35
Organization: sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 158.77.123.208
X-Original-NNTP-Posting-Host: 158.77.123.208
Message-ID: <467b8957$1@forums-1-dub>
Date: 22 Jun 2007 01:33:27 -0700
X-Trace: forums-1-dub 1182501207 158.77.123.208 (22 Jun 2007 01:33:27 -0700)
X-Original-Trace: 22 Jun 2007 01:33:27 -0700, 158.77.123.208
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1084
Article PK: 9231

hello everyone.

we use mba6.2-3036
We need to have our OA with intergrated with MBA group/user.
But when we test the sample in MBA,which locate in
\samples\java.
it can't work.
the code is below
---
String AuthKey = "xxx";

// Encrypt the password using the Blowfish

BlowfishCrypt crypt = new BlowfishCrypt();

crypt.encrypt( AuthKey, AuthKey.length(),

password, password.length() );

byte[] dest = crypt.getDest();

String b64password = base64.encode( dest );
-------
we already put our authkey at the right place and i am sure the key is
correct.
but it run in error like this:

java.security.InvalidKeyException: Illegal key size

can anyone help me?
thanks.


David Fishburn Posted on 2007-06-27 12:09:45.0Z
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: about soap/java--sample erro
From: David Fishburn <fishburn_spam@off.ianywhere.com>
References: <467b8957$1@forums-1-dub>
Organization: iAnywhere Solutions
Message-ID: <Xns995C5260342B4fishburnsybasecom@127.0.0.1>
User-Agent: Xnews/2005.10.18 Hamster/2.1.0.0
NNTP-Posting-Host: bbsm52254.nj001.shanerhotels.com
X-Original-NNTP-Posting-Host: bbsm52254.nj001.shanerhotels.com
Date: 27 Jun 2007 05:09:45 -0700
X-Trace: forums-1-dub 1182946185 12.44.49.254 (27 Jun 2007 05:09:45 -0700)
X-Original-Trace: 27 Jun 2007 05:09:45 -0700, bbsm52254.nj001.shanerhotels.com
Lines: 53
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1085
Article PK: 9230

"ivan.deng" <ivan.deng@sybase.com> wrote in news:467b8957$1@forums-1-dub
of ianywhere.public.mbusinessanywhere.general:

id> we use mba6.2-3036
id> We need to have our OA with intergrated with MBA group/user.
id> But when we test the sample in MBA,which locate in
id> \samples\java.
id> it can't work.
id> the code is below
id> ---
id> String AuthKey = "xxx";
id>
id> // Encrypt the password using the Blowfish
id>
id> BlowfishCrypt crypt = new BlowfishCrypt();
id>
id> crypt.encrypt( AuthKey, AuthKey.length(),
id>
id> password, password.length() );
id>
id> byte[] dest = crypt.getDest();
id>
id> String b64password = base64.encode( dest );
id> -------
id> we already put our authkey at the right place and i am sure the key
is
id> correct.

Where are you getting your authkey from? Just so we are clear.



--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

CaseXpress - to report bugs
http://casexpress.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase.com/servlets/ProjectDocumentList


ivan.deng Posted on 2007-07-03 06:16:33.0Z
Sender: 408a.4689e918.1804289383@sybase.com
From: ivan.deng
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: about soap/java--sample erro
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4689e9c1.4092.1681692777@sybase.com>
References: <Xns995C5260342B4fishburnsybasecom@127.0.0.1>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 2 Jul 2007 23:16:33 -0700
X-Trace: forums-1-dub 1183443393 10.22.241.41 (2 Jul 2007 23:16:33 -0700)
X-Original-Trace: 2 Jul 2007 23:16:33 -0700, 10.22.241.41
Lines: 30
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1087
Article PK: 17879


> Where are you getting your authkey from? Just so we are
> clear.
>
>
>
> --
> David Fishburn
> Certified ASA Developer Version 8
> iAnywhere Solutions - Sybase
> Professional Services
> Please only post to the newsgroup
> Please ALWAYS include version and MORE importantly BUILD
> number with EACH post (dbeng10 -v).
>
> EBFs and Maintenance Releases
> http://downloads.sybase.com/
>
> Developer Community / Whitepapers
> http://www.ianywhere.com/developer
>
> CaseXpress - to report bugs
> http://casexpress.sybase.com
>
> CodeXchange - Free samples
>
http://ianywhere.codexchange.sybase.com/servlets/ProjectDocumentList
>

We do a POC for customer, to integrate MBA with their MIS.
The key is a internal key like "F/4w5uT.....gY="


David Fishburn Posted on 2007-07-03 14:41:13.0Z
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: about soap/java--sample erro
From: David Fishburn <fishburn_spam@off.ianywhere.com>
References: <Xns995C5260342B4fishburnsybasecom@127.0.0.1> <4689e9c1.4092.1681692777@sybase.com>
Organization: iAnywhere Solutions
Message-ID: <Xns99626C9E1583Ffishburnsybasecom@127.0.0.1>
User-Agent: Xnews/2005.10.18 Hamster/2.1.0.0
NNTP-Posting-Host: 10.25.18.134
X-Original-NNTP-Posting-Host: 10.25.18.134
Date: 3 Jul 2007 07:41:13 -0700
X-Trace: forums-1-dub 1183473673 10.25.18.134 (3 Jul 2007 07:41:13 -0700)
X-Original-Trace: 3 Jul 2007 07:41:13 -0700, 10.25.18.134
Lines: 41
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1088
Article PK: 9232

ivan.deng wrote in news:4689e9c1.4092.1681692777@sybase.com
of ianywhere.public.mbusinessanywhere.general:

DF>> Where are you getting your authkey from? Just so we are
DF>> clear

id> We do a POC for customer, to integrate MBA with their MIS.
id> The key is a internal key like "F/4w5uT.....gY="


I was looking for specifics.
So this file:
C:\Programs Files\M-BusinessAnywhereServer\conf\agsoap.conf

You would look for a line like this:
SoapPref AuthKey "b8fVowK8...................................."


You want to make sure you are using the same key the server is using.

--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

CaseXpress - to report bugs
http://casexpress.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase.com/servlets/ProjectDocumentList


ivan.deng Posted on 2007-07-05 01:32:04.0Z
Reply-To: "ivan.deng" <guohuadeng@hotmail.com>
From: "ivan.deng" <ivan.deng@sybase.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <Xns995C5260342B4fishburnsybasecom@127.0.0.1> <4689e9c1.4092.1681692777@sybase.com> <Xns99626C9E1583Ffishburnsybasecom@127.0.0.1>
Subject: Re: about soap/java--sample erro
Lines: 54
Organization: sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: gdeng-xp.sybase.com
X-Original-NNTP-Posting-Host: gdeng-xp.sybase.com
Message-ID: <468c4a14$1@forums-1-dub>
Date: 4 Jul 2007 18:32:04 -0700
X-Trace: forums-1-dub 1183599124 158.77.123.208 (4 Jul 2007 18:32:04 -0700)
X-Original-Trace: 4 Jul 2007 18:32:04 -0700, gdeng-xp.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1089
Article PK: 9235

I do use the same key as server.

And I test that java sample again, the error message still appear.
java.security.InvalidKeyException: Illegal key size

But I found if we ignore that error, the sample work.
So we can use soap in java now.
Thank David.

"David Fishburn" <fishburn_spam@off.ianywhere.com> wrote in message
news:Xns99626C9E1583Ffishburnsybasecom@127.0.0.1...
> ivan.deng wrote in news:4689e9c1.4092.1681692777@sybase.com
> of ianywhere.public.mbusinessanywhere.general:
>
> DF>> Where are you getting your authkey from? Just so we are
> DF>> clear
>
> id> We do a POC for customer, to integrate MBA with their MIS.
> id> The key is a internal key like "F/4w5uT.....gY="
>
>
> I was looking for specifics.
> So this file:
> C:\Programs Files\M-BusinessAnywhereServer\conf\agsoap.conf
>
> You would look for a line like this:
> SoapPref AuthKey "b8fVowK8...................................."
>
>
> You want to make sure you are using the same key the server is using.
>
> --
> David Fishburn
> Certified ASA Developer Version 8
> iAnywhere Solutions - Sybase
> Professional Services
> Please only post to the newsgroup
> Please ALWAYS include version and MORE importantly BUILD number with
> EACH post (dbeng10 -v).
>
> EBFs and Maintenance Releases
> http://downloads.sybase.com/
>
> Developer Community / Whitepapers
> http://www.ianywhere.com/developer
>
> CaseXpress - to report bugs
> http://casexpress.sybase.com
>
> CodeXchange - Free samples
> http://ianywhere.codexchange.sybase.com/servlets/ProjectDocumentList
>