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 » WS-Security any success!

Post new topic  Reply to topic
 WS-Security any success! « View previous topic :: View next topic » 
Author Message
broker_new
PostPosted: Sun Jan 09, 2011 8:58 am    Post subject: WS-Security any success! Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Guys,

did anyone had success in posting the data against web service which has WS Security enabled?.
All the information in infocenter and other links didn't helped much in the path of success.

is the Java Compute node the way at this time?[/quote]
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Jan 09, 2011 9:01 am    Post subject: Re: WS-Security any success! Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

broker_new wrote:
All the information in infocenter and other links didn't helped much in the path of success.


Perhaps if you went into a little more details as to what you've tried & what went wrong when you tried it?

Have you reviewed the posts in here about this somewhat fraught subject? Did any of them have any bearing on your issues (i.e. solved one problem but caused another)? Or perhaps if you could explain how they (and the infocentre) don't meet your requirements you might get better advice?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
broker_new
PostPosted: Sun Jan 09, 2011 9:08 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Here is the soap message that i need to post on the web service provider.

Code:
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <ds:Signature Id="Signature-22460618" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
            <ds:SignedInfo>
               <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
               <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
               <ds:Reference URI="#id-32853804">
                  <ds:Transforms>
                     <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                  </ds:Transforms>
                  <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                  <ds:DigestValue>XFnYYLcgUN+TCJl8WFIA1uFTUMs=</ds:DigestValue>
               </ds:Reference>
            </ds:SignedInfo>
            <ds:SignatureValue>GbzRtXpPgMWSZDWQ5WADKMUtTbeMkXnixgUxMxLheoKu3xwkhuVtwvlxWgXvtk3Hv96q0ideoLiq
6b2pGDp38qYRCb74lxaR8j6PM+/TleeSIc1oHezDvcxfhfVP4vxXYDXLtCJma+Hzxizz/XU/mVhI
ACK1iCcJgIK6QEw+Ruv1DV7qb/3VAoL0UGi7YrNz65CvWkJU3Kt6FEE4JdOjSjhrHR2hr1RA5fjs
Bk7iC4WoxiYApiP5+1yYC3C+q/kv8ns8T4AGwxr/xHTeufBpiefXfyFcsdd4aIyeXYsQJdFF856F 9d953VdwIHbNmOqc7MEOkmw8Qifl2nTsb1BUng==</ds:SignatureValue>
            <ds:KeyInfo Id="KeyId-31990311">
               <wsse:SecurityTokenReference wsu:Id="STRId-24112784" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                  <wsse:KeyIdentifier EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">MIIGBTCCBO
2gAwIBAgIRALdw0/jtGq+1feiPw0YTKkMwDQYJKoZIhvcNAQEFBQAwgYkxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVh
dGVyIE1hbmNoZXN0ZXIxEDAOBgN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lBC0wKwYIKwYBBQUHAwEGCCsGAQUFBw
MCBgorBgEEAYI3CgMDBglghkgBhvhCBAEwRgYDVR0gBD8wPTA7BgwrBgEEAbIxAQIBAwQwKzApBggrBgEFBQcCARYdaHR
0cHM6Ly9zZWN1cmUuY29tb2RvLm5ldC9DUFMwTgYDVR0fBEcwRTBDoEGgP4Y9aHR0cDovL2NybC5jb21vZG9jYS5jb20vQ2
9tb2RvSGlnaEFzc3VyYW5jZVNlY3VyZVNlcnZlckNBLmNybDB/BggrBgEFBQcBAQRzMHEwSQYIKwYBBQUHMAKGPWh0dHA6L
y9jcnQuY29tb2RvY2EuY29tL0NvbW9kb0hpZ2hBc3N1cmFuY2VTZWN1cmVTZXJ2ZXJDQS5jcnQwJAYIKwYBBQUHMAGGGGh0
dHA6Ly9vY3NwLmNvbW9kb2NhLmNvbTAtBgNVHREEJjAkgg53c2JldGEuYWR0LmNvbYISd3d3LndzYmV0YS5hZHQuY29tMA0G
CSqGSIb3DQEBBQUAA4IBAQAQuYiduItWDEZ6oVdSACWgHBsxvP/koD3/GgdylpoLTaidbPhNazXgYtitGAFg9bOtgu8LWbLmiv2
MdGPuM9tBaebZm98LiIYxXTvCE1l/c4kH7Aq2ur5gueIa/b8CyyBMf1kE6eeYJ7c61Exdj1O3VEHMNBr49reVBgCu+rijLU2WSzIhu
6tytToC2L/CTCpoTQy3PWnRX/tI3ATSVkfs4kkmXlgQZ3Vi/MLX8NnAzIB9z9vu37b+JbLT4a1ah1N3KfP9FUzAny2wIZsBNoDrD2
mgv9V3mckx6WzcjEwrJs8K6ELbIKb/Dzl5fN4A3RbTbMfurbPkwOeUTucUfyzn</wsse:KeyIdentifier>
               </wsse:SecurityTokenReference>
            </ds:KeyInfo>
         </ds:Signature>
         <wsse:UsernameToken wsu:Id="UsernameToken-30763584" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>abcd</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">abcd</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" wsu:Id="id-32853804"
       xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <s0:retrieveCustomer
          xmlns:s0="http://netservices.staples.net/vasipvsi/vsi_connectedhome_webservice"
          xmlns:s1="java:net.staples.vsi.datatype"
          xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
          xmlns:stns="java:net.staples.vsi.datatype.connectedhome"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <retrieveCustomerParameters xsi:type="stns:retrieveCustomerProfileParameters">
            <s1:sessionId xsi:type="xs:string" />
            <s1:testMode xsi:type="xs:boolean">true</s1:testMode>
         </retrieveCustomerParameters>
      </s0:retrieveCustomer>
   </soapenv:Body>
</soapenv:Envelope>


mqsichangeproperties BROKER612 -e default -o ComIbmJVMManager -n keystoreFile -v C:\IBM\Java\wsstaples_com.jks
mqsichangeproperties BROKER612 -e default -o ComIbmJVMManager -n keystoreType -v JKS
mqsichangeproperties BROKER612 -e default -o ComIbmJVMManager -n keystorePass -v Consumer::abcd1234
mqsichangeproperties BROKER612 -e default -o ComIbmJVMManager -n truststoreFile -v C:\IBM\Java\wsstaples_com.jks
mqsichangeproperties BROKER612 -e default -o ComIbmJVMManager -n truststoreType -v JKS
mqsichangeproperties BROKER612 -e default -o ComIbmJVMManager -n truststorePass -v Consumer::abcd1234

mqsisetdbparms BROKER612 -n Consumer::abcd1234 -u abcd -p abcd


edited for readability
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
broker_new
PostPosted: Sun Jan 09, 2011 9:09 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Here is the exception

( ['MQROOT' : 0x7504c60]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\S610_P\src\DataFlowEngine\ImbDataFlowNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 957 (INTEGER)
(0x03000000:NameValue):Function = 'ImbDataFlowNode::createExceptionList' (CHARACTER)
(0x03000000:NameValue):Type = 'ImbRequestTemplateNode' (CHARACTER)
(0x03000000:NameValue):Name = 'VZIntegration_getProfile_MsgFlow#FCMComposite_1_6' (CHARACTER)
(0x03000000:NameValue):Label = 'VZIntegration_getProfile_MsgFlow.SOAP Request' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Node throwing exception' (CHARACTER)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\S610_P\src\WebServices\WSLibrary\ImbSOAPRequestNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 979 (INTEGER)
(0x03000000:NameValue):Function = 'ImbSOAPRequestNode::requestData' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3731 (INTEGER)
(0x03000000:NameValue):Text = 'WS-Security exception' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'Policy_2' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'Bindings_2' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\S610_P\export\x86_nt_4\usr\include\ImbSOAPJniManager.hpp' (CHARACTER)
(0x03000000:NameValue):Line = 685 (INTEGER)
(0x03000000:NameValue):Function = 'JNIReturn::processRootKnownException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3730 (INTEGER)
(0x03000000:NameValue):Text = 'username exception' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\S610_P\export\x86_nt_4\usr\include\ImbSOAPJniManager.hpp' (CHARACTER)
(0x03000000:NameValue):Line = 685 (INTEGER)
(0x03000000:NameValue):Function = 'JNIReturn::processRootKnownException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3727 (INTEGER)
(0x03000000:NameValue):Text = 'Exception from WAS code' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'org.apache.axis2.AxisFault: CWWSS6521E: The Login failed because of an exception: javax.security.auth.login.LoginException: Broker security manager failed to provide a username' (CHARACTER)
)
)
)
)
)
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WS-Security any success!
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.