--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="test"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-corba-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-ant-plugin-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-soapmonitor-servlet-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/mex-1.6.2-impl.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-spring-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-mtompolicy-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-json-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-jibx-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-xmlbeans-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-jaxws-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-metadata-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-saaj-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-jaxbri-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-clustering-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-fastinfoset-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-java2wsdl-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-adb-codegen-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-codegen-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-transport-http-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-transport-local-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-adb-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axis2-kernel-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axiom-dom-1.2.13.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axiom-api-1.2.13.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/axiom-impl-1.2.13.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/neethi-3.0.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/apache-mime4j-core-0.7.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jaxws-tools-2.1.3.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jaxb-impl-2.1.7.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jaxb-xjc-2.1.7.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/XmlSchema-1.4.7.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jalopy-1.5rc3.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/woden-impl-dom-1.0M9.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/woden-api-1.0M9.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/woden-impl-commons-1.0M9.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/antlr-2.7.7.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jettison-1.0-RC2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jibx-run-1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jibx-bind-1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/bcel-5.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/regexp-1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/geronimo-annotation_1.0_spec-1.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/geronimo-jaxws_2.2_spec-1.0.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/geronimo-saaj_1.3_spec-1.0.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/juli-6.0.16.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/tribes-6.0.16.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/httpcore-4.0.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/geronimo-jta_1.1_spec-1.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/commons-fileupload-1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jsr311-api-1.0.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/xalan-2.7.0.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/xml-resolver-1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/xmlbeans-2.3.0.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/wstx-asl-3.2.9.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/log4j-1.2.15.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/mail-1.4.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/commons-cli-1.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/commons-httpclient-3.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jaxen-1.1.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/commons-codec-1.3.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/commons-logging-1.1.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/jaxb-api-2.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/wsdl4j-1.6.2.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/activation-1.1.jar"/>
+ <classpathentry kind="lib" path="D:/DevTools/axis2-1.6.2/axis2-1.6.2/lib/commons-io-1.4.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean,"/>
+<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Siman-Stub"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Siman-Stub/build.xml}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,clean"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Siman-Stub}"/>
+</launchConfiguration>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<pmd>
+ <useProjectRuleSet>false</useProjectRuleSet>
+ <ruleSetFile>.ruleset</ruleSetFile>
+ <rules>
+ <rule>
+ <name>AvoidDecimalLiteralsInBigDecimalConstructor</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidMultipleUnaryOperators</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidThreadGroup</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidUsingHardCodedIP</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidUsingOctalValues</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BigIntegerInstantiation</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BooleanInstantiation</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BrokenNullCheck</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CheckResultSet</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ClassCastExceptionWithToArray</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CollapsibleIfStatements</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DoubleCheckedLocking</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyCatchBlock</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyFinallyBlock</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyIfStmt</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyInitializer</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyStatementNotInLoop</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyStaticInitializer</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptySwitchStatements</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptySynchronizedBlock</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyTryBlock</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyWhileStmt</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ForLoopShouldBeWhileLoop</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JumbledIncrementer</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MisplacedNullCheck</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>OverrideBothEqualsAndHashcode</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ReturnFromFinallyBlock</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnconditionalIfStatement</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryConversionTemporary</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryFinalModifier</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryReturn</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedNullCheckInEquals</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UselessOperationOnImmutable</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UselessOverridingMethod</name>
+ <ruleset>Basic Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ForLoopsMustUseBraces</name>
+ <ruleset>Braces Rules</ruleset>
+ </rule>
+ <rule>
+ <name>IfElseStmtsMustUseBraces</name>
+ <ruleset>Braces Rules</ruleset>
+ </rule>
+ <rule>
+ <name>IfStmtsMustUseBraces</name>
+ <ruleset>Braces Rules</ruleset>
+ </rule>
+ <rule>
+ <name>WhileLoopsMustUseBraces</name>
+ <ruleset>Braces Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CloneMethodMustImplementCloneable</name>
+ <ruleset>Clone Implementation Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CloneThrowsCloneNotSupportedException</name>
+ <ruleset>Clone Implementation Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ProperCloneImplementation</name>
+ <ruleset>Clone Implementation Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CyclomaticComplexity</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ExcessiveClassLength</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ExcessiveMethodLength</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ExcessiveParameterList</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ExcessivePublicCount</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NcssConstructorCount</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NcssMethodCount</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NcssTypeCount</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NPathComplexity</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>TooManyFields</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>TooManyMethods</name>
+ <ruleset>Code Size Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AssignmentInOperand</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AtLeastOneConstructor</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidAccessibilityAlteration</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidFinalLocalVariable</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidUsingNativeCode</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidUsingShortType</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidUsingVolatile</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BooleanInversion</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CallSuperInConstructor</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DataflowAnomalyAnalysis</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DefaultPackage</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DoNotCallGarbageCollectionExplicitly</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DontImportSun</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NullAssignment</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>OnlyOneReturn</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SuspiciousOctalEscape</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryConstructor</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryParentheses</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedModifier</name>
+ <ruleset>Controversial Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CouplingBetweenObjects</name>
+ <ruleset>Coupling Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ExcessiveImports</name>
+ <ruleset>Coupling Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LooseCoupling</name>
+ <ruleset>Coupling Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AbstractClassWithoutAbstractMethod</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AbstractClassWithoutAnyMethod</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AccessorClassGeneration</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AssignmentToNonFinalStatic</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidConstantsInterface</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidDeeplyNestedIfStmts</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidInstanceofChecksInCatchClause</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidProtectedFieldInFinalClass</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidReassigningParameters</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidSynchronizedAtMethodLevel</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BadComparison</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ClassWithOnlyPrivateConstructorsShouldBeFinal</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CloseResource</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CompareObjectsWithEquals</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ConfusingTernary</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ConstructorCallsOverridableMethod</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DefaultLabelNotLastInSwitchStmt</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyMethodInAbstractClassShouldBeAbstract</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EqualsNull</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>FinalFieldCouldBeStatic</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>IdempotentOperations</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ImmutableField</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>InstantiationToGetClass</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MissingBreakInSwitch</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MissingStaticMethodInNonInstantiatableClass</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NonCaseLabelInSwitchStatement</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NonStaticInitializer</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NonThreadSafeSingleton</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>OptimizableToArrayCall</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>PositionLiteralsFirstInComparisons</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>PreserveStackTrace</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ReturnEmptyArrayRatherThanNull</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SimpleDateFormatNeedsLocale</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SimplifyBooleanExpressions</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SimplifyBooleanReturns</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SimplifyConditional</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SingularField</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SwitchDensity</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SwitchStmtsShouldHaveDefault</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>TooFewBranchesForASwitchStatement</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UncommentedEmptyConstructor</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UncommentedEmptyMethod</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryLocalBeforeReturn</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnsynchronizedStaticDateFormatter</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseCollectionIsEmpty</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseLocaleWithCaseConversions</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseNotifyAllInsteadOfNotify</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseSingleton</name>
+ <ruleset>Design Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidCallingFinalize</name>
+ <ruleset>Finalizer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>EmptyFinalizer</name>
+ <ruleset>Finalizer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>FinalizeDoesNotCallSuperFinalize</name>
+ <ruleset>Finalizer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>FinalizeOnlyCallsSuperFinalize</name>
+ <ruleset>Finalizer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>FinalizeOverloaded</name>
+ <ruleset>Finalizer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>FinalizeShouldBeProtected</name>
+ <ruleset>Finalizer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DontImportJavaLang</name>
+ <ruleset>Import Statement Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DuplicateImports</name>
+ <ruleset>Import Statement Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ImportFromSamePackage</name>
+ <ruleset>Import Statement Rules</ruleset>
+ </rule>
+ <rule>
+ <name>TooManyStaticImports</name>
+ <ruleset>Import Statement Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedImports</name>
+ <ruleset>Import Statement Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DoNotCallSystemExit</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DoNotUseThreads</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LocalHomeNamingConvention</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LocalInterfaceSessionNamingConvention</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MDBAndSessionBeanNamingConvention</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>RemoteInterfaceNamingConvention</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>RemoteSessionInterfaceNamingConvention</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>StaticEJBFieldShouldBeFinal</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseProperClassLoader</name>
+ <ruleset>J2EE Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ProperLogger</name>
+ <ruleset>Jakarta Commons Logging Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseCorrectExceptionLogging</name>
+ <ruleset>Jakarta Commons Logging Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidPrintStackTrace</name>
+ <ruleset>Java Logging Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LoggerIsNotStaticFinal</name>
+ <ruleset>Java Logging Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MoreThanOneLogger</name>
+ <ruleset>Java Logging Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SystemPrintln</name>
+ <ruleset>Java Logging Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BeanMembersShouldSerialize</name>
+ <ruleset>JavaBean Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MissingSerialVersionUID</name>
+ <ruleset>JavaBean Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnitAssertionsShouldIncludeMessage</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnitSpelling</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnitStaticSuite</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnitTestsShouldIncludeAssert</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SimplifyBooleanAssertion</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>TestClassWithoutTestCases</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryBooleanAssertion</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseAssertEqualsInsteadOfAssertTrue</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseAssertNullInsteadOfAssertTrue</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseAssertSameInsteadOfAssertTrue</name>
+ <ruleset>JUnit Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidAssertAsIdentifier</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidEnumAsIdentifier</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ByteInstantiation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>IntegerInstantiation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnit4SuitesShouldUseSuiteAnnotation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnit4TestShouldUseAfterAnnotation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnit4TestShouldUseBeforeAnnotation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnit4TestShouldUseTestAnnotation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>JUnitUseExpected</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LongInstantiation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ReplaceEnumerationWithIterator</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ReplaceHashtableWithMap</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ReplaceVectorWithList</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ShortInstantiation</name>
+ <ruleset>Migration Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AbstractNaming</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidDollarSigns</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidFieldNameMatchingMethodName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidFieldNameMatchingTypeName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>BooleanGetMethodName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ClassNamingConventions</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LongVariable</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MethodNamingConventions</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MethodWithSameNameAsEnclosingClass</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MisleadingVariableName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>NoPackage</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>PackageCase</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ShortMethodName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ShortVariable</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SuspiciousConstantFieldName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SuspiciousEqualsMethodName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SuspiciousHashcodeMethodName</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>VariableNamingConventions</name>
+ <ruleset>Naming Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AddEmptyString</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidArrayLoops</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidInstantiatingObjectsInLoops</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LocalVariableCouldBeFinal</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>MethodArgumentCouldBeFinal</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SimplifyStartsWith</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryWrapperObjectCreation</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseArrayListInsteadOfVector</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseArraysAsList</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseStringBufferForStringAppends</name>
+ <ruleset>Optimization Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ArrayIsStoredDirectly</name>
+ <ruleset>Security Code Guidelines</ruleset>
+ </rule>
+ <rule>
+ <name>MethodReturnsInternalArray</name>
+ <ruleset>Security Code Guidelines</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidCatchingNPE</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidCatchingThrowable</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidRethrowingException</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidThrowingNewInstanceOfSameException</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidThrowingNullPointerException</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidThrowingRawExceptionTypes</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DoNotExtendJavaLangError</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>DoNotThrowExceptionInFinally</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ExceptionAsFlowControl</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SignatureDeclareThrowsException</name>
+ <ruleset>Strict Exception Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AppendCharacterWithChar</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidDuplicateLiterals</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>AvoidStringBufferField</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>ConsecutiveLiteralAppends</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>InefficientEmptyStringCheck</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>InefficientStringBuffering</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>InsufficientStringBufferDeclaration</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>StringBufferInstantiationWithChar</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>StringInstantiation</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>StringToString</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnnecessaryCaseChange</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseEqualsToCompareStrings</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseIndexOfChar</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UselessStringValueOf</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UseStringBufferLength</name>
+ <ruleset>String and StringBuffer Rules</ruleset>
+ </rule>
+ <rule>
+ <name>CloneMethodMustImplementCloneable</name>
+ <ruleset>Type Resolution Rules</ruleset>
+ </rule>
+ <rule>
+ <name>LooseCoupling</name>
+ <ruleset>Type Resolution Rules</ruleset>
+ </rule>
+ <rule>
+ <name>SignatureDeclareThrowsException</name>
+ <ruleset>Type Resolution Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedImports</name>
+ <ruleset>Type Resolution Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedFormalParameter</name>
+ <ruleset>Unused Code Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedLocalVariable</name>
+ <ruleset>Unused Code Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedPrivateField</name>
+ <ruleset>Unused Code Rules</ruleset>
+ </rule>
+ <rule>
+ <name>UnusedPrivateMethod</name>
+ <ruleset>Unused Code Rules</ruleset>
+ </rule>
+ </rules>
+ <includeDerivedFiles>false</includeDerivedFiles>
+ <violationsAsErrors>true</violationsAsErrors>
+</pmd>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Siman-Stub</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+ <triggers>clean,full,incremental,</triggers>
+ <arguments>
+ <dictionary>
+ <key>LaunchConfigHandle</key>
+ <value><project>/.externalToolBuilders/Ant_Siman-Stub_Builder.launch</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
+ <nature>net.sourceforge.pmd.eclipse.plugin.pmdNature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+siman-stub.src.dir=src
+siman-stub.lib.dir=lib
+siman-stub.bin.dir=bin
+siman-stub.dist.dir=dist
+siman-stub.jarname=siman-stub.jar
+siman-stub.project.name=Siman-Stub
+siman-stub.ws=siman-ws
+axis2.home.dir=D:/DevTools/axis2-1.6.2/axis2-1.6.2
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="jar.client" name="SIMAN Web Services Client Stub and tests">
+ <!--Auto generated ant build file-->
+ <property environment="env"/>
+ <property file="build.properties" description="set the build parameters"/>
+ <!-- <property name="axis2.home" value="${env.AXIS2_HOME}"/> -->
+ <property name="axis2.home" value="${axis2.home.dir}"/>
+ <property name="project.base.dir" value="."/>
+ <property name="maven.class.path" value=""/>
+ <property name="name" value="${siman-stub.ws}"/>
+ <property name="src" value="${project.base.dir}/src"/>
+ <property name="test" value="${project.base.dir}/test"/>
+ <property name="build" value="${project.base.dir}/build"/>
+ <property name="classes" value="${build}/classes"/>
+ <property name="lib" value="${build}/lib"/>
+ <property name="resources" value="${project.base.dir}/resources"/>
+ <property name="jars.ok" value=""/>
+ <path id="axis2.class.path">
+ <pathelement path="${java.class.path}"/>
+ <pathelement path="${maven.class.path}"/>
+ <fileset dir="${axis2.home}">
+ <include name="lib/*.jar"/>
+ </fileset>
+ </path>
+ <target name="init">
+ <mkdir dir="${build}"/>
+ <mkdir dir="${classes}"/>
+ <mkdir dir="${lib}"/>
+ <mkdir dir="${siman-stub.dist.dir}"/>
+ <mkdir dir="${test}"/>
+ </target>
+ <target name="pre.compile.test" depends="init">
+ <!--Test the classpath for the availability of necesary classes-->
+ <available classname="javax.xml.stream.XMLStreamReader" property="stax.available" classpathref="axis2.class.path"/>
+ <available classname="org.apache.axis2.engine.AxisEngine" property="axis2.available" classpathref="axis2.class.path"/>
+ <condition property="jars.ok">
+ <and>
+ <isset property="stax.available"/>
+ <isset property="axis2.available"/>
+ </and>
+ </condition>
+ <!--Print out the availabilities-->
+ <echo message="Stax Availability= ${stax.available}"/>
+ <echo message="Axis2 Availability= ${axis2.available}"/>
+ </target>
+ <target name="compile.src" depends="pre.compile.test" if="jars.ok">
+ <javac fork="true" memoryInitialSize="256m" memoryMaximumSize="256m" debug="on" destdir="${classes}" srcdir="${src}">
+ <classpath refid="axis2.class.path"/>
+ </javac>
+ </target>
+ <target name="compile.test" depends="compile.src" if="jars.ok">
+ <javac fork="true" memoryInitialSize="256m" memoryMaximumSize="256m" debug="on" destdir="${classes}">
+ <src path="${test}"/>
+ <classpath refid="axis2.class.path"/>
+ </javac>
+ </target>
+ <target name="echo.classpath.problem" depends="pre.compile.test" unless="jars.ok">
+ <echo message="The class path is not set right! Please make sure the following classes are in the classpath 1. XmlBeans 2. Stax 3. Axis2 "/>
+ </target>
+ <target name="jar.all" depends="jar.server, jar.client"/>
+ <target name="jar.server" depends="compile.src,echo.classpath.problem" if="jars.ok">
+ <copy toDir="${classes}/META-INF" failonerror="false">
+ <fileset dir="${resources}">
+ <include name="*.xml"/>
+ <include name="*.wsdl"/>
+ <include name="*.xsd"/>
+ </fileset>
+ </copy>
+ <jar destfile="${lib}/${name}.aar">
+ <fileset excludes="**/Test.class" dir="${classes}"/>
+ </jar>
+ </target>
+ <target name="jar.client" if="jars.ok" depends="compile.test">
+ <jar destfile="${lib}/${siman-stub.jarname}">
+ <fileset dir="${classes}">
+ <exclude name="**/META-INF/*.*"/>
+ <exclude name="**/lib/*.*"/>
+ <exclude name="**/*MessageReceiver.class"/>
+ <exclude name="**/*Skeleton.class"/>
+ <!--
+ <exclude name="**/org/splat/ws_server/**"/>
+-->
+ </fileset>
+ </jar>
+ <copy file="${lib}/${siman-stub.jarname}" toDir="${siman-stub.dist.dir}"/>
+ </target>
+ <target name="make.repo" depends="jar.server" if="jars.ok">
+ <mkdir dir="${build}/repo/"/>
+ <mkdir dir="${build}/repo/services"/>
+ <copy file="${build}/lib/${name}.aar" toDir="${build}/repo/services/"/>
+ </target>
+ <target name="start.server" depends="make.repo" if="jars.ok">
+ <java classname="org.apache.axis2.transport.http.SimpleHTTPServer" fork="true">
+ <arg value="${build}/repo"/>
+ <classpath refid="axis2.class.path"/>
+ </java>
+ </target>
+ <target name="run.test" depends="compile.test" if="jars.ok">
+ <path id="test.class.path">
+ <pathelement location="${siman-stub.dist.dir}/${siman-stub.jarname}"/>
+ <path refid="axis2.class.path"/>
+ <pathelement location="${classes}"/>
+ </path>
+ <mkdir dir="${build}/test-reports/"/>
+ <junit printsummary="yes" haltonfailure="yes">
+ <classpath refid="test.class.path"/>
+ <formatter type="plain"/>
+ <batchtest fork="yes" toDir="${build}/test-reports/">
+ <fileset dir="${test}">
+ <include name="**/*Test*.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+ <target name="clean">
+ <delete dir="${build}"/>
+ <delete dir="${siman-stub.dist.dir}"/>
+ </target>
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://salome.service.ws_server.splat.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax21="http://io.java/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://salome.service.ws_server.splat.org">
+ <wsdl:documentation>SimanSalomeService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema xmlns:ax22="http://io.java/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://salome.service.ws_server.splat.org">
+ <xs:import namespace="http://io.java/xsd"/>
+ <xs:element name="createConfigFile">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="args0" type="xs:long"/>
+ <xs:element minOccurs="0" name="args1" type="xs:long"/>
+ <xs:element minOccurs="0" name="args2" type="xs:long"/>
+ <xs:element minOccurs="0" name="args3" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="createConfigFileResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="ax21:File"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://io.java/xsd">
+ <xs:complexType name="File">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="absolute" type="xs:boolean"/>
+ <xs:element minOccurs="0" name="absoluteFile" nillable="true" type="ax21:File"/>
+ <xs:element minOccurs="0" name="absolutePath" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="canonicalFile" nillable="true" type="ax21:File"/>
+ <xs:element minOccurs="0" name="canonicalPath" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="directory" type="xs:boolean"/>
+ <xs:element minOccurs="0" name="file" type="xs:boolean"/>
+ <xs:element minOccurs="0" name="freeSpace" type="xs:long"/>
+ <xs:element minOccurs="0" name="hidden" type="xs:boolean"/>
+ <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="parent" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="parentFile" nillable="true" type="ax21:File"/>
+ <xs:element minOccurs="0" name="path" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="totalSpace" type="xs:long"/>
+ <xs:element minOccurs="0" name="usableSpace" type="xs:long"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="createConfigFileRequest">
+ <wsdl:part name="parameters" element="ns:createConfigFile"/>
+ </wsdl:message>
+ <wsdl:message name="createConfigFileResponse">
+ <wsdl:part name="parameters" element="ns:createConfigFileResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="SimanSalomeServicePortType">
+ <wsdl:operation name="createConfigFile">
+ <wsdl:input message="ns:createConfigFileRequest" wsaw:Action="urn:createConfigFile"/>
+ <wsdl:output message="ns:createConfigFileResponse" wsaw:Action="urn:createConfigFileResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="SimanSalomeServiceSoap11Binding" type="ns:SimanSalomeServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="createConfigFile">
+ <soap:operation soapAction="urn:createConfigFile" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="SimanSalomeServiceSoap12Binding" type="ns:SimanSalomeServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="createConfigFile">
+ <soap12:operation soapAction="urn:createConfigFile" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="SimanSalomeServiceHttpBinding" type="ns:SimanSalomeServicePortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="createConfigFile">
+ <http:operation location="createConfigFile"/>
+ <wsdl:input>
+ <mime:content type="application/xml" part="parameters"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="application/xml" part="parameters"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SimanSalomeService">
+ <wsdl:port name="SimanSalomeServiceHttpSoap11Endpoint" binding="ns:SimanSalomeServiceSoap11Binding">
+ <soap:address location="http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap11Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="SimanSalomeServiceHttpSoap12Endpoint" binding="ns:SimanSalomeServiceSoap12Binding">
+ <soap12:address location="http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="SimanSalomeServiceHttpEndpoint" binding="ns:SimanSalomeServiceHttpBinding">
+ <http:address location="http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpEndpoint/"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://test.ws_server.splat.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://test.ws_server.splat.org">
+ <wsdl:documentation>
+ Please Type your service description here
+ </wsdl:documentation>
+ <wsdl:types>
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://test.ws_server.splat.org">
+ <xs:element name="getGreeting">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="getGreetingResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="getGreetingRequest">
+ <wsdl:part name="parameters" element="ns:getGreeting"/>
+ </wsdl:message>
+ <wsdl:message name="getGreetingResponse">
+ <wsdl:part name="parameters" element="ns:getGreetingResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="HelloSimanWSPortType">
+ <wsdl:operation name="getGreeting">
+ <wsdl:input message="ns:getGreetingRequest" wsaw:Action="urn:getGreeting"/>
+ <wsdl:output message="ns:getGreetingResponse" wsaw:Action="urn:getGreetingResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="HelloSimanWSSoap11Binding" type="ns:HelloSimanWSPortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="getGreeting">
+ <soap:operation soapAction="urn:getGreeting" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="HelloSimanWSSoap12Binding" type="ns:HelloSimanWSPortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="getGreeting">
+ <soap12:operation soapAction="urn:getGreeting" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="HelloSimanWSHttpBinding" type="ns:HelloSimanWSPortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="getGreeting">
+ <http:operation location="getGreeting"/>
+ <wsdl:input>
+ <mime:content type="application/xml" part="parameters"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="application/xml" part="parameters"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloSimanWS">
+ <wsdl:port name="HelloSimanWSHttpSoap11Endpoint" binding="ns:HelloSimanWSSoap11Binding">
+ <soap:address location="http://localhost:8080/Siman-WS/services/HelloSimanWS.HelloSimanWSHttpSoap11Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="HelloSimanWSHttpSoap12Endpoint" binding="ns:HelloSimanWSSoap12Binding">
+ <soap12:address location="http://localhost:8080/Siman-WS/services/HelloSimanWS.HelloSimanWSHttpSoap12Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="HelloSimanWSHttpEndpoint" binding="ns:HelloSimanWSHttpBinding">
+ <http:address location="http://localhost:8080/Siman-WS/services/HelloSimanWS.HelloSimanWSHttpEndpoint/"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
--- /dev/null
+
+/**
+ * SimanSalomeServiceCallbackHandler.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
+ */
+
+ package org.splat.ws_client.service.salome;
+
+ /**
+ * SimanSalomeServiceCallbackHandler Callback class, Users can extend this class and implement
+ * their own receiveResult and receiveError methods.
+ */
+ public abstract class SimanSalomeServiceCallbackHandler{
+
+
+
+ protected Object clientData;
+
+ /**
+ * User can pass in any object that needs to be accessed once the NonBlocking
+ * Web service call is finished and appropriate method of this CallBack is called.
+ * @param clientData Object mechanism by which the user can pass in user data
+ * that will be avilable at the time this callback is called.
+ */
+ public SimanSalomeServiceCallbackHandler(Object clientData){
+ this.clientData = clientData;
+ }
+
+ /**
+ * Please use this constructor if you don't want to set any clientData
+ */
+ public SimanSalomeServiceCallbackHandler(){
+ this.clientData = null;
+ }
+
+ /**
+ * Get the client data
+ */
+
+ public Object getClientData() {
+ return clientData;
+ }
+
+
+ /**
+ * auto generated Axis2 call back method for createConfigFile method
+ * override this method for handling normal response from createConfigFile operation
+ */
+ public void receiveResultcreateConfigFile(
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse result
+ ) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from createConfigFile operation
+ */
+ public void receiveErrorcreateConfigFile(java.lang.Exception e) {
+ }
+
+
+
+ }
+
\ No newline at end of file
--- /dev/null
+
+/**
+ * SimanSalomeServiceStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
+ */
+ package org.splat.ws_client.service.salome;
+
+
+
+ /*
+ * SimanSalomeServiceStub java implementation
+ */
+
+
+ public class SimanSalomeServiceStub extends org.apache.axis2.client.Stub
+ {
+ protected org.apache.axis2.description.AxisOperation[] _operations;
+
+ //hashmaps to keep the fault mapping
+ private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
+ private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
+ private java.util.HashMap faultMessageMap = new java.util.HashMap();
+
+ private static int counter = 0;
+
+ private static synchronized java.lang.String getUniqueSuffix(){
+ // reset the counter if it is greater than 99999
+ if (counter > 99999){
+ counter = 0;
+ }
+ counter = counter + 1;
+ return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
+ }
+
+
+ private void populateAxisService() throws org.apache.axis2.AxisFault {
+
+ //creating the Service with a unique name
+ _service = new org.apache.axis2.description.AxisService("SimanSalomeService" + getUniqueSuffix());
+ addAnonymousOperations();
+
+ //creating the operations
+ org.apache.axis2.description.AxisOperation __operation;
+
+ _operations = new org.apache.axis2.description.AxisOperation[1];
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+
+ __operation.setName(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org", "createConfigFile"));
+ _service.addOperation(__operation);
+
+
+
+
+ _operations[0]=__operation;
+
+
+ }
+
+ //populates the faults
+ private void populateFaults(){
+
+
+
+ }
+
+ /**
+ *Constructor that takes in a configContext
+ */
+
+ public SimanSalomeServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext,
+ java.lang.String targetEndpoint)
+ throws org.apache.axis2.AxisFault {
+ this(configurationContext,targetEndpoint,false);
+ }
+
+
+ /**
+ * Constructor that takes in a configContext and useseperate listner
+ */
+ public SimanSalomeServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext,
+ java.lang.String targetEndpoint, boolean useSeparateListener)
+ throws org.apache.axis2.AxisFault {
+ //To populate AxisService
+ populateAxisService();
+ populateFaults();
+
+ _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
+
+
+ _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(
+ targetEndpoint));
+ _serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
+
+ //Set the soap version
+ _serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+
+
+ }
+
+ /**
+ * Default Constructor
+ */
+ public SimanSalomeServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
+
+ this(configurationContext,"http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/" );
+
+ }
+
+ /**
+ * Default Constructor
+ */
+ public SimanSalomeServiceStub() throws org.apache.axis2.AxisFault {
+
+ this("http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/" );
+
+ }
+
+ /**
+ * Constructor taking the target endpoint
+ */
+ public SimanSalomeServiceStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
+ this(null,targetEndpoint);
+ }
+
+
+
+
+ /**
+ * Auto generated method signature
+ *
+ * @see org.splat.ws_client.service.salome.SimanSalomeService#createConfigFile
+ * @param createConfigFile0
+
+ */
+
+
+
+ public org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse createConfigFile(
+
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile0)
+
+
+ throws java.rmi.RemoteException
+
+ {
+ org.apache.axis2.context.MessageContext _messageContext = null;
+ try{
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+ _operationClient.getOptions().setAction("urn:createConfigFile");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+
+
+ addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+
+
+ // create a message context
+ _messageContext = new org.apache.axis2.context.MessageContext();
+
+
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+
+ env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+ createConfigFile0,
+ optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "createConfigFile")), new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "createConfigFile"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
+ org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+
+ java.lang.Object object = fromOM(
+ _returnEnv.getBody().getFirstElement() ,
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse.class,
+ getEnvelopeNamespaces(_returnEnv));
+
+
+ return (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse)object;
+
+ }catch(org.apache.axis2.AxisFault f){
+
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+ if (faultElt!=null){
+ if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"createConfigFile"))){
+ //make the fault by reflection
+ try{
+ java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"createConfigFile"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+ //message class
+ java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"createConfigFile"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[]{messageClass});
+ m.invoke(ex,new java.lang.Object[]{messageObject});
+
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ }catch(java.lang.ClassCastException e){
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ }else{
+ throw f;
+ }
+ }else{
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see org.splat.ws_client.service.salome.SimanSalomeService#startcreateConfigFile
+ * @param createConfigFile0
+
+ */
+ public void startcreateConfigFile(
+
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile0,
+
+ final org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler callback)
+
+ throws java.rmi.RemoteException{
+
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+ _operationClient.getOptions().setAction("urn:createConfigFile");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+
+
+ addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+
+
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env=null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+
+ //Style is Doc.
+
+
+ env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+ createConfigFile0,
+ optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "createConfigFile")), new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "createConfigFile"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse.class,
+ getEnvelopeNamespaces(resultEnv));
+ callback.receiveResultcreateConfigFile(
+ (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse)object);
+
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorcreateConfigFile(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+ if (faultElt!=null){
+ if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"createConfigFile"))){
+ //make the fault by reflection
+ try{
+ java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"createConfigFile"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+ //message class
+ java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"createConfigFile"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[]{messageClass});
+ m.invoke(ex,new java.lang.Object[]{messageObject});
+
+
+ callback.receiveErrorcreateConfigFile(new java.rmi.RemoteException(ex.getMessage(), ex));
+ } catch(java.lang.ClassCastException e){
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorcreateConfigFile(f);
+ }
+ } else {
+ callback.receiveErrorcreateConfigFile(f);
+ }
+ } else {
+ callback.receiveErrorcreateConfigFile(f);
+ }
+ } else {
+ callback.receiveErrorcreateConfigFile(error);
+ }
+ }
+
+ public void onFault(org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorcreateConfigFile(axisFault);
+ }
+ }
+ });
+
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+ if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[0].setMessageReceiver(
+ _callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+
+ }
+
+
+
+ /**
+ * A utility method that copies the namepaces from the SOAPEnvelope
+ */
+ private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
+ java.util.Map returnMap = new java.util.HashMap();
+ java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
+ while (namespaceIterator.hasNext()) {
+ org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
+ returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
+ }
+ return returnMap;
+ }
+
+
+
+ private javax.xml.namespace.QName[] opNameArray = null;
+ private boolean optimizeContent(javax.xml.namespace.QName opName) {
+
+
+ if (opNameArray == null) {
+ return false;
+ }
+ for (int i = 0; i < opNameArray.length; i++) {
+ if (opName.equals(opNameArray[i])) {
+ return true;
+ }
+ }
+ return false;
+ }
+ //http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/
+ public static class File
+ implements org.apache.axis2.databinding.ADBBean{
+ /* This type was generated from the piece of schema that had
+ name = File
+ Namespace URI = http://io.java/xsd
+ Namespace Prefix = ns1
+ */
+
+
+ /**
+ * field for Absolute
+ */
+
+
+ protected boolean localAbsolute ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localAbsoluteTracker = false ;
+
+ public boolean isAbsoluteSpecified(){
+ return localAbsoluteTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return boolean
+ */
+ public boolean getAbsolute(){
+ return localAbsolute;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Absolute
+ */
+ public void setAbsolute(boolean param){
+
+ // setting primitive attribute tracker to true
+ localAbsoluteTracker =
+ true;
+
+ this.localAbsolute=param;
+
+
+ }
+
+
+ /**
+ * field for AbsoluteFile
+ */
+
+
+ protected File localAbsoluteFile ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localAbsoluteFileTracker = false ;
+
+ public boolean isAbsoluteFileSpecified(){
+ return localAbsoluteFileTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return File
+ */
+ public File getAbsoluteFile(){
+ return localAbsoluteFile;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param AbsoluteFile
+ */
+ public void setAbsoluteFile(File param){
+ localAbsoluteFileTracker = true;
+
+ this.localAbsoluteFile=param;
+
+
+ }
+
+
+ /**
+ * field for AbsolutePath
+ */
+
+
+ protected java.lang.String localAbsolutePath ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localAbsolutePathTracker = false ;
+
+ public boolean isAbsolutePathSpecified(){
+ return localAbsolutePathTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAbsolutePath(){
+ return localAbsolutePath;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param AbsolutePath
+ */
+ public void setAbsolutePath(java.lang.String param){
+ localAbsolutePathTracker = true;
+
+ this.localAbsolutePath=param;
+
+
+ }
+
+
+ /**
+ * field for CanonicalFile
+ */
+
+
+ protected File localCanonicalFile ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localCanonicalFileTracker = false ;
+
+ public boolean isCanonicalFileSpecified(){
+ return localCanonicalFileTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return File
+ */
+ public File getCanonicalFile(){
+ return localCanonicalFile;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param CanonicalFile
+ */
+ public void setCanonicalFile(File param){
+ localCanonicalFileTracker = true;
+
+ this.localCanonicalFile=param;
+
+
+ }
+
+
+ /**
+ * field for CanonicalPath
+ */
+
+
+ protected java.lang.String localCanonicalPath ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localCanonicalPathTracker = false ;
+
+ public boolean isCanonicalPathSpecified(){
+ return localCanonicalPathTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCanonicalPath(){
+ return localCanonicalPath;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param CanonicalPath
+ */
+ public void setCanonicalPath(java.lang.String param){
+ localCanonicalPathTracker = true;
+
+ this.localCanonicalPath=param;
+
+
+ }
+
+
+ /**
+ * field for Directory
+ */
+
+
+ protected boolean localDirectory ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localDirectoryTracker = false ;
+
+ public boolean isDirectorySpecified(){
+ return localDirectoryTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return boolean
+ */
+ public boolean getDirectory(){
+ return localDirectory;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Directory
+ */
+ public void setDirectory(boolean param){
+
+ // setting primitive attribute tracker to true
+ localDirectoryTracker =
+ true;
+
+ this.localDirectory=param;
+
+
+ }
+
+
+ /**
+ * field for File
+ */
+
+
+ protected boolean localFile ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localFileTracker = false ;
+
+ public boolean isFileSpecified(){
+ return localFileTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return boolean
+ */
+ public boolean getFile(){
+ return localFile;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param File
+ */
+ public void setFile(boolean param){
+
+ // setting primitive attribute tracker to true
+ localFileTracker =
+ true;
+
+ this.localFile=param;
+
+
+ }
+
+
+ /**
+ * field for FreeSpace
+ */
+
+
+ protected long localFreeSpace ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localFreeSpaceTracker = false ;
+
+ public boolean isFreeSpaceSpecified(){
+ return localFreeSpaceTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return long
+ */
+ public long getFreeSpace(){
+ return localFreeSpace;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param FreeSpace
+ */
+ public void setFreeSpace(long param){
+
+ // setting primitive attribute tracker to true
+ localFreeSpaceTracker =
+ param != java.lang.Long.MIN_VALUE;
+
+ this.localFreeSpace=param;
+
+
+ }
+
+
+ /**
+ * field for Hidden
+ */
+
+
+ protected boolean localHidden ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localHiddenTracker = false ;
+
+ public boolean isHiddenSpecified(){
+ return localHiddenTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return boolean
+ */
+ public boolean getHidden(){
+ return localHidden;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Hidden
+ */
+ public void setHidden(boolean param){
+
+ // setting primitive attribute tracker to true
+ localHiddenTracker =
+ true;
+
+ this.localHidden=param;
+
+
+ }
+
+
+ /**
+ * field for Name
+ */
+
+
+ protected java.lang.String localName ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localNameTracker = false ;
+
+ public boolean isNameSpecified(){
+ return localNameTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName(){
+ return localName;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param){
+ localNameTracker = true;
+
+ this.localName=param;
+
+
+ }
+
+
+ /**
+ * field for Parent
+ */
+
+
+ protected java.lang.String localParent ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localParentTracker = false ;
+
+ public boolean isParentSpecified(){
+ return localParentTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getParent(){
+ return localParent;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Parent
+ */
+ public void setParent(java.lang.String param){
+ localParentTracker = true;
+
+ this.localParent=param;
+
+
+ }
+
+
+ /**
+ * field for ParentFile
+ */
+
+
+ protected File localParentFile ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localParentFileTracker = false ;
+
+ public boolean isParentFileSpecified(){
+ return localParentFileTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return File
+ */
+ public File getParentFile(){
+ return localParentFile;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param ParentFile
+ */
+ public void setParentFile(File param){
+ localParentFileTracker = true;
+
+ this.localParentFile=param;
+
+
+ }
+
+
+ /**
+ * field for Path
+ */
+
+
+ protected java.lang.String localPath ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localPathTracker = false ;
+
+ public boolean isPathSpecified(){
+ return localPathTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPath(){
+ return localPath;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Path
+ */
+ public void setPath(java.lang.String param){
+ localPathTracker = true;
+
+ this.localPath=param;
+
+
+ }
+
+
+ /**
+ * field for TotalSpace
+ */
+
+
+ protected long localTotalSpace ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localTotalSpaceTracker = false ;
+
+ public boolean isTotalSpaceSpecified(){
+ return localTotalSpaceTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return long
+ */
+ public long getTotalSpace(){
+ return localTotalSpace;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param TotalSpace
+ */
+ public void setTotalSpace(long param){
+
+ // setting primitive attribute tracker to true
+ localTotalSpaceTracker =
+ param != java.lang.Long.MIN_VALUE;
+
+ this.localTotalSpace=param;
+
+
+ }
+
+
+ /**
+ * field for UsableSpace
+ */
+
+
+ protected long localUsableSpace ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localUsableSpaceTracker = false ;
+
+ public boolean isUsableSpaceSpecified(){
+ return localUsableSpaceTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return long
+ */
+ public long getUsableSpace(){
+ return localUsableSpace;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param UsableSpace
+ */
+ public void setUsableSpace(long param){
+
+ // setting primitive attribute tracker to true
+ localUsableSpaceTracker =
+ param != java.lang.Long.MIN_VALUE;
+
+ this.localUsableSpace=param;
+
+
+ }
+
+
+
+
+ /**
+ *
+ * @param parentQName
+ * @param factory
+ * @return org.apache.axiom.om.OMElement
+ */
+ public org.apache.axiom.om.OMElement getOMElement (
+ final javax.xml.namespace.QName parentQName,
+ final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+
+ org.apache.axiom.om.OMDataSource dataSource =
+ new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
+ return factory.createOMElement(dataSource,parentQName);
+
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+ serialize(parentQName,xmlWriter,false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter,
+ boolean serializeType)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+
+
+
+
+ java.lang.String prefix = null;
+ java.lang.String namespace = null;
+
+
+ prefix = parentQName.getPrefix();
+ namespace = parentQName.getNamespaceURI();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+
+ if (serializeType){
+
+
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://io.java/xsd");
+ if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ namespacePrefix+":File",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ "File",
+ xmlWriter);
+ }
+
+
+ }
+ if (localAbsoluteTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "absolute", xmlWriter);
+
+ if (false) {
+
+ throw new org.apache.axis2.databinding.ADBException("absolute cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAbsolute));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localAbsoluteFileTracker){
+ if (localAbsoluteFile==null){
+
+ writeStartElement(null, "http://io.java/xsd", "absoluteFile", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+ xmlWriter.writeEndElement();
+ }else{
+ localAbsoluteFile.serialize(new javax.xml.namespace.QName("http://io.java/xsd","absoluteFile"),
+ xmlWriter);
+ }
+ } if (localAbsolutePathTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "absolutePath", xmlWriter);
+
+
+ if (localAbsolutePath==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localAbsolutePath);
+
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localCanonicalFileTracker){
+ if (localCanonicalFile==null){
+
+ writeStartElement(null, "http://io.java/xsd", "canonicalFile", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+ xmlWriter.writeEndElement();
+ }else{
+ localCanonicalFile.serialize(new javax.xml.namespace.QName("http://io.java/xsd","canonicalFile"),
+ xmlWriter);
+ }
+ } if (localCanonicalPathTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "canonicalPath", xmlWriter);
+
+
+ if (localCanonicalPath==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localCanonicalPath);
+
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localDirectoryTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "directory", xmlWriter);
+
+ if (false) {
+
+ throw new org.apache.axis2.databinding.ADBException("directory cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectory));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localFileTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "file", xmlWriter);
+
+ if (false) {
+
+ throw new org.apache.axis2.databinding.ADBException("file cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFile));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localFreeSpaceTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "freeSpace", xmlWriter);
+
+ if (localFreeSpace==java.lang.Long.MIN_VALUE) {
+
+ throw new org.apache.axis2.databinding.ADBException("freeSpace cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFreeSpace));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localHiddenTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "hidden", xmlWriter);
+
+ if (false) {
+
+ throw new org.apache.axis2.databinding.ADBException("hidden cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHidden));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localNameTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+
+ if (localName==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localName);
+
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localParentTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "parent", xmlWriter);
+
+
+ if (localParent==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localParent);
+
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localParentFileTracker){
+ if (localParentFile==null){
+
+ writeStartElement(null, "http://io.java/xsd", "parentFile", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+ xmlWriter.writeEndElement();
+ }else{
+ localParentFile.serialize(new javax.xml.namespace.QName("http://io.java/xsd","parentFile"),
+ xmlWriter);
+ }
+ } if (localPathTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "path", xmlWriter);
+
+
+ if (localPath==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localPath);
+
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localTotalSpaceTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "totalSpace", xmlWriter);
+
+ if (localTotalSpace==java.lang.Long.MIN_VALUE) {
+
+ throw new org.apache.axis2.databinding.ADBException("totalSpace cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotalSpace));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localUsableSpaceTracker){
+ namespace = "http://io.java/xsd";
+ writeStartElement(null, namespace, "usableSpace", xmlWriter);
+
+ if (localUsableSpace==java.lang.Long.MIN_VALUE) {
+
+ throw new org.apache.axis2.databinding.ADBException("usableSpace cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUsableSpace));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+ xmlWriter.writeEndElement();
+
+
+ }
+
+ private static java.lang.String generatePrefix(java.lang.String namespace) {
+ if(namespace.equals("http://io.java/xsd")){
+ return "ns1";
+ }
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(namespace, localPart);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * Util method to write an attribute with the ns prefix
+ */
+ private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (xmlWriter.getPrefix(namespace) == null) {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeAttribute(java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName,attValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+ }
+
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+ javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ java.lang.String attributeNamespace = qname.getNamespaceURI();
+ java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+ if (attributePrefix == null) {
+ attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+ }
+ java.lang.String attributeValue;
+ if (attributePrefix.trim().length() > 0) {
+ attributeValue = attributePrefix + ":" + qname.getLocalPart();
+ } else {
+ attributeValue = qname.getLocalPart();
+ }
+
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName, attributeValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace, attName, attributeValue);
+ }
+ }
+ /**
+ * method to handle Qnames
+ */
+
+ private void writeQName(javax.xml.namespace.QName qname,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String namespaceURI = qname.getNamespaceURI();
+ if (namespaceURI != null) {
+ java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+ if (prefix == null) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ } else {
+ // i.e this is the default namespace
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+ }
+
+ private void writeQNames(javax.xml.namespace.QName[] qnames,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ if (qnames != null) {
+ // we have to store this data until last moment since it is not possible to write any
+ // namespace data after writing the charactor data
+ java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+ java.lang.String namespaceURI = null;
+ java.lang.String prefix = null;
+
+ for (int i = 0; i < qnames.length; i++) {
+ if (i > 0) {
+ stringToWrite.append(" ");
+ }
+ namespaceURI = qnames[i].getNamespaceURI();
+ if (namespaceURI != null) {
+ prefix = xmlWriter.getPrefix(namespaceURI);
+ if ((prefix == null) || (prefix.length() == 0)) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ }
+ xmlWriter.writeCharacters(stringToWrite.toString());
+ }
+
+ }
+
+
+ /**
+ * Register a namespace prefix
+ */
+ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
+ java.lang.String prefix = xmlWriter.getPrefix(namespace);
+ if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+ if (uri == null || uri.length() == 0) {
+ break;
+ }
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ return prefix;
+ }
+
+
+
+ /**
+ * databinding method to get an XML representation of this object
+ *
+ */
+ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+ throws org.apache.axis2.databinding.ADBException{
+
+
+
+ java.util.ArrayList elementList = new java.util.ArrayList();
+ java.util.ArrayList attribList = new java.util.ArrayList();
+
+ if (localAbsoluteTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "absolute"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAbsolute));
+ } if (localAbsoluteFileTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "absoluteFile"));
+
+
+ elementList.add(localAbsoluteFile==null?null:
+ localAbsoluteFile);
+ } if (localAbsolutePathTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "absolutePath"));
+
+ elementList.add(localAbsolutePath==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAbsolutePath));
+ } if (localCanonicalFileTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "canonicalFile"));
+
+
+ elementList.add(localCanonicalFile==null?null:
+ localCanonicalFile);
+ } if (localCanonicalPathTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "canonicalPath"));
+
+ elementList.add(localCanonicalPath==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCanonicalPath));
+ } if (localDirectoryTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "directory"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectory));
+ } if (localFileTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "file"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFile));
+ } if (localFreeSpaceTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "freeSpace"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFreeSpace));
+ } if (localHiddenTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "hidden"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHidden));
+ } if (localNameTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "name"));
+
+ elementList.add(localName==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localName));
+ } if (localParentTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "parent"));
+
+ elementList.add(localParent==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParent));
+ } if (localParentFileTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "parentFile"));
+
+
+ elementList.add(localParentFile==null?null:
+ localParentFile);
+ } if (localPathTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "path"));
+
+ elementList.add(localPath==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPath));
+ } if (localTotalSpaceTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "totalSpace"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotalSpace));
+ } if (localUsableSpaceTracker){
+ elementList.add(new javax.xml.namespace.QName("http://io.java/xsd",
+ "usableSpace"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUsableSpace));
+ }
+
+ return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+
+
+
+ }
+
+
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory{
+
+
+
+
+ /**
+ * static method to create the object
+ * Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
+ * If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
+ * Postcondition: If this object is an element, the reader is positioned at its end element
+ * If this object is a complex type, the reader is positioned at the end element of its outer element
+ */
+ public static File parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+ File object =
+ new File();
+
+ int event;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix ="";
+ java.lang.String namespaceuri ="";
+ try {
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+
+ if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
+ java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "type");
+ if (fullTypeName!=null){
+ java.lang.String nsPrefix = null;
+ if (fullTypeName.indexOf(":") > -1){
+ nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+ }
+ nsPrefix = nsPrefix==null?"":nsPrefix;
+
+ java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+
+ if (!"File".equals(type)){
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+ return (File)ExtensionMapper.getTypeObject(
+ nsUri,type,reader);
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+ // Note all attributes that were handled. Used to differ normal attributes
+ // from anyAttributes.
+ java.util.Vector handledAttributes = new java.util.Vector();
+
+
+
+
+ reader.next();
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","absolute").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"absolute" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAbsolute(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","absoluteFile").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ object.setAbsoluteFile(null);
+ reader.next();
+
+ reader.next();
+
+ }else{
+
+ object.setAbsoluteFile(File.Factory.parse(reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","absolutePath").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAbsolutePath(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","canonicalFile").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ object.setCanonicalFile(null);
+ reader.next();
+
+ reader.next();
+
+ }else{
+
+ object.setCanonicalFile(File.Factory.parse(reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","canonicalPath").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCanonicalPath(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","directory").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"directory" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirectory(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","file").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"file" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setFile(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","freeSpace").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"freeSpace" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setFreeSpace(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ object.setFreeSpace(java.lang.Long.MIN_VALUE);
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","hidden").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"hidden" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setHidden(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","name").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setName(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","parent").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setParent(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","parentFile").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ object.setParentFile(null);
+ reader.next();
+
+ reader.next();
+
+ }else{
+
+ object.setParentFile(File.Factory.parse(reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","path").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setPath(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","totalSpace").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"totalSpace" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setTotalSpace(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ object.setTotalSpace(java.lang.Long.MIN_VALUE);
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://io.java/xsd","usableSpace").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"usableSpace" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setUsableSpace(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ object.setUsableSpace(java.lang.Long.MIN_VALUE);
+
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement())
+ // A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+
+
+
+
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+
+ }//end of factory class
+
+
+
+ }
+
+
+ public static class ExtensionMapper{
+
+ public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
+ java.lang.String typeName,
+ javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+
+
+ if (
+ "http://io.java/xsd".equals(namespaceURI) &&
+ "File".equals(typeName)){
+
+ return File.Factory.parse(reader);
+
+
+ }
+
+
+ throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName);
+ }
+
+ }
+
+ public static class CreateConfigFile
+ implements org.apache.axis2.databinding.ADBBean{
+
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+ "http://salome.service.ws_server.splat.org",
+ "createConfigFile",
+ "ns2");
+
+
+
+ /**
+ * field for Args0
+ */
+
+
+ protected long localArgs0 ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localArgs0Tracker = false ;
+
+ public boolean isArgs0Specified(){
+ return localArgs0Tracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return long
+ */
+ public long getArgs0(){
+ return localArgs0;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Args0
+ */
+ public void setArgs0(long param){
+
+ // setting primitive attribute tracker to true
+ localArgs0Tracker =
+ param != java.lang.Long.MIN_VALUE;
+
+ this.localArgs0=param;
+
+
+ }
+
+
+ /**
+ * field for Args1
+ */
+
+
+ protected long localArgs1 ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localArgs1Tracker = false ;
+
+ public boolean isArgs1Specified(){
+ return localArgs1Tracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return long
+ */
+ public long getArgs1(){
+ return localArgs1;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Args1
+ */
+ public void setArgs1(long param){
+
+ // setting primitive attribute tracker to true
+ localArgs1Tracker =
+ param != java.lang.Long.MIN_VALUE;
+
+ this.localArgs1=param;
+
+
+ }
+
+
+ /**
+ * field for Args2
+ */
+
+
+ protected long localArgs2 ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localArgs2Tracker = false ;
+
+ public boolean isArgs2Specified(){
+ return localArgs2Tracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return long
+ */
+ public long getArgs2(){
+ return localArgs2;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Args2
+ */
+ public void setArgs2(long param){
+
+ // setting primitive attribute tracker to true
+ localArgs2Tracker =
+ param != java.lang.Long.MIN_VALUE;
+
+ this.localArgs2=param;
+
+
+ }
+
+
+ /**
+ * field for Args3
+ */
+
+
+ protected java.lang.String localArgs3 ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localArgs3Tracker = false ;
+
+ public boolean isArgs3Specified(){
+ return localArgs3Tracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getArgs3(){
+ return localArgs3;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Args3
+ */
+ public void setArgs3(java.lang.String param){
+ localArgs3Tracker = true;
+
+ this.localArgs3=param;
+
+
+ }
+
+
+
+
+ /**
+ *
+ * @param parentQName
+ * @param factory
+ * @return org.apache.axiom.om.OMElement
+ */
+ public org.apache.axiom.om.OMElement getOMElement (
+ final javax.xml.namespace.QName parentQName,
+ final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+
+ org.apache.axiom.om.OMDataSource dataSource =
+ new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+ return factory.createOMElement(dataSource,MY_QNAME);
+
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+ serialize(parentQName,xmlWriter,false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter,
+ boolean serializeType)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+
+
+
+
+ java.lang.String prefix = null;
+ java.lang.String namespace = null;
+
+
+ prefix = parentQName.getPrefix();
+ namespace = parentQName.getNamespaceURI();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+
+ if (serializeType){
+
+
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
+ if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ namespacePrefix+":createConfigFile",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ "createConfigFile",
+ xmlWriter);
+ }
+
+
+ }
+ if (localArgs0Tracker){
+ namespace = "http://salome.service.ws_server.splat.org";
+ writeStartElement(null, namespace, "args0", xmlWriter);
+
+ if (localArgs0==java.lang.Long.MIN_VALUE) {
+
+ throw new org.apache.axis2.databinding.ADBException("args0 cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localArgs1Tracker){
+ namespace = "http://salome.service.ws_server.splat.org";
+ writeStartElement(null, namespace, "args1", xmlWriter);
+
+ if (localArgs1==java.lang.Long.MIN_VALUE) {
+
+ throw new org.apache.axis2.databinding.ADBException("args1 cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localArgs2Tracker){
+ namespace = "http://salome.service.ws_server.splat.org";
+ writeStartElement(null, namespace, "args2", xmlWriter);
+
+ if (localArgs2==java.lang.Long.MIN_VALUE) {
+
+ throw new org.apache.axis2.databinding.ADBException("args2 cannot be null!!");
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs2));
+ }
+
+ xmlWriter.writeEndElement();
+ } if (localArgs3Tracker){
+ namespace = "http://salome.service.ws_server.splat.org";
+ writeStartElement(null, namespace, "args3", xmlWriter);
+
+
+ if (localArgs3==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localArgs3);
+
+ }
+
+ xmlWriter.writeEndElement();
+ }
+ xmlWriter.writeEndElement();
+
+
+ }
+
+ private static java.lang.String generatePrefix(java.lang.String namespace) {
+ if(namespace.equals("http://salome.service.ws_server.splat.org")){
+ return "ns2";
+ }
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(namespace, localPart);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * Util method to write an attribute with the ns prefix
+ */
+ private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (xmlWriter.getPrefix(namespace) == null) {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeAttribute(java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName,attValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+ }
+
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+ javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ java.lang.String attributeNamespace = qname.getNamespaceURI();
+ java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+ if (attributePrefix == null) {
+ attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+ }
+ java.lang.String attributeValue;
+ if (attributePrefix.trim().length() > 0) {
+ attributeValue = attributePrefix + ":" + qname.getLocalPart();
+ } else {
+ attributeValue = qname.getLocalPart();
+ }
+
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName, attributeValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace, attName, attributeValue);
+ }
+ }
+ /**
+ * method to handle Qnames
+ */
+
+ private void writeQName(javax.xml.namespace.QName qname,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String namespaceURI = qname.getNamespaceURI();
+ if (namespaceURI != null) {
+ java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+ if (prefix == null) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ } else {
+ // i.e this is the default namespace
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+ }
+
+ private void writeQNames(javax.xml.namespace.QName[] qnames,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ if (qnames != null) {
+ // we have to store this data until last moment since it is not possible to write any
+ // namespace data after writing the charactor data
+ java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+ java.lang.String namespaceURI = null;
+ java.lang.String prefix = null;
+
+ for (int i = 0; i < qnames.length; i++) {
+ if (i > 0) {
+ stringToWrite.append(" ");
+ }
+ namespaceURI = qnames[i].getNamespaceURI();
+ if (namespaceURI != null) {
+ prefix = xmlWriter.getPrefix(namespaceURI);
+ if ((prefix == null) || (prefix.length() == 0)) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ }
+ xmlWriter.writeCharacters(stringToWrite.toString());
+ }
+
+ }
+
+
+ /**
+ * Register a namespace prefix
+ */
+ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
+ java.lang.String prefix = xmlWriter.getPrefix(namespace);
+ if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+ if (uri == null || uri.length() == 0) {
+ break;
+ }
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ return prefix;
+ }
+
+
+
+ /**
+ * databinding method to get an XML representation of this object
+ *
+ */
+ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+ throws org.apache.axis2.databinding.ADBException{
+
+
+
+ java.util.ArrayList elementList = new java.util.ArrayList();
+ java.util.ArrayList attribList = new java.util.ArrayList();
+
+ if (localArgs0Tracker){
+ elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "args0"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
+ } if (localArgs1Tracker){
+ elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "args1"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
+ } if (localArgs2Tracker){
+ elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "args2"));
+
+ elementList.add(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs2));
+ } if (localArgs3Tracker){
+ elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "args3"));
+
+ elementList.add(localArgs3==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs3));
+ }
+
+ return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+
+
+
+ }
+
+
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory{
+
+
+
+
+ /**
+ * static method to create the object
+ * Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
+ * If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
+ * Postcondition: If this object is an element, the reader is positioned at its end element
+ * If this object is a complex type, the reader is positioned at the end element of its outer element
+ */
+ public static CreateConfigFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+ CreateConfigFile object =
+ new CreateConfigFile();
+
+ int event;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix ="";
+ java.lang.String namespaceuri ="";
+ try {
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+
+ if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
+ java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "type");
+ if (fullTypeName!=null){
+ java.lang.String nsPrefix = null;
+ if (fullTypeName.indexOf(":") > -1){
+ nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+ }
+ nsPrefix = nsPrefix==null?"":nsPrefix;
+
+ java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+
+ if (!"createConfigFile".equals(type)){
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+ return (CreateConfigFile)ExtensionMapper.getTypeObject(
+ nsUri,type,reader);
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+ // Note all attributes that were handled. Used to differ normal attributes
+ // from anyAttributes.
+ java.util.Vector handledAttributes = new java.util.Vector();
+
+
+
+
+ reader.next();
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args0").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"args0" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setArgs0(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ object.setArgs0(java.lang.Long.MIN_VALUE);
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args1").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"args1" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setArgs1(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ object.setArgs1(java.lang.Long.MIN_VALUE);
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args2").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ throw new org.apache.axis2.databinding.ADBException("The element: "+"args2" +" cannot be null");
+ }
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setArgs2(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ object.setArgs2(java.lang.Long.MIN_VALUE);
+
+ }
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args3").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setArgs3(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement())
+ // A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+
+
+
+
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+
+ }//end of factory class
+
+
+
+ }
+
+
+ public static class CreateConfigFileResponse
+ implements org.apache.axis2.databinding.ADBBean{
+
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+ "http://salome.service.ws_server.splat.org",
+ "createConfigFileResponse",
+ "ns2");
+
+
+
+ /**
+ * field for _return
+ */
+
+
+ protected File local_return ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean local_returnTracker = false ;
+
+ public boolean is_returnSpecified(){
+ return local_returnTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return File
+ */
+ public File get_return(){
+ return local_return;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param _return
+ */
+ public void set_return(File param){
+ local_returnTracker = true;
+
+ this.local_return=param;
+
+
+ }
+
+
+
+
+ /**
+ *
+ * @param parentQName
+ * @param factory
+ * @return org.apache.axiom.om.OMElement
+ */
+ public org.apache.axiom.om.OMElement getOMElement (
+ final javax.xml.namespace.QName parentQName,
+ final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+
+ org.apache.axiom.om.OMDataSource dataSource =
+ new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+ return factory.createOMElement(dataSource,MY_QNAME);
+
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+ serialize(parentQName,xmlWriter,false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter,
+ boolean serializeType)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+
+
+
+
+ java.lang.String prefix = null;
+ java.lang.String namespace = null;
+
+
+ prefix = parentQName.getPrefix();
+ namespace = parentQName.getNamespaceURI();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+
+ if (serializeType){
+
+
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
+ if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ namespacePrefix+":createConfigFileResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ "createConfigFileResponse",
+ xmlWriter);
+ }
+
+
+ }
+ if (local_returnTracker){
+ if (local_return==null){
+
+ writeStartElement(null, "http://salome.service.ws_server.splat.org", "return", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+ xmlWriter.writeEndElement();
+ }else{
+ local_return.serialize(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","return"),
+ xmlWriter);
+ }
+ }
+ xmlWriter.writeEndElement();
+
+
+ }
+
+ private static java.lang.String generatePrefix(java.lang.String namespace) {
+ if(namespace.equals("http://salome.service.ws_server.splat.org")){
+ return "ns2";
+ }
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(namespace, localPart);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * Util method to write an attribute with the ns prefix
+ */
+ private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (xmlWriter.getPrefix(namespace) == null) {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeAttribute(java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName,attValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+ }
+
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+ javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ java.lang.String attributeNamespace = qname.getNamespaceURI();
+ java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+ if (attributePrefix == null) {
+ attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+ }
+ java.lang.String attributeValue;
+ if (attributePrefix.trim().length() > 0) {
+ attributeValue = attributePrefix + ":" + qname.getLocalPart();
+ } else {
+ attributeValue = qname.getLocalPart();
+ }
+
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName, attributeValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace, attName, attributeValue);
+ }
+ }
+ /**
+ * method to handle Qnames
+ */
+
+ private void writeQName(javax.xml.namespace.QName qname,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String namespaceURI = qname.getNamespaceURI();
+ if (namespaceURI != null) {
+ java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+ if (prefix == null) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ } else {
+ // i.e this is the default namespace
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+ }
+
+ private void writeQNames(javax.xml.namespace.QName[] qnames,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ if (qnames != null) {
+ // we have to store this data until last moment since it is not possible to write any
+ // namespace data after writing the charactor data
+ java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+ java.lang.String namespaceURI = null;
+ java.lang.String prefix = null;
+
+ for (int i = 0; i < qnames.length; i++) {
+ if (i > 0) {
+ stringToWrite.append(" ");
+ }
+ namespaceURI = qnames[i].getNamespaceURI();
+ if (namespaceURI != null) {
+ prefix = xmlWriter.getPrefix(namespaceURI);
+ if ((prefix == null) || (prefix.length() == 0)) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ }
+ xmlWriter.writeCharacters(stringToWrite.toString());
+ }
+
+ }
+
+
+ /**
+ * Register a namespace prefix
+ */
+ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
+ java.lang.String prefix = xmlWriter.getPrefix(namespace);
+ if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+ if (uri == null || uri.length() == 0) {
+ break;
+ }
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ return prefix;
+ }
+
+
+
+ /**
+ * databinding method to get an XML representation of this object
+ *
+ */
+ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+ throws org.apache.axis2.databinding.ADBException{
+
+
+
+ java.util.ArrayList elementList = new java.util.ArrayList();
+ java.util.ArrayList attribList = new java.util.ArrayList();
+
+ if (local_returnTracker){
+ elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+ "return"));
+
+
+ elementList.add(local_return==null?null:
+ local_return);
+ }
+
+ return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+
+
+
+ }
+
+
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory{
+
+
+
+
+ /**
+ * static method to create the object
+ * Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
+ * If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
+ * Postcondition: If this object is an element, the reader is positioned at its end element
+ * If this object is a complex type, the reader is positioned at the end element of its outer element
+ */
+ public static CreateConfigFileResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+ CreateConfigFileResponse object =
+ new CreateConfigFileResponse();
+
+ int event;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix ="";
+ java.lang.String namespaceuri ="";
+ try {
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+
+ if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
+ java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "type");
+ if (fullTypeName!=null){
+ java.lang.String nsPrefix = null;
+ if (fullTypeName.indexOf(":") > -1){
+ nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+ }
+ nsPrefix = nsPrefix==null?"":nsPrefix;
+
+ java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+
+ if (!"createConfigFileResponse".equals(type)){
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+ return (CreateConfigFileResponse)ExtensionMapper.getTypeObject(
+ nsUri,type,reader);
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+ // Note all attributes that were handled. Used to differ normal attributes
+ // from anyAttributes.
+ java.util.Vector handledAttributes = new java.util.Vector();
+
+
+
+
+ reader.next();
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","return").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+ object.set_return(null);
+ reader.next();
+
+ reader.next();
+
+ }else{
+
+ object.set_return(File.Factory.parse(reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement())
+ // A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+
+
+
+
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+
+ }//end of factory class
+
+
+
+ }
+
+
+ private org.apache.axiom.om.OMElement toOM(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile param, boolean optimizeContent)
+ throws org.apache.axis2.AxisFault {
+
+
+ try{
+ return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch(org.apache.axis2.databinding.ADBException e){
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+
+ }
+
+ private org.apache.axiom.om.OMElement toOM(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse param, boolean optimizeContent)
+ throws org.apache.axis2.AxisFault {
+
+
+ try{
+ return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch(org.apache.axis2.databinding.ADBException e){
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+
+ }
+
+
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
+ throws org.apache.axis2.AxisFault{
+
+
+ try{
+
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody().addChild(param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.MY_QNAME,factory));
+ return emptyEnvelope;
+ } catch(org.apache.axis2.databinding.ADBException e){
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+
+ }
+
+
+ /* methods to provide back word compatibility */
+
+
+
+
+ /**
+ * get the default envelope
+ */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+ return factory.getDefaultEnvelope();
+ }
+
+
+ private java.lang.Object fromOM(
+ org.apache.axiom.om.OMElement param,
+ java.lang.Class type,
+ java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{
+
+ try {
+
+ if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class.equals(type)){
+
+ return org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+
+
+ }
+
+ if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse.class.equals(type)){
+
+ return org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+
+
+ }
+
+ } catch (java.lang.Exception e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ return null;
+ }
+
+
+
+
+ }
+
\ No newline at end of file
--- /dev/null
+
+/**
+ * HelloSimanWSCallbackHandler.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
+ */
+
+ package org.splat.ws_client.test;
+
+ /**
+ * HelloSimanWSCallbackHandler Callback class, Users can extend this class and implement
+ * their own receiveResult and receiveError methods.
+ */
+ public abstract class HelloSimanWSCallbackHandler{
+
+
+
+ protected Object clientData;
+
+ /**
+ * User can pass in any object that needs to be accessed once the NonBlocking
+ * Web service call is finished and appropriate method of this CallBack is called.
+ * @param clientData Object mechanism by which the user can pass in user data
+ * that will be avilable at the time this callback is called.
+ */
+ public HelloSimanWSCallbackHandler(Object clientData){
+ this.clientData = clientData;
+ }
+
+ /**
+ * Please use this constructor if you don't want to set any clientData
+ */
+ public HelloSimanWSCallbackHandler(){
+ this.clientData = null;
+ }
+
+ /**
+ * Get the client data
+ */
+
+ public Object getClientData() {
+ return clientData;
+ }
+
+
+ /**
+ * auto generated Axis2 call back method for getGreeting method
+ * override this method for handling normal response from getGreeting operation
+ */
+ public void receiveResultgetGreeting(
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse result
+ ) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getGreeting operation
+ */
+ public void receiveErrorgetGreeting(java.lang.Exception e) {
+ }
+
+
+
+ }
+
\ No newline at end of file
--- /dev/null
+
+/**
+ * HelloSimanWSStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
+ */
+ package org.splat.ws_client.test;
+
+
+
+ /*
+ * HelloSimanWSStub java implementation
+ */
+
+
+ public class HelloSimanWSStub extends org.apache.axis2.client.Stub
+ {
+ protected org.apache.axis2.description.AxisOperation[] _operations;
+
+ //hashmaps to keep the fault mapping
+ private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
+ private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
+ private java.util.HashMap faultMessageMap = new java.util.HashMap();
+
+ private static int counter = 0;
+
+ private static synchronized java.lang.String getUniqueSuffix(){
+ // reset the counter if it is greater than 99999
+ if (counter > 99999){
+ counter = 0;
+ }
+ counter = counter + 1;
+ return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
+ }
+
+
+ private void populateAxisService() throws org.apache.axis2.AxisFault {
+
+ //creating the Service with a unique name
+ _service = new org.apache.axis2.description.AxisService("HelloSimanWS" + getUniqueSuffix());
+ addAnonymousOperations();
+
+ //creating the operations
+ org.apache.axis2.description.AxisOperation __operation;
+
+ _operations = new org.apache.axis2.description.AxisOperation[1];
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+
+ __operation.setName(new javax.xml.namespace.QName("http://test.ws_server.splat.org", "getGreeting"));
+ _service.addOperation(__operation);
+
+
+
+
+ _operations[0]=__operation;
+
+
+ }
+
+ //populates the faults
+ private void populateFaults(){
+
+
+
+ }
+
+ /**
+ *Constructor that takes in a configContext
+ */
+
+ public HelloSimanWSStub(org.apache.axis2.context.ConfigurationContext configurationContext,
+ java.lang.String targetEndpoint)
+ throws org.apache.axis2.AxisFault {
+ this(configurationContext,targetEndpoint,false);
+ }
+
+
+ /**
+ * Constructor that takes in a configContext and useseperate listner
+ */
+ public HelloSimanWSStub(org.apache.axis2.context.ConfigurationContext configurationContext,
+ java.lang.String targetEndpoint, boolean useSeparateListener)
+ throws org.apache.axis2.AxisFault {
+ //To populate AxisService
+ populateAxisService();
+ populateFaults();
+
+ _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
+
+
+ _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(
+ targetEndpoint));
+ _serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
+
+ //Set the soap version
+ _serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+
+
+ }
+
+ /**
+ * Default Constructor
+ */
+ public HelloSimanWSStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
+
+ this(configurationContext,"http://localhost:8080/Siman-WS/services/HelloSimanWS.HelloSimanWSHttpSoap12Endpoint/" );
+
+ }
+
+ /**
+ * Default Constructor
+ */
+ public HelloSimanWSStub() throws org.apache.axis2.AxisFault {
+
+ this("http://localhost:8080/Siman-WS/services/HelloSimanWS.HelloSimanWSHttpSoap12Endpoint/" );
+
+ }
+
+ /**
+ * Constructor taking the target endpoint
+ */
+ public HelloSimanWSStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
+ this(null,targetEndpoint);
+ }
+
+
+
+
+ /**
+ * Auto generated method signature
+ *
+ * @see org.splat.ws_client.test.HelloSimanWS#getGreeting
+ * @param getGreeting0
+
+ */
+
+
+
+ public org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse getGreeting(
+
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreeting getGreeting0)
+
+
+ throws java.rmi.RemoteException
+
+ {
+ org.apache.axis2.context.MessageContext _messageContext = null;
+ try{
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+ _operationClient.getOptions().setAction("urn:getGreeting");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+
+
+ addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+
+
+ // create a message context
+ _messageContext = new org.apache.axis2.context.MessageContext();
+
+
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+
+ env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+ getGreeting0,
+ optimizeContent(new javax.xml.namespace.QName("http://test.ws_server.splat.org",
+ "getGreeting")), new javax.xml.namespace.QName("http://test.ws_server.splat.org",
+ "getGreeting"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
+ org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+
+ java.lang.Object object = fromOM(
+ _returnEnv.getBody().getFirstElement() ,
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse.class,
+ getEnvelopeNamespaces(_returnEnv));
+
+
+ return (org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse)object;
+
+ }catch(org.apache.axis2.AxisFault f){
+
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+ if (faultElt!=null){
+ if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getGreeting"))){
+ //make the fault by reflection
+ try{
+ java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getGreeting"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+ //message class
+ java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getGreeting"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[]{messageClass});
+ m.invoke(ex,new java.lang.Object[]{messageObject});
+
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ }catch(java.lang.ClassCastException e){
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ }else{
+ throw f;
+ }
+ }else{
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see org.splat.ws_client.test.HelloSimanWS#startgetGreeting
+ * @param getGreeting0
+
+ */
+ public void startgetGreeting(
+
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreeting getGreeting0,
+
+ final org.splat.ws_client.test.HelloSimanWSCallbackHandler callback)
+
+ throws java.rmi.RemoteException{
+
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+ _operationClient.getOptions().setAction("urn:getGreeting");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+
+
+ addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+
+
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env=null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+
+ //Style is Doc.
+
+
+ env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+ getGreeting0,
+ optimizeContent(new javax.xml.namespace.QName("http://test.ws_server.splat.org",
+ "getGreeting")), new javax.xml.namespace.QName("http://test.ws_server.splat.org",
+ "getGreeting"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse.class,
+ getEnvelopeNamespaces(resultEnv));
+ callback.receiveResultgetGreeting(
+ (org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse)object);
+
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetGreeting(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+ if (faultElt!=null){
+ if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getGreeting"))){
+ //make the fault by reflection
+ try{
+ java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getGreeting"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+ //message class
+ java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getGreeting"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[]{messageClass});
+ m.invoke(ex,new java.lang.Object[]{messageObject});
+
+
+ callback.receiveErrorgetGreeting(new java.rmi.RemoteException(ex.getMessage(), ex));
+ } catch(java.lang.ClassCastException e){
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetGreeting(f);
+ }
+ } else {
+ callback.receiveErrorgetGreeting(f);
+ }
+ } else {
+ callback.receiveErrorgetGreeting(f);
+ }
+ } else {
+ callback.receiveErrorgetGreeting(error);
+ }
+ }
+
+ public void onFault(org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetGreeting(axisFault);
+ }
+ }
+ });
+
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+ if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[0].setMessageReceiver(
+ _callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+
+ }
+
+
+
+ /**
+ * A utility method that copies the namepaces from the SOAPEnvelope
+ */
+ private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
+ java.util.Map returnMap = new java.util.HashMap();
+ java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
+ while (namespaceIterator.hasNext()) {
+ org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
+ returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
+ }
+ return returnMap;
+ }
+
+
+
+ private javax.xml.namespace.QName[] opNameArray = null;
+ private boolean optimizeContent(javax.xml.namespace.QName opName) {
+
+
+ if (opNameArray == null) {
+ return false;
+ }
+ for (int i = 0; i < opNameArray.length; i++) {
+ if (opName.equals(opNameArray[i])) {
+ return true;
+ }
+ }
+ return false;
+ }
+ //http://localhost:8080/Siman-WS/services/HelloSimanWS.HelloSimanWSHttpSoap12Endpoint/
+ public static class GetGreeting
+ implements org.apache.axis2.databinding.ADBBean{
+
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+ "http://test.ws_server.splat.org",
+ "getGreeting",
+ "ns1");
+
+
+
+ /**
+ * field for Name
+ */
+
+
+ protected java.lang.String localName ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean localNameTracker = false ;
+
+ public boolean isNameSpecified(){
+ return localNameTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName(){
+ return localName;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param){
+ localNameTracker = true;
+
+ this.localName=param;
+
+
+ }
+
+
+
+
+ /**
+ *
+ * @param parentQName
+ * @param factory
+ * @return org.apache.axiom.om.OMElement
+ */
+ public org.apache.axiom.om.OMElement getOMElement (
+ final javax.xml.namespace.QName parentQName,
+ final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+
+ org.apache.axiom.om.OMDataSource dataSource =
+ new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+ return factory.createOMElement(dataSource,MY_QNAME);
+
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+ serialize(parentQName,xmlWriter,false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter,
+ boolean serializeType)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+
+
+
+
+ java.lang.String prefix = null;
+ java.lang.String namespace = null;
+
+
+ prefix = parentQName.getPrefix();
+ namespace = parentQName.getNamespaceURI();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+
+ if (serializeType){
+
+
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://test.ws_server.splat.org");
+ if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ namespacePrefix+":getGreeting",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ "getGreeting",
+ xmlWriter);
+ }
+
+
+ }
+ if (localNameTracker){
+ namespace = "http://test.ws_server.splat.org";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+
+ if (localName==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(localName);
+
+ }
+
+ xmlWriter.writeEndElement();
+ }
+ xmlWriter.writeEndElement();
+
+
+ }
+
+ private static java.lang.String generatePrefix(java.lang.String namespace) {
+ if(namespace.equals("http://test.ws_server.splat.org")){
+ return "ns1";
+ }
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(namespace, localPart);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * Util method to write an attribute with the ns prefix
+ */
+ private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (xmlWriter.getPrefix(namespace) == null) {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeAttribute(java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName,attValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+ }
+
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+ javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ java.lang.String attributeNamespace = qname.getNamespaceURI();
+ java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+ if (attributePrefix == null) {
+ attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+ }
+ java.lang.String attributeValue;
+ if (attributePrefix.trim().length() > 0) {
+ attributeValue = attributePrefix + ":" + qname.getLocalPart();
+ } else {
+ attributeValue = qname.getLocalPart();
+ }
+
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName, attributeValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace, attName, attributeValue);
+ }
+ }
+ /**
+ * method to handle Qnames
+ */
+
+ private void writeQName(javax.xml.namespace.QName qname,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String namespaceURI = qname.getNamespaceURI();
+ if (namespaceURI != null) {
+ java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+ if (prefix == null) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ } else {
+ // i.e this is the default namespace
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+ }
+
+ private void writeQNames(javax.xml.namespace.QName[] qnames,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ if (qnames != null) {
+ // we have to store this data until last moment since it is not possible to write any
+ // namespace data after writing the charactor data
+ java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+ java.lang.String namespaceURI = null;
+ java.lang.String prefix = null;
+
+ for (int i = 0; i < qnames.length; i++) {
+ if (i > 0) {
+ stringToWrite.append(" ");
+ }
+ namespaceURI = qnames[i].getNamespaceURI();
+ if (namespaceURI != null) {
+ prefix = xmlWriter.getPrefix(namespaceURI);
+ if ((prefix == null) || (prefix.length() == 0)) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ }
+ xmlWriter.writeCharacters(stringToWrite.toString());
+ }
+
+ }
+
+
+ /**
+ * Register a namespace prefix
+ */
+ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
+ java.lang.String prefix = xmlWriter.getPrefix(namespace);
+ if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+ if (uri == null || uri.length() == 0) {
+ break;
+ }
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ return prefix;
+ }
+
+
+
+ /**
+ * databinding method to get an XML representation of this object
+ *
+ */
+ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+ throws org.apache.axis2.databinding.ADBException{
+
+
+
+ java.util.ArrayList elementList = new java.util.ArrayList();
+ java.util.ArrayList attribList = new java.util.ArrayList();
+
+ if (localNameTracker){
+ elementList.add(new javax.xml.namespace.QName("http://test.ws_server.splat.org",
+ "name"));
+
+ elementList.add(localName==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localName));
+ }
+
+ return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+
+
+
+ }
+
+
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory{
+
+
+
+
+ /**
+ * static method to create the object
+ * Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
+ * If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
+ * Postcondition: If this object is an element, the reader is positioned at its end element
+ * If this object is a complex type, the reader is positioned at the end element of its outer element
+ */
+ public static GetGreeting parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+ GetGreeting object =
+ new GetGreeting();
+
+ int event;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix ="";
+ java.lang.String namespaceuri ="";
+ try {
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+
+ if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
+ java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "type");
+ if (fullTypeName!=null){
+ java.lang.String nsPrefix = null;
+ if (fullTypeName.indexOf(":") > -1){
+ nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+ }
+ nsPrefix = nsPrefix==null?"":nsPrefix;
+
+ java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+
+ if (!"getGreeting".equals(type)){
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+ return (GetGreeting)ExtensionMapper.getTypeObject(
+ nsUri,type,reader);
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+ // Note all attributes that were handled. Used to differ normal attributes
+ // from anyAttributes.
+ java.util.Vector handledAttributes = new java.util.Vector();
+
+
+
+
+ reader.next();
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://test.ws_server.splat.org","name").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.setName(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement())
+ // A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+
+
+
+
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+
+ }//end of factory class
+
+
+
+ }
+
+
+ public static class ExtensionMapper{
+
+ public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
+ java.lang.String typeName,
+ javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+
+
+ throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName);
+ }
+
+ }
+
+ public static class GetGreetingResponse
+ implements org.apache.axis2.databinding.ADBBean{
+
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+ "http://test.ws_server.splat.org",
+ "getGreetingResponse",
+ "ns1");
+
+
+
+ /**
+ * field for _return
+ */
+
+
+ protected java.lang.String local_return ;
+
+ /* This tracker boolean wil be used to detect whether the user called the set method
+ * for this attribute. It will be used to determine whether to include this field
+ * in the serialized XML
+ */
+ protected boolean local_returnTracker = false ;
+
+ public boolean is_returnSpecified(){
+ return local_returnTracker;
+ }
+
+
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String get_return(){
+ return local_return;
+ }
+
+
+
+ /**
+ * Auto generated setter method
+ * @param param _return
+ */
+ public void set_return(java.lang.String param){
+ local_returnTracker = true;
+
+ this.local_return=param;
+
+
+ }
+
+
+
+
+ /**
+ *
+ * @param parentQName
+ * @param factory
+ * @return org.apache.axiom.om.OMElement
+ */
+ public org.apache.axiom.om.OMElement getOMElement (
+ final javax.xml.namespace.QName parentQName,
+ final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+
+ org.apache.axiom.om.OMDataSource dataSource =
+ new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+ return factory.createOMElement(dataSource,MY_QNAME);
+
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+ serialize(parentQName,xmlWriter,false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter,
+ boolean serializeType)
+ throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+
+
+
+
+ java.lang.String prefix = null;
+ java.lang.String namespace = null;
+
+
+ prefix = parentQName.getPrefix();
+ namespace = parentQName.getNamespaceURI();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+
+ if (serializeType){
+
+
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://test.ws_server.splat.org");
+ if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ namespacePrefix+":getGreetingResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+ "getGreetingResponse",
+ xmlWriter);
+ }
+
+
+ }
+ if (local_returnTracker){
+ namespace = "http://test.ws_server.splat.org";
+ writeStartElement(null, namespace, "return", xmlWriter);
+
+
+ if (local_return==null){
+ // write the nil attribute
+
+ writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+
+ }else{
+
+
+ xmlWriter.writeCharacters(local_return);
+
+ }
+
+ xmlWriter.writeEndElement();
+ }
+ xmlWriter.writeEndElement();
+
+
+ }
+
+ private static java.lang.String generatePrefix(java.lang.String namespace) {
+ if(namespace.equals("http://test.ws_server.splat.org")){
+ return "ns1";
+ }
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(namespace, localPart);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * Util method to write an attribute with the ns prefix
+ */
+ private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (xmlWriter.getPrefix(namespace) == null) {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeAttribute(java.lang.String namespace,java.lang.String attName,
+ java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName,attValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace,attName,attValue);
+ }
+ }
+
+
+ /**
+ * Util method to write an attribute without the ns prefix
+ */
+ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+ javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ java.lang.String attributeNamespace = qname.getNamespaceURI();
+ java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+ if (attributePrefix == null) {
+ attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+ }
+ java.lang.String attributeValue;
+ if (attributePrefix.trim().length() > 0) {
+ attributeValue = attributePrefix + ":" + qname.getLocalPart();
+ } else {
+ attributeValue = qname.getLocalPart();
+ }
+
+ if (namespace.equals("")) {
+ xmlWriter.writeAttribute(attName, attributeValue);
+ } else {
+ registerPrefix(xmlWriter, namespace);
+ xmlWriter.writeAttribute(namespace, attName, attributeValue);
+ }
+ }
+ /**
+ * method to handle Qnames
+ */
+
+ private void writeQName(javax.xml.namespace.QName qname,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+ java.lang.String namespaceURI = qname.getNamespaceURI();
+ if (namespaceURI != null) {
+ java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+ if (prefix == null) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ } else {
+ // i.e this is the default namespace
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+ }
+ }
+
+ private void writeQNames(javax.xml.namespace.QName[] qnames,
+ javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+ if (qnames != null) {
+ // we have to store this data until last moment since it is not possible to write any
+ // namespace data after writing the charactor data
+ java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+ java.lang.String namespaceURI = null;
+ java.lang.String prefix = null;
+
+ for (int i = 0; i < qnames.length; i++) {
+ if (i > 0) {
+ stringToWrite.append(" ");
+ }
+ namespaceURI = qnames[i].getNamespaceURI();
+ if (namespaceURI != null) {
+ prefix = xmlWriter.getPrefix(namespaceURI);
+ if ((prefix == null) || (prefix.length() == 0)) {
+ prefix = generatePrefix(namespaceURI);
+ xmlWriter.writeNamespace(prefix, namespaceURI);
+ xmlWriter.setPrefix(prefix,namespaceURI);
+ }
+
+ if (prefix.trim().length() > 0){
+ stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ } else {
+ stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+ }
+ }
+ xmlWriter.writeCharacters(stringToWrite.toString());
+ }
+
+ }
+
+
+ /**
+ * Register a namespace prefix
+ */
+ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
+ java.lang.String prefix = xmlWriter.getPrefix(namespace);
+ if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+ if (uri == null || uri.length() == 0) {
+ break;
+ }
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ return prefix;
+ }
+
+
+
+ /**
+ * databinding method to get an XML representation of this object
+ *
+ */
+ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+ throws org.apache.axis2.databinding.ADBException{
+
+
+
+ java.util.ArrayList elementList = new java.util.ArrayList();
+ java.util.ArrayList attribList = new java.util.ArrayList();
+
+ if (local_returnTracker){
+ elementList.add(new javax.xml.namespace.QName("http://test.ws_server.splat.org",
+ "return"));
+
+ elementList.add(local_return==null?null:
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
+ }
+
+ return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+
+
+
+ }
+
+
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory{
+
+
+
+
+ /**
+ * static method to create the object
+ * Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
+ * If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
+ * Postcondition: If this object is an element, the reader is positioned at its end element
+ * If this object is a complex type, the reader is positioned at the end element of its outer element
+ */
+ public static GetGreetingResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+ GetGreetingResponse object =
+ new GetGreetingResponse();
+
+ int event;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix ="";
+ java.lang.String namespaceuri ="";
+ try {
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+
+ if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
+ java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "type");
+ if (fullTypeName!=null){
+ java.lang.String nsPrefix = null;
+ if (fullTypeName.indexOf(":") > -1){
+ nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+ }
+ nsPrefix = nsPrefix==null?"":nsPrefix;
+
+ java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+
+ if (!"getGreetingResponse".equals(type)){
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+ return (GetGreetingResponse)ExtensionMapper.getTypeObject(
+ nsUri,type,reader);
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+ // Note all attributes that were handled. Used to differ normal attributes
+ // from anyAttributes.
+ java.util.Vector handledAttributes = new java.util.Vector();
+
+
+
+
+ reader.next();
+
+
+ while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+
+ if (reader.isStartElement() && new javax.xml.namespace.QName("http://test.ws_server.splat.org","return").equals(reader.getName())){
+
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+ if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+
+
+ java.lang.String content = reader.getElementText();
+
+ object.set_return(
+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+
+ } else {
+
+
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+
+ } // End of if for expected property start element
+
+ else {
+
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement())
+ // A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+
+
+
+
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+
+ }//end of factory class
+
+
+
+ }
+
+
+ private org.apache.axiom.om.OMElement toOM(org.splat.ws_client.test.HelloSimanWSStub.GetGreeting param, boolean optimizeContent)
+ throws org.apache.axis2.AxisFault {
+
+
+ try{
+ return param.getOMElement(org.splat.ws_client.test.HelloSimanWSStub.GetGreeting.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch(org.apache.axis2.databinding.ADBException e){
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+
+ }
+
+ private org.apache.axiom.om.OMElement toOM(org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse param, boolean optimizeContent)
+ throws org.apache.axis2.AxisFault {
+
+
+ try{
+ return param.getOMElement(org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch(org.apache.axis2.databinding.ADBException e){
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+
+ }
+
+
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.splat.ws_client.test.HelloSimanWSStub.GetGreeting param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
+ throws org.apache.axis2.AxisFault{
+
+
+ try{
+
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody().addChild(param.getOMElement(org.splat.ws_client.test.HelloSimanWSStub.GetGreeting.MY_QNAME,factory));
+ return emptyEnvelope;
+ } catch(org.apache.axis2.databinding.ADBException e){
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+
+ }
+
+
+ /* methods to provide back word compatibility */
+
+
+
+
+ /**
+ * get the default envelope
+ */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+ return factory.getDefaultEnvelope();
+ }
+
+
+ private java.lang.Object fromOM(
+ org.apache.axiom.om.OMElement param,
+ java.lang.Class type,
+ java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{
+
+ try {
+
+ if (org.splat.ws_client.test.HelloSimanWSStub.GetGreeting.class.equals(type)){
+
+ return org.splat.ws_client.test.HelloSimanWSStub.GetGreeting.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+
+
+ }
+
+ if (org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse.class.equals(type)){
+
+ return org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+
+
+ }
+
+ } catch (java.lang.Exception e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ return null;
+ }
+
+
+
+
+ }
+
\ No newline at end of file
--- /dev/null
+
+
+/**
+ * SimanSalomeServiceTest.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
+ */
+ package org.splat.ws_client.service.salome;
+
+ /*
+ * SimanSalomeServiceTest Junit test case
+ */
+
+ public class SimanSalomeServiceTest extends junit.framework.TestCase{
+
+
+ /**
+ * Auto generated test method
+ */
+ public void testcreateConfigFile() throws java.lang.Exception{
+
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub stub =
+ new org.splat.ws_client.service.salome.SimanSalomeServiceStub();//the default implementation should point to the right endpoint
+
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile4=
+ (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class);
+ // TODO : Fill in the createConfigFile4 here
+
+ createConfigFile4.setArgs0((long)1);
+ createConfigFile4.setArgs1((long)2);
+ createConfigFile4.setArgs2((long)3);
+ createConfigFile4.setArgs3("d:\\");
+
+
+ assertNotNull(stub.createConfigFile(
+ createConfigFile4));
+
+
+
+
+ }
+
+ /**
+ * Auto generated test method
+ */
+ public void testStartcreateConfigFile() throws java.lang.Exception{
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub stub = new org.splat.ws_client.service.salome.SimanSalomeServiceStub();
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile4=
+ (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class);
+ // TODO : Fill in the createConfigFile4 here
+
+ createConfigFile4.setArgs0(11);
+ createConfigFile4.setArgs1(22);
+ createConfigFile4.setArgs2(33);
+ createConfigFile4.setArgs3("d:\\");
+
+ stub.startcreateConfigFile(
+ createConfigFile4,
+ new tempCallbackN65548()
+ );
+
+
+
+ }
+
+ private class tempCallbackN65548 extends org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler{
+ public tempCallbackN65548(){ super(null);}
+
+ public void receiveResultcreateConfigFile(
+ org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse result
+ ) {
+
+ }
+
+ public void receiveErrorcreateConfigFile(java.lang.Exception e) {
+ fail();
+ }
+
+ }
+
+ //Create an ADBBean and provide it as the test object
+ public org.apache.axis2.databinding.ADBBean getTestObject(java.lang.Class type) throws java.lang.Exception{
+ return (org.apache.axis2.databinding.ADBBean) type.newInstance();
+ }
+
+
+
+
+ }
+
\ No newline at end of file
--- /dev/null
+
+
+/**
+ * HelloSimanWSTest.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
+ */
+ package org.splat.ws_client.test;
+
+ /*
+ * HelloSimanWSTest Junit test case
+ */
+
+ public class HelloSimanWSTest extends junit.framework.TestCase{
+
+
+ /**
+ * Auto generated test method
+ */
+ public void testgetGreeting() throws java.lang.Exception {
+
+ org.splat.ws_client.test.HelloSimanWSStub stub = new org.splat.ws_client.test.HelloSimanWSStub();// the default implementation
+ // should point to the right
+ // endpoint
+
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreeting getGreeting4 = (org.splat.ws_client.test.HelloSimanWSStub.GetGreeting) getTestObject(org.splat.ws_client.test.HelloSimanWSStub.GetGreeting.class);
+ // TODO : Fill in the getGreeting4 here
+
+ String fromwhom = "junit greeting from Maria, Roman and Alexander !!!";
+ getGreeting4.setName(fromwhom);
+ assertNotNull(stub.getGreeting(getGreeting4));
+ }
+
+ /**
+ * Auto generated test method
+ */
+ public void testStartgetGreeting() throws java.lang.Exception{
+ org.splat.ws_client.test.HelloSimanWSStub stub = new org.splat.ws_client.test.HelloSimanWSStub();
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreeting getGreeting4=
+ (org.splat.ws_client.test.HelloSimanWSStub.GetGreeting)getTestObject(org.splat.ws_client.test.HelloSimanWSStub.GetGreeting.class);
+ // TODO : Fill in the getGreeting4 here
+
+ String fromwhom = "junit greeting from Maria, Roman and Alexander !!!";
+ getGreeting4.setName(fromwhom);
+
+ stub.startgetGreeting(
+ getGreeting4,
+ new tempCallbackN65548()
+ );
+
+
+
+ }
+
+ private class tempCallbackN65548 extends org.splat.ws_client.test.HelloSimanWSCallbackHandler{
+ public tempCallbackN65548(){ super(null);}
+
+ public void receiveResultgetGreeting(
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse result
+ ) {
+
+ }
+
+ public void receiveErrorgetGreeting(java.lang.Exception e) {
+ fail();
+ }
+
+ }
+
+ //Create an ADBBean and provide it as the test object
+ public org.apache.axis2.databinding.ADBBean getTestObject(java.lang.Class type) throws java.lang.Exception{
+ return (org.apache.axis2.databinding.ADBBean) type.newInstance();
+ }
+
+
+
+
+ }
+
\ No newline at end of file
--- /dev/null
+package org.splat.ws_client.test;
+
+import org.splat.ws_client.test.HelloSimanWSStub.GetGreeting;
+
+public class HelloSimanWSTestClient {
+
+ public static void main(String[] args) throws java.lang.Exception {
+
+ // Creating the stub
+ org.splat.ws_client.test.HelloSimanWSStub stub = new org.splat.ws_client.test.HelloSimanWSStub();
+
+ // Creating the request
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreeting request = new org.splat.ws_client.test.HelloSimanWSStub.GetGreeting();
+
+ request.setName(" - test Greeting from Maria, Roman and Alexander !!!");
+
+ // Invoking the service
+ org.splat.ws_client.test.HelloSimanWSStub.GetGreetingResponse response = stub.getGreeting(request);
+
+ System.out.println("Response : " + response.get_return());
+ }
+}
+
+
\ No newline at end of file