Ascio Web Service v3

Java Axis UploadMessage

In case you decide to send your own ERRP messages, you can use this method, to send us the proof. The order-id is the order-id of the Autorenew/Autodelete order. In case you want to send the message before the autocomplete order, your can store the message, and send us the proof, after we started the Autorenew/Autodelete process. If we don't get an uploaded message, we will send the ERRP. Please click here for more information about the process: ERRP process

UploadMessageResponse UploadMessage(SecurityHeaderDetails securityHeader,UploadMessageRequest request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
404Object not found

UploadMessage Request

Property
request

UploadMessageResponse

PropertyDescription
UploadMessageResult
MessageIdExample: 1
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

Java Axis example

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

public class UploadMessageExample {
	public static UploadMessageResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

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

		UploadMessageRequest request =  new UploadMessageRequest();
		request.setOrderId("TEST123456");
		request.setMessage(message);

		try {
			UploadMessageResponse response = env.getClient().uploadMessage(request);			
			System.out.println("response\n");
			System.out.println("UploadMessage Code\t:" + response.getResultCode());
			System.out.println("UploadMessage Message\t: " + response.getResultMessage());

			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new UploadMessageResponse();package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class UploadMessageExample {
	public static UploadMessageResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

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

		UploadMessageRequest request =  new UploadMessageRequest();
		request.setOrderId("TEST123456");
		request.setMessage(message);

		try {
			UploadMessageResponse response = env.getClient().uploadMessage(request);			
			System.out.println("response\n");
			System.out.println("UploadMessage Code\t:" + response.getResultCode());
			System.out.println("UploadMessage Message\t: " + response.getResultMessage());

			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new UploadMessageResponse();
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.