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 IndexWebSphere Message Broker SupportMustUnderstand Header-Check Failed for Header

Post new topicReply to topic
MustUnderstand Header-Check Failed for Header View previous topic :: View next topic
Author Message
anil kumar
PostPosted: Tue Apr 04, 2017 10:10 pm Post subject: MustUnderstand Header-Check Failed for Header Reply with quote

Novice

Joined: 22 Jan 2017
Posts: 19

Dear all

I am working on soap webservice with ws-security basic auth (username auth)

my flow looks like
SOAP Input>>Ping_Message_SetService>>Soap Reply

I have created 1. policy set 2. policy Binding 3.Security Profile

Code:

Security Profile
mqsisetdbparms TEST -n WSSecurityID -u USER -p 1234
 
mqsicreateconfigurableservice TEST -c SecurityProfiles -o Prov_Profile -n "propagation,idToPropagateToTransport,transportPropagationConfig" -v "TRUE,STATIC ID,WSSecurityID"



i have given policy sets and policy bindings to BAR file and redeployed it

my input is

Code:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ping="http://tempuri.org/Ping_Message_Set">
   <soapenv:Header/>
   <soapenv:Body>
      <ping:Input>
         <Ping>test</Ping>
      </ping:Input>
   </soapenv:Body>
</soapenv:Envelope>



when im hitting from soap UI iam getting the fallowing exception





Code:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:MustUnderstand</faultcode>
         <faultstring>MustUnderstand Header-Check Failed for Header: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security whilst processing operation: Ping</faultstring>
         <detail>
            <Exception>org.apache.axis2.AxisFault: MustUnderstand Header-Check Failed for Header: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security whilst processing operation: Ping
   at com.ibm.broker.axis2.MustUnderstandHeaderInHandler.invoke(MustUnderstandHeaderInHandler.java:335)
   at org.apache.axis2.handlers.AbstractHandler.invoke_stage2(AbstractHandler.java:133)
   at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:343)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:360)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:195)
   at com.ibm.broker.axis2.Axis2Invoker.processInboundRequest(Axis2Invoker.java:3624)
   at com.ibm.broker.axis2.Axis2Invoker.invokeAxis2(Axis2Invoker.java:3166)
   at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:669)
   at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:615)</Exception>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>



Last edited by anil kumar on Tue Apr 04, 2017 10:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
anil kumar
PostPosted: Tue Apr 04, 2017 10:11 pm Post subject: Reply with quote

Novice

Joined: 22 Jan 2017
Posts: 19

Code:
This is the request going from soap ui:

SOAP
   Context
         operation:CHARACTER:Ping
         operationType:CHARACTER:REQUEST_RESPONSE
         portType:CHARACTER:Ping_Message_SetPortType
         portTypeNamespace:CHARACTER:http://tempuri.org/Ping_Message_Set
         port:CHARACTER:Ping_Message_SetSOAP_HTTP_Port
         service:CHARACTER:Ping_Message_SetSOAP_HTTP_Service
         fileName:CHARACTER:C:\ProgramData\Application Data\IBM\MQSI\components\TEST\13af353c-5b01-0000-0080-d554fcbcbf14\config\e93b4b3c-5b01-0000-0080-f8fdfed22a1b\XSD\Ping_Message_Set/org/tempuri/pingmessageset/Ping_Message_SetService.wsdl
         SOAP_Version:CHARACTER:1.1
         Namespace
               ping:CHARACTER:http://tempuri.org/Ping_Message_Set
               soapenv:CHARACTER:http://schemas.xmlsoap.org/soap/envelope/
   Header
         Security
               wsse:CHARACTER:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
               wsu:CHARACTER:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
               mustUnderstand:CHARACTER:1
               UsernameToken
                     Id:CHARACTER:UsernameToken-A0739768162B9FBDC814913705999597
                     Username:CHARACTER:USER
                     Password:CHARACTER:1234
                           Type:CHARACTER:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
                     Nonce:CHARACTER:NHyQ3azfqBpLo7/CC1jXLQ==
                           EncodingType:CHARACTER:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
                     Created:CHARACTER:2017-04-05T05:36:39.959Z
   Body
         Input
               Ping:CHARACTER:?
[/code]

Last edited by anil kumar on Tue Apr 04, 2017 10:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
anil kumar
PostPosted: Tue Apr 04, 2017 10:48 pm Post subject: Reply with quote

Novice

Joined: 22 Jan 2017
Posts: 19

This is the response iam getting if dont pass any username and password

Code:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="unt_20" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>USER</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">1234</wsse:Password>
            <wsu:Created>2017-04-05T06:46:03.439Z</wsu:Created>
            <wsse:Nonce>60X+JcUmR6ygYoe0HDD2qRdDSCgVX2ZjRe0iQQ81R8cMdnlU30rddWRZPaRKF9Ibx31NLWFj1rXgTfOFvk9Vsq25B4biH5dFKnNeu3NyuZsrWhxYgBlSfVMBLDq2qNH37ekee5+JU+fXyevnlUd1V3IQvi+ckp4s8mofVxlQl5E=</wsse:Nonce>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <Output>
         <Ping_Response>Success</Ping_Response>
      </Output>
   </soapenv:Body>
</soapenv:Envelope>

Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportMustUnderstand Header-Check Failed for Header
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.