首页 > 代码库 > jaxws笔记

jaxws笔记

static String ENDPOINT_ADDRESS_PROPERTY 
          标准属性:目标服务端点地址。 
static String PASSWORD_PROPERTY 
          标准属性:用于验证的密码。 
static String SESSION_MAINTAIN_PROPERTY 
          标准属性:服务客户端使用此 boolean 属性指示它是否希望参与与服务端点的会话。 
static String SOAPACTION_URI_PROPERTY 
          SOAPAction 的标准属性。 
static String SOAPACTION_USE_PROPERTY 
          SOAPAction 的标准属性。 
static String USERNAME_PROPERTY 
          标准属性:用于验证的用户名。 


BindingProvider bindingProvider = (BindingProvider) servicePort;
Map<String, Object> requestContext = bindingProvider.getRequestContext();
requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointAddress);
requestContext.put("thread.local.request.context", true);
requestContext.put("com.sun.xml.internal.ws.connect.timeout", 100000);
requestContext.put("com.sun.xml.internal.ws.request.timeout", 300000);
requestContext.put("set-jaxb-validation-event-handler", false);
requestContext.put("schema-validation-enabled", false);


thread.local.request.context: 是否是线程安全的.Boolean.true就是线程安全.
Apache CXF org.apache.cxf.jaxws.JaxWsClientProxy
public static final String THREAD_LOCAL_REQUEST_CONTEXT="thread.local.request.context"


com.sun.xml.internal.ws.connect.timeout:连接超时时间
com.sun.xml.internal.ws.request.timeout:请求超时时间
set-jaxb-validation-event-handler:jaxb是否进行验证.true为开启验证.
schema-validation-enabled:schema验证是否开启,boolean.True开启验证.












jaxws笔记