1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
4 * XSD to TTCN-3 Translator
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *******************************************************************************/
12 // File: NoTargetNamespace_XML_RPC_e.ttcn
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
22 // Generated from file(s):
25 // /* xml version = "1.0" */
26 // /* targetnamespace = "NoTargetNamespace" */
28 ////////////////////////////////////////////////////////////////////////////////
31 module NoTargetNamespace_XML_RPC_e {
37 /* The only two possible root elements are methodResponse and
38 methodCall so these are the only two I use a top-level
42 type record MethodCall
44 record of enumerated {
48 ASCIIString methodName,
50 record of ParamType param_list
54 variant "name as uncapitalized";
57 variant (params.param_list) "untagged";
58 variant (params.param_list[-]) "name as 'param'";
62 /* What can appear inside a fault is very restricted */
63 type record MethodResponse
80 variant "name as uncapitalized";
82 variant (choice) "untagged";
83 variant (choice.params.param_) "name as 'param'";
84 variant (choice.fault.value_) "name as 'value'";
85 variant (choice.fault.value_.struct.member_1) "name as 'member'";
94 variant (value_) "name as 'value'";
98 /* I need to figure out how to say that this
99 is either a simple xsd:string type or that
100 it contains one of these elements; but that otherwise
101 it does not have mixed content */
102 type record ValueType
104 record of XSD.String embed_values,
110 XSD.Base64Binary base64,
111 NumericBoolean boolean_,
112 XSD.DateTime dateTime_iso8601,
118 variant "embedValues";
119 variant (choice) "untagged";
120 variant (choice.base64) "name as capitalized";
121 variant (choice.boolean_) "name as 'boolean'";
122 variant (choice.dateTime_iso8601) "name as 'dateTime.iso8601'";
126 type record StructType
128 record length(1 .. infinity) of MemberType member_list
131 variant (member_list) "untagged";
132 variant (member_list[-]) "name as 'member'";
136 type record MemberType
142 variant (value_) "name as 'value'";
146 type record ArrayType
149 record of ValueType value_list
153 variant (data.value_list) "untagged";
154 variant (data.value_list[-]) "name as 'value'";
158 type XSD.String ASCIIString (pattern "([ -~]|\n|\r|\t)*");
161 type XSD.Boolean NumericBoolean;
167 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";