Skip to content

Commit

Permalink
Make .NET happy
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <[email protected]>
  • Loading branch information
pierre committed Jan 11, 2025
1 parent 4751d2c commit 643b75e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Map;
import java.util.Properties;
import javax.servlet.Servlet;
import javax.servlet.http.HttpServlet;
Expand Down Expand Up @@ -136,6 +137,9 @@ private void soap() throws SOAPException, IOException {
Service service = Service.create(serviceName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
Dispatch<SOAPMessage> dispatch = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
Map<String, Object> rc = dispatch.getRequestContext();
rc.put(jakarta.xml.ws.BindingProvider.SOAPACTION_USE_PROPERTY, true);
rc.put(jakarta.xml.ws.BindingProvider.SOAPACTION_URI_PROPERTY, "\"http://tempuri.org/Add\"");
System.out.println("Sending 'Add' request to the public Calculator service...");
SOAPMessage response = dispatch.invoke(request);
ByteArrayOutputStream out = new ByteArrayOutputStream();
Expand Down

0 comments on commit 643b75e

Please sign in to comment.