├── .DS_Store ├── .gitignore ├── Code ├── ActionScript.xslt ├── ActionScript │ └── src │ │ └── com │ │ └── sudzc │ │ └── flash │ │ └── soap │ │ ├── Soap.as │ │ ├── SoapDelegate.as │ │ └── SoapFault.as ├── ExpandImports.xslt ├── JavaScript.xslt ├── Javascript │ ├── Documentation │ │ ├── assets │ │ │ ├── images │ │ │ │ ├── arrow.png │ │ │ │ └── icon.png │ │ │ ├── scripts │ │ │ │ └── base.js │ │ │ └── styles │ │ │ │ └── default.css │ │ ├── classes │ │ │ ├── array.html │ │ │ ├── boolean.html │ │ │ ├── date.html │ │ │ ├── dictionary.html │ │ │ ├── null.html │ │ │ ├── number.html │ │ │ ├── string.html │ │ │ ├── var.html │ │ │ └── void.html │ │ ├── framework │ │ │ ├── Soap.html │ │ │ ├── SoapFault.html │ │ │ └── SoapHandler.html │ │ ├── index.html │ │ └── tutorial │ │ │ └── index.html │ └── Source │ │ └── Soap.js ├── ObjC.xslt ├── ObjC │ ├── Documentation │ │ ├── assets │ │ │ ├── images │ │ │ │ ├── arrow.png │ │ │ │ └── icon.png │ │ │ ├── scripts │ │ │ │ └── base.js │ │ │ └── styles │ │ │ │ └── default.css │ │ ├── framework │ │ │ ├── CXMLDocument.html │ │ │ ├── CXMLElement.html │ │ │ ├── CXMLNode.html │ │ │ ├── Soap.html │ │ │ ├── SoapArray.html │ │ │ ├── SoapDelegate.html │ │ │ ├── SoapDictionary.html │ │ │ ├── SoapFault.html │ │ │ ├── SoapHandler.html │ │ │ ├── SoapNil.html │ │ │ ├── SoapObject.html │ │ │ ├── SoapParameter.html │ │ │ ├── SoapReachability.html │ │ │ ├── SoapRequest.html │ │ │ └── SoapService.html │ │ ├── index.html │ │ └── tutorial │ │ │ └── index.html │ ├── Examples │ │ ├── MainWindow.xib │ │ ├── SudzCExamples-Info.plist │ │ ├── SudzCExamples.xcodeproj │ │ │ └── project.pbxproj │ │ ├── SudzCExamplesAppDelegate.h │ │ ├── SudzCExamples_Prefix.pch │ │ └── main.m │ ├── HOWTO.rtf │ ├── README.rtf │ └── Source │ │ ├── Soap │ │ ├── NSData+Base64.h │ │ ├── NSData+Base64.m │ │ ├── NSMutableArray+Soap.h │ │ ├── NSMutableArray+Soap.m │ │ ├── Soap.h │ │ ├── Soap.m │ │ ├── SoapArray.h │ │ ├── SoapArray.m │ │ ├── SoapDelegate.h │ │ ├── SoapFault.h │ │ ├── SoapFault.m │ │ ├── SoapHandler.h │ │ ├── SoapHandler.m │ │ ├── SoapLiteral.h │ │ ├── SoapLiteral.m │ │ ├── SoapNil.h │ │ ├── SoapNil.m │ │ ├── SoapObject.h │ │ ├── SoapObject.m │ │ ├── SoapParameter.h │ │ ├── SoapParameter.m │ │ ├── SoapReachability.h │ │ ├── SoapReachability.m │ │ ├── SoapRequest.h │ │ ├── SoapRequest.m │ │ ├── SoapService.h │ │ └── SoapService.m │ │ └── TouchXML │ │ ├── CXMLDocument.h │ │ ├── CXMLDocument.m │ │ ├── CXMLDocument_PrivateExtensions.h │ │ ├── CXMLDocument_PrivateExtensions.m │ │ ├── CXMLElement.h │ │ ├── CXMLElement.m │ │ ├── CXMLNode.h │ │ ├── CXMLNode.m │ │ ├── CXMLNode_PrivateExtensions.h │ │ ├── CXMLNode_PrivateExtensions.m │ │ ├── CXMLNode_XPathExtensions.h │ │ ├── CXMLNode_XPathExtensions.m │ │ └── TouchXML.h ├── ObjCARC.xslt ├── ObjCARC │ ├── Documentation │ │ ├── assets │ │ │ ├── images │ │ │ │ ├── arrow.png │ │ │ │ └── icon.png │ │ │ ├── scripts │ │ │ │ └── base.js │ │ │ └── styles │ │ │ │ └── default.css │ │ ├── framework │ │ │ ├── CXMLDocument.html │ │ │ ├── CXMLElement.html │ │ │ ├── CXMLNode.html │ │ │ ├── Soap.html │ │ │ ├── SoapArray.html │ │ │ ├── SoapDelegate.html │ │ │ ├── SoapDictionary.html │ │ │ ├── SoapFault.html │ │ │ ├── SoapHandler.html │ │ │ ├── SoapNil.html │ │ │ ├── SoapObject.html │ │ │ ├── SoapParameter.html │ │ │ ├── SoapReachability.html │ │ │ ├── SoapRequest.html │ │ │ └── SoapService.html │ │ ├── index.html │ │ └── tutorial │ │ │ └── index.html │ ├── Examples │ │ ├── MainWindow.xib │ │ ├── SudzCExamples-Info.plist │ │ ├── SudzCExamples.xcodeproj │ │ │ └── project.pbxproj │ │ ├── SudzCExamplesAppDelegate.h │ │ ├── SudzCExamples_Prefix.pch │ │ └── main.m │ ├── HOWTO.rtf │ ├── README.rtf │ └── Source │ │ ├── Soap │ │ ├── NSData+Base64.h │ │ ├── NSData+Base64.m │ │ ├── NSMutableArray+Soap.h │ │ ├── NSMutableArray+Soap.m │ │ ├── Soap.h │ │ ├── Soap.m │ │ ├── SoapArray.h │ │ ├── SoapArray.m │ │ ├── SoapDelegate.h │ │ ├── SoapFault.h │ │ ├── SoapFault.m │ │ ├── SoapHandler.h │ │ ├── SoapHandler.m │ │ ├── SoapLiteral.h │ │ ├── SoapLiteral.m │ │ ├── SoapNil.h │ │ ├── SoapNil.m │ │ ├── SoapObject.h │ │ ├── SoapObject.m │ │ ├── SoapParameter.h │ │ ├── SoapParameter.m │ │ ├── SoapReachability.h │ │ ├── SoapReachability.m │ │ ├── SoapRequest.h │ │ ├── SoapRequest.m │ │ ├── SoapService.h │ │ └── SoapService.m │ │ └── TouchXML │ │ ├── CTidy.h │ │ ├── CTidy.m │ │ ├── CXHTMLDocument.h │ │ ├── CXHTMLDocument.m │ │ ├── CXMLDocument.h │ │ ├── CXMLDocument.m │ │ ├── CXMLDocument_CreationExtensions.h │ │ ├── CXMLDocument_CreationExtensions.m │ │ ├── CXMLDocument_PrivateExtensions.h │ │ ├── CXMLDocument_PrivateExtensions.m │ │ ├── CXMLElement.h │ │ ├── CXMLElement.m │ │ ├── CXMLElement_CreationExtensions.h │ │ ├── CXMLElement_CreationExtensions.m │ │ ├── CXMLElement_ElementTreeExtensions.h │ │ ├── CXMLElement_ElementTreeExtensions.m │ │ ├── CXMLNamespaceNode.h │ │ ├── CXMLNamespaceNode.m │ │ ├── CXMLNode.h │ │ ├── CXMLNode.m │ │ ├── CXMLNode_CreationExtensions.h │ │ ├── CXMLNode_CreationExtensions.m │ │ ├── CXMLNode_PrivateExtensions.h │ │ ├── CXMLNode_PrivateExtensions.m │ │ ├── CXMLNode_XPathExtensions.h │ │ ├── CXMLNode_XPathExtensions.m │ │ └── TouchXML.h ├── ObjCARCCommon.xslt ├── ObjCARCFiles.xslt ├── ObjCCommon.xslt └── ObjCFiles.xslt ├── SudzC ├── SudzC 2008.sln └── Sudzc 2005.sln └── Website ├── .DS_Store ├── README.txt ├── dotnet ├── App_Code │ ├── Converter.cs │ └── Test.cs ├── Bin │ ├── ICSharpCode.SharpZipLib.dll │ └── ICSharpCode.SharpZipLib.dll.refresh ├── Convert.ashx ├── Default.aspx ├── Default.aspx.cs ├── Errors.aspx ├── Errors.aspx.cs ├── SignIn.aspx ├── SignIn.aspx.cs ├── Test.asmx ├── Web.config └── assets │ ├── images │ ├── bkg.png │ ├── generate-button.png │ ├── gradient-light.jpg │ ├── gradient.jpg │ ├── icon.png │ ├── locked.png │ ├── logo.png │ ├── objc-tutorial.jpg │ └── unlocked.png │ └── styles │ └── default.css └── php ├── assets ├── classes │ └── converter.class.php ├── code │ ├── ActionScript.xslt │ ├── ActionScript │ │ └── src │ │ │ └── com │ │ │ └── sudzc │ │ │ └── flash │ │ │ └── soap │ │ │ ├── Soap.as │ │ │ ├── SoapDelegate.as │ │ │ └── SoapFault.as │ ├── ExpandImports.xslt │ ├── JavaScript.xslt │ ├── Javascript.xslt │ ├── Javascript │ │ ├── Documentation │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ ├── arrow.png │ │ │ │ │ └── icon.png │ │ │ │ ├── scripts │ │ │ │ │ └── base.js │ │ │ │ └── styles │ │ │ │ │ └── default.css │ │ │ ├── classes │ │ │ │ ├── array.html │ │ │ │ ├── boolean.html │ │ │ │ ├── date.html │ │ │ │ ├── dictionary.html │ │ │ │ ├── null.html │ │ │ │ ├── number.html │ │ │ │ ├── string.html │ │ │ │ ├── var.html │ │ │ │ └── void.html │ │ │ ├── framework │ │ │ │ ├── Soap.html │ │ │ │ ├── SoapFault.html │ │ │ │ └── SoapHandler.html │ │ │ ├── index.html │ │ │ └── tutorial │ │ │ │ └── index.html │ │ └── Source │ │ │ └── Soap.js │ ├── ObjC.xslt │ ├── ObjC │ │ ├── Documentation │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ ├── arrow.png │ │ │ │ │ └── icon.png │ │ │ │ ├── scripts │ │ │ │ │ └── base.js │ │ │ │ └── styles │ │ │ │ │ └── default.css │ │ │ ├── framework │ │ │ │ ├── CXMLDocument.html │ │ │ │ ├── CXMLElement.html │ │ │ │ ├── CXMLNode.html │ │ │ │ ├── Soap.html │ │ │ │ ├── SoapArray.html │ │ │ │ ├── SoapDelegate.html │ │ │ │ ├── SoapDictionary.html │ │ │ │ ├── SoapFault.html │ │ │ │ ├── SoapHandler.html │ │ │ │ ├── SoapNil.html │ │ │ │ ├── SoapObject.html │ │ │ │ ├── SoapParameter.html │ │ │ │ ├── SoapReachability.html │ │ │ │ ├── SoapRequest.html │ │ │ │ └── SoapService.html │ │ │ ├── index.html │ │ │ └── tutorial │ │ │ │ └── index.html │ │ ├── Examples │ │ │ ├── MainWindow.xib │ │ │ ├── SudzCExamples-Info.plist │ │ │ ├── SudzCExamples.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ ├── SudzCExamplesAppDelegate.h │ │ │ ├── SudzCExamples_Prefix.pch │ │ │ └── main.m │ │ ├── HOWTO.rtf │ │ ├── README.rtf │ │ └── Source │ │ │ ├── Soap │ │ │ ├── NSData+Base64.h │ │ │ ├── NSData+Base64.m │ │ │ ├── NSMutableArray+Soap.h │ │ │ ├── NSMutableArray+Soap.m │ │ │ ├── Soap.h │ │ │ ├── Soap.m │ │ │ ├── SoapArray.h │ │ │ ├── SoapArray.m │ │ │ ├── SoapDelegate.h │ │ │ ├── SoapDictionary.h │ │ │ ├── SoapDictionary.m │ │ │ ├── SoapFault.h │ │ │ ├── SoapFault.m │ │ │ ├── SoapHandler.h │ │ │ ├── SoapHandler.m │ │ │ ├── SoapLiteral.h │ │ │ ├── SoapLiteral.m │ │ │ ├── SoapNil.h │ │ │ ├── SoapNil.m │ │ │ ├── SoapObject.h │ │ │ ├── SoapObject.m │ │ │ ├── SoapParameter.h │ │ │ ├── SoapParameter.m │ │ │ ├── SoapReachability.h │ │ │ ├── SoapReachability.m │ │ │ ├── SoapRequest.h │ │ │ ├── SoapRequest.m │ │ │ ├── SoapService.h │ │ │ └── SoapService.m │ │ │ └── TouchXML │ │ │ ├── CXMLDocument.h │ │ │ ├── CXMLDocument.m │ │ │ ├── CXMLDocument_PrivateExtensions.h │ │ │ ├── CXMLDocument_PrivateExtensions.m │ │ │ ├── CXMLElement.h │ │ │ ├── CXMLElement.m │ │ │ ├── CXMLNode.h │ │ │ ├── CXMLNode.m │ │ │ ├── CXMLNode_PrivateExtensions.h │ │ │ ├── CXMLNode_PrivateExtensions.m │ │ │ ├── CXMLNode_XPathExtensions.h │ │ │ ├── CXMLNode_XPathExtensions.m │ │ │ └── TouchXML.h │ ├── ObjCARC.xslt │ ├── ObjCARC │ │ ├── Documentation │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ ├── arrow.png │ │ │ │ │ └── icon.png │ │ │ │ ├── scripts │ │ │ │ │ └── base.js │ │ │ │ └── styles │ │ │ │ │ └── default.css │ │ │ ├── framework │ │ │ │ ├── CXMLDocument.html │ │ │ │ ├── CXMLElement.html │ │ │ │ ├── CXMLNode.html │ │ │ │ ├── Soap.html │ │ │ │ ├── SoapArray.html │ │ │ │ ├── SoapDelegate.html │ │ │ │ ├── SoapDictionary.html │ │ │ │ ├── SoapFault.html │ │ │ │ ├── SoapHandler.html │ │ │ │ ├── SoapNil.html │ │ │ │ ├── SoapObject.html │ │ │ │ ├── SoapParameter.html │ │ │ │ ├── SoapReachability.html │ │ │ │ ├── SoapRequest.html │ │ │ │ └── SoapService.html │ │ │ ├── index.html │ │ │ └── tutorial │ │ │ │ └── index.html │ │ ├── Examples │ │ │ ├── MainWindow.xib │ │ │ ├── SudzCExamples-Info.plist │ │ │ ├── SudzCExamples.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ ├── SudzCExamplesAppDelegate.h │ │ │ ├── SudzCExamples_Prefix.pch │ │ │ └── main.m │ │ ├── HOWTO.rtf │ │ ├── README.rtf │ │ └── Source │ │ │ ├── Soap │ │ │ ├── NSData+Base64.h │ │ │ ├── NSData+Base64.m │ │ │ ├── NSMutableArray+Soap.h │ │ │ ├── NSMutableArray+Soap.m │ │ │ ├── Soap.h │ │ │ ├── Soap.m │ │ │ ├── SoapArray.h │ │ │ ├── SoapArray.m │ │ │ ├── SoapDelegate.h │ │ │ ├── SoapDictionary.h │ │ │ ├── SoapDictionary.m │ │ │ ├── SoapFault.h │ │ │ ├── SoapFault.m │ │ │ ├── SoapHandler.h │ │ │ ├── SoapHandler.m │ │ │ ├── SoapLiteral.h │ │ │ ├── SoapLiteral.m │ │ │ ├── SoapNil.h │ │ │ ├── SoapNil.m │ │ │ ├── SoapObject.h │ │ │ ├── SoapObject.m │ │ │ ├── SoapParameter.h │ │ │ ├── SoapParameter.m │ │ │ ├── SoapReachability.h │ │ │ ├── SoapReachability.m │ │ │ ├── SoapRequest.h │ │ │ ├── SoapRequest.m │ │ │ ├── SoapService.h │ │ │ └── SoapService.m │ │ │ └── TouchXML │ │ │ ├── CTidy.h │ │ │ ├── CTidy.m │ │ │ ├── CXHTMLDocument.h │ │ │ ├── CXHTMLDocument.m │ │ │ ├── CXMLDocument.h │ │ │ ├── CXMLDocument.m │ │ │ ├── CXMLDocument_CreationExtensions.h │ │ │ ├── CXMLDocument_CreationExtensions.m │ │ │ ├── CXMLDocument_PrivateExtensions.h │ │ │ ├── CXMLDocument_PrivateExtensions.m │ │ │ ├── CXMLElement.h │ │ │ ├── CXMLElement.m │ │ │ ├── CXMLElement_CreationExtensions.h │ │ │ ├── CXMLElement_CreationExtensions.m │ │ │ ├── CXMLElement_ElementTreeExtensions.h │ │ │ ├── CXMLElement_ElementTreeExtensions.m │ │ │ ├── CXMLNamespaceNode.h │ │ │ ├── CXMLNamespaceNode.m │ │ │ ├── CXMLNode.h │ │ │ ├── CXMLNode.m │ │ │ ├── CXMLNode_CreationExtensions.h │ │ │ ├── CXMLNode_CreationExtensions.m │ │ │ ├── CXMLNode_PrivateExtensions.h │ │ │ ├── CXMLNode_PrivateExtensions.m │ │ │ ├── CXMLNode_XPathExtensions.h │ │ │ ├── CXMLNode_XPathExtensions.m │ │ │ └── TouchXML.h │ ├── ObjCARCCommon.xslt │ ├── ObjCARCFiles.xslt │ ├── ObjCCommon.xslt │ └── ObjCFiles.xslt ├── images │ ├── bkg.png │ ├── generate-button.png │ ├── gradient-light.jpg │ ├── gradient.jpg │ ├── icon.png │ ├── locked.png │ ├── logo.png │ ├── objc-tutorial.jpg │ └── unlocked.png ├── includes │ └── settings.php └── styles │ └── default.css ├── convert.php ├── errors.php └── index.php /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .svn# Mac OS X 3 | *.DS_Store 4 | 5 | # Xcode 6 | *.pbxuser 7 | *.mode1v3 8 | *.mode2v3 9 | *.perspectivev3 10 | *.xcuserstate 11 | project.xcworkspace/ 12 | xcuserdata/ 13 | 14 | # Generated files 15 | *.o 16 | *.pyc 17 | 18 | 19 | #Python modules 20 | MANIFEST 21 | dist/ 22 | build/ 23 | 24 | # Backup files 25 | *~.nib 26 | -------------------------------------------------------------------------------- /Code/ActionScript/src/com/sudzc/flash/soap/SoapDelegate.as: -------------------------------------------------------------------------------- 1 | package com.sudzc.flash.soap { 2 | public class SoapDelegate { 3 | public var data:Object = null; 4 | public var status:int = 0; 5 | public var onload:Function = function(object) { } 6 | public var onfault:Function = function(fault) { } 7 | public var onerror:Function = function(response:Object, exception:Error) { 8 | if(exception) { throw exception; } 9 | } 10 | public function SoapDelegate(data:Object=null) { 11 | this.data = data; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Code/ActionScript/src/com/sudzc/flash/soap/SoapFault.as: -------------------------------------------------------------------------------- 1 | package com.sudzc.flash.soap { 2 | import flash.xml.XMLDocument; 3 | import flash.xml.XMLNode; 4 | 5 | public class SoapFault { 6 | public var faultCode:String = null; 7 | public var faultString:String = null; 8 | public var faultActor:String = null; 9 | public var detail:String = null; 10 | public var hasFault:Boolean = false; 11 | private var doc:XMLDocument = null; 12 | 13 | public function SoapFault(XMLDocument:document) { 14 | if(!document) { return; } 15 | var fault:XMLNode = SoapProxy.getFault(document); 16 | if(fault) { 17 | this.faultCode = SoapProxy.getValue(SoapProxy.getNode(fault, "faultcode")); 18 | this.FaultString = SoapProxy.getValue(SoapProxy.getNode(fault, "faultstring")); 19 | this.faultActor = SoapProxy.getValue(SoapProxy.getNode(fault, "faultactor")); 20 | this.detail = SoapProxy.getValue(SoapProxy.getNode(fault, "detail")); 21 | this.hasFault = true; 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Code/ExpandImports.xslt: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Code/Javascript/Documentation/assets/images/arrow.png -------------------------------------------------------------------------------- /Code/Javascript/Documentation/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Code/Javascript/Documentation/assets/images/icon.png -------------------------------------------------------------------------------- /Code/Javascript/Documentation/assets/scripts/base.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("#content").each(function(content){ 3 | this.innerHTML=this.innerHTML.replace(/((NS(\w+))\s*\*)/g, "$1"); 4 | this.innerHTML=this.innerHTML.replace(/((CXML(\w+))\s*\*)/g, "$1"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /Code/Javascript/Documentation/assets/styles/default.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 3 | font-size: 80%; 4 | } 5 | 6 | #logo { 7 | left: 10pt; 8 | bottom: 10pt; 9 | display: block; 10 | } 11 | 12 | #content { 13 | margin:30pt; 14 | } 15 | 16 | h1 { 17 | margin-top: 0; 18 | font-size: 24pt; 19 | } 20 | 21 | h2 { 22 | margin-top: 30pt; 23 | font-size: 18pt; 24 | border: solid 1px #999; 25 | border-width: 0 0 1px 0; 26 | } 27 | 28 | h3 { 29 | margin-top: 14pt; 30 | margin-bottom: 6pt; 31 | font-size: 14pt; 32 | } 33 | 34 | h4 { 35 | margin-bottom: 0; 36 | } 37 | 38 | code, pre { 39 | font-family: Monaco, monospace; 40 | font-size: 8pt; 41 | } 42 | 43 | #content dt { 44 | font-style: italic; 45 | } 46 | 47 | #content dd { 48 | margin-left: 12pt; 49 | margin-bottom: 6pt; 50 | } 51 | 52 | #content ul li { 53 | font-family: Monaco, monospace; 54 | font-size: 9pt; 55 | list-style: none; 56 | } 57 | 58 | #content #code dt { 59 | font-style: normal; 60 | font-family: Monaco, monospace; 61 | } 62 | 63 | a { 64 | color: #6ea9c9; 65 | text-decoration: none; 66 | } 67 | 68 | a:hover { 69 | text-decoration: underline; 70 | } 71 | 72 | a:visited { 73 | color: #456887; 74 | } 75 | 76 | #toc { 77 | background-color: #f2f9fe; 78 | margin:0; 79 | overflow-x: hidden; 80 | overflow-y: scroll; 81 | background-image: url(../images/icon.png); 82 | background-repeat: no-repeat; 83 | background-attachment: fixed; 84 | background-position: bottom right; 85 | } 86 | 87 | #toc dt { 88 | background-color: #456887; 89 | font-style: normal; 90 | font-weight: bold; 91 | color: #FFF; 92 | margin: 0; 93 | padding: 4pt; 94 | opacity:0.7; 95 | } 96 | 97 | #toc dd { 98 | margin:0; 99 | } 100 | 101 | #toc ul li { 102 | font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 103 | list-style-image: url(../images/arrow.png); 104 | margin:0; 105 | } 106 | 107 | #footer { 108 | margin-top:30pt; 109 | border:solid 0px #999; 110 | border-top: 1px; 111 | } -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/array.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Array Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

Array Class Reference

10 |

The Javascript native array class.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/boolean.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Boolean Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Boolean Value Reference

10 |

The Javascript native Boolean value type.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/date.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | String Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

String Class Reference

10 |

The Javascript native string class.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/dictionary.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Dictionary Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

Dictionary Class Reference

10 |

The Javascript native dictionary class.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/null.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Null Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Null Value Reference

10 |

The Javascript native null value.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/number.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Number Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Number Value Reference

10 |

The Javascript native number value.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/string.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Var Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Var Value Reference

10 |

The Javascript native var value.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/var.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | String Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

String Class Reference

10 |

The Javascript native string class.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/classes/void.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Void Return Reference 4 | 5 | 6 | 7 | 8 | 9 |

Void Return Reference

10 |

The Javascript void return value.

11 | 12 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/framework/SoapFault.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapFault Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapFault Class Reference

10 |

Returns information produced by a SOAP fault.

11 | 12 |

Properties

13 | 14 |

faultCode

15 |

Returns the fault code.

16 | 17 |

faultString

18 |

The string containing a message about the fault.

19 | 20 |

faultActor

21 |

The actor that triggered the fault.

22 | 23 |

detail

24 |

Details about the fault.

25 | 26 |

hasFault

27 |

Used internally to determine if a fault was found in the passed node.

28 | 29 |

doc

30 |

The XML document from which the fault was derived.

31 | 32 | 33 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/framework/SoapHandler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapHandler Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapHandler Class Reference

10 |

The SoapHandler class contains methods that are set to handle various events in the service response.

11 | 12 |

Properties

13 | 14 |

object

15 |

Contains a reference the calling object.

16 | 17 |

Methods

18 | 19 |

onload:

20 |

Handles the successful response of a SOAP call.

21 | handler.onload=function(result) { } 22 |

Parameters

23 |
24 |
result
25 |
The object value of the response.
26 |
27 | 28 |

onerror:

29 |

Handles any errors that occurred while sending the request.

30 | handler.onerror=new function(error) { } 31 |

Parameters

32 |
33 |
error
34 |
The error containing details about problems encountered.
35 |
36 | 37 |

onfault:

38 |

Handles any SOAP faults that are returned from the web service.

39 | handler.onfault=function(fault) { } 40 |

Parameters

41 |
42 |
fault
43 |
The SoapFault returned by the web service.
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Code/Javascript/Documentation/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | SudzC Generated Class Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Code/ObjC/Documentation/assets/images/arrow.png -------------------------------------------------------------------------------- /Code/ObjC/Documentation/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Code/ObjC/Documentation/assets/images/icon.png -------------------------------------------------------------------------------- /Code/ObjC/Documentation/assets/scripts/base.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("#content").each(function(content){ 3 | this.innerHTML=this.innerHTML.replace(/((NS(\w+))\s*\*)/g, "$1"); 4 | this.innerHTML=this.innerHTML.replace(/((CXML(\w+))\s*\*)/g, "$1"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /Code/ObjC/Documentation/assets/styles/default.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 3 | font-size: 80%; 4 | } 5 | 6 | #logo { 7 | left: 10pt; 8 | bottom: 10pt; 9 | display: block; 10 | } 11 | 12 | #content { 13 | margin:30pt; 14 | } 15 | 16 | h1 { 17 | margin-top: 0; 18 | font-size: 24pt; 19 | } 20 | 21 | h2 { 22 | margin-top: 30pt; 23 | font-size: 18pt; 24 | border: solid 1px #999; 25 | border-width: 0 0 1px 0; 26 | } 27 | 28 | h3 { 29 | margin-top: 14pt; 30 | margin-bottom: 6pt; 31 | font-size: 14pt; 32 | } 33 | 34 | h4 { 35 | margin-bottom: 0; 36 | } 37 | 38 | code, pre { 39 | font-family: Monaco, monospace; 40 | font-size: 8pt; 41 | } 42 | 43 | #content dt { 44 | font-style: italic; 45 | } 46 | 47 | #content dd { 48 | margin-left: 12pt; 49 | margin-bottom: 6pt; 50 | } 51 | 52 | #content ul li { 53 | font-family: Monaco, monospace; 54 | font-size: 9pt; 55 | list-style: none; 56 | } 57 | 58 | #content #code dt { 59 | font-style: normal; 60 | font-family: Monaco, monospace; 61 | } 62 | 63 | a { 64 | color: #6ea9c9; 65 | text-decoration: none; 66 | } 67 | 68 | a:hover { 69 | text-decoration: underline; 70 | } 71 | 72 | a:visited { 73 | color: #456887; 74 | } 75 | 76 | #toc { 77 | background-color: #f2f9fe; 78 | margin:0; 79 | overflow-x: hidden; 80 | overflow-y: scroll; 81 | background-image: url(../images/icon.png); 82 | background-repeat: no-repeat; 83 | background-attachment: fixed; 84 | background-position: bottom right; 85 | } 86 | 87 | #toc dt { 88 | background-color: #456887; 89 | font-style: normal; 90 | font-weight: bold; 91 | color: #FFF; 92 | margin: 0; 93 | padding: 4pt; 94 | opacity:0.7; 95 | } 96 | 97 | #toc dd { 98 | margin:0; 99 | } 100 | 101 | #toc ul li { 102 | font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 103 | list-style-image: url(../images/arrow.png); 104 | margin:0; 105 | } 106 | 107 | #footer { 108 | margin-top:30pt; 109 | border:solid 0px #999; 110 | border-top: 1px; 111 | } -------------------------------------------------------------------------------- /Code/ObjC/Documentation/framework/CXMLElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXMLElement Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

CXMLElement Class Reference

10 |

The CXMLElement class defines an XML element in the TouchXML library.

11 |

Inherits from CXMLNode*

12 | 13 |

Instance Methods

14 | 15 |

elementsForName:

16 |

Returns an array of elements by name.

17 | - (NSArray *)elementsForName:(NSString *)name 18 |

Parameters

19 |
20 |
name
21 |
The name of the elements to retrieve.
22 |
23 | 24 |

attributes

25 |

Returns an array of the element's attributes.

26 | - (NSArray *)attributes 27 | 28 |

attributeForName:

29 |

Retrieves an attribute by name.

30 | - (CXMLNode *)attributeForName:(NSString *)name 31 |

Parameters

32 |
33 |
name
34 |
The name of the attribute to retrieve.
35 |
36 | 37 |

_XMLStringWithOptions:appendingToString:

38 |

Outputs the XML string of the element.

39 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str 40 |

Parameters

41 |
42 |
options
43 |
Declares options for outputting the XML.
44 |
str
45 |
The string to which the XML is appended.
46 |
47 | 48 | 49 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/framework/SoapDelegate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapDelegate Protocol Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapDelegate Protocol Reference

10 |

11 |

Declares a protocol used to handle the response of SOAP calls.

12 | 13 |

Required methods

14 | 15 |

onload:

16 |

Handles the successful response of a SOAP call.

17 | - (void) onload: (id) value 18 |

Parameters

19 |
20 |
value
21 |
The object value of the response.
22 |
23 | 24 |

Optional methods

25 | 26 |

onerror:

27 |

Handles any errors that occurred while sending the request.

28 | - (void) onerror: (NSError*) error 29 |

Parameters

30 |
31 |
error
32 |
The NSError* containing details about the errors encountered.
33 |
34 |

Discussion

35 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

36 | 37 |

onfault:

38 |

Handles any SOAP faults that are returned from the web service.

39 | - (void) onfault: (SoapFault*) fault 40 |

Parameters

41 |
42 |
fault
43 |
The SOAP fault returned by the web service.
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/framework/SoapHandler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapHandler Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapHandler Class Reference

10 |

The SoapHandler class provides a concrete representation of the SoapDelegate protocol.

11 |

Inherits from NSObject*.

12 |

Conforms to SoapDelegate.

13 | 14 |

Instance methods

15 | 16 |

onload:

17 |

Handles the successful response of a SOAP call.

18 | - (void) onload: (id) value 19 |

Parameters

20 |
21 |
value
22 |
The object value of the response.
23 |
24 | 25 |

onerror:

26 |

Handles any errors that occurred while sending the request.

27 | - (void) onerror: (NSError*) error 28 |

Parameters

29 |
30 |
error
31 |
The NSError* containing details about the errors encountered.
32 |
33 |

Discussion

34 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

35 | 36 |

onfault:

37 |

Handles any SOAP faults that are returned from the web service.

38 | - (void) onfault: (SoapFault*) fault 39 |

Parameters

40 |
41 |
fault
42 |
The SOAP fault returned by the web service.
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/framework/SoapNil.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapNil Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapNil Class Reference

10 |

This class is used to send nil values where an actual object is required in a value. Used in setting null for SoapParameter objects.

11 |

Inherits from NSObject*

12 | 13 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/framework/SoapParameter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapParameter Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapParameter Class Reference

10 |

Defines a class used to pass parameter information to create a SOAP envelope.

11 |

Inherits from NSObject*

12 | 13 |

Properties

14 | 15 |

name

16 |

The name of the parameter,

17 | @property (nonatomic, retain) NSString* name 18 | 19 |

value

20 |

The value of the parameter.

21 | @property (nonatomic, retain) id value 22 | 23 |

null

24 |

Determines if the parameter value is null. (Read Only)

25 | @property (readonly) BOOL null 26 | 27 |

xml

28 |

The serialized XML of the parameter.

29 | @property (nonatomic, retain, readonly) NSString* xml 30 | 31 |

Instance methods

32 | 33 |

initWithValue:forName:

34 |

Initializes the parameter with the specified name and value.

35 | -(id)initWithValue:(id)value forName: (NSString*) name 36 |

Parameters

37 |
38 |
value
39 |
The value of the parameter.
40 |
name
41 |
The name of the parameter.
42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/framework/SoapReachability.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapReachability Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapReachability Class Reference

10 |

This class contains methods used to determine if the web services are available. They provide a wrapper for Apple example code used to ensure the device has access to the internet.

11 |

Inherits from NSObject*

12 | 13 |

Class Methods

14 | 15 |

connectedToNetwork

16 |

Determines if the device is connected to the network.

17 | + (BOOL) connectedToNetwork 18 | 19 |

localIPAddress

20 |

Gets the local IP address.

21 | + (NSString*) localIPAddress 22 | 23 |

getIPAddressForHost:

24 |

Gets an IP address for a host.

25 | + (NSString*) getIPAddressForHost: (NSString*) theHost 26 |

Parameters

27 |
28 |
theHost
29 |
The host for whom an IP address is to be resolved.
30 |
31 | 32 |

hostAvailable:

33 |

Determines if a host is available.

34 | + (BOOL) hostAvailable: (NSString*) theHost 35 |

Parameters

36 |
37 |
theHost
38 |
The host used to determine availability.
39 |
40 | 41 |

addressFromString:address:

42 |

Gets an address from the string.

43 | + (BOOL)addressFromString:(NSString *)IPAddress address:(struct sockaddr_in *) address 44 |

Parameters

45 |
46 |
IPAddress
47 |
The IP address used resolve to a host.
48 |
address
49 |
50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /Code/ObjC/Documentation/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | SudzC Generated Class Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Code/ObjC/Examples/SudzCExamples-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /Code/ObjC/Examples/SudzCExamplesAppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface SudzCExamplesAppDelegate : NSObject { 4 | UIWindow *window; 5 | } 6 | 7 | @property (nonatomic, retain) IBOutlet UIWindow *window; 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Code/ObjC/Examples/SudzCExamples_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SudzCExamples' target in the 'SudzCExamples' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /Code/ObjC/Examples/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 1/23/10. 6 | // Copyright andCulture 2010. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, @"SudzCExamplesAppDelegate"); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /Code/ObjC/README.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} 2 | {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\lang1033\b\f0\fs24 Adding Sudz-C Files to Xcode\b0\par 3 | \par 4 | Copy the files contained in the archive into your Xcode project tree. You may want to add them in their own folder group to make managing your project a little easier in the future.\par 5 | \par 6 | Be sure to add the SystemConfiguration framework to your project. This enables the web service calls to check network availability one each request in order to abide by the Apple User Interface guidelines.\par 7 | \par 8 | In order to compile the project, you must add a header to the project settings so that TouchXML works correctly. To do this, choose "Edit Project Settings" from the "Project" menu in the menubar. Navigate to the "Build" tab and make the following changes, without quotes.\par 9 | \par 10 | In the "Linking" section, go to the "Other Linker Flags" section and add the value "-lxml2".\par 11 | \par 12 | In the "Search Paths" section add a new search path to the "Header Search Paths" for "/usr/include/libxml2". This will include the proper C libraries for compiling TouchXML.\par 13 | \par 14 | } 15 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/NSData+Base64.h: -------------------------------------------------------------------------------- 1 | @interface NSData (Base64) 2 | 3 | + (NSData *)dataWithBase64EncodedString:(NSString *)string; 4 | - (id)initWithBase64EncodedString:(NSString *)string; 5 | 6 | - (NSString *)base64Encoding; 7 | - (NSString *)base64EncodingWithLineLength:(unsigned int) lineLength; 8 | 9 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/NSMutableArray+Soap.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TouchXML.h" 11 | 12 | @interface NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)newWithNode: (CXMLNode*) node; 15 | -(id)initWithNode:(CXMLNode*)node; 16 | +(NSMutableString*) serialize: (NSArray*) array; 17 | -(id)object; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/NSMutableArray+Soap.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "NSMutableArray+Soap.h" 10 | #import "Soap.h" 11 | 12 | @implementation NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)newWithNode: (CXMLNode*) node { 15 | return [[[self alloc] initWithNode:node] autorelease]; 16 | } 17 | 18 | -(id)initWithNode:(CXMLNode*)node { 19 | if(self = [self init]) { 20 | for(CXMLNode* child in [node children]) { 21 | [self addObject:[Soap deserialize:child]]; 22 | } 23 | } 24 | return self; 25 | } 26 | 27 | -(id)object { return self; } 28 | 29 | + (NSMutableString*) serialize: (NSArray*) array { 30 | return [NSMutableString stringWithString:[Soap serialize:array]]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the SoapDelegate protocol. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | 9 | @protocol SoapDelegate 10 | 11 | - (void) onload: (id) value; 12 | 13 | @optional 14 | - (void) onerror: (NSError*) error; 15 | - (void) onfault: (SoapFault*) fault; 16 | 17 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapFault.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.h 3 | Interface that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "TouchXML.h" 10 | 11 | @interface SoapFault : NSObject { 12 | NSString* faultCode; 13 | NSString* faultString; 14 | NSString* faultActor; 15 | NSString* detail; 16 | BOOL hasFault; 17 | } 18 | 19 | @property (retain, nonatomic) NSString* faultCode; 20 | @property (retain, nonatomic) NSString* faultString; 21 | @property (retain, nonatomic) NSString* faultActor; 22 | @property (retain, nonatomic) NSString* detail; 23 | @property BOOL hasFault; 24 | 25 | + (SoapFault*) faultWithData: (NSMutableData*) data; 26 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document; 27 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapFault.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.m 3 | Implementation that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "SoapFault.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapFault 13 | 14 | @synthesize faultCode, faultString, faultActor, detail, hasFault; 15 | 16 | + (SoapFault*) faultWithData: (NSMutableData*) data { 17 | NSError* error; 18 | CXMLDocument* doc = [[CXMLDocument alloc] initWithData: data options: 0 error: &error]; 19 | if(doc == nil) { 20 | return [[[SoapFault alloc] init] autorelease]; 21 | } 22 | return [SoapFault faultWithXMLDocument: doc]; 23 | } 24 | 25 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document { 26 | return [SoapFault faultWithXMLElement: [Soap getNode: [document rootElement] withName: @"Fault"]]; 27 | } 28 | 29 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element { 30 | SoapFault* fault = [[[SoapFault alloc] init] autorelease]; 31 | fault.hasFault = NO; 32 | if(element == nil) { 33 | return fault; 34 | } 35 | 36 | fault.faultCode = [Soap getNodeValue: element withName: @"faultcode"]; 37 | fault.faultString = [Soap getNodeValue: element withName: @"faultstring"]; 38 | fault.faultActor = [Soap getNodeValue: element withName: @"faultactor"]; 39 | fault.detail = [Soap getNodeValue: element withName: @"detail"]; 40 | fault.hasFault = YES; 41 | return fault; 42 | } 43 | 44 | - (NSString*) description { 45 | if(self.hasFault) { 46 | return [NSString stringWithFormat: @"%@ %@\n%@", self.faultCode, self.faultString, self.detail]; 47 | } else { 48 | return nil; 49 | } 50 | } 51 | 52 | - (void) dealloc { 53 | self.faultCode = nil; 54 | self.faultString = nil; 55 | self.faultActor = nil; 56 | self.detail = nil; 57 | [super dealloc]; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the concrete SoapHandler class. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | #import "SoapDelegate.h" 9 | 10 | @interface SoapHandler : NSObject 11 | { 12 | } 13 | 14 | - (void) onload: (id) value; 15 | - (void) onerror: (NSError*) error; 16 | - (void) onfault: (SoapFault*) fault; 17 | 18 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapHandler.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapHandler.m 3 | Implementation of a blank SOAP handler. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | 9 | @implementation SoapHandler 10 | 11 | - (void) onload: (id) value 12 | { 13 | } 14 | 15 | - (void) onerror: (NSError*) error 16 | { 17 | } 18 | 19 | - (void) onfault: (SoapFault*) fault 20 | { 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapLiteral.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapLiteral : NSObject { 13 | NSString* value; 14 | } 15 | 16 | @property (nonatomic, retain) NSString* value; 17 | 18 | -(id)initWithString:(NSString*)string; 19 | +(SoapLiteral*)literalWithString:(NSString*)string; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapLiteral.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapLiteral.h" 10 | 11 | 12 | @implementation SoapLiteral 13 | 14 | @synthesize value; 15 | 16 | -(id)initWithString:(NSString *)string { 17 | if(self = [self init]) { 18 | self.value = string; 19 | } 20 | return self; 21 | } 22 | 23 | +(SoapLiteral*)literalWithString:(NSString *)string { 24 | return [[[SoapLiteral alloc] initWithString:string] autorelease]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapNil.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapNil : NSObject { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapNil.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapNil.h" 10 | 11 | 12 | @implementation SoapNil 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapObject.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.h 3 | Interface for the SoapObject base object that provides initialization and deallocation methods. 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | 8 | #import "TouchXML.h" 9 | 10 | @interface SoapObject : NSObject { 11 | } 12 | 13 | @property (readonly) id object; 14 | 15 | + (id) newWithNode: (CXMLNode*) node; 16 | - (id) initWithNode: (CXMLNode*) node; 17 | - (NSMutableString*) serialize; 18 | - (NSMutableString*) serialize: (NSString*) nodeName; 19 | - (NSMutableString*) serializeElements; 20 | - (NSMutableString*) serializeAttributes; 21 | 22 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapObject.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.m 3 | Implementation of the SoapObject base object that provides initialization and deallocation methods 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | #import "Soap.h" 8 | #import "SoapObject.h" 9 | 10 | @implementation SoapObject 11 | 12 | // Initialization include for every object - important (NSString and NSDates's to nil) - Karl 13 | - (id) init { 14 | if (self = [super init]) { 15 | } 16 | return self; 17 | } 18 | 19 | // Static method for initializing from a node. 20 | + (id) newWithNode: (CXMLNode*) node { 21 | return (id)[[[SoapObject alloc] initWithNode: node] autorelease]; 22 | } 23 | 24 | // Called when initializing the object from a node 25 | - (id) initWithNode: (CXMLNode*) node { 26 | if(self = [self init]) { 27 | } 28 | return self; 29 | } 30 | 31 | // This will get called when traversing objects, returning nothing is ok - Karl 32 | - (NSMutableString*) serialize { 33 | return [NSMutableString string]; 34 | } 35 | 36 | - (NSMutableString*) serialize: (NSString*) nodeName { 37 | return [NSMutableString string]; 38 | } 39 | 40 | - (NSMutableString*) serializeElements { 41 | return [NSMutableString string]; 42 | } 43 | 44 | - (NSMutableString*) serializeAttributes { 45 | return [NSMutableString string]; 46 | } 47 | 48 | - (id) object { 49 | return self; 50 | } 51 | 52 | - (NSString*) description { 53 | return [Soap serialize:self]; 54 | } 55 | 56 | - (void) dealloc { 57 | [super dealloc]; 58 | } 59 | 60 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapParameter : NSObject { 13 | NSString* name; 14 | NSString* xml; 15 | id value; 16 | BOOL null; 17 | } 18 | 19 | @property (nonatomic, retain) NSString* name; 20 | @property (nonatomic, retain) id value; 21 | @property (readonly) BOOL null; 22 | @property (nonatomic, retain, readonly) NSString* xml; 23 | 24 | -(id)initWithValue:(id)value forName: (NSString*) name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapParameter.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapParameter.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapParameter 13 | 14 | @synthesize name, value, null, xml; 15 | 16 | -(void)setValue:(id)valueParam{ 17 | [valueParam retain]; 18 | [value release]; 19 | value = valueParam; 20 | null = (value == nil); 21 | } 22 | 23 | -(id)initWithValue:(id)valueParam forName: (NSString*) nameValue { 24 | if(self = [super init]) { 25 | self.name = nameValue; 26 | self.value = valueParam; 27 | } 28 | return self; 29 | } 30 | 31 | -(NSString*)xml{ 32 | if(self.value == nil) { 33 | return [NSString stringWithFormat:@"<%@ xsi:nil=\"true\"/>", name]; 34 | } else { 35 | return [Soap serialize: self.value withName: name]; 36 | } 37 | } 38 | 39 | -(void)dealloc{ 40 | [name release]; 41 | [value release]; 42 | [xml release]; 43 | [super dealloc]; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapReachability.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapReachability.h 3 | // Vaquero 4 | // 5 | // Created by Jason Kichline on 9/21/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface SoapReachability : NSObject { 14 | 15 | } 16 | 17 | // Determines if we are connected to the network 18 | + (BOOL) connectedToNetwork; 19 | 20 | // Gets the local IP address 21 | + (NSString*) localIPAddress; 22 | 23 | // Gets an IP address for a host 24 | + (NSString*) getIPAddressForHost: (NSString*) theHost; 25 | 26 | // Determines if a host is available 27 | + (BOOL) hostAvailable: (NSString*) theHost; 28 | 29 | // Gets an address from the string 30 | + (BOOL)addressFromString:(NSString *)IPAddress address:(struct sockaddr_in *) address; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapRequest.h 3 | Interface definition of the request object used to manage asynchronous requests. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | #import "SoapService.h" 9 | 10 | @interface SoapRequest : NSObject { 11 | NSURL* url; 12 | NSString* soapAction; 13 | NSString* username; 14 | NSString* password; 15 | id postData; 16 | NSMutableData* receivedData; 17 | NSURLConnection* conn; 18 | SoapHandler* handler; 19 | id deserializeTo; 20 | SEL action; 21 | BOOL logging; 22 | id defaultHandler; 23 | } 24 | 25 | @property (retain, nonatomic) NSURL* url; 26 | @property (retain, nonatomic) NSString* soapAction; 27 | @property (retain, nonatomic) NSString* username; 28 | @property (retain, nonatomic) NSString* password; 29 | @property (retain, nonatomic) id postData; 30 | @property (retain, nonatomic) NSMutableData* receivedData; 31 | @property (retain, nonatomic) SoapHandler* handler; 32 | @property (retain, nonatomic) id deserializeTo; 33 | @property SEL action; 34 | @property BOOL logging; 35 | @property (retain, nonatomic) id defaultHandler; 36 | 37 | + (SoapRequest*) create: (SoapHandler*) handler urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 38 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 39 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action service: (SoapService*) service soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 40 | 41 | - (BOOL)cancel; 42 | - (void)send; 43 | - (void)handleError:(NSError*)error; 44 | - (void)handleFault:(SoapFault*)fault; 45 | 46 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapService.h: -------------------------------------------------------------------------------- 1 | #import "SoapDelegate.h" 2 | 3 | @interface SoapService : NSObject 4 | { 5 | NSString* _serviceUrl; 6 | NSString* _namespace; 7 | NSString* _username; 8 | NSString* _password; 9 | NSDictionary* _headers; 10 | BOOL _logging; 11 | id _defaultHandler; 12 | } 13 | 14 | @property (retain) NSString* serviceUrl; 15 | @property (retain) NSString* namespace; 16 | @property (retain) NSString* username; 17 | @property (retain) NSString* password; 18 | @property (retain) NSDictionary* headers; 19 | @property BOOL logging; 20 | @property (nonatomic, retain) id defaultHandler; 21 | 22 | - (id) initWithUrl: (NSString*) url; 23 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password; 24 | 25 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/Soap/SoapService.m: -------------------------------------------------------------------------------- 1 | #import "SoapService.h" 2 | 3 | @implementation SoapService 4 | 5 | @synthesize serviceUrl = _serviceUrl; 6 | @synthesize namespace = _namespace; 7 | @synthesize logging = _logging; 8 | @synthesize headers = _headers; 9 | @synthesize defaultHandler = _defaultHandler; 10 | @synthesize username = _username; 11 | @synthesize password = _password; 12 | 13 | - (id) init { 14 | if(self = [super init]) { 15 | self.serviceUrl = nil; 16 | self.namespace = nil; 17 | self.logging = NO; 18 | self.headers = nil; 19 | self.defaultHandler = nil; 20 | self.username = nil; 21 | self.password = nil; 22 | } 23 | return self; 24 | } 25 | 26 | - (id) initWithUrl: (NSString*) url { 27 | if(self = [self init]) { 28 | self.serviceUrl = url; 29 | } 30 | return self; 31 | } 32 | 33 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password { 34 | if(self = [self init]) { 35 | self.username = username; 36 | self.password = password; 37 | } 38 | return self; 39 | } 40 | 41 | -(void)dealloc { 42 | [_serviceUrl release]; 43 | [_namespace release]; 44 | [_username release]; 45 | [_password release]; 46 | [_headers release]; 47 | [_defaultHandler release]; 48 | [super dealloc]; 49 | } 50 | 51 | @end -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLDocument.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | enum { 12 | CXMLDocumentTidyHTML = 1 << 9 13 | }; 14 | 15 | @class CXMLElement; 16 | 17 | @interface CXMLDocument : CXMLNode { 18 | NSMutableSet *nodePool; 19 | } 20 | 21 | - (id)initWithXMLString:(NSString *)inString options:(NSUInteger)inOptions error:(NSError **)outError; 22 | - (id)initWithContentsOfURL:(NSURL *)inURL options:(NSUInteger)inOptions error:(NSError **)outError; 23 | - (id)initWithData:(NSData *)inData options:(NSUInteger)inOptions error:(NSError **)outError; 24 | 25 | //- (NSString *)characterEncoding; 26 | //- (NSString *)version; 27 | //- (BOOL)isStandalone; 28 | //- (CXMLDocumentContentKind)documentContentKind; 29 | //- (NSString *)MIMEType; 30 | //- (CXMLDTD *)DTD; 31 | 32 | - (CXMLElement *)rootElement; 33 | 34 | //- (NSData *)XMLData; 35 | //- (NSData *)XMLDataWithOptions:(NSUInteger)options; 36 | 37 | //- (id)objectByApplyingXSLT:(NSData *)xslt arguments:(NSDictionary *)arguments error:(NSError **)error; 38 | //- (id)objectByApplyingXSLTString:(NSString *)xslt arguments:(NSDictionary *)arguments error:(NSError **)error; 39 | //- (id)objectByApplyingXSLTAtURL:(NSURL *)xsltURL arguments:(NSDictionary *)argument error:(NSError **)error; 40 | 41 | //- (id)XMLStringWithOptions:(NSUInteger)options; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLDocument_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLDocument.h" 10 | 11 | #include 12 | 13 | @interface CXMLDocument (CXMLDocument_PrivateExtensions) 14 | 15 | //- (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError; 16 | 17 | - (NSMutableSet *)nodePool; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLDocument_PrivateExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.m 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLDocument_PrivateExtensions.h" 10 | 11 | @implementation CXMLDocument (CXMLDocument_PrivateExtensions) 12 | 13 | /* 14 | - (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError 15 | { 16 | 17 | xmlParseDocument(inContext); 18 | 19 | } 20 | */ 21 | 22 | - (NSMutableSet *)nodePool 23 | { 24 | if (nodePool == NULL) 25 | { 26 | nodePool = [[NSMutableSet alloc] init]; 27 | } 28 | return(nodePool); 29 | } 30 | 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLElement.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | // NSXMLElement 12 | @interface CXMLElement : CXMLNode { 13 | 14 | } 15 | 16 | - (NSArray *)elementsForName:(NSString *)name; 17 | //- (NSArray *)elementsForLocalName:(NSString *)localName URI:(NSString *)URI; 18 | 19 | - (NSArray *)attributes; 20 | - (CXMLNode *)attributeForName:(NSString *)name; 21 | //- (CXMLNode *)attributeForLocalName:(NSString *)localName URI:(NSString *)URI; 22 | 23 | //- (NSArray *)namespaces; //primitive 24 | //- (CXMLNode *)namespaceForPrefix:(NSString *)name; 25 | //- (CXMLNode *)resolveNamespaceForName:(NSString *)name; 26 | //- (NSString *)resolvePrefixForNamespaceURI:(NSString *)namespaceURI; 27 | 28 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str; 29 | @end 30 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLNode.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #include 12 | 13 | typedef enum { 14 | CXMLInvalidKind = 0, 15 | CXMLElementKind = XML_ELEMENT_NODE, 16 | CXMLAttributeKind = XML_ATTRIBUTE_NODE, 17 | CXMLTextKind = XML_TEXT_NODE, 18 | CXMLProcessingInstructionKind = XML_PI_NODE, 19 | CXMLCommentKind = XML_COMMENT_NODE, 20 | CXMLNotationDeclarationKind = XML_NOTATION_NODE, 21 | CXMLDTDKind = XML_DTD_NODE, 22 | CXMLElementDeclarationKind = XML_ELEMENT_DECL, 23 | CXMLAttributeDeclarationKind = XML_ATTRIBUTE_DECL, 24 | CXMLEntityDeclarationKind = XML_ENTITY_DECL, 25 | CXMLNamespaceKind = XML_NAMESPACE_DECL, 26 | } CXMLNodeKind; 27 | 28 | @class CXMLDocument; 29 | 30 | // NSXMLNode 31 | @interface CXMLNode : NSObject { 32 | xmlNodePtr _node; 33 | } 34 | 35 | - (CXMLNodeKind)kind; 36 | - (NSString *)name; 37 | - (NSString *)stringValue; 38 | - (NSUInteger)index; 39 | - (NSUInteger)level; 40 | - (CXMLDocument *)rootDocument; 41 | - (CXMLNode *)parent; 42 | - (NSUInteger)childCount; 43 | - (NSArray *)children; 44 | - (CXMLNode *)childAtIndex:(NSUInteger)index; 45 | - (CXMLNode *)previousSibling; 46 | - (CXMLNode *)nextSibling; 47 | //- (CXMLNode *)previousNode; 48 | //- (CXMLNode *)nextNode; 49 | //- (NSString *)XPath; 50 | //- (NSString *)localName; 51 | //- (NSString *)prefix; 52 | //- (NSString *)URI; 53 | //+ (NSString *)localNameForName:(NSString *)name; 54 | //+ (NSString *)prefixForName:(NSString *)name; 55 | //+ (CXMLNode *)predefinedNamespaceForPrefix:(NSString *)name; 56 | - (NSString *)description; 57 | - (NSString *)XMLString; 58 | - (NSString *)XMLStringWithOptions:(NSUInteger)options; 59 | //- (NSString *)canonicalXMLStringPreservingComments:(BOOL)comments; 60 | - (NSArray *)nodesForXPath:(NSString *)xpath error:(NSError **)error; 61 | 62 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str; 63 | @end 64 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLNode_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_PrivateExtensions.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | @interface CXMLNode (CXMLNode_PrivateExtensions) 12 | 13 | - (id)initWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 14 | 15 | + (id)nodeWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLNode_PrivateExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_PrivateExtensions.m 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode_PrivateExtensions.h" 10 | 11 | #import "CXMLElement.h" 12 | #import "CXMLDocument_PrivateExtensions.h" 13 | 14 | @implementation CXMLNode (CXMLNode_PrivateExtensions) 15 | 16 | - (id)initWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 17 | { 18 | if ((self = [super init]) != NULL) 19 | { 20 | _node = inLibXMLNode; 21 | } 22 | return(self); 23 | } 24 | 25 | + (id)nodeWithLibXMLNode:(xmlNodePtr)inLibXMLNode 26 | { 27 | // TODO more checking. 28 | if (inLibXMLNode->_private) 29 | return(inLibXMLNode->_private); 30 | 31 | Class theClass = [CXMLNode class]; 32 | switch (inLibXMLNode->type) 33 | { 34 | case XML_ELEMENT_NODE: 35 | theClass = [CXMLElement class]; 36 | break; 37 | case XML_ATTRIBUTE_NODE: 38 | case XML_TEXT_NODE: 39 | case XML_CDATA_SECTION_NODE: 40 | case XML_COMMENT_NODE: 41 | break; 42 | default: 43 | NSAssert1(NO, @"TODO Unhandled type (%d).", inLibXMLNode->type); 44 | return(NULL); 45 | } 46 | 47 | CXMLNode *theNode = [[[theClass alloc] initWithLibXMLNode:inLibXMLNode] autorelease]; 48 | 49 | 50 | CXMLDocument *theXMLDocument = inLibXMLNode->doc->_private; 51 | NSAssert(theXMLDocument != NULL, @"TODO"); 52 | NSAssert([theXMLDocument isKindOfClass:[CXMLDocument class]] == YES, @"TODO"); 53 | 54 | [[theXMLDocument nodePool] addObject:theNode]; 55 | 56 | theNode->_node->_private = theNode; 57 | return(theNode); 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLNode_XPathExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | @interface CXMLNode (CXMLNode_XPathExtensions) 12 | 13 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/CXMLNode_XPathExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.m 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode_XPathExtensions.h" 10 | 11 | #import "CXMLDocument.h" 12 | #import "CXMLNode_PrivateExtensions.h" 13 | 14 | #include 15 | #include 16 | 17 | @implementation CXMLNode (CXMLNode_NamespaceExtensions) 18 | 19 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 20 | { 21 | NSAssert(_node != NULL, @"TODO"); 22 | 23 | NSArray *theResult = NULL; 24 | 25 | CXMLNode *theRootDocument = [self rootDocument]; 26 | xmlXPathContextPtr theXPathContext = xmlXPathNewContext((xmlDocPtr)theRootDocument->_node); 27 | theXPathContext->node = _node; 28 | 29 | for (NSString *thePrefix in inNamespaceMappings) 30 | { 31 | xmlXPathRegisterNs(theXPathContext, (xmlChar *)[thePrefix UTF8String], (xmlChar *)[[inNamespaceMappings objectForKey:thePrefix] UTF8String]); 32 | } 33 | 34 | // TODO considering putting xmlChar <-> UTF8 into a NSString category 35 | xmlXPathObjectPtr theXPathObject = xmlXPathEvalExpression((const xmlChar *)[xpath UTF8String], theXPathContext); 36 | if (xmlXPathNodeSetIsEmpty(theXPathObject->nodesetval)) 37 | theResult = [NSArray array]; // TODO better to return NULL? 38 | else 39 | { 40 | NSMutableArray *theArray = [NSMutableArray array]; 41 | int N; 42 | for (N = 0; N < theXPathObject->nodesetval->nodeNr; N++) 43 | { 44 | xmlNodePtr theNode = theXPathObject->nodesetval->nodeTab[N]; 45 | [theArray addObject:[CXMLNode nodeWithLibXMLNode:theNode]]; 46 | } 47 | 48 | theResult = theArray; 49 | } 50 | 51 | xmlXPathFreeObject(theXPathObject); 52 | 53 | xmlXPathFreeContext(theXPathContext); 54 | return(theResult); 55 | } 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /Code/ObjC/Source/TouchXML/TouchXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchXML.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 07/11/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLDocument.h" 10 | #import "CXMLElement.h" 11 | #import "CXMLNode.h" 12 | #import "CXMLNode_XPathExtensions.h" -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Code/ObjCARC/Documentation/assets/images/arrow.png -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Code/ObjCARC/Documentation/assets/images/icon.png -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/assets/scripts/base.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("#content").each(function(content){ 3 | this.innerHTML=this.innerHTML.replace(/((NS(\w+))\s*\*)/g, "$1"); 4 | this.innerHTML=this.innerHTML.replace(/((CXML(\w+))\s*\*)/g, "$1"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/assets/styles/default.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 3 | font-size: 80%; 4 | } 5 | 6 | #logo { 7 | left: 10pt; 8 | bottom: 10pt; 9 | display: block; 10 | } 11 | 12 | #content { 13 | margin:30pt; 14 | } 15 | 16 | h1 { 17 | margin-top: 0; 18 | font-size: 24pt; 19 | } 20 | 21 | h2 { 22 | margin-top: 30pt; 23 | font-size: 18pt; 24 | border: solid 1px #999; 25 | border-width: 0 0 1px 0; 26 | } 27 | 28 | h3 { 29 | margin-top: 14pt; 30 | margin-bottom: 6pt; 31 | font-size: 14pt; 32 | } 33 | 34 | h4 { 35 | margin-bottom: 0; 36 | } 37 | 38 | code, pre { 39 | font-family: Monaco, monospace; 40 | font-size: 8pt; 41 | } 42 | 43 | #content dt { 44 | font-style: italic; 45 | } 46 | 47 | #content dd { 48 | margin-left: 12pt; 49 | margin-bottom: 6pt; 50 | } 51 | 52 | #content ul li { 53 | font-family: Monaco, monospace; 54 | font-size: 9pt; 55 | list-style: none; 56 | } 57 | 58 | #content #code dt { 59 | font-style: normal; 60 | font-family: Monaco, monospace; 61 | } 62 | 63 | a { 64 | color: #6ea9c9; 65 | text-decoration: none; 66 | } 67 | 68 | a:hover { 69 | text-decoration: underline; 70 | } 71 | 72 | a:visited { 73 | color: #456887; 74 | } 75 | 76 | #toc { 77 | background-color: #f2f9fe; 78 | margin:0; 79 | overflow-x: hidden; 80 | overflow-y: scroll; 81 | background-image: url(../images/icon.png); 82 | background-repeat: no-repeat; 83 | background-attachment: fixed; 84 | background-position: bottom right; 85 | } 86 | 87 | #toc dt { 88 | background-color: #456887; 89 | font-style: normal; 90 | font-weight: bold; 91 | color: #FFF; 92 | margin: 0; 93 | padding: 4pt; 94 | opacity:0.7; 95 | } 96 | 97 | #toc dd { 98 | margin:0; 99 | } 100 | 101 | #toc ul li { 102 | font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; 103 | list-style-image: url(../images/arrow.png); 104 | margin:0; 105 | } 106 | 107 | #footer { 108 | margin-top:30pt; 109 | border:solid 0px #999; 110 | border-top: 1px; 111 | } -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/framework/CXMLElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXMLElement Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

CXMLElement Class Reference

10 |

The CXMLElement class defines an XML element in the TouchXML library.

11 |

Inherits from CXMLNode*

12 | 13 |

Instance Methods

14 | 15 |

elementsForName:

16 |

Returns an array of elements by name.

17 | - (NSArray *)elementsForName:(NSString *)name 18 |

Parameters

19 |
20 |
name
21 |
The name of the elements to retrieve.
22 |
23 | 24 |

attributes

25 |

Returns an array of the element's attributes.

26 | - (NSArray *)attributes 27 | 28 |

attributeForName:

29 |

Retrieves an attribute by name.

30 | - (CXMLNode *)attributeForName:(NSString *)name 31 |

Parameters

32 |
33 |
name
34 |
The name of the attribute to retrieve.
35 |
36 | 37 |

_XMLStringWithOptions:appendingToString:

38 |

Outputs the XML string of the element.

39 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str 40 |

Parameters

41 |
42 |
options
43 |
Declares options for outputting the XML.
44 |
str
45 |
The string to which the XML is appended.
46 |
47 | 48 | 49 | -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/framework/SoapDelegate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapDelegate Protocol Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapDelegate Protocol Reference

10 |

11 |

Declares a protocol used to handle the response of SOAP calls.

12 | 13 |

Required methods

14 | 15 |

onload:

16 |

Handles the successful response of a SOAP call.

17 | - (void) onload: (id) value 18 |

Parameters

19 |
20 |
value
21 |
The object value of the response.
22 |
23 | 24 |

Optional methods

25 | 26 |

onerror:

27 |

Handles any errors that occurred while sending the request.

28 | - (void) onerror: (NSError*) error 29 |

Parameters

30 |
31 |
error
32 |
The NSError* containing details about the errors encountered.
33 |
34 |

Discussion

35 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

36 | 37 |

onfault:

38 |

Handles any SOAP faults that are returned from the web service.

39 | - (void) onfault: (SoapFault*) fault 40 |

Parameters

41 |
42 |
fault
43 |
The SOAP fault returned by the web service.
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/framework/SoapHandler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapHandler Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapHandler Class Reference

10 |

The SoapHandler class provides a concrete representation of the SoapDelegate protocol.

11 |

Inherits from NSObject*.

12 |

Conforms to SoapDelegate.

13 | 14 |

Instance methods

15 | 16 |

onload:

17 |

Handles the successful response of a SOAP call.

18 | - (void) onload: (id) value 19 |

Parameters

20 |
21 |
value
22 |
The object value of the response.
23 |
24 | 25 |

onerror:

26 |

Handles any errors that occurred while sending the request.

27 | - (void) onerror: (NSError*) error 28 |

Parameters

29 |
30 |
error
31 |
The NSError* containing details about the errors encountered.
32 |
33 |

Discussion

34 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

35 | 36 |

onfault:

37 |

Handles any SOAP faults that are returned from the web service.

38 | - (void) onfault: (SoapFault*) fault 39 |

Parameters

40 |
41 |
fault
42 |
The SOAP fault returned by the web service.
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/framework/SoapNil.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapNil Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapNil Class Reference

10 |

This class is used to send nil values where an actual object is required in a value. Used in setting null for SoapParameter objects.

11 |

Inherits from NSObject*

12 | 13 | -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/framework/SoapParameter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapParameter Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapParameter Class Reference

10 |

Defines a class used to pass parameter information to create a SOAP envelope.

11 |

Inherits from NSObject*

12 | 13 |

Properties

14 | 15 |

name

16 |

The name of the parameter,

17 | @property (nonatomic, retain) NSString* name 18 | 19 |

value

20 |

The value of the parameter.

21 | @property (nonatomic, retain) id value 22 | 23 |

null

24 |

Determines if the parameter value is null. (Read Only)

25 | @property (readonly) BOOL null 26 | 27 |

xml

28 |

The serialized XML of the parameter.

29 | @property (nonatomic, retain, readonly) NSString* xml 30 | 31 |

Instance methods

32 | 33 |

initWithValue:forName:

34 |

Initializes the parameter with the specified name and value.

35 | -(id)initWithValue:(id)value forName: (NSString*) name 36 |

Parameters

37 |
38 |
value
39 |
The value of the parameter.
40 |
name
41 |
The name of the parameter.
42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /Code/ObjCARC/Documentation/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | SudzC Generated Class Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Code/ObjCARC/Examples/SudzCExamples-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /Code/ObjCARC/Examples/SudzCExamplesAppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface SudzCExamplesAppDelegate : NSObject { 4 | UIWindow *window; 5 | } 6 | 7 | @property (nonatomic, retain) IBOutlet UIWindow *window; 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Code/ObjCARC/Examples/SudzCExamples_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SudzCExamples' target in the 'SudzCExamples' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /Code/ObjCARC/Examples/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 1/23/10. 6 | // Copyright andCulture 2010. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, @"SudzCExamplesAppDelegate"); 15 | } 16 | } -------------------------------------------------------------------------------- /Code/ObjCARC/README.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} 2 | {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\lang1033\b\f0\fs24 Adding Sudz-C Files to Xcode\b0\par 3 | \par 4 | Copy the files contained in the archive into your Xcode project tree. You may want to add them in their own folder group to make managing your project a little easier in the future.\par 5 | \par 6 | Be sure to add the SystemConfiguration framework to your project. This enables the web service calls to check network availability one each request in order to abide by the Apple User Interface guidelines.\par 7 | \par 8 | In order to compile the project, you must add a header to the project settings so that TouchXML works correctly. To do this, choose "Edit Project Settings" from the "Project" menu in the menubar. Navigate to the "Build" tab and make the following changes, without quotes.\par 9 | \par 10 | In the "Linking" section, go to the "Other Linker Flags" section and add the value "-lxml2".\par 11 | \par 12 | In the "Search Paths" section add a new search path to the "Header Search Paths" for "/usr/include/libxml2". This will include the proper C libraries for compiling TouchXML.\par 13 | \par 14 | } 15 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/NSData+Base64.h: -------------------------------------------------------------------------------- 1 | @interface NSData (Base64) 2 | 3 | + (NSData *)dataWithBase64EncodedString:(NSString *)string; 4 | - (id)initWithBase64EncodedString:(NSString *)string; 5 | 6 | - (NSString *)base64Encoding; 7 | - (NSString *)base64EncodingWithLineLength:(unsigned int) lineLength; 8 | 9 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/NSMutableArray+Soap.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TouchXML.h" 11 | 12 | @interface NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)newWithNode: (CXMLNode*) node; 15 | -(id)initWithNode:(CXMLNode*)node; 16 | +(NSMutableString*) serialize: (NSArray*) array; 17 | -(id)object; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/NSMutableArray+Soap.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "NSMutableArray+Soap.h" 10 | #import "Soap.h" 11 | 12 | @implementation NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)newWithNode: (CXMLNode*) node { 15 | return [[self alloc] initWithNode:node]; 16 | } 17 | 18 | -(id)initWithNode:(CXMLNode*)node { 19 | if(self = [self init]) { 20 | for(CXMLNode* child in [node children]) { 21 | [self addObject:[Soap deserialize:child]]; 22 | } 23 | } 24 | return self; 25 | } 26 | 27 | -(id)object { return self; } 28 | 29 | + (NSMutableString*) serialize: (NSArray*) array { 30 | return [NSMutableString stringWithString:[Soap serialize:array]]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the SoapDelegate protocol. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | 9 | @protocol SoapDelegate 10 | 11 | - (void) onload: (id) value; 12 | 13 | @optional 14 | - (void) onerror: (NSError*) error; 15 | - (void) onfault: (SoapFault*) fault; 16 | 17 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapFault.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.h 3 | Interface that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "TouchXML.h" 10 | 11 | @interface SoapFault : NSObject { 12 | NSString* faultCode; 13 | NSString* faultString; 14 | NSString* faultActor; 15 | NSString* detail; 16 | BOOL hasFault; 17 | } 18 | 19 | @property (retain, nonatomic) NSString* faultCode; 20 | @property (retain, nonatomic) NSString* faultString; 21 | @property (retain, nonatomic) NSString* faultActor; 22 | @property (retain, nonatomic) NSString* detail; 23 | @property BOOL hasFault; 24 | 25 | + (SoapFault*) faultWithData: (NSMutableData*) data; 26 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document; 27 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapFault.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.m 3 | Implementation that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "SoapFault.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapFault 13 | 14 | @synthesize faultCode, faultString, faultActor, detail, hasFault; 15 | 16 | + (SoapFault*) faultWithData: (NSMutableData*) data { 17 | NSError* error; 18 | CXMLDocument* doc = [[CXMLDocument alloc] initWithData: data options: 0 error: &error]; 19 | if(doc == nil) { 20 | return [[SoapFault alloc] init]; 21 | } 22 | return [SoapFault faultWithXMLDocument: doc]; 23 | } 24 | 25 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document { 26 | return [SoapFault faultWithXMLElement: [Soap getNode: [document rootElement] withName: @"Fault"]]; 27 | } 28 | 29 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element { 30 | SoapFault* fault = [[SoapFault alloc] init]; 31 | fault.hasFault = NO; 32 | if(element == nil) { 33 | return fault; 34 | } 35 | 36 | fault.faultCode = [Soap getNodeValue: element withName: @"faultcode"]; 37 | fault.faultString = [Soap getNodeValue: element withName: @"faultstring"]; 38 | fault.faultActor = [Soap getNodeValue: element withName: @"faultactor"]; 39 | fault.detail = [Soap getNodeValue: element withName: @"detail"]; 40 | fault.hasFault = YES; 41 | return fault; 42 | } 43 | 44 | - (NSString*) description { 45 | if(self.hasFault) { 46 | return [NSString stringWithFormat: @"%@ %@\n%@", self.faultCode, self.faultString, self.detail]; 47 | } else { 48 | return nil; 49 | } 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the concrete SoapHandler class. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | #import "SoapDelegate.h" 9 | 10 | @interface SoapHandler : NSObject 11 | { 12 | } 13 | 14 | - (void) onload: (id) value; 15 | - (void) onerror: (NSError*) error; 16 | - (void) onfault: (SoapFault*) fault; 17 | 18 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapHandler.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapHandler.m 3 | Implementation of a blank SOAP handler. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | 9 | @implementation SoapHandler 10 | 11 | - (void) onload: (id) value 12 | { 13 | } 14 | 15 | - (void) onerror: (NSError*) error 16 | { 17 | } 18 | 19 | - (void) onfault: (SoapFault*) fault 20 | { 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapLiteral.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapLiteral : NSObject { 13 | NSString* value; 14 | } 15 | 16 | @property (nonatomic, retain) NSString* value; 17 | 18 | -(id)initWithString:(NSString*)string; 19 | +(SoapLiteral*)literalWithString:(NSString*)string; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapLiteral.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapLiteral.h" 10 | 11 | 12 | @implementation SoapLiteral 13 | 14 | @synthesize value; 15 | 16 | -(id)initWithString:(NSString *)string { 17 | if(self = [self init]) { 18 | self.value = string; 19 | } 20 | return self; 21 | } 22 | 23 | +(SoapLiteral*)literalWithString:(NSString *)string { 24 | return [[SoapLiteral alloc] initWithString:string]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapNil.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapNil : NSObject { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapNil.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapNil.h" 10 | 11 | 12 | @implementation SoapNil 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapObject.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.h 3 | Interface for the SoapObject base object that provides initialization and deallocation methods. 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | 8 | #import "TouchXML.h" 9 | 10 | @interface SoapObject : NSObject { 11 | } 12 | 13 | @property (readonly) id object; 14 | 15 | + (id) newWithNode: (CXMLNode*) node; 16 | - (id) initWithNode: (CXMLNode*) node; 17 | - (NSMutableString*) serialize; 18 | - (NSMutableString*) serialize: (NSString*) nodeName; 19 | - (NSMutableString*) serializeElements; 20 | - (NSMutableString*) serializeAttributes; 21 | 22 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapObject.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.m 3 | Implementation of the SoapObject base object that provides initialization and deallocation methods 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | #import "Soap.h" 8 | #import "SoapObject.h" 9 | 10 | @implementation SoapObject 11 | 12 | // Initialization include for every object - important (NSString and NSDates's to nil) - Karl 13 | - (id) init { 14 | if (self = [super init]) { 15 | } 16 | return self; 17 | } 18 | 19 | // Static method for initializing from a node. 20 | + (id) newWithNode: (CXMLNode*) node { 21 | return (id)[[SoapObject alloc] initWithNode: node]; 22 | } 23 | 24 | // Called when initializing the object from a node 25 | - (id) initWithNode: (CXMLNode*) node { 26 | if(self = [self init]) { 27 | } 28 | return self; 29 | } 30 | 31 | // This will get called when traversing objects, returning nothing is ok - Karl 32 | - (NSMutableString*) serialize { 33 | return [NSMutableString string]; 34 | } 35 | 36 | - (NSMutableString*) serialize: (NSString*) nodeName { 37 | return [NSMutableString string]; 38 | } 39 | 40 | - (NSMutableString*) serializeElements { 41 | return [NSMutableString string]; 42 | } 43 | 44 | - (NSMutableString*) serializeAttributes { 45 | return [NSMutableString string]; 46 | } 47 | 48 | - (id) object { 49 | return self; 50 | } 51 | 52 | - (NSString*) description { 53 | return [Soap serialize:self]; 54 | } 55 | 56 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapParameter : NSObject { 13 | NSString* name; 14 | NSString* xml; 15 | id value; 16 | BOOL null; 17 | } 18 | 19 | @property (nonatomic, retain) NSString* name; 20 | @property (nonatomic, retain) id value; 21 | @property (readonly) BOOL null; 22 | @property (nonatomic, retain, readonly) NSString* xml; 23 | 24 | -(id)initWithValue:(id)value forName: (NSString*) name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapParameter.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapParameter.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapParameter 13 | 14 | @synthesize name, value, null, xml; 15 | 16 | -(void)setValue:(id)valueParam{ 17 | value = valueParam; 18 | null = (value == nil); 19 | } 20 | 21 | -(id)initWithValue:(id)valueParam forName: (NSString*) nameValue { 22 | if(self = [super init]) { 23 | self.name = nameValue; 24 | self.value = valueParam; 25 | } 26 | return self; 27 | } 28 | 29 | -(NSString*)xml{ 30 | if(self.value == nil) { 31 | return [NSString stringWithFormat:@"<%@ xsi:nil=\"true\"/>", name]; 32 | } else { 33 | return [Soap serialize: self.value withName: name]; 34 | } 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapReachability.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapReachability.h 3 | // Vaquero 4 | // 5 | // Created by Jason Kichline on 9/21/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface SoapReachability : NSObject { 14 | 15 | } 16 | 17 | // Determines if we are connected to the network 18 | + (BOOL) connectedToNetwork; 19 | 20 | // Gets the local IP address 21 | + (NSString*) localIPAddress; 22 | 23 | // Gets an IP address for a host 24 | + (NSString*) getIPAddressForHost: (NSString*) theHost; 25 | 26 | // Determines if a host is available 27 | + (BOOL) hostAvailable: (NSString*) theHost; 28 | 29 | // Gets an address from the string 30 | + (BOOL)addressFromString:(NSString *)IPAddress address:(struct sockaddr_in *) address; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapRequest.h 3 | Interface definition of the request object used to manage asynchronous requests. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | #import "SoapService.h" 9 | 10 | @interface SoapRequest : NSObject { 11 | NSURL* url; 12 | NSString* soapAction; 13 | NSString* username; 14 | NSString* password; 15 | id postData; 16 | NSMutableData* receivedData; 17 | NSURLConnection* conn; 18 | SoapHandler* handler; 19 | id deserializeTo; 20 | SEL action; 21 | BOOL logging; 22 | id defaultHandler; 23 | } 24 | 25 | @property (retain, nonatomic) NSURL* url; 26 | @property (retain, nonatomic) NSString* soapAction; 27 | @property (retain, nonatomic) NSString* username; 28 | @property (retain, nonatomic) NSString* password; 29 | @property (retain, nonatomic) id postData; 30 | @property (retain, nonatomic) NSMutableData* receivedData; 31 | @property (retain, nonatomic) SoapHandler* handler; 32 | @property (retain, nonatomic) id deserializeTo; 33 | @property SEL action; 34 | @property BOOL logging; 35 | @property (retain, nonatomic) id defaultHandler; 36 | 37 | + (SoapRequest*) create: (SoapHandler*) handler urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 38 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 39 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action service: (SoapService*) service soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 40 | 41 | - (BOOL)cancel; 42 | - (void)send; 43 | - (void)handleError:(NSError*)error; 44 | - (void)handleFault:(SoapFault*)fault; 45 | 46 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapService.h: -------------------------------------------------------------------------------- 1 | #import "SoapDelegate.h" 2 | 3 | @interface SoapService : NSObject 4 | { 5 | NSString* _serviceUrl; 6 | NSString* _namespace; 7 | NSString* _username; 8 | NSString* _password; 9 | NSDictionary* _headers; 10 | BOOL _logging; 11 | id _defaultHandler; 12 | } 13 | 14 | @property (retain) NSString* serviceUrl; 15 | @property (retain) NSString* namespace; 16 | @property (retain) NSString* username; 17 | @property (retain) NSString* password; 18 | @property (retain) NSDictionary* headers; 19 | @property BOOL logging; 20 | @property (nonatomic, retain) id defaultHandler; 21 | 22 | - (id) initWithUrl: (NSString*) url; 23 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password; 24 | 25 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/Soap/SoapService.m: -------------------------------------------------------------------------------- 1 | #import "SoapService.h" 2 | 3 | @implementation SoapService 4 | 5 | @synthesize serviceUrl = _serviceUrl; 6 | @synthesize namespace = _namespace; 7 | @synthesize logging = _logging; 8 | @synthesize headers = _headers; 9 | @synthesize defaultHandler = _defaultHandler; 10 | @synthesize username = _username; 11 | @synthesize password = _password; 12 | 13 | - (id) init { 14 | if(self = [super init]) { 15 | self.serviceUrl = nil; 16 | self.namespace = nil; 17 | self.logging = NO; 18 | self.headers = nil; 19 | self.defaultHandler = nil; 20 | self.username = nil; 21 | self.password = nil; 22 | } 23 | return self; 24 | } 25 | 26 | - (id) initWithUrl: (NSString*) url { 27 | if(self = [self init]) { 28 | self.serviceUrl = url; 29 | } 30 | return self; 31 | } 32 | 33 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password { 34 | if(self = [self init]) { 35 | self.username = username; 36 | self.password = password; 37 | } 38 | return self; 39 | } 40 | 41 | @end -------------------------------------------------------------------------------- /Code/ObjCARC/Source/TouchXML/CXMLDocument_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLDocument.h" 33 | 34 | #include 35 | 36 | @interface CXMLDocument (CXMLDocument_PrivateExtensions) 37 | 38 | //- (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError; 39 | 40 | - (NSMutableSet *)nodePool; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/TouchXML/CXMLElement_CreationExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_CreationExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLElement.h" 33 | 34 | @interface CXMLElement (CXMLElement_CreationExtensions) 35 | 36 | - (void)addChild:(CXMLNode *)inNode; 37 | 38 | - (void)addNamespace:(CXMLNode *)inNamespace; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/TouchXML/CXMLElement_ElementTreeExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_ElementTreeExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 11/14/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLElement.h" 33 | 34 | 35 | @interface CXMLElement (CXMLElement_ElementTreeExtensions) 36 | 37 | - (CXMLElement *)subelement:(NSString *)inName; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/TouchXML/CXMLNode_XPathExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLNode.h" 33 | 34 | @interface CXMLNode (CXMLNode_XPathExtensions) 35 | 36 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 37 | - (CXMLNode *)nodeForXPath:(NSString *)xpath error:(NSError **)outError; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Code/ObjCARC/Source/TouchXML/TouchXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchXML.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 07/11/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLDocument.h" 33 | #import "CXMLDocument_CreationExtensions.h" 34 | #import "CXMLElement.h" 35 | #import "CXMLElement_CreationExtensions.h" 36 | #import "CXMLElement_ElementTreeExtensions.h" 37 | #import "CXMLNode.h" 38 | #import "CXMLNode_CreationExtensions.h" 39 | #import "CXMLNode_XPathExtensions.h" 40 | -------------------------------------------------------------------------------- /SudzC/SudzC 2008.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Website", "..\Website\", "{838EA5E3-8A94-4D2B-AF1D-121BF7AA2B0E}" 5 | ProjectSection(WebsiteProperties) = preProject 6 | TargetFramework = "3.5" 7 | Debug.AspNetCompiler.VirtualPath = "/Website" 8 | Debug.AspNetCompiler.PhysicalPath = "..\Website\" 9 | Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Website\" 10 | Debug.AspNetCompiler.Updateable = "true" 11 | Debug.AspNetCompiler.ForceOverwrite = "true" 12 | Debug.AspNetCompiler.FixedNames = "false" 13 | Debug.AspNetCompiler.Debug = "True" 14 | Release.AspNetCompiler.VirtualPath = "/Website" 15 | Release.AspNetCompiler.PhysicalPath = "..\Website\" 16 | Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Website\" 17 | Release.AspNetCompiler.Updateable = "true" 18 | Release.AspNetCompiler.ForceOverwrite = "true" 19 | Release.AspNetCompiler.FixedNames = "false" 20 | Release.AspNetCompiler.Debug = "False" 21 | VWDPort = "1086" 22 | EndProjectSection 23 | EndProject 24 | Global 25 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 26 | Debug|.NET = Debug|.NET 27 | EndGlobalSection 28 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 29 | {838EA5E3-8A94-4D2B-AF1D-121BF7AA2B0E}.Debug|.NET.ActiveCfg = Debug|.NET 30 | {838EA5E3-8A94-4D2B-AF1D-121BF7AA2B0E}.Debug|.NET.Build.0 = Debug|.NET 31 | EndGlobalSection 32 | GlobalSection(SolutionProperties) = preSolution 33 | HideSolutionNode = FALSE 34 | EndGlobalSection 35 | EndGlobal 36 | -------------------------------------------------------------------------------- /SudzC/Sudzc 2005.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual Studio 2005 4 | Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "C:\...\Website\", "..\Website\", "{793DF3B1-00BE-4CB9-98EC-D3C5689EABD1}" 5 | ProjectSection(WebsiteProperties) = preProject 6 | Debug.AspNetCompiler.VirtualPath = "/Website" 7 | Debug.AspNetCompiler.PhysicalPath = "..\Website\" 8 | Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Website\" 9 | Debug.AspNetCompiler.Updateable = "true" 10 | Debug.AspNetCompiler.ForceOverwrite = "true" 11 | Debug.AspNetCompiler.FixedNames = "false" 12 | Debug.AspNetCompiler.Debug = "True" 13 | Release.AspNetCompiler.VirtualPath = "/Website" 14 | Release.AspNetCompiler.PhysicalPath = "..\Website\" 15 | Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Website\" 16 | Release.AspNetCompiler.Updateable = "true" 17 | Release.AspNetCompiler.ForceOverwrite = "true" 18 | Release.AspNetCompiler.FixedNames = "false" 19 | Release.AspNetCompiler.Debug = "False" 20 | VWDPort = "4481" 21 | EndProjectSection 22 | EndProject 23 | Global 24 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 25 | Debug|.NET = Debug|.NET 26 | EndGlobalSection 27 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 28 | {793DF3B1-00BE-4CB9-98EC-D3C5689EABD1}.Debug|.NET.ActiveCfg = Debug|.NET 29 | {793DF3B1-00BE-4CB9-98EC-D3C5689EABD1}.Debug|.NET.Build.0 = Debug|.NET 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | EndGlobal 35 | -------------------------------------------------------------------------------- /Website/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/.DS_Store -------------------------------------------------------------------------------- /Website/README.txt: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Website/dotnet/Bin/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/Bin/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /Website/dotnet/Bin/ICSharpCode.SharpZipLib.dll.refresh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/Bin/ICSharpCode.SharpZipLib.dll.refresh -------------------------------------------------------------------------------- /Website/dotnet/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Web; 6 | using System.Web.Security; 7 | using System.Web.UI; 8 | using System.Web.UI.HtmlControls; 9 | using System.Web.UI.WebControls; 10 | using System.Web.UI.WebControls.WebParts; 11 | 12 | public partial class _Default : System.Web.UI.Page 13 | { 14 | protected void Page_Load(object sender, EventArgs e) 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Website/dotnet/Errors.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Errors.aspx.cs" Inherits="Errors" %> 2 | 3 | 4 | 5 | SudzC alpha | clean source code from your web services 6 | 7 | 8 | 9 |
10 | 11 |
12 |
13 | 14 |

The following issues were encountered while generating your code:

15 |
<%= this.Request["message"] %>
16 |

17 |
18 |
19 |
20 | 21 | -------------------------------------------------------------------------------- /Website/dotnet/Errors.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Web; 6 | using System.Web.Security; 7 | using System.Web.UI; 8 | using System.Web.UI.HtmlControls; 9 | using System.Web.UI.WebControls; 10 | using System.Web.UI.WebControls.WebParts; 11 | 12 | public partial class Errors : System.Web.UI.Page 13 | { 14 | protected void Page_Load(object sender, EventArgs e) 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Website/dotnet/SignIn.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SignIn.aspx.cs" Inherits="SignIn" %> 2 | 3 | 4 | 5 | SudzC alpha | clean source code from your web services 6 | 7 | 14 | 15 | 16 |
17 | 18 |
19 |
20 | 21 | 22 |
23 |
24 | 25 | 26 | 27 |
28 |
29 |
30 | 31 | -------------------------------------------------------------------------------- /Website/dotnet/SignIn.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Web; 6 | using System.Web.Security; 7 | using System.Web.UI; 8 | using System.Web.UI.HtmlControls; 9 | using System.Web.UI.WebControls; 10 | using System.Web.UI.WebControls.WebParts; 11 | 12 | public partial class SignIn : System.Web.UI.Page 13 | { 14 | protected void Page_Load(object sender, EventArgs e) 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Website/dotnet/Test.asmx: -------------------------------------------------------------------------------- 1 | <%@ WebService Language="C#" CodeBehind="~/App_Code/Test.cs" Class="TestService" %> 2 | -------------------------------------------------------------------------------- /Website/dotnet/Web.config: -------------------------------------------------------------------------------- 1 |  2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Website/dotnet/assets/images/bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/bkg.png -------------------------------------------------------------------------------- /Website/dotnet/assets/images/generate-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/generate-button.png -------------------------------------------------------------------------------- /Website/dotnet/assets/images/gradient-light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/gradient-light.jpg -------------------------------------------------------------------------------- /Website/dotnet/assets/images/gradient.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/gradient.jpg -------------------------------------------------------------------------------- /Website/dotnet/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/icon.png -------------------------------------------------------------------------------- /Website/dotnet/assets/images/locked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/locked.png -------------------------------------------------------------------------------- /Website/dotnet/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/logo.png -------------------------------------------------------------------------------- /Website/dotnet/assets/images/objc-tutorial.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/objc-tutorial.jpg -------------------------------------------------------------------------------- /Website/dotnet/assets/images/unlocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/dotnet/assets/images/unlocked.png -------------------------------------------------------------------------------- /Website/php/assets/code/ActionScript/src/com/sudzc/flash/soap/SoapDelegate.as: -------------------------------------------------------------------------------- 1 | package com.sudzc.flash.soap { 2 | public class SoapDelegate { 3 | public var data:Object = null; 4 | public var status:int = 0; 5 | public var onload:Function = function(object) { } 6 | public var onfault:Function = function(fault) { } 7 | public var onerror:Function = function(response:Object, exception:Error) { 8 | if(exception) { throw exception; } 9 | } 10 | public function SoapDelegate(data:Object=null) { 11 | this.data = data; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Website/php/assets/code/ActionScript/src/com/sudzc/flash/soap/SoapFault.as: -------------------------------------------------------------------------------- 1 | package com.sudzc.flash.soap { 2 | import flash.xml.XMLDocument; 3 | import flash.xml.XMLNode; 4 | 5 | public class SoapFault { 6 | public var faultCode:String = null; 7 | public var faultString:String = null; 8 | public var faultActor:String = null; 9 | public var detail:String = null; 10 | public var hasFault:Boolean = false; 11 | private var doc:XMLDocument = null; 12 | 13 | public function SoapFault(XMLDocument:document) { 14 | if(!document) { return; } 15 | var fault:XMLNode = SoapProxy.getFault(document); 16 | if(fault) { 17 | this.faultCode = SoapProxy.getValue(SoapProxy.getNode(fault, "faultcode")); 18 | this.FaultString = SoapProxy.getValue(SoapProxy.getNode(fault, "faultstring")); 19 | this.faultActor = SoapProxy.getValue(SoapProxy.getNode(fault, "faultactor")); 20 | this.detail = SoapProxy.getValue(SoapProxy.getNode(fault, "detail")); 21 | this.hasFault = true; 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Website/php/assets/code/ExpandImports.xslt: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/code/Javascript/Documentation/assets/images/arrow.png -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/code/Javascript/Documentation/assets/images/icon.png -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/assets/scripts/base.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("#content").each(function(content){ 3 | this.innerHTML=this.innerHTML.replace(/((NS(\w+))\s*\*)/g, "$1"); 4 | this.innerHTML=this.innerHTML.replace(/((CXML(\w+))\s*\*)/g, "$1"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/array.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Array Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

Array Class Reference

10 |

The Javascript native array class.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/boolean.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Boolean Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Boolean Value Reference

10 |

The Javascript native Boolean value type.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/date.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | String Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

String Class Reference

10 |

The Javascript native string class.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/dictionary.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Dictionary Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

Dictionary Class Reference

10 |

The Javascript native dictionary class.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/null.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Null Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Null Value Reference

10 |

The Javascript native null value.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/number.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Number Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Number Value Reference

10 |

The Javascript native number value.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/string.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Var Value Reference 4 | 5 | 6 | 7 | 8 | 9 |

Var Value Reference

10 |

The Javascript native var value.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/var.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | String Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

String Class Reference

10 |

The Javascript native string class.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/classes/void.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | Void Return Reference 4 | 5 | 6 | 7 | 8 | 9 |

Void Return Reference

10 |

The Javascript void return value.

11 | 12 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/framework/SoapFault.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapFault Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapFault Class Reference

10 |

Returns information produced by a SOAP fault.

11 | 12 |

Properties

13 | 14 |

faultCode

15 |

Returns the fault code.

16 | 17 |

faultString

18 |

The string containing a message about the fault.

19 | 20 |

faultActor

21 |

The actor that triggered the fault.

22 | 23 |

detail

24 |

Details about the fault.

25 | 26 |

hasFault

27 |

Used internally to determine if a fault was found in the passed node.

28 | 29 |

doc

30 |

The XML document from which the fault was derived.

31 | 32 | 33 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/framework/SoapHandler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapHandler Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapHandler Class Reference

10 |

The SoapHandler class contains methods that are set to handle various events in the service response.

11 | 12 |

Properties

13 | 14 |

object

15 |

Contains a reference the calling object.

16 | 17 |

Methods

18 | 19 |

onload:

20 |

Handles the successful response of a SOAP call.

21 | handler.onload=function(result) { } 22 |

Parameters

23 |
24 |
result
25 |
The object value of the response.
26 |
27 | 28 |

onerror:

29 |

Handles any errors that occurred while sending the request.

30 | handler.onerror=new function(error) { } 31 |

Parameters

32 |
33 |
error
34 |
The error containing details about problems encountered.
35 |
36 | 37 |

onfault:

38 |

Handles any SOAP faults that are returned from the web service.

39 | handler.onfault=function(fault) { } 40 |

Parameters

41 |
42 |
fault
43 |
The SoapFault returned by the web service.
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Website/php/assets/code/Javascript/Documentation/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | SudzC Generated Class Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/code/ObjC/Documentation/assets/images/arrow.png -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/code/ObjC/Documentation/assets/images/icon.png -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/assets/scripts/base.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("#content").each(function(content){ 3 | this.innerHTML=this.innerHTML.replace(/((NS(\w+))\s*\*)/g, "$1"); 4 | this.innerHTML=this.innerHTML.replace(/((CXML(\w+))\s*\*)/g, "$1"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/framework/CXMLElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXMLElement Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

CXMLElement Class Reference

10 |

The CXMLElement class defines an XML element in the TouchXML library.

11 |

Inherits from CXMLNode*

12 | 13 |

Instance Methods

14 | 15 |

elementsForName:

16 |

Returns an array of elements by name.

17 | - (NSArray *)elementsForName:(NSString *)name 18 |

Parameters

19 |
20 |
name
21 |
The name of the elements to retrieve.
22 |
23 | 24 |

attributes

25 |

Returns an array of the element's attributes.

26 | - (NSArray *)attributes 27 | 28 |

attributeForName:

29 |

Retrieves an attribute by name.

30 | - (CXMLNode *)attributeForName:(NSString *)name 31 |

Parameters

32 |
33 |
name
34 |
The name of the attribute to retrieve.
35 |
36 | 37 |

_XMLStringWithOptions:appendingToString:

38 |

Outputs the XML string of the element.

39 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str 40 |

Parameters

41 |
42 |
options
43 |
Declares options for outputting the XML.
44 |
str
45 |
The string to which the XML is appended.
46 |
47 | 48 | 49 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/framework/SoapDelegate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapDelegate Protocol Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapDelegate Protocol Reference

10 |

11 |

Declares a protocol used to handle the response of SOAP calls.

12 | 13 |

Required methods

14 | 15 |

onload:

16 |

Handles the successful response of a SOAP call.

17 | - (void) onload: (id) value 18 |

Parameters

19 |
20 |
value
21 |
The object value of the response.
22 |
23 | 24 |

Optional methods

25 | 26 |

onerror:

27 |

Handles any errors that occurred while sending the request.

28 | - (void) onerror: (NSError*) error 29 |

Parameters

30 |
31 |
error
32 |
The NSError* containing details about the errors encountered.
33 |
34 |

Discussion

35 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

36 | 37 |

onfault:

38 |

Handles any SOAP faults that are returned from the web service.

39 | - (void) onfault: (SoapFault*) fault 40 |

Parameters

41 |
42 |
fault
43 |
The SOAP fault returned by the web service.
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/framework/SoapHandler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapHandler Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapHandler Class Reference

10 |

The SoapHandler class provides a concrete representation of the SoapDelegate protocol.

11 |

Inherits from NSObject*.

12 |

Conforms to SoapDelegate.

13 | 14 |

Instance methods

15 | 16 |

onload:

17 |

Handles the successful response of a SOAP call.

18 | - (void) onload: (id) value 19 |

Parameters

20 |
21 |
value
22 |
The object value of the response.
23 |
24 | 25 |

onerror:

26 |

Handles any errors that occurred while sending the request.

27 | - (void) onerror: (NSError*) error 28 |

Parameters

29 |
30 |
error
31 |
The NSError* containing details about the errors encountered.
32 |
33 |

Discussion

34 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

35 | 36 |

onfault:

37 |

Handles any SOAP faults that are returned from the web service.

38 | - (void) onfault: (SoapFault*) fault 39 |

Parameters

40 |
41 |
fault
42 |
The SOAP fault returned by the web service.
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/framework/SoapNil.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapNil Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapNil Class Reference

10 |

This class is used to send nil values where an actual object is required in a value. Used in setting null for SoapParameter objects.

11 |

Inherits from NSObject*

12 | 13 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/framework/SoapParameter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapParameter Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapParameter Class Reference

10 |

Defines a class used to pass parameter information to create a SOAP envelope.

11 |

Inherits from NSObject*

12 | 13 |

Properties

14 | 15 |

name

16 |

The name of the parameter,

17 | @property (nonatomic, retain) NSString* name 18 | 19 |

value

20 |

The value of the parameter.

21 | @property (nonatomic, retain) id value 22 | 23 |

null

24 |

Determines if the parameter value is null. (Read Only)

25 | @property (readonly) BOOL null 26 | 27 |

xml

28 |

The serialized XML of the parameter.

29 | @property (nonatomic, retain, readonly) NSString* xml 30 | 31 |

Instance methods

32 | 33 |

initWithValue:forName:

34 |

Initializes the parameter with the specified name and value.

35 | -(id)initWithValue:(id)value forName: (NSString*) name 36 |

Parameters

37 |
38 |
value
39 |
The value of the parameter.
40 |
name
41 |
The name of the parameter.
42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Documentation/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | SudzC Generated Class Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Examples/SudzCExamples-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Examples/SudzCExamplesAppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface SudzCExamplesAppDelegate : NSObject { 4 | UIWindow *window; 5 | } 6 | 7 | @property (nonatomic, retain) IBOutlet UIWindow *window; 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Examples/SudzCExamples_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SudzCExamples' target in the 'SudzCExamples' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Examples/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 1/23/10. 6 | // Copyright andCulture 2010. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, @"SudzCExamplesAppDelegate"); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/README.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} 2 | {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\lang1033\b\f0\fs24 Adding Sudz-C Files to Xcode\b0\par 3 | \par 4 | Copy the files contained in the archive into your Xcode project tree. You may want to add them in their own folder group to make managing your project a little easier in the future.\par 5 | \par 6 | Be sure to add the SystemConfiguration framework to your project. This enables the web service calls to check network availability one each request in order to abide by the Apple User Interface guidelines.\par 7 | \par 8 | In order to compile the project, you must add a header to the project settings so that TouchXML works correctly. To do this, choose "Edit Project Settings" from the "Project" menu in the menubar. Navigate to the "Build" tab and make the following changes, without quotes.\par 9 | \par 10 | In the "Linking" section, go to the "Other Linker Flags" section and add the value "-lxml2".\par 11 | \par 12 | In the "Search Paths" section add a new search path to the "Header Search Paths" for "/usr/include/libxml2". This will include the proper C libraries for compiling TouchXML.\par 13 | \par 14 | } 15 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/NSData+Base64.h: -------------------------------------------------------------------------------- 1 | @interface NSData (Base64) 2 | 3 | + (NSData *)dataWithBase64EncodedString:(NSString *)string; 4 | - (id)initWithBase64EncodedString:(NSString *)string; 5 | 6 | - (NSString *)base64Encoding; 7 | - (NSString *)base64EncodingWithLineLength:(unsigned int) lineLength; 8 | 9 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/NSMutableArray+Soap.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TouchXML.h" 11 | 12 | @interface NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)createWithNode: (CXMLNode*) node; 15 | -(id)initWithNode:(CXMLNode*)node; 16 | +(NSMutableString*) serialize: (NSArray*) array; 17 | -(id)object; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/NSMutableArray+Soap.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "NSMutableArray+Soap.h" 10 | #import "Soap.h" 11 | 12 | @implementation NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)createWithNode: (CXMLNode*) node { 15 | return [[[self alloc] initWithNode:node] autorelease]; 16 | } 17 | 18 | -(id)initWithNode:(CXMLNode*)node { 19 | if(self = [self init]) { 20 | for(CXMLNode* child in [node children]) { 21 | [self addObject:[Soap deserialize:child]]; 22 | } 23 | } 24 | return self; 25 | } 26 | 27 | -(id)object { return self; } 28 | 29 | + (NSMutableString*) serialize: (NSArray*) array { 30 | return [NSMutableString stringWithString:[Soap serialize:array]]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the SoapDelegate protocol. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | 9 | @protocol SoapDelegate 10 | 11 | - (void) onload: (id) value; 12 | 13 | @optional 14 | - (void) onerror: (NSError*) error; 15 | - (void) onfault: (SoapFault*) fault; 16 | 17 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapFault.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.h 3 | Interface that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "TouchXML.h" 10 | 11 | @interface SoapFault : NSObject { 12 | NSString* faultCode; 13 | NSString* faultString; 14 | NSString* faultActor; 15 | NSString* detail; 16 | BOOL hasFault; 17 | } 18 | 19 | @property (retain, nonatomic) NSString* faultCode; 20 | @property (retain, nonatomic) NSString* faultString; 21 | @property (retain, nonatomic) NSString* faultActor; 22 | @property (retain, nonatomic) NSString* detail; 23 | @property BOOL hasFault; 24 | 25 | + (SoapFault*) faultWithData: (NSMutableData*) data; 26 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document; 27 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapFault.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.m 3 | Implementation that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "SoapFault.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapFault 13 | 14 | @synthesize faultCode, faultString, faultActor, detail, hasFault; 15 | 16 | + (SoapFault*) faultWithData: (NSMutableData*) data { 17 | NSError* error; 18 | CXMLDocument* doc = [[[CXMLDocument alloc] initWithData: data options: 0 error: &error] autorelease]; 19 | if(doc == nil) { 20 | return [[[SoapFault alloc] init] autorelease]; 21 | } 22 | return [SoapFault faultWithXMLDocument: doc]; 23 | } 24 | 25 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document { 26 | return [SoapFault faultWithXMLElement: [Soap getNode: [document rootElement] withName: @"Fault"]]; 27 | } 28 | 29 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element { 30 | SoapFault* fault = [[[SoapFault alloc] init] autorelease]; 31 | fault.hasFault = NO; 32 | if(element == nil) { 33 | return fault; 34 | } 35 | 36 | fault.faultCode = [Soap getNodeValue: element withName: @"faultcode"]; 37 | fault.faultString = [Soap getNodeValue: element withName: @"faultstring"]; 38 | fault.faultActor = [Soap getNodeValue: element withName: @"faultactor"]; 39 | fault.detail = [Soap getNodeValue: element withName: @"detail"]; 40 | fault.hasFault = YES; 41 | return fault; 42 | } 43 | 44 | - (NSString*) description { 45 | if(self.hasFault) { 46 | return [NSString stringWithFormat: @"%@ %@\n%@", self.faultCode, self.faultString, self.detail]; 47 | } else { 48 | return nil; 49 | } 50 | } 51 | 52 | - (void) dealloc { 53 | self.faultCode = nil; 54 | self.faultString = nil; 55 | self.faultActor = nil; 56 | self.detail = nil; 57 | [super dealloc]; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the concrete SoapHandler class. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | #import "SoapDelegate.h" 9 | 10 | @interface SoapHandler : NSObject 11 | { 12 | } 13 | 14 | - (void) onload: (id) value; 15 | - (void) onerror: (NSError*) error; 16 | - (void) onfault: (SoapFault*) fault; 17 | 18 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapHandler.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapHandler.m 3 | Implementation of a blank SOAP handler. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | 9 | @implementation SoapHandler 10 | 11 | - (void) onload: (id) value 12 | { 13 | } 14 | 15 | - (void) onerror: (NSError*) error 16 | { 17 | } 18 | 19 | - (void) onfault: (SoapFault*) fault 20 | { 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapLiteral.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapLiteral : NSObject { 13 | NSString* value; 14 | } 15 | 16 | @property (nonatomic, retain) NSString* value; 17 | 18 | -(id)initWithString:(NSString*)string; 19 | +(SoapLiteral*)literalWithString:(NSString*)string; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapLiteral.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapLiteral.h" 10 | 11 | 12 | @implementation SoapLiteral 13 | 14 | @synthesize value; 15 | 16 | -(id)initWithString:(NSString *)string { 17 | if(self = [self init]) { 18 | self.value = string; 19 | } 20 | return self; 21 | } 22 | 23 | +(SoapLiteral*)literalWithString:(NSString *)string { 24 | return [[[SoapLiteral alloc] initWithString:string] autorelease]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapNil.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapNil : NSObject { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapNil.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapNil.h" 10 | 11 | 12 | @implementation SoapNil 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapObject.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.h 3 | Interface for the SoapObject base object that provides initialization and deallocation methods. 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | 8 | #import "TouchXML.h" 9 | 10 | @interface SoapObject : NSObject { 11 | } 12 | 13 | @property (readonly) id object; 14 | 15 | + (id) createWithNode: (CXMLNode*) node; 16 | - (id) initWithNode: (CXMLNode*) node; 17 | - (NSMutableString*) serialize; 18 | - (NSMutableString*) serialize: (NSString*) nodeName; 19 | - (NSMutableString*) serializeElements; 20 | - (NSMutableString*) serializeAttributes; 21 | 22 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapObject.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.m 3 | Implementation of the SoapObject base object that provides initialization and deallocation methods 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | #import "Soap.h" 8 | #import "SoapObject.h" 9 | 10 | @implementation SoapObject 11 | 12 | // Initialization include for every object - important (NSString and NSDates's to nil) - Karl 13 | - (id) init { 14 | if (self = [super init]) { 15 | } 16 | return self; 17 | } 18 | 19 | // Static method for initializing from a node. 20 | + (id) createWithNode: (CXMLNode*) node { 21 | return (id)[[[SoapObject alloc] initWithNode: node] autorelease]; 22 | } 23 | 24 | // Called when initializing the object from a node 25 | - (id) initWithNode: (CXMLNode*) node { 26 | if(self = [self init]) { 27 | } 28 | return self; 29 | } 30 | 31 | // This will get called when traversing objects, returning nothing is ok - Karl 32 | - (NSMutableString*) serialize { 33 | return [NSMutableString string]; 34 | } 35 | 36 | - (NSMutableString*) serialize: (NSString*) nodeName { 37 | return [NSMutableString string]; 38 | } 39 | 40 | - (NSMutableString*) serializeElements { 41 | return [NSMutableString string]; 42 | } 43 | 44 | - (NSMutableString*) serializeAttributes { 45 | return [NSMutableString string]; 46 | } 47 | 48 | - (id) object { 49 | return self; 50 | } 51 | 52 | - (NSString*) description { 53 | return [Soap serialize:self]; 54 | } 55 | 56 | - (void) dealloc { 57 | [super dealloc]; 58 | } 59 | 60 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapParameter : NSObject { 13 | NSString* name; 14 | NSString* xml; 15 | id value; 16 | BOOL null; 17 | } 18 | 19 | @property (nonatomic, retain) NSString* name; 20 | @property (nonatomic, retain) id value; 21 | @property (readonly) BOOL null; 22 | @property (nonatomic, retain, readonly) NSString* xml; 23 | 24 | -(id)initWithValue:(id)value forName: (NSString*) name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapParameter.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapParameter.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapParameter 13 | 14 | @synthesize name, value, null, xml; 15 | 16 | -(void)setValue:(id)valueParam{ 17 | [valueParam retain]; 18 | [value release]; 19 | value = valueParam; 20 | null = (value == nil); 21 | } 22 | 23 | -(id)initWithValue:(id)valueParam forName: (NSString*) nameValue { 24 | if(self = [super init]) { 25 | self.name = nameValue; 26 | self.value = valueParam; 27 | } 28 | return self; 29 | } 30 | 31 | -(NSString*)xml{ 32 | if(self.value == nil) { 33 | return [NSString stringWithFormat:@"<%@ xsi:nil=\"true\"/>", name]; 34 | } else { 35 | return [Soap serialize: self.value withName: name]; 36 | } 37 | } 38 | 39 | -(void)dealloc{ 40 | [name release]; 41 | [value release]; 42 | [xml release]; 43 | [super dealloc]; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapReachability.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapReachability.h 3 | // Vaquero 4 | // 5 | // Created by Jason Kichline on 9/21/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface SoapReachability : NSObject { 14 | 15 | } 16 | 17 | // Determines if we are connected to the network 18 | + (BOOL) connectedToNetwork; 19 | 20 | // Gets the local IP address 21 | + (NSString*) localIPAddress; 22 | 23 | // Gets an IP address for a host 24 | + (NSString*) getIPAddressForHost: (NSString*) theHost; 25 | 26 | // Determines if a host is available 27 | + (BOOL) hostAvailable: (NSString*) theHost; 28 | 29 | // Gets an address from the string 30 | + (BOOL)addressFromString:(NSString *)IPAddress address:(struct sockaddr_in *) address; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapRequest.h 3 | Interface definition of the request object used to manage asynchronous requests. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | #import "SoapService.h" 9 | 10 | @interface SoapRequest : NSObject { 11 | NSURL* url; 12 | NSString* soapAction; 13 | NSString* username; 14 | NSString* password; 15 | id postData; 16 | NSMutableData* receivedData; 17 | NSURLConnection* conn; 18 | SoapHandler* handler; 19 | id deserializeTo; 20 | SEL action; 21 | BOOL logging; 22 | id defaultHandler; 23 | } 24 | 25 | @property (retain, nonatomic) NSURL* url; 26 | @property (retain, nonatomic) NSString* soapAction; 27 | @property (retain, nonatomic) NSString* username; 28 | @property (retain, nonatomic) NSString* password; 29 | @property (retain, nonatomic) id postData; 30 | @property (retain, nonatomic) NSMutableData* receivedData; 31 | @property (retain, nonatomic) SoapHandler* handler; 32 | @property (retain, nonatomic) id deserializeTo; 33 | @property SEL action; 34 | @property BOOL logging; 35 | @property (retain, nonatomic) id defaultHandler; 36 | 37 | + (SoapRequest*) create: (SoapHandler*) handler urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 38 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 39 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action service: (SoapService*) service soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 40 | 41 | - (BOOL)cancel; 42 | - (void)send; 43 | - (void)handleError:(NSError*)error; 44 | - (void)handleFault:(SoapFault*)fault; 45 | 46 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapService.h: -------------------------------------------------------------------------------- 1 | #import "SoapDelegate.h" 2 | 3 | @interface SoapService : NSObject 4 | { 5 | NSString* _serviceUrl; 6 | NSString* _namespace; 7 | NSString* _username; 8 | NSString* _password; 9 | NSDictionary* _headers; 10 | BOOL _logging; 11 | id _defaultHandler; 12 | } 13 | 14 | @property (retain) NSString* serviceUrl; 15 | @property (retain) NSString* namespace; 16 | @property (retain) NSString* username; 17 | @property (retain) NSString* password; 18 | @property (retain) NSDictionary* headers; 19 | @property BOOL logging; 20 | @property (nonatomic, retain) id defaultHandler; 21 | 22 | - (id) initWithUrl: (NSString*) url; 23 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password; 24 | 25 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/Soap/SoapService.m: -------------------------------------------------------------------------------- 1 | #import "SoapService.h" 2 | 3 | @implementation SoapService 4 | 5 | @synthesize serviceUrl = _serviceUrl; 6 | @synthesize namespace = _namespace; 7 | @synthesize logging = _logging; 8 | @synthesize headers = _headers; 9 | @synthesize defaultHandler = _defaultHandler; 10 | @synthesize username = _username; 11 | @synthesize password = _password; 12 | 13 | - (id) init { 14 | if(self = [super init]) { 15 | self.serviceUrl = nil; 16 | self.namespace = nil; 17 | self.logging = NO; 18 | self.headers = nil; 19 | self.defaultHandler = nil; 20 | self.username = nil; 21 | self.password = nil; 22 | } 23 | return self; 24 | } 25 | 26 | - (id) initWithUrl: (NSString*) url { 27 | if(self = [self init]) { 28 | self.serviceUrl = url; 29 | } 30 | return self; 31 | } 32 | 33 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password { 34 | if(self = [self init]) { 35 | self.username = username; 36 | self.password = password; 37 | } 38 | return self; 39 | } 40 | 41 | -(void)dealloc { 42 | [_serviceUrl release]; 43 | [_namespace release]; 44 | [_username release]; 45 | [_password release]; 46 | [_headers release]; 47 | [_defaultHandler release]; 48 | [super dealloc]; 49 | } 50 | 51 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLDocument.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | enum { 12 | CXMLDocumentTidyHTML = 1 << 9 13 | }; 14 | 15 | @class CXMLElement; 16 | 17 | @interface CXMLDocument : CXMLNode { 18 | NSMutableSet *nodePool; 19 | } 20 | 21 | - (id)initWithXMLString:(NSString *)inString options:(NSUInteger)inOptions error:(NSError **)outError; 22 | - (id)initWithContentsOfURL:(NSURL *)inURL options:(NSUInteger)inOptions error:(NSError **)outError; 23 | - (id)initWithData:(NSData *)inData options:(NSUInteger)inOptions error:(NSError **)outError; 24 | 25 | //- (NSString *)characterEncoding; 26 | //- (NSString *)version; 27 | //- (BOOL)isStandalone; 28 | //- (CXMLDocumentContentKind)documentContentKind; 29 | //- (NSString *)MIMEType; 30 | //- (CXMLDTD *)DTD; 31 | 32 | - (CXMLElement *)rootElement; 33 | 34 | //- (NSData *)XMLData; 35 | //- (NSData *)XMLDataWithOptions:(NSUInteger)options; 36 | 37 | //- (id)objectByApplyingXSLT:(NSData *)xslt arguments:(NSDictionary *)arguments error:(NSError **)error; 38 | //- (id)objectByApplyingXSLTString:(NSString *)xslt arguments:(NSDictionary *)arguments error:(NSError **)error; 39 | //- (id)objectByApplyingXSLTAtURL:(NSURL *)xsltURL arguments:(NSDictionary *)argument error:(NSError **)error; 40 | 41 | //- (id)XMLStringWithOptions:(NSUInteger)options; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLDocument_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLDocument.h" 10 | 11 | #include 12 | 13 | @interface CXMLDocument (CXMLDocument_PrivateExtensions) 14 | 15 | //- (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError; 16 | 17 | - (NSMutableSet *)nodePool; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLDocument_PrivateExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.m 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLDocument_PrivateExtensions.h" 10 | 11 | @implementation CXMLDocument (CXMLDocument_PrivateExtensions) 12 | 13 | /* 14 | - (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError 15 | { 16 | 17 | xmlParseDocument(inContext); 18 | 19 | } 20 | */ 21 | 22 | - (NSMutableSet *)nodePool 23 | { 24 | if (nodePool == NULL) 25 | { 26 | nodePool = [[NSMutableSet alloc] init]; 27 | } 28 | return(nodePool); 29 | } 30 | 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLElement.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | // NSXMLElement 12 | @interface CXMLElement : CXMLNode { 13 | 14 | } 15 | 16 | - (NSArray *)elementsForName:(NSString *)name; 17 | //- (NSArray *)elementsForLocalName:(NSString *)localName URI:(NSString *)URI; 18 | 19 | - (NSArray *)attributes; 20 | - (CXMLNode *)attributeForName:(NSString *)name; 21 | //- (CXMLNode *)attributeForLocalName:(NSString *)localName URI:(NSString *)URI; 22 | 23 | //- (NSArray *)namespaces; //primitive 24 | //- (CXMLNode *)namespaceForPrefix:(NSString *)name; 25 | //- (CXMLNode *)resolveNamespaceForName:(NSString *)name; 26 | //- (NSString *)resolvePrefixForNamespaceURI:(NSString *)namespaceURI; 27 | 28 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str; 29 | @end 30 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLNode.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #include 12 | 13 | typedef enum { 14 | CXMLInvalidKind = 0, 15 | CXMLElementKind = XML_ELEMENT_NODE, 16 | CXMLAttributeKind = XML_ATTRIBUTE_NODE, 17 | CXMLTextKind = XML_TEXT_NODE, 18 | CXMLProcessingInstructionKind = XML_PI_NODE, 19 | CXMLCommentKind = XML_COMMENT_NODE, 20 | CXMLNotationDeclarationKind = XML_NOTATION_NODE, 21 | CXMLDTDKind = XML_DTD_NODE, 22 | CXMLElementDeclarationKind = XML_ELEMENT_DECL, 23 | CXMLAttributeDeclarationKind = XML_ATTRIBUTE_DECL, 24 | CXMLEntityDeclarationKind = XML_ENTITY_DECL, 25 | CXMLNamespaceKind = XML_NAMESPACE_DECL, 26 | } CXMLNodeKind; 27 | 28 | @class CXMLDocument; 29 | 30 | // NSXMLNode 31 | @interface CXMLNode : NSObject { 32 | xmlNodePtr _node; 33 | } 34 | 35 | - (CXMLNodeKind)kind; 36 | - (NSString *)name; 37 | - (NSString *)stringValue; 38 | - (NSUInteger)index; 39 | - (NSUInteger)level; 40 | - (CXMLDocument *)rootDocument; 41 | - (CXMLNode *)parent; 42 | - (NSUInteger)childCount; 43 | - (NSArray *)children; 44 | - (CXMLNode *)childAtIndex:(NSUInteger)index; 45 | - (CXMLNode *)previousSibling; 46 | - (CXMLNode *)nextSibling; 47 | //- (CXMLNode *)previousNode; 48 | //- (CXMLNode *)nextNode; 49 | //- (NSString *)XPath; 50 | //- (NSString *)localName; 51 | //- (NSString *)prefix; 52 | //- (NSString *)URI; 53 | //+ (NSString *)localNameForName:(NSString *)name; 54 | //+ (NSString *)prefixForName:(NSString *)name; 55 | //+ (CXMLNode *)predefinedNamespaceForPrefix:(NSString *)name; 56 | - (NSString *)description; 57 | - (NSString *)XMLString; 58 | - (NSString *)XMLStringWithOptions:(NSUInteger)options; 59 | //- (NSString *)canonicalXMLStringPreservingComments:(BOOL)comments; 60 | - (NSArray *)nodesForXPath:(NSString *)xpath error:(NSError **)error; 61 | 62 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str; 63 | @end 64 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLNode_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_PrivateExtensions.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | @interface CXMLNode (CXMLNode_PrivateExtensions) 12 | 13 | - (id)initWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 14 | 15 | + (id)nodeWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLNode_PrivateExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_PrivateExtensions.m 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode_PrivateExtensions.h" 10 | 11 | #import "CXMLElement.h" 12 | #import "CXMLDocument_PrivateExtensions.h" 13 | 14 | @implementation CXMLNode (CXMLNode_PrivateExtensions) 15 | 16 | - (id)initWithLibXMLNode:(xmlNodePtr)inLibXMLNode; 17 | { 18 | if ((self = [super init]) != NULL) 19 | { 20 | _node = inLibXMLNode; 21 | } 22 | return(self); 23 | } 24 | 25 | + (id)nodeWithLibXMLNode:(xmlNodePtr)inLibXMLNode 26 | { 27 | // TODO more checking. 28 | if (inLibXMLNode->_private) 29 | return(inLibXMLNode->_private); 30 | 31 | Class theClass = [CXMLNode class]; 32 | switch (inLibXMLNode->type) 33 | { 34 | case XML_ELEMENT_NODE: 35 | theClass = [CXMLElement class]; 36 | break; 37 | case XML_ATTRIBUTE_NODE: 38 | case XML_TEXT_NODE: 39 | case XML_CDATA_SECTION_NODE: 40 | case XML_COMMENT_NODE: 41 | break; 42 | default: 43 | NSAssert1(NO, @"TODO Unhandled type (%d).", inLibXMLNode->type); 44 | return(NULL); 45 | } 46 | 47 | CXMLNode *theNode = [[[theClass alloc] initWithLibXMLNode:inLibXMLNode] autorelease]; 48 | 49 | 50 | CXMLDocument *theXMLDocument = inLibXMLNode->doc->_private; 51 | NSAssert(theXMLDocument != NULL, @"TODO"); 52 | NSAssert([theXMLDocument isKindOfClass:[CXMLDocument class]] == YES, @"TODO"); 53 | 54 | [[theXMLDocument nodePool] addObject:theNode]; 55 | 56 | theNode->_node->_private = theNode; 57 | return(theNode); 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLNode_XPathExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode.h" 10 | 11 | @interface CXMLNode (CXMLNode_XPathExtensions) 12 | 13 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/CXMLNode_XPathExtensions.m: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.m 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "CXMLNode_XPathExtensions.h" 10 | 11 | #import "CXMLDocument.h" 12 | #import "CXMLNode_PrivateExtensions.h" 13 | 14 | #include 15 | #include 16 | 17 | @implementation CXMLNode (CXMLNode_NamespaceExtensions) 18 | 19 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 20 | { 21 | NSAssert(_node != NULL, @"TODO"); 22 | 23 | NSArray *theResult = NULL; 24 | 25 | CXMLNode *theRootDocument = [self rootDocument]; 26 | xmlXPathContextPtr theXPathContext = xmlXPathNewContext((xmlDocPtr)theRootDocument->_node); 27 | theXPathContext->node = _node; 28 | 29 | for (NSString *thePrefix in inNamespaceMappings) 30 | { 31 | xmlXPathRegisterNs(theXPathContext, (xmlChar *)[thePrefix UTF8String], (xmlChar *)[[inNamespaceMappings objectForKey:thePrefix] UTF8String]); 32 | } 33 | 34 | // TODO considering putting xmlChar <-> UTF8 into a NSString category 35 | xmlXPathObjectPtr theXPathObject = xmlXPathEvalExpression((const xmlChar *)[xpath UTF8String], theXPathContext); 36 | if (xmlXPathNodeSetIsEmpty(theXPathObject->nodesetval)) 37 | theResult = [NSArray array]; // TODO better to return NULL? 38 | else 39 | { 40 | NSMutableArray *theArray = [NSMutableArray array]; 41 | int N; 42 | for (N = 0; N < theXPathObject->nodesetval->nodeNr; N++) 43 | { 44 | xmlNodePtr theNode = theXPathObject->nodesetval->nodeTab[N]; 45 | [theArray addObject:[CXMLNode nodeWithLibXMLNode:theNode]]; 46 | } 47 | 48 | theResult = theArray; 49 | } 50 | 51 | xmlXPathFreeObject(theXPathObject); 52 | 53 | xmlXPathFreeContext(theXPathContext); 54 | return(theResult); 55 | } 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjC/Source/TouchXML/TouchXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchXML.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 07/11/08. 6 | // Copyright 2008 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import "CXMLDocument.h" 10 | #import "CXMLElement.h" 11 | #import "CXMLNode.h" 12 | #import "CXMLNode_XPathExtensions.h" -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/code/ObjCARC/Documentation/assets/images/arrow.png -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/code/ObjCARC/Documentation/assets/images/icon.png -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/assets/scripts/base.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("#content").each(function(content){ 3 | this.innerHTML=this.innerHTML.replace(/((NS(\w+))\s*\*)/g, "$1"); 4 | this.innerHTML=this.innerHTML.replace(/((CXML(\w+))\s*\*)/g, "$1"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/framework/CXMLElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXMLElement Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

CXMLElement Class Reference

10 |

The CXMLElement class defines an XML element in the TouchXML library.

11 |

Inherits from CXMLNode*

12 | 13 |

Instance Methods

14 | 15 |

elementsForName:

16 |

Returns an array of elements by name.

17 | - (NSArray *)elementsForName:(NSString *)name 18 |

Parameters

19 |
20 |
name
21 |
The name of the elements to retrieve.
22 |
23 | 24 |

attributes

25 |

Returns an array of the element's attributes.

26 | - (NSArray *)attributes 27 | 28 |

attributeForName:

29 |

Retrieves an attribute by name.

30 | - (CXMLNode *)attributeForName:(NSString *)name 31 |

Parameters

32 |
33 |
name
34 |
The name of the attribute to retrieve.
35 |
36 | 37 |

_XMLStringWithOptions:appendingToString:

38 |

Outputs the XML string of the element.

39 | - (NSString*)_XMLStringWithOptions:(NSUInteger)options appendingToString:(NSMutableString*)str 40 |

Parameters

41 |
42 |
options
43 |
Declares options for outputting the XML.
44 |
str
45 |
The string to which the XML is appended.
46 |
47 | 48 | 49 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/framework/SoapDelegate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapDelegate Protocol Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapDelegate Protocol Reference

10 |

11 |

Declares a protocol used to handle the response of SOAP calls.

12 | 13 |

Required methods

14 | 15 |

onload:

16 |

Handles the successful response of a SOAP call.

17 | - (void) onload: (id) value 18 |

Parameters

19 |
20 |
value
21 |
The object value of the response.
22 |
23 | 24 |

Optional methods

25 | 26 |

onerror:

27 |

Handles any errors that occurred while sending the request.

28 | - (void) onerror: (NSError*) error 29 |

Parameters

30 |
31 |
error
32 |
The NSError* containing details about the errors encountered.
33 |
34 |

Discussion

35 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

36 | 37 |

onfault:

38 |

Handles any SOAP faults that are returned from the web service.

39 | - (void) onfault: (SoapFault*) fault 40 |

Parameters

41 |
42 |
fault
43 |
The SOAP fault returned by the web service.
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/framework/SoapHandler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapHandler Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapHandler Class Reference

10 |

The SoapHandler class provides a concrete representation of the SoapDelegate protocol.

11 |

Inherits from NSObject*.

12 |

Conforms to SoapDelegate.

13 | 14 |

Instance methods

15 | 16 |

onload:

17 |

Handles the successful response of a SOAP call.

18 | - (void) onload: (id) value 19 |

Parameters

20 |
21 |
value
22 |
The object value of the response.
23 |
24 | 25 |

onerror:

26 |

Handles any errors that occurred while sending the request.

27 | - (void) onerror: (NSError*) error 28 |

Parameters

29 |
30 |
error
31 |
The NSError* containing details about the errors encountered.
32 |
33 |

Discussion

34 |

Typically these are connection level errors such as an invalid URL or inability to connect to the web service.

35 | 36 |

onfault:

37 |

Handles any SOAP faults that are returned from the web service.

38 | - (void) onfault: (SoapFault*) fault 39 |

Parameters

40 |
41 |
fault
42 |
The SOAP fault returned by the web service.
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/framework/SoapNil.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapNil Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapNil Class Reference

10 |

This class is used to send nil values where an actual object is required in a value. Used in setting null for SoapParameter objects.

11 |

Inherits from NSObject*

12 | 13 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/framework/SoapParameter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | SoapParameter Class Reference 4 | 5 | 6 | 7 | 8 | 9 |

SoapParameter Class Reference

10 |

Defines a class used to pass parameter information to create a SOAP envelope.

11 |

Inherits from NSObject*

12 | 13 |

Properties

14 | 15 |

name

16 |

The name of the parameter,

17 | @property (nonatomic, retain) NSString* name 18 | 19 |

value

20 |

The value of the parameter.

21 | @property (nonatomic, retain) id value 22 | 23 |

null

24 |

Determines if the parameter value is null. (Read Only)

25 | @property (readonly) BOOL null 26 | 27 |

xml

28 |

The serialized XML of the parameter.

29 | @property (nonatomic, retain, readonly) NSString* xml 30 | 31 |

Instance methods

32 | 33 |

initWithValue:forName:

34 |

Initializes the parameter with the specified name and value.

35 | -(id)initWithValue:(id)value forName: (NSString*) name 36 |

Parameters

37 |
38 |
value
39 |
The value of the parameter.
40 |
name
41 |
The name of the parameter.
42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Documentation/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | SudzC Generated Class Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Examples/SudzCExamples-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Examples/SudzCExamplesAppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface SudzCExamplesAppDelegate : NSObject { 4 | UIWindow *window; 5 | } 6 | 7 | @property (nonatomic, retain) IBOutlet UIWindow *window; 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Examples/SudzCExamples_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SudzCExamples' target in the 'SudzCExamples' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Examples/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 1/23/10. 6 | // Copyright andCulture 2010. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, @"SudzCExamplesAppDelegate"); 15 | } 16 | } -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/README.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} 2 | {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\lang1033\b\f0\fs24 Adding Sudz-C Files to Xcode\b0\par 3 | \par 4 | Copy the files contained in the archive into your Xcode project tree. You may want to add them in their own folder group to make managing your project a little easier in the future.\par 5 | \par 6 | Be sure to add the SystemConfiguration framework to your project. This enables the web service calls to check network availability one each request in order to abide by the Apple User Interface guidelines.\par 7 | \par 8 | In order to compile the project, you must add a header to the project settings so that TouchXML works correctly. To do this, choose "Edit Project Settings" from the "Project" menu in the menubar. Navigate to the "Build" tab and make the following changes, without quotes.\par 9 | \par 10 | In the "Linking" section, go to the "Other Linker Flags" section and add the value "-lxml2".\par 11 | \par 12 | In the "Search Paths" section add a new search path to the "Header Search Paths" for "/usr/include/libxml2". This will include the proper C libraries for compiling TouchXML.\par 13 | \par 14 | } 15 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/NSData+Base64.h: -------------------------------------------------------------------------------- 1 | @interface NSData (Base64) 2 | 3 | + (NSData *)dataWithBase64EncodedString:(NSString *)string; 4 | - (id)initWithBase64EncodedString:(NSString *)string; 5 | 6 | - (NSString *)base64Encoding; 7 | - (NSString *)base64EncodingWithLineLength:(unsigned int) lineLength; 8 | 9 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/NSMutableArray+Soap.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TouchXML.h" 11 | 12 | @interface NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)createWithNode: (CXMLNode*) node; 15 | -(id)initWithNode:(CXMLNode*)node; 16 | +(NSMutableString*) serialize: (NSArray*) array; 17 | -(id)object; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/NSMutableArray+Soap.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableArray+Soap.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 12/14/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "NSMutableArray+Soap.h" 10 | #import "Soap.h" 11 | 12 | @implementation NSMutableArray (Soap) 13 | 14 | +(NSMutableArray*)createWithNode: (CXMLNode*) node { 15 | return [[self alloc] initWithNode:node]; 16 | } 17 | 18 | -(id)initWithNode:(CXMLNode*)node { 19 | if(self = [self init]) { 20 | for(CXMLNode* child in [node children]) { 21 | [self addObject:[Soap deserialize:child]]; 22 | } 23 | } 24 | return self; 25 | } 26 | 27 | -(id)object { return self; } 28 | 29 | + (NSMutableString*) serialize: (NSArray*) array { 30 | return [NSMutableString stringWithString:[Soap serialize:array]]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the SoapDelegate protocol. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | 9 | @protocol SoapDelegate 10 | 11 | - (void) onload: (id) value; 12 | 13 | @optional 14 | - (void) onerror: (NSError*) error; 15 | - (void) onfault: (SoapFault*) fault; 16 | 17 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapFault.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.h 3 | Interface that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "TouchXML.h" 10 | 11 | @interface SoapFault : NSObject { 12 | NSString* faultCode; 13 | NSString* faultString; 14 | NSString* faultActor; 15 | NSString* detail; 16 | BOOL hasFault; 17 | } 18 | 19 | @property (retain, nonatomic) NSString* faultCode; 20 | @property (retain, nonatomic) NSString* faultString; 21 | @property (retain, nonatomic) NSString* faultActor; 22 | @property (retain, nonatomic) NSString* detail; 23 | @property BOOL hasFault; 24 | 25 | + (SoapFault*) faultWithData: (NSMutableData*) data; 26 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document; 27 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapFault.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapFault.m 3 | Implementation that constructs a fault object from a SOAP fault when the 4 | web service returns an error. 5 | 6 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 7 | */ 8 | 9 | #import "SoapFault.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapFault 13 | 14 | @synthesize faultCode, faultString, faultActor, detail, hasFault; 15 | 16 | + (SoapFault*) faultWithData: (NSMutableData*) data { 17 | NSError* error; 18 | CXMLDocument* doc = [[CXMLDocument alloc] initWithData: data options: 0 error: &error]; 19 | if(doc == nil) { 20 | return [[SoapFault alloc] init]; 21 | } 22 | return [SoapFault faultWithXMLDocument: doc]; 23 | } 24 | 25 | + (SoapFault*) faultWithXMLDocument: (CXMLDocument*) document { 26 | return [SoapFault faultWithXMLElement: [Soap getNode: [document rootElement] withName: @"Fault"]]; 27 | } 28 | 29 | + (SoapFault*) faultWithXMLElement: (CXMLNode*) element { 30 | SoapFault* fault = [[SoapFault alloc] init]; 31 | fault.hasFault = NO; 32 | if(element == nil) { 33 | return fault; 34 | } 35 | 36 | fault.faultCode = [Soap getNodeValue: element withName: @"faultcode"]; 37 | fault.faultString = [Soap getNodeValue: element withName: @"faultstring"]; 38 | fault.faultActor = [Soap getNodeValue: element withName: @"faultactor"]; 39 | fault.detail = [Soap getNodeValue: element withName: @"detail"]; 40 | fault.hasFault = YES; 41 | return fault; 42 | } 43 | 44 | - (NSString*) description { 45 | if(self.hasFault) { 46 | return [NSString stringWithFormat: @"%@ %@\n%@", self.faultCode, self.faultString, self.detail]; 47 | } else { 48 | return nil; 49 | } 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapDelegate.h 3 | Interfaces for the concrete SoapHandler class. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapFault.h" 8 | #import "SoapDelegate.h" 9 | 10 | @interface SoapHandler : NSObject 11 | { 12 | } 13 | 14 | - (void) onload: (id) value; 15 | - (void) onerror: (NSError*) error; 16 | - (void) onfault: (SoapFault*) fault; 17 | 18 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapHandler.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapHandler.m 3 | Implementation of a blank SOAP handler. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | 9 | @implementation SoapHandler 10 | 11 | - (void) onload: (id) value 12 | { 13 | } 14 | 15 | - (void) onerror: (NSError*) error 16 | { 17 | } 18 | 19 | - (void) onfault: (SoapFault*) fault 20 | { 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapLiteral.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.h 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapLiteral : NSObject { 13 | NSString* value; 14 | } 15 | 16 | @property (nonatomic, retain) NSString* value; 17 | 18 | -(id)initWithString:(NSString*)string; 19 | +(SoapLiteral*)literalWithString:(NSString*)string; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapLiteral.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapLiteral.m 3 | // SudzCExamples 4 | // 5 | // Created by Jason Kichline on 8/7/10. 6 | // Copyright 2010 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapLiteral.h" 10 | 11 | 12 | @implementation SoapLiteral 13 | 14 | @synthesize value; 15 | 16 | -(id)initWithString:(NSString *)string { 17 | if(self = [self init]) { 18 | self.value = string; 19 | } 20 | return self; 21 | } 22 | 23 | +(SoapLiteral*)literalWithString:(NSString *)string { 24 | return [[SoapLiteral alloc] initWithString:string]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapNil.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapNil : NSObject { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapNil.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapNil.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/2/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapNil.h" 10 | 11 | 12 | @implementation SoapNil 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapObject.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.h 3 | Interface for the SoapObject base object that provides initialization and deallocation methods. 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | 8 | #import "TouchXML.h" 9 | 10 | @interface SoapObject : NSObject { 11 | } 12 | 13 | @property (readonly) id object; 14 | 15 | + (id) createWithNode: (CXMLNode*) node; 16 | - (id) initWithNode: (CXMLNode*) node; 17 | - (NSMutableString*) serialize; 18 | - (NSMutableString*) serialize: (NSString*) nodeName; 19 | - (NSMutableString*) serializeElements; 20 | - (NSMutableString*) serializeAttributes; 21 | 22 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapObject.m: -------------------------------------------------------------------------------- 1 | /* 2 | SoapObject.m 3 | Implementation of the SoapObject base object that provides initialization and deallocation methods 4 | Authors: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | Karl Schulenburg, UMAI Development - Shoreditch, London UK 6 | */ 7 | #import "Soap.h" 8 | #import "SoapObject.h" 9 | 10 | @implementation SoapObject 11 | 12 | // Initialization include for every object - important (NSString and NSDates's to nil) - Karl 13 | - (id) init { 14 | if (self = [super init]) { 15 | } 16 | return self; 17 | } 18 | 19 | // Static method for initializing from a node. 20 | + (id) createWithNode: (CXMLNode*) node { 21 | return (id)[[SoapObject alloc] initWithNode: node]; 22 | } 23 | 24 | // Called when initializing the object from a node 25 | - (id) initWithNode: (CXMLNode*) node { 26 | if(self = [self init]) { 27 | } 28 | return self; 29 | } 30 | 31 | // This will get called when traversing objects, returning nothing is ok - Karl 32 | - (NSMutableString*) serialize { 33 | return [NSMutableString string]; 34 | } 35 | 36 | - (NSMutableString*) serialize: (NSString*) nodeName { 37 | return [NSMutableString string]; 38 | } 39 | 40 | - (NSMutableString*) serializeElements { 41 | return [NSMutableString string]; 42 | } 43 | 44 | - (NSMutableString*) serializeAttributes { 45 | return [NSMutableString string]; 46 | } 47 | 48 | - (id) object { 49 | return self; 50 | } 51 | 52 | - (NSString*) description { 53 | return [Soap serialize:self]; 54 | } 55 | 56 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.h 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SoapParameter : NSObject { 13 | NSString* name; 14 | NSString* xml; 15 | id value; 16 | BOOL null; 17 | } 18 | 19 | @property (nonatomic, retain) NSString* name; 20 | @property (nonatomic, retain) id value; 21 | @property (readonly) BOOL null; 22 | @property (nonatomic, retain, readonly) NSString* xml; 23 | 24 | -(id)initWithValue:(id)value forName: (NSString*) name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapParameter.m: -------------------------------------------------------------------------------- 1 | // 2 | // SoapParameter.m 3 | // Giant 4 | // 5 | // Created by Jason Kichline on 7/13/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import "SoapParameter.h" 10 | #import "Soap.h" 11 | 12 | @implementation SoapParameter 13 | 14 | @synthesize name, value, null, xml; 15 | 16 | -(void)setValue:(id)valueParam{ 17 | value = valueParam; 18 | null = (value == nil); 19 | } 20 | 21 | -(id)initWithValue:(id)valueParam forName: (NSString*) nameValue { 22 | if(self = [super init]) { 23 | self.name = nameValue; 24 | self.value = valueParam; 25 | } 26 | return self; 27 | } 28 | 29 | -(NSString*)xml{ 30 | if(self.value == nil) { 31 | return [NSString stringWithFormat:@"<%@ xsi:nil=\"true\"/>", name]; 32 | } else { 33 | return [Soap serialize: self.value withName: name]; 34 | } 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapReachability.h: -------------------------------------------------------------------------------- 1 | // 2 | // SoapReachability.h 3 | // Vaquero 4 | // 5 | // Created by Jason Kichline on 9/21/09. 6 | // Copyright 2009 andCulture. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface SoapReachability : NSObject { 14 | 15 | } 16 | 17 | // Determines if we are connected to the network 18 | + (BOOL) connectedToNetwork; 19 | 20 | // Gets the local IP address 21 | + (NSString*) localIPAddress; 22 | 23 | // Gets an IP address for a host 24 | + (NSString*) getIPAddressForHost: (NSString*) theHost; 25 | 26 | // Determines if a host is available 27 | + (BOOL) hostAvailable: (NSString*) theHost; 28 | 29 | // Gets an address from the string 30 | + (BOOL)addressFromString:(NSString *)IPAddress address:(struct sockaddr_in *) address; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | SoapRequest.h 3 | Interface definition of the request object used to manage asynchronous requests. 4 | Author: Jason Kichline, andCulture - Harrisburg, Pennsylvania USA 5 | */ 6 | 7 | #import "SoapHandler.h" 8 | #import "SoapService.h" 9 | 10 | @interface SoapRequest : NSObject { 11 | NSURL* url; 12 | NSString* soapAction; 13 | NSString* username; 14 | NSString* password; 15 | id postData; 16 | NSMutableData* receivedData; 17 | NSURLConnection* conn; 18 | SoapHandler* handler; 19 | id deserializeTo; 20 | SEL action; 21 | BOOL logging; 22 | id defaultHandler; 23 | } 24 | 25 | @property (retain, nonatomic) NSURL* url; 26 | @property (retain, nonatomic) NSString* soapAction; 27 | @property (retain, nonatomic) NSString* username; 28 | @property (retain, nonatomic) NSString* password; 29 | @property (retain, nonatomic) id postData; 30 | @property (retain, nonatomic) NSMutableData* receivedData; 31 | @property (retain, nonatomic) SoapHandler* handler; 32 | @property (retain, nonatomic) id deserializeTo; 33 | @property SEL action; 34 | @property BOOL logging; 35 | @property (retain, nonatomic) id defaultHandler; 36 | 37 | + (SoapRequest*) create: (SoapHandler*) handler urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 38 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action urlString: (NSString*) urlString soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 39 | + (SoapRequest*) create: (SoapHandler*) handler action: (SEL) action service: (SoapService*) service soapAction: (NSString*) soapAction postData: (NSString*) postData deserializeTo: (id) deserializeTo; 40 | 41 | - (BOOL)cancel; 42 | - (void)send; 43 | - (void)handleError:(NSError*)error; 44 | - (void)handleFault:(SoapFault*)fault; 45 | 46 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapService.h: -------------------------------------------------------------------------------- 1 | #import "SoapDelegate.h" 2 | 3 | @interface SoapService : NSObject 4 | { 5 | NSString* _serviceUrl; 6 | NSString* _namespace; 7 | NSString* _username; 8 | NSString* _password; 9 | NSDictionary* _headers; 10 | BOOL _logging; 11 | id _defaultHandler; 12 | } 13 | 14 | @property (retain) NSString* serviceUrl; 15 | @property (retain) NSString* namespace; 16 | @property (retain) NSString* username; 17 | @property (retain) NSString* password; 18 | @property (retain) NSDictionary* headers; 19 | @property BOOL logging; 20 | @property (nonatomic, retain) id defaultHandler; 21 | 22 | - (id) initWithUrl: (NSString*) url; 23 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password; 24 | 25 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/Soap/SoapService.m: -------------------------------------------------------------------------------- 1 | #import "SoapService.h" 2 | 3 | @implementation SoapService 4 | 5 | @synthesize serviceUrl = _serviceUrl; 6 | @synthesize namespace = _namespace; 7 | @synthesize logging = _logging; 8 | @synthesize headers = _headers; 9 | @synthesize defaultHandler = _defaultHandler; 10 | @synthesize username = _username; 11 | @synthesize password = _password; 12 | 13 | - (id) init { 14 | if(self = [super init]) { 15 | self.serviceUrl = nil; 16 | self.namespace = nil; 17 | self.logging = NO; 18 | self.headers = nil; 19 | self.defaultHandler = nil; 20 | self.username = nil; 21 | self.password = nil; 22 | } 23 | return self; 24 | } 25 | 26 | - (id) initWithUrl: (NSString*) url { 27 | if(self = [self init]) { 28 | self.serviceUrl = url; 29 | } 30 | return self; 31 | } 32 | 33 | - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password { 34 | if(self = [self init]) { 35 | self.username = username; 36 | self.password = password; 37 | } 38 | return self; 39 | } 40 | 41 | @end -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/TouchXML/CXMLElement_CreationExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_CreationExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLElement.h" 33 | 34 | @interface CXMLElement (CXMLElement_CreationExtensions) 35 | 36 | - (void)addChild:(CXMLNode *)inNode; 37 | 38 | - (void)addNamespace:(CXMLNode *)inNamespace; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/TouchXML/CXMLElement_ElementTreeExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_ElementTreeExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 11/14/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLElement.h" 33 | 34 | 35 | @interface CXMLElement (CXMLElement_ElementTreeExtensions) 36 | 37 | - (CXMLElement *)subelement:(NSString *)inName; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Website/php/assets/code/ObjCARC/Source/TouchXML/TouchXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchXML.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 07/11/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLDocument.h" 33 | #import "CXMLDocument_CreationExtensions.h" 34 | #import "CXMLElement.h" 35 | #import "CXMLElement_CreationExtensions.h" 36 | #import "CXMLElement_ElementTreeExtensions.h" 37 | #import "CXMLNode.h" 38 | #import "CXMLNode_CreationExtensions.h" 39 | #import "CXMLNode_XPathExtensions.h" 40 | -------------------------------------------------------------------------------- /Website/php/assets/images/bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/bkg.png -------------------------------------------------------------------------------- /Website/php/assets/images/generate-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/generate-button.png -------------------------------------------------------------------------------- /Website/php/assets/images/gradient-light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/gradient-light.jpg -------------------------------------------------------------------------------- /Website/php/assets/images/gradient.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/gradient.jpg -------------------------------------------------------------------------------- /Website/php/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/icon.png -------------------------------------------------------------------------------- /Website/php/assets/images/locked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/locked.png -------------------------------------------------------------------------------- /Website/php/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/logo.png -------------------------------------------------------------------------------- /Website/php/assets/images/objc-tutorial.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/objc-tutorial.jpg -------------------------------------------------------------------------------- /Website/php/assets/images/unlocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkichline/sudzc/fc36ca002e15a30b31b9426ca4b9a3c7ad72af96/Website/php/assets/images/unlocked.png -------------------------------------------------------------------------------- /Website/php/assets/includes/settings.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Website/php/errors.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SudzC alpha | clean source code from your web services 5 | 6 | 7 | 8 |
9 | 10 |
11 |
12 | 13 |

The following issues were encountered while generating your code:

14 |
15 |

16 |
17 |
18 |
19 | 20 | --------------------------------------------------------------------------------