Hi all, Please guide me How you have generated this <wsa:Action> , <wsa:MessageID> , <wsa:ReplyTo> and <wsa:To> in SOAP Header.
I am not able to generate this. Please see the below hear that i have to generate. <soap:Header> <wsa:Action> http://www.test.com/api/ws/internal/testInfo </wsa:Action> <wsa:MessageID> urn:uuid:ca7e475b-484a-4bb8-974f-eb573438bb43 </wsa:MessageID> <wsa:ReplyTo> <wsa:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> </wsa:ReplyTo> <wsa:To> http://localhost:8080/testapi/testwsapi.asmx </wsa:To> <wsse:Security soap:mustUnderstand="1"> <!-- inside this , all required tag is generated--> </wsse:Security> </soap:Header> Please see my client-config.wsdd - <?xml version="1.0" encoding="UTF-8"?> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/> <globalConfiguration> <requestFlow> <handler type="java:org.apache.ws.axis.security.WSDoAllSender" > <parameter name="action" value="Timestamp UsernameToken"/> <parameter name="user" value="[EMAIL PROTECTED]"/> <parameter name="passwordCallbackClass" value="com.test.www.api.booking.ws.internal.PWCallback"/> <parameter name="passwordType" value="PasswordText"/> <parameter name="password" value="ppp000C03"/> <parameter name="mustUnderstand" value="true" /> <parameter name="addUTElements" value="Nonce Created"/> </handler> </requestFlow> </globalConfiguration> </deployment> Please guide me to generating <wsa:Action> , <wsa:MessageID> , <wsa:ReplyTo> and <wsa:To> in SOAP header Regards Santosh Sean Kavanagh wrote: > > i'm having trouble migrating our axis/wss4j client to work with a > new .NET service. > > i'm getting > > faultCode: > {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd > > }InvalidSecurityToken > faultSubcode: > faultString: An invalid security token was provided > faultActor: > https://applications.transcontinentaldirect.com/test/armyrotcleads/ws18/LeadsTransaction.asmx > > i'm using Axis 1.4 and WSS4j 1.5.3 > > here is my wsdd > > <deployment xmlns="http://xml.apache.org/axis/wsdd/" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java > "> > <transport name="http" > pivot="java:org.apache.axis.transport.http.HTTPSender"/> > <globalConfiguration> > <requestFlow > > <handler > type="java:org.apache.ws.axis.security.WSDoAllSender" > > <parameter name="action" value="UsernameToken"/> > <parameter name="user" value="ws_test"/> > <parameter name="passwordCallbackClass" > value="com.goarmy.brc.transaction.web.PWCallback"/> > <parameter name="passwordType" value="PasswordText"/> > <parameter name="mustUnderstand" value="1"/> > <parameter name="addUTElements" value="Nonce > Created" /> > </handler> > </requestFlow> > </globalConfiguration> > </deployment> > > i don't really have any visibility on whats going on the server side > of things or how its been configured.. I imagine that they are > probably using WSE 3.0 with this new service. > > i was able to get the service provider to send me the soap header for > a working .NET client > > <soap:Header> > > <wsa:Action>http://TranscontinentalDirect.com/WebServices/Army/ARMSTransaction_Army/InsertTransaction > > </wsa:Action> > <wsa:MessageID>uuid:aa60429b-a0ac-4fb4-807c-4725b670b650</ > wsa:MessageID> > <wsa:ReplyTo> > > <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous > </wsa:Address> > </wsa:ReplyTo> > > <wsa:To>http://applications.transcontinentaldirect.com/test/armyrotcleads/ws18/LeadsTransaction.asmx > > </wsa:To> > <wsse:Security soap:mustUnderstand="1"> > <wsu:Timestamp wsu:Id="Timestamp-5ced9be7-5cc1-456c- > b00e-35b6a8a1986d"> > <wsu:Created>2008-01-29T19:51:45Z</wsu:Created> > <wsu:Expires>2008-01-29T19:56:45Z</wsu:Expires> > </wsu:Timestamp> > <wsse:UsernameToken > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd > > " wsu:Id="SecurityToken-17f69631-0c49-4759-ba57-aa8528b74c00"> > <wsse:Username>ws_test</wsse:Username> > <wsse:Password > Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText > > ">xxxxxx</wsse:Password> > > <wsse:Nonce>UTeT6XeW+3TfMHc6ihJe9g==</wsse:Nonce> > <wsu:Created>2008-01-29T19:51:45Z</wsu:Created> > </wsse:UsernameToken> > </wsse:Security> > </soap:Header> > > and here is the one that i'm sending through axis and wss4j... > > <soapenv:Header> > <wsse:Security > xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd > > " soapenv:mustUnderstand="1"> > <wsse:UsernameToken > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd > > " wsu:Id="UsernameToken-28591825"> > <wsse:Username>ws_test</wsse:Username> > <wsse:Password > Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText > > ">xxxxxx</wsse:Password> > <wsse:Nonce>zR7G1oEFnnIIaQ0Din9jmA==</wsse:Nonce> > <wsu:Created>2008-01-25T20:30:07.223Z</wsu:Created> > </wsse:UsernameToken> > </wsse:Security> > </soapenv:Header> > > i was able to get axis/wss4j to work with their previous service very > easily.. but this ones got me stumped, any help you guys can give > would be greatly appreciated... > > thank you!!! > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/need-help-with-axis-wss4j-client-with-.net-service-tp15189102p18341747.html Sent from the WSS4J mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]