|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Web Service authentication problem |
« View previous topic :: View next topic » |
Author |
Message
|
nvenkatesh |
Posted: Thu Jun 28, 2007 2:39 am Post subject: |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Thu Jun 28, 2007 3:01 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
nvenkatesh |
Posted: Thu Jun 28, 2007 5:41 am Post subject: |
|
|
Apprentice
Joined: 29 Jan 2007 Posts: 45
|
|
Back to top |
|
 |
roysterdoyster |
Posted: Thu Nov 08, 2007 8:17 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Nov 08, 2007 8:25 am Post subject: |
|
|
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 |
|
 |
|
|
|
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
|
|
|
|