public class SoapUtil extends Object
Constructor and Description |
---|
SoapUtil() |
Modifier and Type | Method and Description |
---|---|
static SoapClient |
createClient(String url)
创建SOAP客户端,默认使用soap1.1版本协议
|
static SoapClient |
createClient(String url,
SoapProtocol protocol)
创建SOAP客户端
|
static SoapClient |
createClient(String url,
SoapProtocol protocol,
String namespaceURI)
创建SOAP客户端
|
static String |
toString(SOAPMessage message,
boolean pretty)
SOAPMessage 转为字符串 |
static String |
toString(SOAPMessage message,
boolean pretty,
Charset charset)
SOAPMessage 转为字符串 |
public static SoapClient createClient(String url)
url
- WS的URL地址SoapClient
public static SoapClient createClient(String url, SoapProtocol protocol)
url
- WS的URL地址protocol
- 协议,见SoapProtocol
SoapClient
public static SoapClient createClient(String url, SoapProtocol protocol, String namespaceURI)
url
- WS的URL地址protocol
- 协议,见SoapProtocol
namespaceURI
- 方法上的命名空间URISoapClient
public static String toString(SOAPMessage message, boolean pretty)
SOAPMessage
转为字符串message
- SOAP消息对象pretty
- 是否格式化public static String toString(SOAPMessage message, boolean pretty, Charset charset)
SOAPMessage
转为字符串message
- SOAP消息对象pretty
- 是否格式化charset
- 编码Copyright © 2024. All rights reserved.