One remaining detail for possibility to have optional enumeration fields.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 19 Jul 2005 08:33:27 +0000 (08:33 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 19 Jul 2005 08:33:27 +0000 (08:33 +0000)
org.glite.lb.server/src/ws_typeref.c.T

index df038b3..90b40f6 100644 (file)
@@ -1075,10 +1075,7 @@ static int edg_wll_SoapToEvent(
                                        gen "\t\t\tout->$act.$fn = in->$name->$usuc;\n";
                                        gen "\t\t\tsoap_unlink(soap,in->$name->$usuc);\n";
                                } elsif ($ft eq 'int') {
-                                       if ($f->{optional}) {
-                                               gen "\t\t\tout->$act.$fn = *in->$name->$usuc;\n";
-                                       }
-                                       elsif ($f->{codes}) {
+                                       if ($f->{codes}) {
                                                if ($type eq '_common_') {
                                                        gen "\t\t\tedg_wll_SoapTo$fuc(in->$name->$usuc,&(out->$act.$fn));\n";
                                                }
@@ -1086,6 +1083,9 @@ static int edg_wll_SoapToEvent(
                                                        gen "\t\t\tedg_wll_SoapTo$name$fuc(in->$name->$usuc,&(out->$act.$fn));\n";
                                                }
                                        }
+                                       elsif ($f->{optional}) {
+                                               gen "\t\t\tout->$act.$fn = *in->$name->$usuc;\n";
+                                       }
                                        else {
                                                gen "\t\t\tout->$act.$fn = in->$name->$usuc;\n";
                                        }