Commit 5da9603c by Patryk Czarnik

InfoHandler - szczegóły serwletowe

parent 26a284b5
...@@ -28,6 +28,11 @@ ...@@ -28,6 +28,11 @@
<version>3.42.0.0</version> <version>3.42.0.0</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
package ogloszenia.soap.handlers; package ogloszenia.soap.handlers;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.xml.soap.SOAPException; import jakarta.xml.soap.SOAPException;
import jakarta.xml.soap.SOAPHeader; import jakarta.xml.soap.SOAPHeader;
import jakarta.xml.soap.SOAPHeaderElement; import jakarta.xml.soap.SOAPHeaderElement;
...@@ -36,8 +37,8 @@ public class InfoHandler implements SOAPHandler<SOAPMessageContext> { ...@@ -36,8 +37,8 @@ public class InfoHandler implements SOAPHandler<SOAPMessageContext> {
QName operacja = (QName)context.get(SOAPMessageContext.WSDL_OPERATION); QName operacja = (QName)context.get(SOAPMessageContext.WSDL_OPERATION);
System.out.println("operacja: " + operacja); System.out.println("operacja: " + operacja);
// HttpServletRequest req = (HttpServletRequest) context.get(SOAPMessageContext.SERVLET_REQUEST); HttpServletRequest req = (HttpServletRequest) context.get(SOAPMessageContext.SERVLET_REQUEST);
// System.out.println(" adres klienta: " + req.getLocalAddr()); System.out.println(" adres klienta: " + req.getLocalAddr());
// dopisanie nagłówka czas: // dopisanie nagłówka czas:
if(wychodzaca) { 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