Author |
Message
|
DJN2 |
Posted: Mon Oct 24, 2011 6:09 pm Post subject: Problem with WebService using HTTPRequest Node |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
This is my first attempt at developing a web service. I am getting a socket error. Not sure what that means to me. I have tried this with/without a HTTPHeader node. Seems like I get the same error. Here is the exception list I receive. Any help is appreceaited.
Message
LocalEnvironment
File
Wildcard
Environment
Variable
MSGINFO
Destination
HTTP
RequestURL https://stg1-ss1.experian.com/netconnect2_0Demo/servlets/NetConnectServlet
ExceptionList
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbDataFlowNode.cpp
Line 1073
Function ImbDataFlowNode::createExceptionList
Type ComIbmFileInputNode
Name Experian_ECALS#FCMComposite_1_1
Label Experian_ECALS.File Input
Catalog BIPmsgs
Severity 3
Number 2230
Text Node throwing exception
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbComputeNode.cpp
Line 489
Function ImbComputeNode::evaluate
Type ComIbmComputeNode
Name Experian_ECALS#FCMComposite_1_7
Label Experian_ECALS.DetermineNeed
Catalog BIPmsgs
Severity 3
Number 2230
Text Caught exception and rethrowing
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbRdl\\ImbRdlStatementGroup.cpp
Line 641
Function SqlStatementGroup::execute
Type ComIbmComputeNode
Name Experian_ECALS#FCMComposite_1_7
Label Experian_ECALS.DetermineNeed
Catalog BIPmsgs
Severity 3
Number 2488
Text Error detected, rethrowing
Insert
Insert
Insert
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbComputeNode.cpp
Line 489
Function ImbComputeNode::evaluate
Type ComIbmComputeNode
Name Experian_ECALS#FCMComposite_1_10.ComIbmMapping#FCMComposite_1_1
Label Experian_ECALS.Mapping.ComIbmCompute
Catalog BIPmsgs
Severity 3
Number 2230
Text Caught exception and rethrowing
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbRdl\\ImbRdlStatementGroup.cpp
Line 641
Function SqlStatementGroup::execute
Type ComIbmComputeNode
Name Experian_ECALS#FCMComposite_1_10.ComIbmMapping#FCMComposite_1_1
Label Experian_ECALS.Mapping.ComIbmCompute
Catalog BIPmsgs
Severity 3
Number 2488
Text Error detected, rethrowing
Insert
Insert
Insert
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbRdl\\ImbRdlRoutine.cpp
Line 628
Function SqlRoutine::invoke
Type ComIbmComputeNode
Name Experian_ECALS#FCMComposite_1_10.ComIbmMapping#FCMComposite_1_1
Label Experian_ECALS.Mapping.ComIbmCompute
Catalog BIPmsgs
Severity 3
Number 2934
Text Error occured in procedure
Insert
RecoverableException
File F:\\build\\S700_P\\src\\DataFlowEngine\\ImbRdl\\ImbRdlStatementGroup.cpp
Line 641
Function SqlStatementGroup::execute
Type ComIbmComputeNode
Name Experian_ECALS#FCMComposite_1_10.ComIbmMapping#FCMComposite_1_1
Label Experian_ECALS.Mapping.ComIbmCompute
Catalog BIPmsgs
Severity 3
Number 2488
Text Error detected, rethrowing
Insert
Insert
Insert
RecoverableException
File F:\\build\\S700_P\\src\\WebServices\\WSLibrary\\ImbWSRequestNode.cpp
Line 987
Function ImbWSRequestNode::evaluate
Type ComIbmWSRequestNode
Name Experian_ECALS#FCMComposite_1_11
Label Experian_ECALS.HTTP Request1
Catalog BIPmsgs
Severity 3
Number 2230
Text Caught exception and rethrowing
RecoverableException
File F:\\build\\S700_P\\src\\WebServices\\WSLibrary\\ImbWSRequestNode.cpp
Line 901
Function ImbWSRequestNode::evaluate
Type
Name
Label
Catalog BIPmsgs
Severity 3
Number 3162
Text WebService Request Exception
Insert
Insert
Insert
Insert
Insert
RecoverableException
File F:\\build\\S700_P\\src\\WebServices\\WSLibrary\\ImbWSRequest.cpp
Line 654
Function ImbWSRequest::makeWSRequest
Type
Name
Label
Catalog BIPmsgs
Severity 3
Number 3152
Text A Web Service request has detected a SOCKET error whilst invoking a web service located at host &1, on port &2, on path &3.
Insert
Insert
Insert
SocketException
File F:\\build\\S700_P\\src\\WebServices\\WSLibrary\\ImbSocket.cpp
Line 1007
Function ImbSocketJNIManager::handleGeneralJavaException
Type
Name
Label
Catalog BIPmsgs
Severity 3
Number 3165
Text An error occurred whilst performing an SSL socket operation
Insert
Type 5
Text createSocket
Insert
Type 5
Text java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found: |
|
Back to top |
|
 |
harish_td |
Posted: Mon Oct 24, 2011 6:58 pm Post subject: |
|
|
Master
Joined: 13 Feb 2006 Posts: 236
|
The error looks to me that WMB is using a HTTPS Connection to talk to the back-end while the back-end does not support it (Or Vice Versa)
If you must use HTTPS connectivity to the back-end Web Service that you are invoking, please review the below presentation
http://www-01.ibm.com/support/docview.wss?uid=swg27012172&aid=1 |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 24, 2011 7:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
Text java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found: |
So did you set up for SSL? => i.e. https?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
DJN2 |
Posted: Mon Oct 24, 2011 9:14 pm Post subject: |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
I set the Protocol to SSL on the ssl property on the HTTPSRequest Node. Are there other properties to be set?
Last edited by DJN2 on Tue Oct 25, 2011 12:09 am; edited 1 time in total |
|
Back to top |
|
 |
DJN2 |
Posted: Mon Oct 24, 2011 10:53 pm Post subject: |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
harish_rd I reviewed the slide presentation and I believe I fullfilled all the requirements. I created the Keystore and imported the certificates and the node configuration seemed correct also. Any other ideas? Any help is appreciated. Is there any value in seeing the esql code?.......
I am not sure this code is correct...
Code: |
-- Get id and password from datasource
-- Will need to add the select statements to obtain these values from the datasource
SET ExpId = 'charlie';
SET ExpPswd = 'Brown';
SET ExpIdPswd = ExpId || ':' || ExpPswd;
SET OutputRoot.HTTPRequestHeader.IdPswd = BASE64ENCODE(ExpIdPswd);
-- Get the payload into the Output Environment variable
SET OutputRoot.HTTPRequestHeader.MsgPayload = BASE64ENCODE(CAST(ASBITSTREAM(InputRoot.XMLNSC TYPE 'Msg' FORMAT 'XML1') as CHARACTER CCSID InputRoot.Properties.CodedCharSetId));
SET OutputRoot.HTTPRequestHeader.PostContextType = 'Content-Type: application/x-www-form-urlencoded';
SET OutputRoot.HTTPRequestHeader."Content-Length" = Cast(LENGTH(OutputRoot.HTTPRequestHeader.MsgPayload) AS CHARACTER);
-- Set the literal strings for the connectivity
SET OutputRoot.HTTPRequestHeader.Post = 'POST /netconnect2_0/servlets/NetConnectServlet HTTP/1.1';
SET OutputRoot.HTTPRequestHeader.Authorization = 'Authorization: Basic ' || OutputRoot.HTTPRequestHeader.IdPswd;
SET OutputRoot.HTTPRequestHeader.Tran = '&NETCONNECT_TRANSACTION='|| OutputRoot.HTTPRequestHeader.MsgPayload; |
I started to do some of these assignments in a HTTPHeader node but reverted back to coding it.....
As I look at this code I do not see how the HTTPRequest Node interprets how to process these elements.... |
|
Back to top |
|
 |
|