Ascio Web Service v3

Class GetMessagesResponse

PropertyDescription
GetMessagesResult
Messages
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

Used in examples

package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;

public class GetMessagesResponseExample {
	public static GetMessagesResponse main() {
		
		String fileContentString = "abc123";

		Attachment attachment =  new Attachment();
		attachment.setFileName("anything.jpg");
		attachment.setContent(fileContentString.getBytes());

		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.MessageToPartner);

		ArrayOfMessageMessage messages[] =  new ArrayOfMessageMessage[]{message};

		GetMessagesResponse getMessagesResponse =  new GetMessagesResponse();
		getMessagesResponse.setResultCode(1);
		getMessagesResponse.setResultMessage("ResultMessageTest");
		getMessagesResponse.setErrors(new String[]{
		});
		getMessagesResponse.setMessages(messages);
		return getMessagesResponse;package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;

public class GetMessagesResponseExample {
	public static GetMessagesResponse main() {
		
		String fileContentString = "abc123";

		Attachment attachment =  new Attachment();
		attachment.setFileName("anything.jpg");
		attachment.setContent(fileContentString.getBytes());

		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.MessageToPartner);

		ArrayOfMessageMessage messages[] =  new ArrayOfMessageMessage[]{message};

		GetMessagesResponse getMessagesResponse =  new GetMessagesResponse();
		getMessagesResponse.setResultCode(1);
		getMessagesResponse.setResultMessage("ResultMessageTest");
		getMessagesResponse.setErrors(new String[]{
		});
		getMessagesResponse.setMessages(messages);
WSDL for AWS v3
https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.