本文整理汇总了Java中javax.jws.WebParam.Mode.OUT属性的典型用法代码示例。如果您正苦于以下问题:Java Mode.OUT属性的具体用法?Java Mode.OUT怎么用?Java Mode.OUT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.jws.WebParam.Mode
的用法示例。
在下文中一共展示了Mode.OUT属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPart
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
if(mode==Mode.IN){
return inParts.get(partName);
}else if(mode==Mode.OUT){
return outParts.get(partName);
}
return null;
}
示例2: login
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/LoginRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/login/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="Login")
com.informatica.wsh.LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="Context", name="Context", header=true, mode=Mode.OUT)
Holder<com.informatica.wsh.SessionHeader> Context)
throws com.informatica.wsh.Fault;
示例3: login
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/MetadataInterface/LoginRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/MetadataInterface/login/Fault/Fault",
className = Fault.class) }, output="http://www.informatica.com/wsh/MetadataInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="Login")
LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="Context", name="Context", header=true, mode=Mode.OUT)
Holder<SessionHeader> Context)
throws Fault;
示例4: numOutputBodyParams
/**
* @param pds
* @return Number of inout or out parameters
*/
static int numOutputBodyParams(ParameterDescription[] pds) {
int count = 0;
for (int i=0; i<pds.length; i++) {
// TODO Need to change this to also detect not attachment
if (!pds[i].isHeader()) {
if (pds[i].getMode() == Mode.INOUT ||
pds[i].getMode() == Mode.OUT) {
count++;
}
}
}
return count;
}
示例5: echo
/**
*
* @param request
* @param dummyAttachmentINOUT
* @param dummyAttachmentOUT
* @param response
* @param dummyAttachmentIN
*/
@WebMethod
public void echo(
@WebParam(name = "request", partName = "request")
String request,
@WebParam(name = "dummyAttachmentIN", partName = "dummyAttachmentIN")
String dummyAttachmentIN,
@WebParam(name = "dummyAttachmentINOUT", mode = Mode.INOUT, partName = "dummyAttachmentINOUT")
Holder<DataHandler> dummyAttachmentINOUT,
@WebParam(name = "response", mode = Mode.OUT, partName = "response")
Holder<String> response,
@WebParam(name = "dummyAttachmentOUT", mode = Mode.OUT, partName = "dummyAttachmentOUT")
Holder<String> dummyAttachmentOUT);
示例6: getPart
public WSDLPartImpl getPart(String partName, Mode mode) {
if(mode==Mode.IN){
return inParts.get(partName);
}else if(mode==Mode.OUT){
return outParts.get(partName);
}
return null;
}
示例7: isOUT
public boolean isOUT() {
return mode==Mode.OUT;
}
示例8: addPart
public void addPart(EditableWSDLPart part, Mode mode){
if(mode==Mode.IN)
inParts.put(part.getName(), part);
else if(mode==Mode.OUT)
outParts.put(part.getName(), part);
}
示例9: isOUT
public boolean isOUT(){
return (mode == Mode.OUT);
}
示例10: isOUT
public boolean isOUT(){
if(mode!=null)
return (mode == Mode.OUT);
return false;
}
示例11: swaAttachment2
/**
* This method passes two SWA attachments as a request
* and expects two SWA attachments as a response.
* Note that the body content in both cases is empty.
* (See the wsdl)
* @param attachment (swa)
* @return attachment (swa)
*/
@WebMethod(operationName="swaAttachment2", action="swaAttachment2")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public void swaAttachment2(
@XmlJavaTypeAdapter(HexBinaryAdapter.class)
@WebParam(name = "jpegImage1Request", targetNamespace = "", partName = "jpegImage1Request")
byte[] attachment,
@XmlJavaTypeAdapter(HexBinaryAdapter.class)
@WebParam(name = "jpegImage2Request", targetNamespace = "", partName = "jpegImage2Request")
byte[] attachment2,
@XmlJavaTypeAdapter(HexBinaryAdapter.class)
@WebParam(name = "jpegImage1Response",
targetNamespace = "",
partName = "jpegImage1Response",
mode= Mode.OUT)
Holder<byte[]> attachmentOut1,
@XmlJavaTypeAdapter(HexBinaryAdapter.class)
@WebParam(name = "jpegImage2Response",
targetNamespace = "",
partName = "jpegImage2Response",
mode= Mode.OUT)
Holder<byte[]> attachmentOut2) {
if (attachment == null || attachment.length == 0){
throw new RuntimeException("Received empty first attachment");
} else if (attachment2 == null || attachment2.length == 0){
throw new RuntimeException("Received empty second attachment");
} else if (attachment[0] != '1') {
throw new RuntimeException("First attachment is not '1'");
} else if (attachment2[0] != '2') {
throw new RuntimeException("Second attachment is not '2'");
} else {
attachmentOut1.value = new byte[1];
attachmentOut1.value[0] = '3';
attachmentOut2.value = new byte[1];
attachmentOut2.value[0] = '4';
}
}
示例12: addPart
public void addPart(WSDLPartImpl part, Mode mode){
if(mode==Mode.IN)
inParts.put(part.getName(), part);
else if(mode==Mode.OUT)
outParts.put(part.getName(), part);
}