Ascio Web Service v3
C# CreateOrder
Updates the details of mark.
Update Mark
CreateOrderResponse CreateOrder(SecurityHeaderDetails securityHeader,CreateOrderRequest request)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
501 | Syntax error in parameters or arguments | |
506 | Required attribute missing in request |
CreateOrder Request
Property | Type |
---|---|
request |
CreateOrderResponse
Property | Description |
---|---|
CreateOrderResult | |
OrderInfo | |
ResultCode | Example: 1 |
ResultMessage | |
Errors |
Used in Classes
Property | Value |
request | MarkOrderRequest |
---|---|
OrderType | DetailsUpdate |
C# example
AscioServices services = new ServiceReference1.AscioServiceClient();
SecurityHeaderDetails securityHeader = new SecurityHeaderDetails();
securityHeader.Account = "username";
securityHeader.Password = "password";
KeyValue keyValue = new KeyValue();
keyValue.Key = "Title";
keyValue.KeySpecified = true;
keyValue.Value = "Mr.";
keyValue.ValueSpecified = true;
Extensions markExtensions = new Extensions(array($keyValue));
TreatyOrStatuteMark mark = new TreatyOrStatuteMark();
mark.Handle = "JD123";
mark.HandleSpecified = true;
mark.MarkName = "MarkNameTest";
mark.MarkNameSpecified = true;
mark.MarkId = "MarkIdTest";
mark.MarkIdSpecified = true;
mark.ServiceType = MarkServiceType.Standard;
mark.ServiceTypeSpecified = true;
mark.GoodsAndServicesDescription = "GoodsAndServicesDescriptionTest";
mark.GoodsAndServicesDescriptionSpecified = true;
mark.Labels = array(
);
mark.ClaimEmailNotification1 = "ClaimEmailNotification1Test";
mark.ClaimEmailNotification1Specified = true;
mark.ClaimEmailNotification2 = "ClaimEmailNotification2Test";
mark.ClaimEmailNotification2Specified = true;
mark.ClaimEmailNotification3 = "ClaimEmailNotification3Test";
mark.ClaimEmailNotification3Specified = true;
mark.ClaimEmailNotification4 = "ClaimEmailNotification4Test";
mark.ClaimEmailNotification4Specified = true;
mark.ClaimEmailNotification5 = "ClaimEmailNotification5Test";
mark.ClaimEmailNotification5Specified = true;
mark.NotificationFrequency = NotificationFrequencyType.Daily;
mark.NotificationFrequencySpecified = true;
mark.Extensions = markExtensions;
mark.ObjectComment = "Example Object Comment";
mark.ObjectCommentSpecified = true;
mark.Title = "TitleTest";
mark.TitleSpecified = true;
mark.ReferenceNumber = "ReferenceNumberTest";
mark.ReferenceNumberSpecified = true;
mark.Country = "DK";
mark.CountrySpecified = true;
mark.Region = "RegionTest";
mark.RegionSpecified = true;
mark.ProtectionDate = new \DateTime();
mark.ProtectionDateSpecified = true;
mark.ExecutionDate = new \DateTime();
mark.ExecutionDateSpecified = true;
MarkOrderDocument markOrderDocument = new MarkOrderDocument();
markOrderDocument.FileName = "anything.jpg";
markOrderDocument.FileNameSpecified = true;
markOrderDocument.Content = base64_encode(123);
markOrderDocument.ContentSpecified = true;
markOrderDocument.DocType = MarkOrderDocType.TrademarkAssigneeDeclaration;
markOrderDocument.DocTypeSpecified = true;
ArrayOfMarkOrderDocument documents = new ArrayOfMarkOrderDocument(array($markOrderDocument));
MarkOrderRequest request = new MarkOrderRequest();
request.Type = OrderType.DetailsUpdate;
request.TypeSpecified = true;
request.TransactionComment = "TransactionCommentTest";
request.TransactionCommentSpecified = true;
request.Mark = mark;
request.Documents = documents;
CreateOrderResponse response = services.CreateOrder(securityHeader, request);
if (response.ResultCode == 200) {
Console.WriteLine("My new orderId is : " + request.OrderInfo.OrderId);
} else {
if (response.Errors != null) {
Console.WriteLine(String.Join(",", response.Errors));
}
Console.WriteLine(response.ResultMessage)
}
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.
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.