From: Thomas H. <pol...@us...> - 2006-03-28 12:39:36
|
Update of /cvsroot/smartwin/SmartWin/SmartSOAP/Tester1Endpoint In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24408/SmartSOAP/Tester1Endpoint Modified Files: CustomObjects.asmx.cs Log Message: Fixed support in WSDL parser of "nil" in addition to creating recursive lookup for namespace in XML parser plus fixed bug in namespaces serialization ++++++...... Index: CustomObjects.asmx.cs =================================================================== RCS file: /cvsroot/smartwin/SmartWin/SmartSOAP/Tester1Endpoint/CustomObjects.asmx.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- CustomObjects.asmx.cs 28 Feb 2006 16:00:32 -0000 1.5 +++ CustomObjects.asmx.cs 28 Mar 2006 12:39:29 -0000 1.6 @@ -26,12 +26,47 @@ public string getStuffString; } + public class ReallyAdvancedStuff + { + public decimal decimalValue; + public int intValue; + public string stringValue; + public float floatValue; + public double doubleValue; + public DateTime dateTimeValue; + public CustomObjects.ReallyAdvancedStuffExtra[] extraValues; + } + /// <summary> /// Summary description for CustomObjects. /// </summary> [WebService(Namespace="http://smartwin.org/SmartSOAP/WebServices/Test/CustomObject")] public class CustomObjects : System.Web.Services.WebService { + public class ReallyAdvancedStuffExtraEmpty + { + // Intentionally empty!! + } + + public class ReallyAdvancedStuffExtra + { + public int y; + public ReallyAdvancedStuffExtraEmpty[] tmp; + public ReallyAdvancedStuffExtraEmpty tmp2; + } + + public class ReallyAdvancedReturnValue + { + public ReallyAdvancedStuff[] arrayOfreallyAdvancedStuff; + public ReallyAdvancedStuff reallyAdvancedStuff; + } + + public class ReallyAdvancedInputValue + { + public ReallyAdvancedStuff[] arrayOfreallyAdvancedStuff; + public ReallyAdvancedStuff reallyAdvancedStuff; + } + public CustomObjects() { //CODEGEN: This call is required by the ASP.NET Web Services Designer @@ -111,5 +146,39 @@ { return DateTime.Now.AddDays(offset); } + + [WebMethod] + public ReallyAdvancedReturnValue GetReallyAdvancedReturnValue( ReallyAdvancedInputValue input ) + { + CustomObjects.ReallyAdvancedReturnValue retVal = new CustomObjects.ReallyAdvancedReturnValue(); + retVal.arrayOfreallyAdvancedStuff = new ReallyAdvancedStuff[3]; + retVal.reallyAdvancedStuff = new ReallyAdvancedStuff(); + retVal.reallyAdvancedStuff.decimalValue = 54.5M; + for( int x = 0; x < 3; x++ ) + { + if( x != 0 ) + { + retVal.arrayOfreallyAdvancedStuff[x] = new ReallyAdvancedStuff(); + retVal.arrayOfreallyAdvancedStuff[x].dateTimeValue = DateTime.Now; + retVal.arrayOfreallyAdvancedStuff[x].decimalValue = 5.54M; + retVal.arrayOfreallyAdvancedStuff[x].doubleValue = 4.45D; + retVal.arrayOfreallyAdvancedStuff[x].floatValue = 3.2F; + retVal.arrayOfreallyAdvancedStuff[x].intValue = 54; + retVal.arrayOfreallyAdvancedStuff[x].stringValue = "Thomas Hansen"; + retVal.arrayOfreallyAdvancedStuff[x].extraValues = new CustomObjects.ReallyAdvancedStuffExtra[3]; + for( int y = 0; y < 3; y++ ) + { + if( y != 0 ) + { + retVal.arrayOfreallyAdvancedStuff[x].extraValues[y] = new CustomObjects.ReallyAdvancedStuffExtra(); + retVal.arrayOfreallyAdvancedStuff[x].extraValues[y].y = 32; + retVal.arrayOfreallyAdvancedStuff[x].extraValues[y].tmp = new ReallyAdvancedStuffExtraEmpty[2]; + retVal.arrayOfreallyAdvancedStuff[x].extraValues[y].tmp[0] = new ReallyAdvancedStuffExtraEmpty(); + } + } + } + } + return retVal; + } } } |