/****************************************************************************** * Copyright (c) 2000-2014 Ericsson Telecom AB * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ module HN21072Test { import from schemas_xmlsoap_org_wsdl all; external function enc(in Binding_operationType b) return octetstring with { extension "prototype(convert) encode(XER:XER_EXTENDED)" } external function dec(in octetstring o) return Binding_operationType with { extension "prototype(convert) decode(XER:XER_EXTENDED)" } type component HN {} testcase tc1() runs on HN { var Binding_operationType b := { elem_list := { "", " " }, fault_list := { { {""} } } } var octetstring res := enc(b); action(res); var Binding_operationType b2 := dec(res); if (b2 == b) { setverdict(pass); } else { setverdict(fail, match(b2, b)); } var octetstring encoded := enc(b2); if( encoded==res ) { setverdict(pass); } else { setverdict(fail, match(encoded, res)); } } control { execute(tc1()); } }