ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Web Service authentication problem

Post new topic  Reply to topic Goto page Previous  1, 2
 Web Service authentication problem « View previous topic :: View next topic » 
Author Message
nvenkatesh
PostPosted: Thu Jun 28, 2007 2:39 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jan 2007
Posts: 45

jefflowrey/Marcin

jefflowrey wrote:
I'm saying that one should use EXISTING code where it's reasonable to do so, rather than writing NEW code.


marcin wrote:
If there is funcionality implemented in broker (ESQL or JAVA) just use it and don't try to write it by your own.


I accept. Thanks for the above points.

Further,can you please provide me any link or reference for the below queries.
It will be a great help for my project.

1) Is there any performance report related to the performance comparison of ESQL and Java within broker DFE?

2) Is there any link/document related to "com.ibm.broker.javacompute.Base64" class in the Message Broker so that i will be prevented from using any undocumented features of the Message Broker?
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Jun 28, 2007 3:01 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

nvenkatesh wrote:

1) Is there any performance report related to the performance comparison of ESQL and Java within broker DFE?


In this article there is "JavaCompute node performance" chapter
http://www.ibm.com/developerworks/websphere/library/techarticles/0605_crocker/0605_crocker.html
_________________
Marcin


Last edited by marcin.kasinski on Thu Jun 28, 2007 5:47 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
nvenkatesh
PostPosted: Thu Jun 28, 2007 5:41 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jan 2007
Posts: 45

Thanks Marcin.
Back to top
View user's profile Send private message
roysterdoyster
PostPosted: Thu Nov 08, 2007 8:17 am    Post subject: Reply with quote

Apprentice

Joined: 26 Oct 2007
Posts: 25
Location: Glasgow, UK

Folks,
I've read through a number of these posts now but am no closer to getting a solution. I'm trying to use the HHTPRequest node to invoke a web service outside of our corporate network.

When I try to connect via the proxy, I get an authentication failure as the userid/password aren't in the header.

I've read that I should use the base64Encode class as a procedure to set the correct header value but as far as I can see the procedure would be

<code>
CREATE PROCEDURE base64Encode(IN source BLOB)
RETURNS CHARACTER
LANGUAGE JAVA
EXTERNAL
NAME "com.ibm.broker.javacompute.Base64.encode";
</code>

but the userid:password is a character so can't be passed to this procedure. If iI attempt to CAST it as a BLOB I get an error

<code>
Text = String is not of correct form for byte array. Must have even number of characters</code>

Can anyone explain (preferably with a code example) of how to call this procedure?
thks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Nov 08, 2007 8:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to specify CodedCharSetID on the cast...

Here's code
Code:
SET OutputRoot.HTTPRequestHeader."Authorization" = 'Basic '||b64Encode(CAST(user||':'||password as BLOB CCSID InputRoot.Properties.CodedCharSetId));

---
CREATE PROCEDURE b64Encode(IN source BLOB)
RETURNS CHARACTER
LANGUAGE JAVA
EXTERNAL NAME "com.ibm.broker.javacompute.Base64.encode";





Note, if you're proxy is NOT using BasicAuthentication, this won't help.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Web Service authentication problem
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.