axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gene Yan" <>
Subject [AXIS1.4] WSS4J is not working on server side
Date Tue, 20 Mar 2007 20:17:17 GMT
I used WSS4J 1.5.1 on both client and service side to do simple plain text
user name token.  I can send client to server but I always got the following

WSDoAllReceiver: cannot get SOAP header after security processing; nested
exception is:
 org.xml.sax.SAXParseException: &lt;Line 2, Column 1151&gt;: XML-20100:
(Fatal Error) Expected 'EOF'.

Anyone has idea what went wong?

Here is my soap client WSDD

<deployment xmlns=""


<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender



<handler type="">

<parameter name="action" value="Timestamp UsernameToken"/>

<parameter name="passwordType" value="PasswordText" />

<parameter name="user" value="xxx"/>

<parameter name="passwordCallbackClass" value="test.PWCallback"/>

<parameter name="mustUnderstand" value="true" />





This is SOAP request:

<?xml version="1.0" encoding="UTF-8"?>

="" xmlns:xsi="">


<wsse:Security xmlns:wsse="
" soapenv:mustUnderstand="1">

<wsse:UsernameToken xmlns:wsu="
" wsu:Id="UsernameToken-28142411">


<wsse:Password Type="


<wsu:Timestamp xmlns:wsu="
" wsu:Id="Timestamp-20357537">






This is Server-Config.wsdd:


<handler type="">

<parameter name="action"value="Timestamp UsernameToken" />

<parameter name="passwordCallbackClass" value="test.ServerPWCallback" />



View raw message