Ascio Web Service v2
Class GetMessagesResponse
Property |
---|
GetMessagesResult |
messages |
Used in examples
package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
public class GetMessagesResponseExample {
public static GetMessagesResponse main() {
String fileContentString = "abc123";
Response getMessagesResult = new Response();
getMessagesResult.setMessage("MessageTest");
getMessagesResult.setResultCode(1);
getMessagesResult.setValues(new String[]{
});
Array of strings
Attachment attachment = new Attachment();
attachment.setData(fileContentString.getBytes());
attachment.setFileName("anything.jpg");
Only the extension is important and must match with the content-type
ArrayOfAttachmentAttachment attachments[] = new ArrayOfAttachmentAttachment[]{attachment};
Message message = new Message();
message.setAttachments(attachments);
message.setBody("BodyTest");
message.setCreated(Calendar.getInstance());
message.setFromAddress("administrator@ascio-test-domain.com");
message.setSubject("base64-encoded or 7 Bit ASCII");
message.setToAddress("ToAddressTest");
message.setType(MessageType.Message_to_Partner);
ArrayOfMessageMessage messages[] = new ArrayOfMessageMessage[]{message};
GetMessagesResponse getMessagesResponse = new GetMessagesResponse();
getMessagesResponse.setGetMessagesResult(getMessagesResult);
getMessagesResponse.setmessages(messages);
return getMessagesResponse;package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
public class GetMessagesResponseExample {
public static GetMessagesResponse main() {
String fileContentString = "abc123";
Response getMessagesResult = new Response();
getMessagesResult.setMessage("MessageTest");
getMessagesResult.setResultCode(1);
getMessagesResult.setValues(new String[]{
});
Attachment attachment = new Attachment();
attachment.setData(fileContentString.getBytes());
attachment.setFileName("anything.jpg");
ArrayOfAttachmentAttachment attachments[] = new ArrayOfAttachmentAttachment[]{attachment};
Message message = new Message();
message.setAttachments(attachments);
message.setBody("BodyTest");
message.setCreated(Calendar.getInstance());
message.setFromAddress("administrator@ascio-test-domain.com");
message.setSubject("base64-encoded or 7 Bit ASCII");
message.setToAddress("ToAddressTest");
message.setType(MessageType.Message_to_Partner);
ArrayOfMessageMessage messages[] = new ArrayOfMessageMessage[]{message};
GetMessagesResponse getMessagesResponse = new GetMessagesResponse();
getMessagesResponse.setGetMessagesResult(getMessagesResult);
getMessagesResponse.setmessages(messages);
WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.