public class SoapResponse extends Object
Constructor and Description |
---|
SoapResponse(Response response,
jakarta.xml.soap.MessageFactory factory)
构造
|
Modifier and Type | Method and Description |
---|---|
jakarta.xml.soap.SOAPBody |
getBody()
获取SOAP消息体
|
String |
getBodyText()
获取SOAP消息体中的文本内容
|
jakarta.xml.soap.SOAPFault |
getFault()
获取SOAP消息体中的错误信息,
null 表示没有错误 |
Response |
getHttpResponse()
获取原始HTTP响应
|
jakarta.xml.soap.SOAPMessage |
getMessage()
获取SOAP消息
|
String |
getResponseStr(boolean pretty)
获取SOAP消息字符串,默认为XML格式
|
boolean |
hasFault()
是否有错误信息
|
public SoapResponse(Response response, jakarta.xml.soap.MessageFactory factory)
response
- HTTP响应factory
- MessageFactory
public Response getHttpResponse()
public String getResponseStr(boolean pretty)
pretty
- 是否格式化XMLpublic jakarta.xml.soap.SOAPMessage getMessage()
public jakarta.xml.soap.SOAPBody getBody()
public String getBodyText()
public boolean hasFault()
public jakarta.xml.soap.SOAPFault getFault()
null
表示没有错误Copyright © 2025. All rights reserved.