Trying to run the Java applications with Java version 7 Update 51, generates messages that says "Java applications are blocked by your security settings."
Table 1. Port definitions for WebSphere Application Server Version 7.0 and Version 8.0 . The
table lists port names and the default values of the port numbers.
Port Name
Default
Value
Files
Application Server
Administrative Agent
Job Manager
Secure Proxy Server
Administrative Subsystem
Administrative Console
Port (WC_adminhost)
9060
9060
9960
----
----
serverindex.xml and virtualhosts.xml
Administrative Console
Secure Port (WC_adminhost_secure)
9043
9043
9943
----
----
HTTP Transport Port (WC_defaulthost)
9080
----
----
80
----
HTTPS Transport Secure
Port (WC_defaulthost_secure)
9443
----
----
443
----
Bootstrap Port (BOOTSTRAP_ADDRESS)
2809
9807
9808
----
----
serverindex.xml
Cell Discovery Address
(CELL_DISCOVERY_ADDRESS)
----
----
----
----
----
CSIV2 Client Authentication
Listener Port (CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS)
9402
9402
9402
----
----
CSIV2 Server Authentication
Listener Port (CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS)
9403
9403
9403
----
----
High Availability Manager
Communication Port (DCS_UNICAST_ADDRESS)
9353
----
----
----
----
Internal JMS Server Port
(JMSSERVER_SECURITY_PORT)
5557
----
----
----
----
IPC Connector Port (IPC_CONNECTOR_ADDRESS)
9633
9630
9631
9633
9634
MQ Transport Port (SIB_MQ_ENDPOINT_ ADDRESS)
5558
----
----
----
----
MQ Transport Secure Port
(SIB_MQ_ENDPOINT_SECURE_ADDRESS)
5578
----
----
----
----
ORB Listener Port (ORB_LISTENER_ADDRESS)
9100
9098
9099
----
----
serverindex.xml
RMI Connector Port (RMI_CONNECTOR_ADDRESS)
----
----
----
----
9810
JSR 160 RMI Connector
Port (JSR160RMI_CONNECTOR_ADDRESS)
----
----
----
----
9811
SAS_SSL_SERVERAUTH_LISTENER_ADDRESS
9401
9401
9401
----
----
Service Integration Port
(SIB_ENDPOINT_ADDRESS)
7276
----
----
----
----
Service Integration Secure
Port (SIB_ENDPOINT_SECURE_ADDRESS)
7286
----
----
----
----
SIP Container Port (SIP_DEFAULTHOST)
5060
----
----
5060
----
SIP Container Secure Port
(SIP_DEFAULTHOST_SECURE)
5061
----
----
5061
----
SOAP Connector Port (SOAP_CONNECTOR_ADDRESS)
8880
8877
8876
----
8881
IBM® HTTP
Server Port
80
----
----
----
----
virtualhosts.xml,
plugin-cfg.xml, and web_
server_ root/conf/ httpd.conf
<ns2:processByJavaAdapterResponse xmlns:ns2="http://wsi.reg.sitronics.com/">
</ns2:processByJavaAdapterResponse>
<return><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<error>
<faultcode>Нет связи с сервером</faultcode>
<fault></fault>
</error>]]></return>
А вот не всегда.
Иногда ответ приходит таким:
<ns2:processByJavaAdapterResponse xmlns:ns2="http://wsi.reg.sitronics.com/"> <return><?xml version="1.0" encoding="UTF-8"?> <faultcode>Нет связи с сервером</faultcode></return> </ns2:processByJavaAdapterResponse>
И это не баг, а фича :-)
Иногда веб-сервису кажется что такой способ обертки XML более лучший.
Вот уже долгое время в качестве клиента для веб-сервисов использую самый простой Axis, и этого вполне хватало, однако столкнулся с проблемой что JAX-WS веб-сервис, возвращающий массив своих объектов перестал правильно "распознаваться" axis'овским клиентом.
AxisFault!
Все таки, для JAX-WS сервиса требуется и jAX-WS клиент!
В качестве wsdl location можно прямо указать url, но в моем случае была переброска портов и адрес endpoint'а отличался от прописанного в wsdl, поэтому я скачивал wsdl заранее:
По той же причине я сперва скачиваю wsdl, а уже потом запускаю wsimport.
Для com.sun.tools.ws.ant.WsImport потребуется jax-ws фреймворк (jaxws-tools.jar), я взял его с https://jax-ws.java.net
Вот и все!
String url = "http://sea:9084/SeaIntService/SeaIntService";
URL wsdlLocation = new URL(url.concat("/SeaIntService.wsdl"));
QName qname = new QName("http://ws.sitronics.com/", "SeaIntService");
SeaIntService service = new SeaIntService(wsdlLocation, qname);
SeaInt seaInt = service.getSeaIntPort();
// Use the BindingProvider's context to set the endpoint
BindingProvider bp = (BindingProvider) seaInt;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
List<PdfDocument> pdfs = seaInt.getPdfDocuments("{D3ED8387-1A95-4032-9B20-0216ADA310EE}");