Re: Axis2 1.8.2 with Rampart 1.7.1
Prasanth <[email protected]> Mon, 10 Oct 2022 15:22:25 -0500
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <[email protected]> |
--------------s318C0vFAd2kSQbf0URsLGmB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I have tried to use Axis2 1.7.9 with Rampart 1.6.4 but still the same result the credentials are not present in the request. 2022-10-10 15:18:49,121 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - end writeTo() 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "1ed[\r][\n]" 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header/><soapenv:Body><ns1:RetrieveFacsimile xmlns:ns1="http://cdr.ffiec.gov/public/services"><ns1:dataSeries>Call</ns1:dataSeries><ns1:reportingPeriodEndDate>06/30/2011</ns1:reportingPeriodEndDate><ns1:fiIDType>FDICCertNumber</ns1:fiIDType><ns1:fiID>57095</ns1:fiID><ns1:facsimileFormat>XBRL</ns1:facsimileFormat></ns1:RetrieveFacsimile></soapenv:Body></soapenv:Envelope>" 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "[\r][\n]" 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "0" 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "[\r][\n]" 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "[\r][\n]" 2022-10-10 15:18:49,171 [main] DEBUG httpclient.wire.content - << "<html>[\r][\n]" 2022-10-10 15:18:49,171 [main] DEBUG httpclient.wire.content - << "<head><title>403 Forbidden</title></head>[\r][\n]" Thanks, Prasanth On 10/10/22 9:16 AM, Prasanth Pasala wrote: > Thanks for the response Robert. I will try Axis2 1.7.9 > > Also is there a way to pass the username token and password digest in SOAP request without using Rampart? > > Thanks, > Prasanth > > On 10/10/22 9:00 AM, robertlazarski wrote: >> First of all, see RAMPART-449 for a discussion on the next release. >> >> To see the messages, the way I would do it is the SOAP Monitor as explained in the docs. >> >> On Thu, Oct 6, 2022 at 4:50 AM Prasanth <[email protected]> wrote: >> >> Hi, >> >> I am building a client for a web service using Axis2 1.8.1 and Rampart 1.7.1 with axis2.xml (partial) shown below. When I run in debug mode I am not getting a call to my password callback class. >> >> Also is there a way to view the final SOAP request that is sent out after rampart adds security elements? I am able to view the SOAP request prior to Rampart security (by running the code in >> debug mode). >> >> Thanks, >> Prasanth >> >> >> --------------------------------------------------------------------------------------------------- >> <axisconfig name="AxisJava2.0"> >> >> <module ref="rampart" /> >> >> <!-- ================================================= --> >> <!-- Parameters --> >> <!-- ================================================= --> >> <parameter name="OutflowSecurity"> >> <action> >> <items>UsernameToken Timestamp</items> >> <user>prasanth</user> >> <passwordCallbackClass>com.nqadmin.callreports.client.PasswordCallback</passwordCallbackClass> >> </action> >> </parameter> >> >> >> --------------------------------------------------------------------------------------------------- >> > --------------s318C0vFAd2kSQbf0URsLGmB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <font face="Verdana">I have tried to use Axis2 1.7.9 with Rampart 1.6.4 but still the same result the credentials are not present in the request.<br> <br> 2022-10-10 15:18:49,121 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - end writeTo()<br> 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "1ed[\r][\n]"<br> 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2003/05/soap-envelope">"http://www.w3.org/2003/05/soap-envelope"</a>><soapenv:Header/><soapenv:Body><ns1:RetrieveFacsimile xmlns:ns1=<a class="moz-txt-link-rfc2396E" href="http://cdr.ffiec.gov/public/services">"http://cdr.ffiec.gov/public/services"</a>><ns1:dataSeries>Call</ns1:dataSeries><ns1:reportingPeriodEndDate>06/30/2011</ns1:reportingPeriodEndDate><ns1:fiIDType>FDICCertNumber</ns1:fiIDType><ns1:fiID>57095</ns1:fiID><ns1:facsimileFormat>XBRL</ns1:facsimileFormat></ns1:RetrieveFacsimile></soapenv:Body></soapenv:Envelope>"<br> 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "[\r][\n]"<br> 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "0"<br> 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "[\r][\n]"<br> 2022-10-10 15:18:49,121 [main] DEBUG httpclient.wire.content - >> "[\r][\n]"<br> 2022-10-10 15:18:49,171 [main] DEBUG httpclient.wire.content - << "<html>[\r][\n]"<br> 2022-10-10 15:18:49,171 [main] DEBUG httpclient.wire.content - << "<head><title>403 Forbidden</title></head>[\r][\n]"<br> <br> Thanks,<br> Prasanth<br> </font><br> <div class="moz-cite-prefix">On 10/10/22 9:16 AM, Prasanth Pasala wrote:<br> </div> <blockquote type="cite" cite="mid:[email protected]"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <font face="Verdana">Thanks for the response Robert. I will try Axis2 1.7.9<br> <br> Also is there a way to pass the username token and password digest in SOAP request without using Rampart?<br> <br> Thanks,<br> Prasanth<br> </font><br> <div class="moz-cite-prefix">On 10/10/22 9:00 AM, robertlazarski wrote:<br> </div> <blockquote type="cite" cite="mid:CABpPLBWD2WODb_GZaj-KQQxjOkTCkJppEQWmKwoMEh8NUsK4Ow@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr"> <div>First of all, see <span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">RAMPART-449 for a discussion on the next release. <br> </span></span></div> <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br> </span></span></div> <div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">To see the messages, the way I would do it is the SOAP Monitor as explained in the docs. <br> </span></span></div> <div><span style="font-family:monospace"></span></div> </div> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr">On Thu, Oct 6, 2022 at 4:50 AM Prasanth <<a href="mailto:[email protected]" moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>> wrote:<br> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div> <font face="Verdana">Hi,</font><br> <div><font face="Verdana"><br> I am building a client for a web service using Axis2 1.8.1 and Rampart 1.7.1 with axis2.xml (partial) shown below. When I run in debug mode I am not getting a call to my password callback class. <br> <br> Also is there a way to view the final SOAP request that is sent out after rampart adds security elements? I am able to view the SOAP request prior to Rampart security (by running the code in debug mode).<br> <br> Thanks,<br> Prasanth<br> <br> </font><br> <font face="Verdana"><font face="Verdana">---------------------------------------------------------------------------------------------------<br> </font><axisconfig name="AxisJava2.0"><br> <br> <module ref="rampart" /><br> <br> <!-- ================================================= --><br> <!-- Parameters --><br> <!-- ================================================= --><br> <parameter name="OutflowSecurity"><br> <action><br> <items>UsernameToken Timestamp</items><br> <user>prasanth</user><br> <passwordCallbackClass>com.nqadmin.callreports.client.PasswordCallback</passwordCallbackClass><br> </action><br> </parameter><br> <br> <br> ---------------------------------------------------------------------------------------------------<br> </font> </div> </div> </blockquote> </div> </blockquote> <br> </blockquote> <br> </body> </html> --------------s318C0vFAd2kSQbf0URsLGmB--