From c4cb974be197acfe06dc06359c25d04611fa47f2 Mon Sep 17 00:00:00 2001
From: Leonardo Vannucci <leonardo.vannucci@grupposistematica.it>
Date: Wed, 19 Sep 2018 12:33:21 +0200
Subject: [PATCH] Aggiunti campi nome e cognome, gestito limite allegati

---
 dg1cloud-core/src/main/java/it/digione/dg1cloud/form/StartURPForm.java             |   39 
 dg1cloud-core/src/main/java/it/digione/dg1cloud/config/dg1cloud.properties         |   27 
 dg1cloud-core/etc/isd/webserviceInstance3.wsdl                                     | 1477 ++++++++++++++++++++++++++++++++++++++++++++++++++
 dg1cloud-core/src/main/java/it/digione/dg1cloud/config/AppConfig.java              |    2 
 dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java |   66 +
 dg1cloud-core/src/main/resources/templates/startURP.html                           |   47 +
 dg1cloud-core/src/main/java/it/digione/dg1cloud/app/Dg1cloudCoreApplication.java   |   26 
 dg1cloud-core/src/main/resources/application.properties                            |   15 
 dg1cloud-core/pom.xml                                                              |   12 
 9 files changed, 1,653 insertions(+), 58 deletions(-)

diff --git a/dg1cloud-core/etc/isd/webserviceInstance3.wsdl b/dg1cloud-core/etc/isd/webserviceInstance3.wsdl
new file mode 100644
index 0000000..b23fae2
--- /dev/null
+++ b/dg1cloud-core/etc/isd/webserviceInstance3.wsdl
@@ -0,0 +1,1477 @@
+<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://www.isharedoc.it/schemas/instance" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.isharedoc.it/schemas/instance3" targetNamespace="http://www.isharedoc.it/schemas/instance3">
+  <wsdl:types xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wi="http://www.grupposistematica.it/schemas/isharedoc/site" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" targetNamespace="http://www.isharedoc.it/schemas/instance">
+		
+  	<xsd:element name="InstanceMessageCreateRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="messageBoxId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="messageBoxCode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="storyboardCode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="metaViewName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- direction
+					IN => Ingresso
+					OUT => Uscita
+				-->
+				<xsd:element maxOccurs="1" minOccurs="1" name="direction" nillable="false" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- Contacts, where
+					"type" values are [ F | T | C | B | O ]
+					"referenceType" values are [ GB | OU | AB ]
+					"searchType" values are [ CODE | EXTID | EMAIL ]
+					"searchMode" values are [
+						NOTFOUNDTEX (Not found throw exception) |
+						NOTFOUNDDEF (Not found use defaults)
+						]
+					"searchValue" values to search
+				-->
+				<xsd:element maxOccurs="1" minOccurs="0" name="contacts" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="contact" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="referenceType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="searchType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                <xsd:element name="searchMode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="searchValue" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="description" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="email" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info1" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info2" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info3" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="body" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="topics" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="topic" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="path" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="references" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="reference" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+						                <xsd:element maxOccurs="1" minOccurs="0" name="id" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+                <xsd:element maxOccurs="1" minOccurs="0" name="startWorkflow" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="instanceOperation" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="scheduledSendDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="postCreationScript" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceMessageCreateResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="viewUrl" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="InstanceMessageUpdateRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<xsd:element maxOccurs="1" minOccurs="1" name="id" nillable="false" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="body" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- "operation" values are [ add | remove | update ] -->
+										<xsd:element name="operation" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- "operation" values are [ add | remove | update ] -->
+										<xsd:element name="operation" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="scheduledSendDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceMessageUpdateResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="viewUrl" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="InstanceMessageServiceCreateRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="messageBoxId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="messageBoxCode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element maxOccurs="1" minOccurs="1" name="referenceMessageId" nillable="false" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- serviceType
+					PEC => Busta messaggio PEC
+					ANM => Anomalia
+					ACC => Accettazione
+					NACC => Non accettazione
+					CON => Consegna
+					NCON => Preavviso mancata consegna
+					RIC => Ricevuta
+					ERR => Errore
+				-->
+                <xsd:element name="serviceType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- xmlAutomationType
+					SGN => Segnatura
+					CON => ConfermaRicezione
+					ANN => Annullamento
+					AGG => AggiornamentoConferma
+					ECC => Eccezione
+				-->
+                <xsd:element name="xmlAutomationType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- direction
+					IN => Ingresso
+					OUT => Uscita
+				-->
+				<xsd:element maxOccurs="1" minOccurs="1" name="direction" nillable="false" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- Contacts, where
+					"type" values are [ F | T | C | B | O ]
+					"referenceType" values are [ GB | OU | AB ]
+					"searchType" values are [ CODE | EXTID | EMAIL ]
+					"searchMode" values are [
+						NOTFOUNDTEX (Not found throw exception) |
+						NOTFOUNDDEF (Not found use defaults)
+						]
+					"searchValue" values to search
+				-->
+				<xsd:element maxOccurs="1" minOccurs="0" name="contacts" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="contact" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="referenceType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="searchType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                <xsd:element name="searchMode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="searchValue" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="description" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="email" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info1" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info2" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info3" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="body" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="topics" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="topic" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="path" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="headers" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="header" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- type
+											INTERNAL => Internal
+											MIME => MIME
+										-->
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="name" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="description" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="value" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+                <xsd:element maxOccurs="1" minOccurs="0" name="postCreationScript" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceMessageServiceCreateResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="viewUrl" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+  	<xsd:element name="InstanceActivityCreateRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="messageBoxId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="messageBoxCode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="storyboardCode" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="metaViewName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="references" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="reference" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+						                <xsd:element maxOccurs="1" minOccurs="0" name="id" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+                <xsd:element maxOccurs="1" minOccurs="0" name="startWorkflow" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="instanceOperation" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="postCreationScript" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceActivityCreateResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="viewUrl" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="InstanceActivityUpdateRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<xsd:element maxOccurs="1" minOccurs="1" name="id" nillable="false" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+<!-- 				<xsd:element name="body" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" /> -->
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- "operation" values are [ add | remove | update ] -->
+										<xsd:element name="operation" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- "operation" values are [ add | remove | update ] -->
+										<xsd:element name="operation" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+<!-- 				<xsd:element name="scheduledSendDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1" nillable="true" /> -->
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceActivityUpdateResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="viewUrl" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+	<xsd:element name="InstanceActivityUpdateV2Request" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<xsd:element maxOccurs="1" minOccurs="1" name="id" nillable="false" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+<!-- 				<xsd:element name="body" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" /> -->
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="extAppIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- "operation" values are [ add | remove | update ] -->
+										<xsd:element name="operation" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<!-- "operation" values are [ add | remove | update ] -->
+										<xsd:element name="operation" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+<!-- 				<xsd:element name="scheduledSendDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1" nillable="true" /> -->
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceActivityUpdateV2Response" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="viewUrl" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+    <xsd:element name="InstanceSignalRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="instanceId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="1" name="signalName" nillable="false" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+    <xsd:element name="InstanceSignalResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="result" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+    <xsd:element name="InstanceOperationRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="instanceId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- operationType
+					sendMail => Invio email
+					WfSignalEventReceived => Workflow SignalEventReceived (fire signalEventReceived() to BPMN)
+				-->
+				<xsd:element maxOccurs="1" minOccurs="1" name="operationType" nillable="false" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="1" name="operation" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+    <xsd:element name="InstanceOperationResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="result" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+    <xsd:element name="InstanceDetailRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="instanceId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="InstanceDetailResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="storyboard" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="code" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="type" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="processName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="processDefinition" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+	      		</xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="metaViewName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="direction" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- Contacts, where
+					"type" values are [ F | T | C | B | O ]
+					"referenceType" values are [ GB | OU | AB ]
+				-->
+				<xsd:element maxOccurs="1" minOccurs="0" name="contacts" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="contact" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="referenceType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="referenceCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="externalId" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="description" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="email" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info1" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info2" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info3" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="body" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="data" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+			    <xsd:element maxOccurs="1" minOccurs="0" name="mbox" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="id" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>	 
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="code" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="transportType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="pec" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="email" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+	      		</xsd:element>
+	      		<xsd:element maxOccurs="1" minOccurs="0" name="conflevel" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="id" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>	 
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+	      		</xsd:element>			    
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceDetailV2Request" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="getAttachmentsData" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="instanceId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="InstanceDetailV2Response" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="identifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="storyboard" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="code" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="type" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="processName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="processDefinition" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+	      		</xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="metaViewName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="direction" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- Contacts, where
+					"type" values are [ F | T | C | B | O ]
+					"referenceType" values are [ GB | OU | AB ]
+				-->
+				<xsd:element maxOccurs="1" minOccurs="0" name="contacts" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="contact" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="referenceType" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="referenceCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="externalId" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="description" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="email" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info1" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info2" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="info3" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="body" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="tags" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+				<xsd:element maxOccurs="1" minOccurs="0" name="attachments" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="fileset" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="filename" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="hash" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="contentType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="data" nillable="true" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+			    <xsd:element maxOccurs="1" minOccurs="0" name="mbox" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="id" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>	 
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="code" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="transportType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="pec" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="email" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+	      		</xsd:element>
+	      		<xsd:element maxOccurs="1" minOccurs="0" name="conflevel" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="id" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>	 
+	      					<xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+	      		</xsd:element>			    
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+  	<xsd:element name="InstancePreviewRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="instanceId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstancePreviewResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="previewData" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="InstanceSearchRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+				<!-- scope = [ .draft | .inbox | .outbox | .unsentoutbox | .trash ] -->
+                <xsd:element maxOccurs="1" minOccurs="0" name="folder" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<!-- scope = [ my | my+public | my+public+account ] -->
+                <xsd:element maxOccurs="1" minOccurs="0" name="scope" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="geniusboxCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>                
+                <xsd:element maxOccurs="1" minOccurs="0" name="spotlight" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="archivied" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+               	<xsd:element maxOccurs="1" minOccurs="0" name="deleted" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+               	<xsd:element maxOccurs="1" minOccurs="0" name="sort" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="start" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="max" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="storyboardCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <!-- workStatus = [ draft | work | end ] -->
+                <xsd:element maxOccurs="1" minOccurs="0" name="workStatus" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="status" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="InstanceSearchResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="results" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="items" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="item" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				      					<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				      					<xsd:element name="created" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="createdBy" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="modified" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="modifiedBy" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="mboxName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="sbName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="status" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="title" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="from" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>	
+										<xsd:element maxOccurs="1" minOccurs="0" name="to" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>	
+										<xsd:element maxOccurs="1" minOccurs="0" name="cc" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="storyboardCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<!-- storyboardType = [ MSG | ACT | MET ] -->										
+										<xsd:element maxOccurs="1" minOccurs="0" name="storyboardType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+									</xsd:sequence>
+								</xsd:complexType>
+							</xsd:element>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+      			</xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="TaskSearchRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element maxOccurs="1" minOccurs="0" name="instanceId" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="scope" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="storyboardCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="taskDefinitionKey" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="assignee" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="owner" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="dueDateAfter" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="dueDateBefore" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="completed" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+               	<xsd:element maxOccurs="1" minOccurs="0" name="sort" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="start" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="max" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="TaskSearchResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element name="results" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="items" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="item" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				      					<xsd:element name="id" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				      					<xsd:element name="created" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="completed" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="dueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="assignee" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="owner" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element maxOccurs="1" minOccurs="0" name="priority" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				      					<xsd:element maxOccurs="1" minOccurs="0" name="instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+							      					<xsd:element name="id" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							      					<xsd:element name="created" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element name="createdBy" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element name="modified" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element name="modifiedBy" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifier" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="appIdentifierDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="mboxName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="sbName" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="status" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="title" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="subject" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>													
+													<xsd:element maxOccurs="1" minOccurs="0" name="from" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="to" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="cc" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="storyboardCode" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+													<xsd:element maxOccurs="1" minOccurs="0" name="storyboardType" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+												</xsd:sequence>
+											</xsd:complexType>
+										</xsd:element>
+									</xsd:sequence>
+								</xsd:complexType>
+							</xsd:element>
+	      				</xsd:sequence>
+	      			</xsd:complexType>
+      			</xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+  	<xsd:element name="TaskCompleteRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	                <xsd:element name="partitionId" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+					<xsd:element name="partitionPuid" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                </xsd:choice>
+                <xsd:element name="id" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="note" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+				<xsd:element maxOccurs="1" minOccurs="0" name="variables" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+					<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      				<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      					<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" nillable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      						<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	      							<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+										<xsd:element name="key" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:element name="type" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+										<xsd:choice xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueString" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueInteger" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueDecimal" nillable="true" type="xsd:decimal" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+											<xsd:element maxOccurs="1" minOccurs="0" name="valueDate" nillable="true" type="xsd:dateTime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+							                <xsd:element maxOccurs="1" minOccurs="0" name="valueBoolean" nillable="true" type="xsd:boolean" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+						                </xsd:choice>
+						            </xsd:sequence>
+						        </xsd:complexType>
+							</xsd:element>
+			            </xsd:sequence>
+			        </xsd:complexType>
+			    </xsd:element>
+            </xsd:sequence>
+        </xsd:complexType>
+    </xsd:element>
+    
+    <xsd:element name="TaskCompleteResponse" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+		<xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+			<xsd:sequence xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+				<xsd:element maxOccurs="1" minOccurs="0" name="message" nillable="true" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+                <xsd:element maxOccurs="1" minOccurs="0" name="instanceId" nillable="true" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+</xsd:schema>
+  </wsdl:types>
+  <wsdl:message name="InstanceDetailV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceDetailV2Response" name="InstanceDetailV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceMessageCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceMessageCreateResponse" name="InstanceMessageCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceMessageUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceMessageUpdateRequest" name="InstanceMessageUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceDetailRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceDetailRequest" name="InstanceDetailRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceMessageServiceCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceMessageServiceCreateResponse" name="InstanceMessageServiceCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceSignalResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceSignalResponse" name="InstanceSignalResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceActivityUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceActivityUpdateResponse" name="InstanceActivityUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceActivityUpdateV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceActivityUpdateV2Request" name="InstanceActivityUpdateV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="TaskSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:TaskSearchResponse" name="TaskSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceActivityCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceActivityCreateRequest" name="InstanceActivityCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceOperationResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceOperationResponse" name="InstanceOperationResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceSearchRequest" name="InstanceSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceOperationRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceOperationRequest" name="InstanceOperationRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstancePreviewResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstancePreviewResponse" name="InstancePreviewResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstancePreviewRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstancePreviewRequest" name="InstancePreviewRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceSignalRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceSignalRequest" name="InstanceSignalRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceActivityUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceActivityUpdateRequest" name="InstanceActivityUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceDetailV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceDetailV2Request" name="InstanceDetailV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="TaskSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:TaskSearchRequest" name="TaskSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceMessageCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceMessageCreateRequest" name="InstanceMessageCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceActivityUpdateV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceActivityUpdateV2Response" name="InstanceActivityUpdateV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceDetailResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceDetailResponse" name="InstanceDetailResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="TaskCompleteRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:TaskCompleteRequest" name="TaskCompleteRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="TaskCompleteResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:TaskCompleteResponse" name="TaskCompleteResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceMessageUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceMessageUpdateResponse" name="InstanceMessageUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceMessageServiceCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceMessageServiceCreateRequest" name="InstanceMessageServiceCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceActivityCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceActivityCreateResponse" name="InstanceActivityCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="InstanceSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:part element="sch:InstanceSearchResponse" name="InstanceSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:portType name="InstancePort3" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:operation name="InstanceMessageServiceCreate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceMessageServiceCreateRequest" name="InstanceMessageServiceCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceMessageServiceCreateResponse" name="InstanceMessageServiceCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceSearch" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceSearchRequest" name="InstanceSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceSearchResponse" name="InstanceSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceSignal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceSignalRequest" name="InstanceSignalRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceSignalResponse" name="InstanceSignalResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="TaskSearch" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:TaskSearchRequest" name="TaskSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:TaskSearchResponse" name="TaskSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceDetail" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceDetailRequest" name="InstanceDetailRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceDetailResponse" name="InstanceDetailResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceOperation" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceOperationRequest" name="InstanceOperationRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceOperationResponse" name="InstanceOperationResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstancePreview" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstancePreviewRequest" name="InstancePreviewRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstancePreviewResponse" name="InstancePreviewResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceActivityUpdateV2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceActivityUpdateV2Request" name="InstanceActivityUpdateV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceActivityUpdateV2Response" name="InstanceActivityUpdateV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceMessageUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceMessageUpdateRequest" name="InstanceMessageUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceMessageUpdateResponse" name="InstanceMessageUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="TaskComplete" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:TaskCompleteRequest" name="TaskCompleteRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:TaskCompleteResponse" name="TaskCompleteResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceDetailV2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceDetailV2Request" name="InstanceDetailV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceDetailV2Response" name="InstanceDetailV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceActivityUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceActivityUpdateRequest" name="InstanceActivityUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceActivityUpdateResponse" name="InstanceActivityUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceActivityCreate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceActivityCreateRequest" name="InstanceActivityCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceActivityCreateResponse" name="InstanceActivityCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceMessageCreate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <wsdl:input message="tns:InstanceMessageCreateRequest" name="InstanceMessageCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:input>
+      <wsdl:output message="tns:InstanceMessageCreateResponse" name="InstanceMessageCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    </wsdl:output>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="InstancePort3Soap11" type="tns:InstancePort3" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+    <wsdl:operation name="InstanceMessageServiceCreate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceMessageServiceCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceMessageServiceCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceSearch" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceSignal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceSignalRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceSignalResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="TaskSearch" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="TaskSearchRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="TaskSearchResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceDetail" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceDetailRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceDetailResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceOperation" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceOperationRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceOperationResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstancePreview" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstancePreviewRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstancePreviewResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceActivityUpdateV2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceActivityUpdateV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceActivityUpdateV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceMessageUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceMessageUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceMessageUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="TaskComplete" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="TaskCompleteRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="TaskCompleteResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceDetailV2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceDetailV2Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceDetailV2Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceActivityUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceActivityUpdateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceActivityUpdateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceActivityCreate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceActivityCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceActivityCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="InstanceMessageCreate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      <wsdl:input name="InstanceMessageCreateRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:input>
+      <wsdl:output name="InstanceMessageCreateResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="InstancePort3Service" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+    <wsdl:port binding="tns:InstancePort3Soap11" name="InstancePort3Soap11" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+      <soap:address location="https://democorepa3.grupposistematica.it/isharedoc/webservices/instanceService3/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
diff --git a/dg1cloud-core/pom.xml b/dg1cloud-core/pom.xml
index 68a9c00..8040739 100644
--- a/dg1cloud-core/pom.xml
+++ b/dg1cloud-core/pom.xml
@@ -63,7 +63,10 @@
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter-thymeleaf</artifactId>
 		</dependency>
-		
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-actuator</artifactId>
+		</dependency>
 		<dependency>
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-configuration-processor</artifactId>
@@ -81,6 +84,12 @@
 		<dependency>
 			<groupId>org.springframework.ws</groupId>
 			<artifactId>spring-ws-security</artifactId>
+			<exclusions>
+				<exclusion>
+					<groupId>org.apache.geronimo.javamail</groupId>
+					<artifactId>geronimo-javamail_1.4_mail</artifactId>
+				</exclusion>
+			</exclusions>
 		</dependency>
 		
 		<dependency>
@@ -126,7 +135,6 @@
 			<artifactId>jquery</artifactId>
 			<version>3.2.1</version>
 		</dependency>
-		
 	</dependencies>
 
 	<build>
diff --git a/dg1cloud-core/src/main/java/it/digione/dg1cloud/app/Dg1cloudCoreApplication.java b/dg1cloud-core/src/main/java/it/digione/dg1cloud/app/Dg1cloudCoreApplication.java
index afe51f8..bd41789 100644
--- a/dg1cloud-core/src/main/java/it/digione/dg1cloud/app/Dg1cloudCoreApplication.java
+++ b/dg1cloud-core/src/main/java/it/digione/dg1cloud/app/Dg1cloudCoreApplication.java
@@ -1,15 +1,25 @@
 package it.digione.dg1cloud.app;
 
+import org.apache.catalina.connector.Connector;
+import org.apache.coyote.http11.AbstractHttp11Protocol;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
 
 @ComponentScan(basePackages="it.digione.dg1cloud")
+@Configuration
 @SpringBootApplication
 public class Dg1cloudCoreApplication extends SpringBootServletInitializer {
 
+	@Value("${tomcat.MaxSwallowSize}")
+	private int maxFileSize;
+	
 	public static void main(String[] args) {
 		SpringApplication.run(Dg1cloudCoreApplication.class, args);
 	}
@@ -18,4 +28,20 @@
 	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
 		return application.sources(Dg1cloudCoreApplication.class);
 	}
+	
+	@Bean
+	public TomcatServletWebServerFactory containerFactory() {
+		return new TomcatServletWebServerFactory() {
+			protected void customizeConnector(Connector connector) {
+				int maxSize = maxFileSize * 1024 * 1024 * 10;
+				super.customizeConnector(connector);
+				connector.setMaxPostSize(maxSize);
+				connector.setMaxSavePostSize(maxSize);
+				if (connector.getProtocolHandler() instanceof AbstractHttp11Protocol) {
+					((AbstractHttp11Protocol <?>) connector.getProtocolHandler()).setMaxSwallowSize(-1);
+					logger.info("Set MaxSwallowSize "+ maxSize);
+				}
+			}
+		};
+	}
 }
diff --git a/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/AppConfig.java b/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/AppConfig.java
index bc5e0e7..e31c76a 100644
--- a/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/AppConfig.java
+++ b/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/AppConfig.java
@@ -35,7 +35,7 @@
 @Configuration
 @PropertySources({
 	@PropertySource(value = "classpath:/it/digione/dg1cloud/config/dg1cloud.properties", ignoreResourceNotFound=false),
-	@PropertySource(value = "file:/etc/digione/dg1cloud/application.properties", ignoreResourceNotFound=true)
+	@PropertySource(value = "file:/etc/digione/dg1cloud/dg1cloud.properties", ignoreResourceNotFound=false)
 		})
 @EnableAutoConfiguration
 @EnableConfigurationProperties
diff --git a/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/dg1cloud.properties b/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/dg1cloud.properties
index 2c00cfe..2b19c2b 100644
--- a/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/dg1cloud.properties
+++ b/dg1cloud-core/src/main/java/it/digione/dg1cloud/config/dg1cloud.properties
@@ -1,3 +1,30 @@
+spring.datasource.url=jdbc:postgresql://localhost:5432/dg1cloud
+#spring.datasource.username=postgres
+#spring.datasource.password=passero
+
+logging.level.it.digione.dg1cloud=DEBUG
+
+logging.level.org.springframework.ws=TRACE
+
+spring.mail.host=smtp.grupposistematica.it
+spring.mail.username=support-erp
+spring.mail.password=
+#spring.mail.properties.mail.smtp.auth = true
+#spring.mail.properties.mail.smtp.socketFactory.port = 465
+#spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
+#spring.mail.properties.mail.smtp.socketFactory.fallback = false
+
+#management.endpoints.web.exposure.include=info,healt,configprops
+
+#mettere il valore in MB
+#In Dg1cloudCoreApplication viene settato il MaxSwallowSize moltiplicato 10
+#al fine di evitare il reset della connessione
+tomcat.MaxSwallowSize=5
+
+spring.servlet.multipart.max-file-size=${tomcat.MaxSwallowSize}MB
+spring.servlet.multipart.max-request-size=${tomcat.MaxSwallowSize}MB
+spring.http.multipart.enabled=false
+
 application.version=v0.0.1beta
 
 repository.base.upload.path=/etc/digione/dg1cloud/repository/upload
diff --git a/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java b/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
index a617078..aecb5c9 100644
--- a/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
+++ b/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
@@ -5,20 +5,25 @@
 
 import javax.activation.DataHandler;
 import javax.mail.internet.MimeMessage;
+import javax.servlet.http.HttpServletRequest;
 import javax.validation.Valid;
 import javax.xml.bind.JAXBElement;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.mail.javamail.JavaMailSender;
 import org.springframework.mail.javamail.MimeMessageHelper;
 import org.springframework.stereotype.Controller;
 import org.springframework.validation.BindingResult;
 import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.bind.annotation.ExceptionHandler;
 import org.springframework.web.bind.annotation.ModelAttribute;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.multipart.MaxUploadSizeExceededException;
+import org.springframework.web.multipart.MultipartFile;
 import org.springframework.web.servlet.ModelAndView;
 
 import it.digione.dg1cloud.form.StartURPForm;
@@ -45,6 +50,9 @@
 	@Autowired IsdConfig isdConfig;
 	@Autowired JavaMailSender javaMailSender;
 	
+	@Value("${tomcat.MaxSwallowSize}")
+	private int maxFileSize;
+	
 	@ModelAttribute("startURPForm")
 	public StartURPForm startURPForm() {
 		return new StartURPForm();
@@ -55,11 +63,11 @@
 		return "startURP";
 	}
 	@PostMapping("/sendStartRequest")
-	public Object sendStartRequest(@ModelAttribute("startURPForm") @Valid StartURPForm form,
+	public ModelAndView sendStartRequest(@ModelAttribute("startURPForm") @Valid StartURPForm form,
 									BindingResult result) {
 		
 		ModelAndView modelAndView;
-		if (result.hasErrors()){
+		if (result.hasErrors()) {
 			modelAndView = new ModelAndView("startURP");
 			modelAndView.addObject(result);
 			modelAndView.addObject("startURPForm", form);
@@ -94,7 +102,7 @@
 				helper = new MimeMessageHelper(message, true);
 				helper.setSubject("Richiesta inviata correttamente al servizio URP");
 				helper.setFrom(isdProperties.getNotificationFrom());
-				helper.setTo(form.getMittente());
+				helper.setTo(form.getEmail());
 				helper.setText("Richiesta inviata correttamente: " + numeroProtocollo + " del " + dataProtocollo, true);
 				javaMailSender.send(message);
 				
@@ -129,13 +137,14 @@
 		Contacts contacts = factory.createInstanceMessageCreateRequestContacts();
 		
 		Contact contact = new Contact();
-		contact.setDescription(factory.createInstanceMessageCreateRequestContactsContactDescription(startURPForm.getMittente()));
-		contact.setEmail(factory.createInstanceMessageCreateRequestContactsContactEmail( startURPForm.getMittente()));
+		String nominativo = startURPForm.getCognome() + " " + startURPForm.getNome();
+		contact.setDescription(factory.createInstanceMessageCreateRequestContactsContactDescription(nominativo));
+		contact.setEmail(factory.createInstanceMessageCreateRequestContactsContactEmail( startURPForm.getEmail()));
 		contact.setType("F");
 		contact.setReferenceType("AB");
 		contact.setSearchType("EXTID");
 		contact.setSearchMode("NOTFOUNDDEF");
-		contact.setSearchValue(startURPForm.getMittente());
+		contact.setSearchValue(startURPForm.getEmail());
 		
 		contacts.getContact().add(contact);
 		
@@ -172,20 +181,41 @@
 		
 		Attachments attachments = new Attachments();
 		
-		Attachment attachment = new Attachment();
-		attachment.setFilename( startURPForm.getAllegato().getOriginalFilename());
-		attachment.setContentType( factory.createInstanceMessageCreateRequestAttachmentsAttachmentContentType( startURPForm.getAllegato().getContentType()));
-		attachment.setFileset("isharedocMailAttach");
-		try {
-			attachment.setData(new DataHandler(startURPForm.getAllegato().getBytes(), startURPForm.getAllegato().getContentType()));
-		} catch (IOException e) {
-			throw new RuntimeException("Errore nella lettura dell'allegato da passare al servizio URP", e);
+		for ( MultipartFile allegato : startURPForm.getAllegati()) {
+			if ( "".equals( allegato.getOriginalFilename() ) )
+				continue;
+			Attachment attachment = new Attachment();
+			attachment.setFilename( allegato.getOriginalFilename());
+			attachment.setContentType( factory.createInstanceMessageCreateRequestAttachmentsAttachmentContentType( allegato.getContentType()));
+			attachment.setFileset("isharedocMailAttach");
+			try {
+				DataHandler dh = null;
+				if ( "text/plain".equalsIgnoreCase(allegato.getContentType()) == true ) {
+					dh = new DataHandler(new String(allegato.getBytes()), allegato.getContentType());
+				} else {
+					dh = new DataHandler(allegato.getBytes(), allegato.getContentType());
+				}
+				attachment.setData(dh);
+			} catch (IOException e) {
+				throw new RuntimeException("Errore nella lettura dell'allegato da passare al servizio URP", e);
+			}
+			attachments.getAttachment().add(attachment);
 		}
-		attachments.getAttachment().add(attachment);
-		
-		JAXBElement<Attachments> jaxbAttachments = factory.createInstanceMessageCreateRequestAttachments(attachments);
-		request.setAttachments(jaxbAttachments);
+		if ( attachments.getAttachment().size() > 0 ) {
+			JAXBElement<Attachments> jaxbAttachments = factory.createInstanceMessageCreateRequestAttachments(attachments);
+			request.setAttachments(jaxbAttachments);
+		}
 		
 		return request;
 	}
+	
+	@ExceptionHandler(MaxUploadSizeExceededException.class)
+	public ModelAndView handleMaxSizeException( MaxUploadSizeExceededException exc, HttpServletRequest request) {
+
+		ModelAndView modelAndView = new ModelAndView("startURP");
+		modelAndView.addObject("startURPForm", new StartURPForm());
+		modelAndView.addObject("message", "Gli allegati hanno superato le dimensioni massime consentite di " + maxFileSize + " Mb.");
+		modelAndView.addObject("alertClass", "alert-danger");
+		return modelAndView;
+	}
 }
diff --git a/dg1cloud-core/src/main/java/it/digione/dg1cloud/form/StartURPForm.java b/dg1cloud-core/src/main/java/it/digione/dg1cloud/form/StartURPForm.java
index 5f47b4c..9e65b7a 100644
--- a/dg1cloud-core/src/main/java/it/digione/dg1cloud/form/StartURPForm.java
+++ b/dg1cloud-core/src/main/java/it/digione/dg1cloud/form/StartURPForm.java
@@ -2,7 +2,6 @@
 
 import javax.validation.constraints.Email;
 import javax.validation.constraints.NotEmpty;
-import javax.validation.constraints.NotNull;
 
 import org.springframework.web.multipart.MultipartFile;
 
@@ -11,8 +10,12 @@
 public class StartURPForm {
 
 	@NotEmpty
+	private String nome;
+	@NotEmpty
+	private String cognome;
+	@NotEmpty
 	@Email
-	private String mittente;
+	private String email;
 	@NotEmpty
 	private String oggetto;
 	@NotEmpty
@@ -20,14 +23,26 @@
 	@NotEmpty
 	@ValidReCaptcha
 	private String reCaptchaResponse;
-	@NotNull
-	private MultipartFile allegato;
 	
-	public String getMittente() {
-		return mittente;
+	private MultipartFile[] allegati;
+	
+	public String getNome() {
+		return nome;
 	}
-	public void setMittente(String mittente) {
-		this.mittente = mittente;
+	public void setNome(String nome) {
+		this.nome = nome;
+	}
+	public String getCognome() {
+		return cognome;
+	}
+	public void setCognome(String cognome) {
+		this.cognome = cognome;
+	}
+	public String getEmail() {
+		return email;
+	}
+	public void setEmail(String email) {
+		this.email = email;
 	}
 	public String getOggetto() {
 		return oggetto;
@@ -47,10 +62,10 @@
 	public void setReCaptchaResponse(String reCaptchaResponse) {
 		this.reCaptchaResponse = reCaptchaResponse;
 	}
-	public MultipartFile getAllegato() {
-		return allegato;
+	public MultipartFile[] getAllegati() {
+		return allegati;
 	}
-	public void setAllegato(MultipartFile allegato) {
-		this.allegato = allegato;
+	public void setAllegati(MultipartFile[] allegati) {
+		this.allegati = allegati;
 	}
 }
diff --git a/dg1cloud-core/src/main/resources/application.properties b/dg1cloud-core/src/main/resources/application.properties
index 725dc40..4c94d37 100644
--- a/dg1cloud-core/src/main/resources/application.properties
+++ b/dg1cloud-core/src/main/resources/application.properties
@@ -1,6 +1,3 @@
-spring.datasource.url=jdbc:postgresql://localhost:5432/dg1cloud
-#spring.datasource.username=postgres
-#spring.datasource.password=passero
 spring.datasource.driver-class-name=org.postgresql.Driver
 spring.datasource.tomcat.initial-size=10
 spring.datasource.tomcat.max-wait=30000 
@@ -20,15 +17,3 @@
 server.error.include-stacktrace=always
 
 logging.config=file:/etc/digione/dg1cloud/logback.xml
-
-logging.level.it.digione.dg1cloud=DEBUG
-
-logging.level.org.springframework.ws=TRACE
-
-spring.mail.host=smtp.grupposistematica.it
-spring.mail.username=support-erp
-spring.mail.password=
-#spring.mail.properties.mail.smtp.auth = true
-#spring.mail.properties.mail.smtp.socketFactory.port = 465
-#spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
-#spring.mail.properties.mail.smtp.socketFactory.fallback = false
\ No newline at end of file
diff --git a/dg1cloud-core/src/main/resources/templates/startURP.html b/dg1cloud-core/src/main/resources/templates/startURP.html
index ad63972..d7b85b3 100644
--- a/dg1cloud-core/src/main/resources/templates/startURP.html
+++ b/dg1cloud-core/src/main/resources/templates/startURP.html
@@ -23,7 +23,8 @@
 									<form data-toggle="validator" action="#"
 										th:action="@{/sendStartRequest}" th:object="${startURPForm}"
 										method="post" role="form"
-										enctype="multipart/form-data" >
+										enctype="multipart/form-data"
+										onsubmit="$('#modalWait').modal('toggle')">
 										<div th:if="${message}" th:text="${message}" th:class="${'alert ' + alertClass}"></div>
 										<div th:if="${appIdentifier}">
 											<div th:text="${'Protocollo ' + appIdentifier + ' del ' + appIdentifierDate}" th:class="${'alert alert-info'}"></div>
@@ -33,26 +34,36 @@
 										</div>
 										<div th:unless="${appIdentifier}">
 											<div class="form-group">
-												<label for="mittente" class="control-label">Mittente*</label>
-												<input type="email" class="form-control" th:field="*{mittente}" required placeholder="Email mittente" />
-												<p th:if="${#fields.hasErrors('mittente')}">Email mittente mancante</p>
+												<label for="nome" class="control-label">Nome*</label>
+												<input type="text" class="form-control" th:field="*{nome}" required placeholder="Inserire il proprio nome" />
+												<p th:if="${#fields.hasErrors('nome')}">Compilare il nome</p>
+											</div>
+											<div class="form-group">
+												<label for="cognome" class="control-label">Cognome*</label>
+												<input type="text" class="form-control" th:field="*{cognome}" required placeholder="Inserire il proprio cognome" />
+												<p th:if="${#fields.hasErrors('cognome')}">Compilare il cognome</p>
+											</div>
+											<div class="form-group">
+												<label for="email" class="control-label">Email*</label>
+												<input type="email" class="form-control" th:field="*{email}" required placeholder="Inserire l'email" />
+												<p th:if="${#fields.hasErrors('email')}">Email mancante</p>
 											</div>
 											<div class="form-group">
 												<label for="oggetto" class="control-label">Oggetto*</label>
-												<input type="text" class="form-control" th:field="*{oggetto}" required />
+												<input type="text" class="form-control" th:field="*{oggetto}" required placeholder="Inserire l'oggetto della richiesta" />
 												<p th:if="${#fields.hasErrors('oggetto')}">Compilare l'oggetto della richiesta</p>
 											</div>
 											<div class="form-group">
 												<label for="oggetto" class="control-label">Richiesta*</label>
-												<textarea rows="5" class="form-control" th:field="*{corpo}" required ></textarea>
+												<textarea rows="5" class="form-control" th:field="*{corpo}" required placeholder="Specificare il dettaglio della richiesta" ></textarea>
 												<p th:if="${#fields.hasErrors('corpo')}">Scrivere il corpo della richiesta</p>
 											</div>
 											<div class="form-group">
-												<label for="allegato" class="control-label">Allegato richiesta*</label>
-												<input type="file" class="form-control" th:field="*{allegato}" required ></input>
-												<p th:if="${#fields.hasErrors('allegato')}">Inserire un allegato</p>
+												<label for="allegati" class="control-label">Allegato richiesta</label>
+												<input type="file" class="form-control" th:field="*{allegati}" multiple="multiple"></input>
+												<p th:if="${#fields.hasErrors('allegati')}">Inserire un allegato</p>
 												<p class="error-message"
-													th:each="error: ${#fields.errors('allegato')}"
+													th:each="error: ${#fields.errors('allegati')}"
 													th:text="${error}"></p>
 											</div>
 											<div class="form-group">
@@ -73,6 +84,22 @@
 				</div>
 			</div>
 		</div>
+
+		<!-- Modal -->
+		<div class="modal fade" id="modalWait" tabindex="-1" role="dialog" aria-labelledby="modalWaitLabel" data-backdrop="false">
+			<div class="modal-dialog modal-sm" role="document">
+				<div class="modal-content">
+					<div class="modal-header">
+						<h4 class="modal-title" id="modalWait">Richiesta inviata, attendere prego...</h4>
+					</div>
+					<div class="modal-body">
+						<div class="progress">
+							<div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
 		<script type="text/javascript" th:src="@{/webjars/jquery/3.2.1/jquery.min.js/}"></script>
 		<script type="text/javascript" th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.min.js}"></script>
 	</body>

--
Gitblit v1.6.2