Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ((javax.xml.ws.BindingProvider) _port).getRequestContext().put(JAXWSProperties.CONTENT_NEGOTIATION_PROPERTY, "pessimistic");
  2.  
  3. public EpCacheFiClient(long period) {
  4. try {
  5. _service = new EpCacheService(new URL(WSDL_URL_KEY), QNAME);
  6. _port = _service.getEpCachePort();
  7. ((javax.xml.ws.BindingProvider) _port).getRequestContext().put(JAXWSProperties.CONTENT_NEGOTIATION_PROPERTY, "pessimistic");
  8. if (_port != null) {
  9. System.out.println("Found service port!");
  10. } else {
  11. System.exit(128);
  12. }
  13. } catch (MalformedURLException e) {
  14. e.printStackTrace();
  15. }
  16. }
  17.  
  18. POST /AlertPort HTTP/1.1
  19. Content-Type: application/fastsoap; action="urn:alert"
  20. Accepts: application/fastsoap, application/text+xml
  21. Content-Length: ....
  22. ... sequence of octets …"
  23.  
  24. POST /epcache/EpCacheService HTTP/1.1
  25. Accept: text/xml, multipart/related
  26. Content-Type: text/xml;charset=utf-8
  27. SOAPAction: "urn:ProcessEpCacheSet"
  28. User-Agent: JAX-WS RI 2.2.4-b01
  29. Host: linux-xxxxx:8080
  30. Connection: keep-alive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement