Commit 5da9603c by Patryk Czarnik

InfoHandler - szczegóły serwletowe

parent 26a284b5
......@@ -28,6 +28,11 @@
<version>3.42.0.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
</dependency>
</dependencies>
<build>
......
package ogloszenia.soap.handlers;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.xml.soap.SOAPException;
import jakarta.xml.soap.SOAPHeader;
import jakarta.xml.soap.SOAPHeaderElement;
......@@ -36,8 +37,8 @@ public class InfoHandler implements SOAPHandler<SOAPMessageContext> {
QName operacja = (QName)context.get(SOAPMessageContext.WSDL_OPERATION);
System.out.println("operacja: " + operacja);
// HttpServletRequest req = (HttpServletRequest) context.get(SOAPMessageContext.SERVLET_REQUEST);
// System.out.println(" adres klienta: " + req.getLocalAddr());
HttpServletRequest req = (HttpServletRequest) context.get(SOAPMessageContext.SERVLET_REQUEST);
System.out.println(" adres klienta: " + req.getLocalAddr());
// dopisanie nagłówka czas:
if(wychodzaca) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment