Hi Daniel,

Sorry for late reply....

POST /eskm/services/eventNotification HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Accept: */*
SOAPAction: ""
User-Agent: Apache CXF 2.6.5
Cache-Control: no-cache
Pragma: no-cache
Host: localhost:8081
Connection: keep-alive
Content-Length: 1544

I looged this request while creating service throught java client.

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><wsse:Security
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
SOAP-ENV:mustUnderstand="1"><wsse:UsernameToken><wsse:Password
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>TestPassword</wsse:Password><wsse:Username
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>TestUser</wsse:Username></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns1:sendNotification
xmlns:ns1="http://webservice.oasys.ets.org";><EventNotificationInfo_1
xmlns:ns2="http://webservice.oasys.ets.org/types";><sourceName>IBIS</sourceName><sourceType>ITEM
BANK</sourceType><eventType>ADMIN_FINALIZED</eventType><xmlData>&lt;questestinterop>&lt;qticomment>Event
Notification XML&lt;/qticomment> &lt;context> &lt;generic_identifier> 
&lt;type_label>TestProgramCode&lt;/type_label> 
&lt;identifier_string>GRI&lt;/identifier_string>  &lt;/generic_identifier> 
&lt;generic_identifier>    &lt;type_label>TestSubjectCode&lt;/type_label>  
&lt;identifier_string>GEN&lt;/identifier_string>
&lt;/generic_identifier>&lt;generic_identifier>   
&lt;type_label>TestAdminCode&lt;/type_label>  
&lt;identifier_string>20100917A&lt;/identifier_string>
&lt;/generic_identifier>&lt;/context>&lt;/questestinterop></xmlData></EventNotificationInfo_1></ns1:sendNotification></soap:Body></soap:Envelope>

This is the request created by java client while calling the webservice.

And below is the response M getting from server..
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 361
Date: Mon, 29 Apr 2013 17:44:30 GMT
Connection: close

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><soap:Fault><faultcode
xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>ns1:InvalidSecurity</faultcode><faultstring>An
error was discovered processing the &lt;wsse:Security>
header</faultstring></soap:Fault></soap:Body></soap:Envelope>


Will appreciate your help...on server side in its not able to find
UsernameToken.

Nidhi






--
View this message in context: 
http://cxf.547215.n5.nabble.com/Problem-with-UsernameToken-tp5726788p5726913.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to