Ascio Web Service v2
Class ArrayOfMessage
Property |
---|
Message |
package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
public class ArrayOfMessageExample {
public static ArrayOfMessage main() {
String fileContentString = "abc123";
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 arrayOfMessage[] = new ArrayOfMessageMessage[]{message};
return arrayOfMessage;package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
public class ArrayOfMessageExample {
public static ArrayOfMessage main() {
String fileContentString = "abc123";
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 arrayOfMessage[] = new ArrayOfMessageMessage[]{message};
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.