Hi all,
i need to build an Axis2 message contex to send to Rampart without
engaging it (i need to use it not in inPipe or outPipe)
I did it for the sender adding this property (for example)
<parameter name="OutflowSecurity">
<action>
<items>Timestamp</items>
<actor>openspcoop</actor>
<mustUnderstand>false</mustUnderstand>
<timeToLive>600</timeToLive>
</action>
</parameter>
with
messageContext.setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, par);
and then
WSDoAllSender wssSender = new WSDoAllSender();
wssSender.processMessage(baseUtilsWSS.getMessageContext(messageContext));
and everything works fine.
Then i did it with the inflow but i find some problems...
As for Outflow i made th INFLOW_SECURTY parameter and added it to
MssageContext.
Then i setServerSide(true)
Now i get a: org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming
message does not contain required Security header
What i miss to do?
This is my message and i build the MessageContext starting from a
SOAPMessageImpl (saaj)
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:actor="openspcoop"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-32872251"><wsu:Created>2007-10-04T09:54:49.991Z</wsu:Created><wsu:Expires>2007-10-04T10:04:49.991Z</wsu:Expires></wsu:Timestamp></wsse:Security><eGov_IT:Intestazione
xmlns:eGov_IT="http://www.cnipa.it/schemas/2003/eGovIT/Busta1_0/"
soapenv:actor="http://www.cnipa.it/eGov_it/portadominio"
soapenv:mustUnderstand="true"><eGov_IT:IntestazioneMessaggio><eGov_IT:Mittente><eGov_IT:IdentificativoParte
tipo="SPC">MinisteroFruitore</eGov_IT:IdentificativoParte></eGov_IT:Mittente><eGov_IT:Destinatario><eGov_IT:IdentificativoParte
tipo="SPC">MinisteroErogatore</eGov_IT:IdentificativoParte></eGov_IT:Destinatario><eGov_IT:ProfiloCollaborazione>EGOV_IT_ServizioSincrono</eGov_IT:ProfiloCollaborazione><eGov_IT:Servizio
tipo="SPC">RichiestaStatoAvanzamento</eGov_IT:Servizio><eGov_IT:Azione>WSSTimestamp</eGov_IT:Azione><eGov_IT:Messaggio><eGov_IT:Identificatore>MinisteroFruitore_MinisteroFruitoreSPCoopIT_0000001_2007-10-04_11:54</eGov_IT:Identificatore><eGov_IT:OraRegistrazione
tempo="EGOV_IT_Locale">2007-10-04T11:54:49.201</eGov_IT:OraRegistrazione></eGov_IT:Messaggio><eGov_IT:ProfiloTrasmissione
confermaRicezione="false" inoltro="EGOV_IT_PIUDIUNAVOLTA"
/></eGov_IT:IntestazioneMessaggio><eGov_IT:ListaTrasmissioni><eGov_IT:Trasmissione><eGov_IT:Origine><eGov_IT:IdentificativoParte
tipo="SPC">MinisteroFruitore</eGov_IT:IdentificativoParte></eGov_IT:Origine><eGov_IT:Destinazione><eGov_IT:IdentificativoParte
tipo="SPC">MinisteroErogatore</eGov_IT:IdentificativoParte></eGov_IT:Destinazione><eGov_IT:OraRegistrazione
tempo="EGOV_IT_Locale">2007-10-04T11:54:49.201</eGov_IT:OraRegistrazione></eGov_IT:Trasmissione></eGov_IT:ListaTrasmissioni></eGov_IT:Intestazione></soapenv:Header><soapenv:Body><eseguiServizio
xmlns="http://spcoop.it/cart/pdd-test"><Richiesta><persona nome="mario"
cognome="rossi"/></Richiesta></eseguiServizio></soapenv:Body></soapenv:Envelope>
Thx for any help,
Lorenzo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]