You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/03/20 03:26:26 UTC
svn commit: r387111 [1/14] - in /webservices/axis2/trunk/c: ./ include/
modules/wsdl/ modules/wsdl/builder/ test/resources/wsdl/ test/wsdl/
test/wsdl/builder/ test/wsdl/builder/print/ test/wsdl/builder/print/.deps/
Author: damitha
Date: Sun Mar 19 18:26:16 2006
New Revision: 387111
URL: http://svn.apache.org/viewcvs?rev=387111&view=rev
Log:
Added a test to test axis2_wsdl4c, the WsdlPull Wrapper
implementing the axis2_wsdl4c interfaces.
Added:
webservices/axis2/trunk/c/test/resources/wsdl/
webservices/axis2/trunk/c/test/resources/wsdl/Attachment1.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/AttachmentService.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/AxisBench.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/BasicAllTest.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/BasicChoice.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/CalculatorDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/Choice.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/CombinedAllTest.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/CombinedChoice.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/ComplexLists.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/ComplexTypeAll.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/DataHandlerService.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/Enumeration.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/ExceptionTest.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/ExceptionTestDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/ExtensibilityQuery.wsdl (with props)
webservices/axis2/trunk/c/test/resources/wsdl/FaultMapping.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/FaultMappingDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/FourLevelTestDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/InOut.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/InteropTestRound1.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/InteropTestRound1Doc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/LargeReturningString.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/LimitedAllTest.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/ManyTypeRefRoot.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/MathOps.wsdl (with props)
webservices/axis2/trunk/c/test/resources/wsdl/MathOpsDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/MinOccurTest.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/MultiOut.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/NestedArrays.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/NestedComplex.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/NillableArrays.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/OtherFaultException.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/PlainTextAttachment.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/PrimitiveAndArray.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RPCAllTest.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RecurseTypes.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest1.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest2.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest3.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest4.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest5.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest7.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcHttpHeaderTest8.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest1.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest10.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest2.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest3.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest4.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest6.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest8.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/RpcSoapHeaderTest9.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleArray.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleArrayDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleArrays.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleChoice.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleRef.wsdl (with props)
webservices/axis2/trunk/c/test/resources/wsdl/SimpleRefDoc.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleTypeArray.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleTypeInnerUnbounded.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/SimpleTypeInnerUnboundedInOutput.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/StockQuotes.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/TestTransportTimeout.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/UDDI.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/UnboundedChoice.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/UnboundedStringChoice.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSDAttribute.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSDElement.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSDElementNil.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_ENTITIES.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_ENTITY.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_ID.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_IDREF.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_IDREFS.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_NCName.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_NMTOKEN.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_NMTOKENS.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_NOTATION.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_Name.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_QName.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_anyURI.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_base64Binary.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_boolean.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_byte.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_date.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_dateTime.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_decimal.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_double.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_duration.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_float.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_gDay.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_gMonth.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_gMonthDay.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_gYear.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_gYearMonth.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_hexBinary.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_int.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_integer.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_language.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_long.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_negativeInteger.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_nonNegativeInteger.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_nonPositiveInteger.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_normalizedString.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_positiveInteger.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_short.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_string.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_time.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_token.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_unsignedByte.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_unsignedInt.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_unsignedLong.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/XSD_unsignedShort.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/inquire_v2.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/nillableComplexType.wsdl
webservices/axis2/trunk/c/test/resources/wsdl/nillableComplexType.xsd
webservices/axis2/trunk/c/test/wsdl/
webservices/axis2/trunk/c/test/wsdl/Makefile.am
webservices/axis2/trunk/c/test/wsdl/builder/
webservices/axis2/trunk/c/test/wsdl/builder/Makefile.am
webservices/axis2/trunk/c/test/wsdl/builder/print/
webservices/axis2/trunk/c/test/wsdl/builder/print/.deps/
webservices/axis2/trunk/c/test/wsdl/builder/print/.deps/print.Po
webservices/axis2/trunk/c/test/wsdl/builder/print/.deps/test_print.Po
webservices/axis2/trunk/c/test/wsdl/builder/print/Makefile.am
webservices/axis2/trunk/c/test/wsdl/builder/print/run.sh
webservices/axis2/trunk/c/test/wsdl/builder/print/test_print.c
Modified:
webservices/axis2/trunk/c/build.sh
webservices/axis2/trunk/c/configure.ac
webservices/axis2/trunk/c/include/axis2_wsdl4c_binding.h
webservices/axis2/trunk/c/include/axis2_wsdl4c_message.h
webservices/axis2/trunk/c/include/axis2_wsdl4c_operation.h
webservices/axis2/trunk/c/include/axis2_wsdl4c_parser.h
webservices/axis2/trunk/c/include/axis2_wsdl4c_port_type.h
webservices/axis2/trunk/c/include/axis2_wsdl4c_service.h
webservices/axis2/trunk/c/modules/wsdl/Makefile.am
webservices/axis2/trunk/c/modules/wsdl/builder/Makefile.am
webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c
webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c
Modified: webservices/axis2/trunk/c/build.sh
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/build.sh?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/build.sh (original)
+++ webservices/axis2/trunk/c/build.sh Sun Mar 19 18:26:16 2006
@@ -3,4 +3,4 @@
AXIS2C_HOME=`pwd`/deploy
./configure --prefix=${AXIS2C_HOME} --enable-tests=yes --enable-samples=yes --enable-trace=yes --with-apache2=/usr/include/apache2 --with-apr=/usr/include/apr-0
make
-make install
+#make install
Modified: webservices/axis2/trunk/c/configure.ac
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/configure.ac?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/configure.ac (original)
+++ webservices/axis2/trunk/c/configure.ac Sun Mar 19 18:26:16 2006
@@ -249,6 +249,9 @@
test/xml/Makefile \
test/xml/om/Makefile \
test/xml/soap/Makefile \
+ test/wsdl/Makefile \
+ test/wsdl/builder/Makefile \
+ test/wsdl/builder/print/Makefile \
test/core/Makefile \
test/core/description/Makefile \
test/core/deployment/Makefile \
Modified: webservices/axis2/trunk/c/include/axis2_wsdl4c_binding.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl4c_binding.h?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl4c_binding.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl4c_binding.h Sun Mar 19 18:26:16 2006
@@ -157,6 +157,51 @@
int index,
int fBn);
+ /**
+ * get_name
+ * @return name of the Wsdl Element
+ */
+ const char *
+ axis2_wsdl4c_binding_get_name(void *binding);
+
+ /**
+ * get_documentation
+ *
+ */
+ const char *
+ axis2_wsdl4c_binding_get_documentation(void *binding);
+
+ /**
+ *@name get_extensibility_elements/get_extensibility_attributes
+ *@brief return the extensibility elements/attributes belonging
+ * to a given namespace
+ *@params namspace uri
+ *@params reference to a vector<int>
+ *@return true if any extensibility elements were found
+ */
+ int *
+ axis2_wsdl4c_binding_get_extensibility_elements(void *binding,
+ char *namespc);
+
+ int *
+ axis2_wsdl4c_binding_get_extensibility_attributes(void *binding,
+ char *namespc);
+
+ void
+ axis2_wsdl4c_binding_set_name(void *binding,
+ char *name);
+
+ void
+ axis2_wsdl4c_binding_add_ext_element(void *binding,
+ int ident);
+
+ void
+ axis2_wsdl4c_binding_add_ext_attribute(void *binding,
+ int ident);
+
+ void
+ axis2_wsdl4c_binding_set_documentation(void *binding,
+ char *doc);
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl4c_message.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl4c_message.h?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl4c_message.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl4c_message.h Sun Mar 19 18:26:16 2006
@@ -140,6 +140,52 @@
void *d,
int schema_id);
+ /**
+ * get_name
+ * @return name of the Wsdl Element
+ */
+ const char *
+ axis2_wsdl4c_msg_get_name(void *message);
+
+ /**
+ * get_documentation
+ *
+ */
+ const char *
+ axis2_wsdl4c_msg_get_documentation(void *message);
+
+ /**
+ *@name get_extensibility_elements/get_extensibility_attributes
+ *@brief return the extensibility elements/attributes belonging
+ * to a given namespace
+ *@params namspace uri
+ *@params reference to a vector<int>
+ *@return true if any extensibility elements were found
+ */
+ int *
+ axis2_wsdl4c_msg_get_extensibility_elements(void *message,
+ char *namespc);
+
+ int *
+ axis2_wsdl4c_msg_get_extensibility_attributes(void *message,
+ char *namespc);
+
+ void
+ axis2_wsdl4c_msg_set_name(void *message,
+ char *name);
+
+ void
+ axis2_wsdl4c_msg_add_ext_element(void *message,
+ int ident);
+
+ void
+ axis2_wsdl4c_msg_add_ext_attribute(void *message,
+ int ident);
+
+ void
+ axis2_wsdl4c_msg_set_documentation(void *message,
+ char *doc);
+
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl4c_operation.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl4c_operation.h?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl4c_operation.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl4c_operation.h Sun Mar 19 18:26:16 2006
@@ -37,24 +37,24 @@
* @{
*/
- enum optype
+ enum axis2_wsdl4c_optype
{
- OP_NONE,
- OP_IN ,
- OP_OUT,
- OP_IN_OUT,
- OP_OUT_IN
+ AXIS2_WSDL4C_OP_NONE ,
+ AXIS2_WSDL4C_OP_IN ,
+ AXIS2_WSDL4C_OP_OUT ,
+ AXIS2_WSDL4C_OP_IN_OUT ,
+ AXIS2_WSDL4C_OP_OUT_IN
};
- enum msg_type
+ enum axis2_wsdl4c_msg_type
{
- Input,
- Output,
- Fault
+ AXIS2_WSDL4C_INPUT,
+ AXIS2_WSDL4C_OUTPUT,
+ AXIS2_WSDL4C_FAULT
};
- typedef enum optype axis2_wsdl4c_optype_t;
- typedef enum msg_type axis2_wsdl4c_msg_type_t;
+ typedef enum axis2_wsdl4c_optype axis2_wsdl4c_optype_t;
+ typedef enum axis2_wsdl4c_msg_type axis2_wsdl4c_msg_type_t;
void *
axis2_wsdl4c_operation_create(void* parser,
@@ -93,6 +93,52 @@
axis2_wsdl4c_operation_set_message(void *operation,
void *message,
axis2_wsdl4c_msg_type_t type);
+
+ /**
+ * get_name
+ * @return name of the Wsdl Element
+ */
+ const char *
+ axis2_wsdl4c_operation_get_name(void *operation);
+
+ /**
+ * get_documentation
+ *
+ */
+ const char *
+ axis2_wsdl4c_operation_get_documentation(void *operation);
+
+ /**
+ *@name get_extensibility_elements/get_extensibility_attributes
+ *@brief return the extensibility elements/attributes belonging
+ * to a given namespace
+ *@params namspace uri
+ *@params reference to a vector<int>
+ *@return true if any extensibility elements were found
+ */
+ int *
+ axis2_wsdl4c_operation_get_extensibility_elements(void *operation,
+ char *namespc);
+
+ int *
+ axis2_wsdl4c_operation_get_extensibility_attributes(void *operation,
+ char *namespc);
+
+ void
+ axis2_wsdl4c_operation_set_name(void *operation,
+ char *name);
+
+ void
+ axis2_wsdl4c_operation_add_ext_element(void *operation,
+ int ident);
+
+ void
+ axis2_wsdl4c_operation_add_ext_attribute(void *operation,
+ int ident);
+
+ void
+ axis2_wsdl4c_operation_set_documentation(void *operation,
+ char *doc);
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl4c_parser.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl4c_parser.h?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl4c_parser.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl4c_parser.h Sun Mar 19 18:26:16 2006
@@ -36,6 +36,33 @@
* @{
*/
+ /**
+ *The various states of the Wsdl Parser
+ */
+ enum
+ {
+ AXIS2_WSDL4C_PARSER_NONE ,
+ AXIS2_WSDL4C_PARSER_START,
+ AXIS2_WSDL4C_PARSER_DEFINITION,
+ AXIS2_WSDL4C_PARSER_DOCUMENTATION,
+ AXIS2_WSDL4C_PARSER_ANNOTATION,
+ AXIS2_WSDL4C_PARSER_IMPORT,
+ AXIS2_WSDL4C_PARSER_SCHEMA,
+ AXIS2_WSDL4C_PARSER_TYPES,
+ AXIS2_WSDL4C_PARSER_MESSAGE,
+ AXIS2_WSDL4C_PARSER_PART,
+ AXIS2_WSDL4C_PARSER_PORT_TYPE,
+ AXIS2_WSDL4C_PARSER_OPERATION,
+ AXIS2_WSDL4C_PARSER_INPUT,
+ AXIS2_WSDL4C_PARSER_OUTPUT,
+ AXIS2_WSDL4C_PARSER_FAULT,
+ AXIS2_WSDL4C_PARSER_BINDING,
+ AXIS2_WSDL4C_PARSER_EXTENSIBILITY,
+ AXIS2_WSDL4C_PARSER_SERVICE,
+ AXIS2_WSDL4C_PARSER_PORT,
+ AXIS2_WSDL4C_PARSER_END
+ };
+
/**
* The default constructor for WsdlParser
* @param input stream for the wsdl file
@@ -44,7 +71,7 @@
*
*/
void *
- axis2_wsdl4c_parser_create(char* wsdl_file);
+ axis2_wsdl4c_parser_create(char* wsdl_file, char *schema_path);
void
axis2_wsdl4c_parser_destroy(void *parser);
@@ -92,7 +119,7 @@
* This method must be called after <code>getEventType</code> returns DOCUMENT
* @return documentation std::string .
*/
- const void *
+ const char *
axis2_wsdl4c_parser_get_documentation(void *parser);
/**
@@ -212,7 +239,7 @@
/**
* to query the status of wsdl parsing
*/
- bool
+ axis2_bool_t
axis2_wsdl4c_parser_status(void *parser);
const char *
Modified: webservices/axis2/trunk/c/include/axis2_wsdl4c_port_type.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl4c_port_type.h?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl4c_port_type.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl4c_port_type.h Sun Mar 19 18:26:16 2006
@@ -92,6 +92,51 @@
axis2_wsdl4c_port_type_set_binding(void *port_type,
void *bn);
+ /**
+ * get_name
+ * @return name of the Wsdl Element
+ */
+ const char *
+ axis2_wsdl4c_port_type_get_name(void *port_type);
+
+ /**
+ * get_documentation
+ *
+ */
+ const char *
+ axis2_wsdl4c_port_type_get_documentation(void *port_type);
+
+ /**
+ *@name get_extensibility_elements/get_extensibility_attributes
+ *@brief return the extensibility elements/attributes belonging
+ * to a given namespace
+ *@params namspace uri
+ *@params reference to a vector<int>
+ *@return true if any extensibility elements were found
+ */
+ int *
+ axis2_wsdl4c_port_type_get_extensibility_elements(void *port_type,
+ char *namespc);
+
+ int *
+ axis2_wsdl4c_port_type_get_extensibility_attributes(void *port_type,
+ char *namespc);
+
+ void
+ axis2_wsdl4c_port_type_set_name(void *port_type,
+ char *name);
+
+ void
+ axis2_wsdl4c_port_type_add_ext_element(void *port_type,
+ int ident);
+
+ void
+ axis2_wsdl4c_port_type_add_ext_attribute(void *port_type,
+ int ident);
+
+ void
+ axis2_wsdl4c_port_type_set_documentation(void *port_type,
+ char *doc);
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl4c_service.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl4c_service.h?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl4c_service.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl4c_service.h Sun Mar 19 18:26:16 2006
@@ -64,6 +64,51 @@
axis2_wsdl4c_service_get_ports(void *service,
char *name);
+ /**
+ * get_name
+ * @return name of the Wsdl Element
+ */
+ const char *
+ axis2_wsdl4c_service_get_name(void *service);
+
+ /**
+ * get_documentation
+ *
+ */
+ const char *
+ axis2_wsdl4c_service_get_documentation(void *service);
+
+ /**
+ *@name get_extensibility_elements/get_extensibility_attributes
+ *@brief return the extensibility elements/attributes belonging
+ * to a given namespace
+ *@params namspace uri
+ *@params reference to a vector<int>
+ *@return true if any extensibility elements were found
+ */
+ int *
+ axis2_wsdl4c_service_get_extensibility_elements(void *service,
+ char *namespc);
+
+ int *
+ axis2_wsdl4c_service_get_extensibility_attributes(void *service,
+ char *namespc);
+
+ void
+ axis2_wsdl4c_service_set_name(void *service,
+ char *name);
+
+ void
+ axis2_wsdl4c_service_add_ext_element(void *service,
+ int ident);
+
+ void
+ axis2_wsdl4c_service_add_ext_attribute(void *service,
+ int ident);
+
+ void
+ axis2_wsdl4c_service_set_documentation(void *service,
+ char *doc);
/** @} */
Modified: webservices/axis2/trunk/c/modules/wsdl/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/Makefile.am?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/wsdl/Makefile.am Sun Mar 19 18:26:16 2006
@@ -1,5 +1,5 @@
TESTS =
-SUBDIRS=
+SUBDIRS = builder
lib_LTLIBRARIES = libaxis2_wsdl.la
libaxis2_wsdl_la_SOURCES = wsdl_op.c \
wsdl_svc.c \
Modified: webservices/axis2/trunk/c/modules/wsdl/builder/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/builder/Makefile.am?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/Makefile.am Sun Mar 19 18:26:16 2006
@@ -1,7 +1,7 @@
TESTS =
lib_LTLIBRARIES = libaxis2_wom.la
libaxis2_wom_la_SOURCES = \
- schema_parser.c
+ wsdl11_mep_finder.c
INCLUDES = -I$(top_builddir)/include \
-I$(top_builddir)/modules/util \
Modified: webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c Sun Mar 19 18:26:16 2006
@@ -13,22 +13,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#include <axis2_wsdl4c_operation.h>
+#include <axis2_wsdl.h>
axis2_char_t *AXIS2_CALL
-axis2_wom_builder_wsdl11_mep_finder_get_mep(wsdlOperation operation)
+axis2_wom_builder_wsdl11_mep_finder_get_mep(void *op,
+ axis2_env_t **env)
{
- wsdlOperationType operation_type = operation.type;
- if(operation_type == AXIS2_REQUEST_RESPONSE_OPERATION)
+ axis2_wsdl4c_optype_t op_type = axis2_wsdl4c_operation_get_type(op);
+
+ if(op_type == AXIS2_WSDL4C_OP_IN_OUT)
{
return AXIS2_MEP_URI_IN_OUT;
}
- if (operation_type == AXIS2_ONE_WAY_OPERATION)
+ if (op_type == AXIS2_WSDL4C_OP_IN)
return AXIS2_MEP_URI_IN_ONLY;
- if (operationType == AXIS2_NOTIFICATION_OPERATION)
+ if (op_type == AXIS2_WSDL4C_OP_OUT)
return AXIS2_MEP_URI_OUT_ONLY;
- if (operationType == AXIS2_SOLICIT_RESPONSE_OPERATION)
+ if (op_type == AXIS2_WSDL4C_OP_OUT_IN)
return AXIS2_MEP_URI_OUT_IN;
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_MEP_CANNOT_DETERMINE_MEP,
Modified: webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c?rev=387111&r1=387110&r2=387111&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c Sun Mar 19 18:26:16 2006
@@ -85,38 +85,105 @@
import java.util.Stack;
import java.util.Vector;
-public class WSDLPump {
- private static final String XMLSCHEMA_NAMESPACE_URI = Constants.URI_2001_SCHEMA_XSD;
- private static final String XMLSCHEMA_NAMESPACE_PREFIX = "xs";
- private static final String XML_SCHEMA_LOCAL_NAME = "schema";
- private static final String XML_SCHEMA_SEQUENCE_LOCAL_NAME = "sequence";
- private static final String XML_SCHEMA_COMPLEX_TYPE_LOCAL_NAME = "complexType";
- private static final String XML_SCHEMA_ELEMENT_LOCAL_NAME = "element";
- private static final String XML_SCHEMA_IMPORT_LOCAL_NAME = "import";
-
- private static final String XSD_NAME = "name";
- private static final String XSD_TARGETNAMESPACE = "targetNamespace";
- private static final String XMLNS_AXIS2WRAPPED = "xmlns:axis2wrapped";
- private static final String AXIS2WRAPPED = "axis2wrapped";
- private static final String XSD_TYPE = "type";
- private static final String XSD_REF = "ref";
- private static final String BOUND_INTERFACE_NAME = "BoundInterface";
-
-
- private static int nsCount=0;
-
- private WSDLDescription womDefinition;
-
- private Definition wsdl4jParsedDefinition;
+#define XMLSCHEMA_NAMESPACE_URI Constants.URI_2001_SCHEMA_XSD
+#define XMLSCHEMA_NAMESPACE_PREFIX "xs"
+#define XML_SCHEMA_LOCAL_NAME "schema"
+#define XML_SCHEMA_SEQUENCE_LOCAL_NAME "sequence"
+#define XML_SCHEMA_COMPLEX_TYPE_LOCAL_NAME "complexType"
+#define XML_SCHEMA_ELEMENT_LOCAL_NAME "element"
+#define XML_SCHEMA_IMPORT_LOCAL_NAME "import"
+
+#define XSD_NAME "name"
+#define XSD_TARGETNAMESPACE "targetNamespace"
+#define XMLNS_AXIS2WRAPPED "xmlns:axis2wrapped"
+#define AXIS2WRAPPED "axis2wrapped"
+#define XSD_TYPE "type"
+#define XSD_REF "ref"
+#define BOUND_INTERFACE_NAME "BoundInterface"
+#define XSD_ELEMENT_FORM_DEFAULT "elementFormDefault"
+#define XSD_UNQUALIFIED "unqualified"
+
+/**
+ * @brief Wsdl pump struct impl
+ * Wsdl Pump
+ */
+typedef struct axis2_wsdl_pump_impl
+{
+ axis2_wsdl_pump_t wsdl_pump;
+ int nsCount=0;
+ axis2_wsdl_desc_t *wom_def;
+ Definition wsdl4c_parsed_def;
+ axis2_hash_t * declared_nameSpaces;
+ axis2_hash_t *resolved_rpc_wrapped_element_map;
+
+} axis2_wsdl_pump_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(wsdl_pump) \
+ ((axis2_wsdl_pump_impl_t *)wsdl_pump)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL
+ axis2_wsdl_pump_free (axis2_wsdl_pump_t *wsdl_pump,
+ axis2_env_t **env);
+
+
+/************************** End of function prototypes ************************/
+
+axis2_wsdl_pump_t * AXIS2_CALL
+axis2_wsdl_pump_create (axis2_env_t **env)
+{
+ axis2_wsdl_pump_impl_t *wsdl_pump_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, NULL);
+
+ wsdl_pump_impl = (axis2_wsdl_pump_impl_t *) AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_wsdl_pump_impl_t));
+
+ if(NULL == wsdl_pump_impl)
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ wsdl_pump_impl->wsdl_pump.ops = NULL;
+
+ wsdl_pump_impl->wsdl_pump.ops =
+ AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_wsdl_pump_ops_t));
+ if(NULL == wsdl_pump_impl->wsdl_pump.ops)
+ {
+ axis2_wsdl_pump_free(&(wsdl_pump_impl->wsdl_pump), env);
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ wsdl_pump_impl->wsdl_pump.ops->free = axis2_wsdl_pump_free;
+
+ return &(wsdl_pump_impl->wsdl_pump);
+}
- private WSDLComponentFactory wsdlComponentFactory;
+/***************************Function implementation****************************/
- private Map declaredNameSpaces=null;
+axis2_status_t AXIS2_CALL
+axis2_wsdl_pump_free (axis2_wsdl_pump_t *wsdl_pump,
+ axis2_env_t **env)
+{
+ axis2_wsdl_pump_impl_t *pump_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
+
+ if(NULL != wsdl_pump->ops)
+ AXIS2_FREE((*env)->allocator, wsdl_pump->ops);
+
+ AXIS2_FREE((*env)->allocator, pump_impl);
+ pump_impl = NULL;
+
+ return AXIS2_SUCCESS;
+}
- private Map resolvedRpcWrappedElementMap = new HashMap();
- private static final String XSD_ELEMENT_FORM_DEFAULT = "elementFormDefault";
- private static final String XSD_UNQUALIFIED = "unqualified";
public WSDLPump(WSDLDescription womDefinition,
Definition wsdl4jParsedDefinition) {
@@ -291,7 +358,7 @@
* @param wsdlInterface
* @param wsdl4jPortType
*/
- // FIXME Evaluate a way of injecting features and priperties with a general
+ // FIXME Evaluate a way of injecting pumps and priperties with a general
// formatted input
private void populateInterfaces(WSDLInterface wsdlInterface,
PortType wsdl4jPortType,
@@ -1360,4 +1427,3 @@
private String getTemporaryNamespacePrefix(){
return "ns"+nsCount++ ;
}
-}
Added: webservices/axis2/trunk/c/test/resources/wsdl/Attachment1.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/Attachment1.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/Attachment1.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/Attachment1.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://attachment1"
+ xmlns:impl="http://attachment1"
+ xmlns:intf="http://attachment1"
+ xmlns:tns2="http://xml.apache.org/xml-soap"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <wsdl:types>
+ <schema elementFormDefault="qualified"
+ targetNamespace="http://attachment1"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:impl="http://attachment1"
+ xmlns:intf="http://attachment1"
+ xmlns:tns2="http://xml.apache.org/xml-soap"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://xml.apache.org/xml-soap"/>
+ <element name="put">
+ <complexType>
+ <sequence>
+ <element name="arg1" type="tns2:Image"/>
+ <element name="arg2" type="tns2:PlainText"/>
+ <element name="arg3" type="tns2:Source"/>
+ <element name="arg4" type="tns2:octet-stream"/>
+ <element name="arg5" type="tns2:DataHandler"/>
+ <!-- element name="arg6" type="tns2:MimeMultipart"/ -->
+ <element name="arg7" nillable="true" type="tns2:DataHandler"/>
+ <element name="arg8" nillable="true" type="tns2:DataHandler"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="putResponse">
+ <complexType>
+ <sequence>
+ <element name="putReturn" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="putRequest">
+ <wsdl:part element="impl:put" name="parameters"/>
+ </wsdl:message>
+ <wsdl:message name="putResponse">
+ <wsdl:part element="impl:putResponse" name="parameters"/>
+ </wsdl:message>
+
+ <wsdl:portType name="AttachmentBindingImpl">
+ <wsdl:operation name="put">
+ <wsdl:input message="impl:putRequest" name="putRequest"/>
+ <wsdl:output message="impl:putResponse" name="putResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="Attachment1SoapBinding" type="impl:AttachmentBindingImpl">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="put">
+ <wsdlsoap:operation soapAction=""/>
+ <wsdl:input name="putRequest">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="putResponse">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="AttachmentBindingImplService">
+ <wsdl:port binding="impl:Attachment1SoapBinding" name="Attachment1">
+ <wsdlsoap:address location="http://localhost:9080/Attachment1/services/Attachment1"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: webservices/axis2/trunk/c/test/resources/wsdl/AttachmentService.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/AttachmentService.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/AttachmentService.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/AttachmentService.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://attachment.test.org" xmlns:impl="http://attachment.test.org" xmlns:intf="http://attachment.test.org" xmlns:tns2="http://xml.apache.org/xml-soap" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://attachment.test.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://attachment.test.org" xmlns:intf="http://attachment.test.org" xmlns:tns2="http://xml.apache.org/xml-soap" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://xml.apache.org/xml-soap"/>
+ <element name="multiAttachment">
+ <complexType>
+ <sequence>
+ <element name="arg_0_0" nillable="true" type="tns2:DataHandler"/>
+ <element name="arg_1_0" nillable="true" type="tns2:DataHandler"/>
+ <element name="arg_2_0" nillable="true" type="tns2:Image"/>
+ <element name="arg_3_0" nillable="true" type="tns2:DataHandler"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="multiAttachmentResponse">
+ <complexType>
+ <sequence>
+ <element maxOccurs="unbounded" minOccurs="0" name="multiAttachmentReturn" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="nillableAttachment">
+ <complexType>
+ <sequence>
+ <element name="arg_0_1" nillable="true" type="tns2:DataHandler"/>
+ <element name="arg_1_1" nillable="true" type="tns2:Image"/>
+ <element name="arg_2_1" nillable="true" type="tns2:Source"/>
+ <element name="arg_3_1" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="nillableAttachmentResponse">
+ <complexType>
+ <sequence>
+ <element name="nillableAttachmentReturn" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="multiAttachmentResponse">
+
+ <wsdl:part element="impl:multiAttachmentResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="nillableAttachmentRequest">
+
+ <wsdl:part element="impl:nillableAttachment" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="nillableAttachmentResponse">
+
+ <wsdl:part element="impl:nillableAttachmentResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="multiAttachmentRequest">
+
+ <wsdl:part element="impl:multiAttachment" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="AttachmentService">
+
+ <wsdl:operation name="multiAttachment">
+
+ <wsdl:input message="impl:multiAttachmentRequest" name="multiAttachmentRequest"/>
+
+ <wsdl:output message="impl:multiAttachmentResponse" name="multiAttachmentResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="nillableAttachment">
+
+ <wsdl:input message="impl:nillableAttachmentRequest" name="nillableAttachmentRequest"/>
+
+ <wsdl:output message="impl:nillableAttachmentResponse" name="nillableAttachmentResponse"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="AttachmentServiceSoapBinding" type="impl:AttachmentService">
+
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="multiAttachment">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="multiAttachmentRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="multiAttachmentResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="nillableAttachment">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="nillableAttachmentRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="nillableAttachmentResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="AttachmentServiceService">
+
+ <wsdl:port binding="impl:AttachmentServiceSoapBinding" name="AttachmentService">
+
+ <wsdlsoap:address location="http://localhost:9080/AttachmentService/services/AttachmentService"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Added: webservices/axis2/trunk/c/test/resources/wsdl/AxisBench.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/AxisBench.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/AxisBench.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/AxisBench.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2003-2004 The Apache Software Foundation. -->
+<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved -->
+<!-- -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
+<!-- you may not use this file except in compliance with the License. -->
+<!-- You may obtain a copy of the License at -->
+<!-- -->
+<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
+<!-- -->
+<!-- Unless required by applicable law or agreed to in writing, software -->
+<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
+<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
+<!-- See the License for the specific language governing permissions and -->
+<!-- limitations under the License. -->
+
+<wsdl:definitions
+ targetNamespace="http://axisbench.test.apache.org"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:intf="http://axisbench.test.apache.org"
+ xmlns:impl="http://axisbench.test.apache.org"
+ xmlns:apachesoap="http://xml.apache.org/xml-soap"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <schema
+ elementFormDefault="qualified"
+ targetNamespace="http://axisbench.test.apache.org"
+ xmlns="http://www.w3.org/2001/XMLSchema">
+ <complexType name="BenchBasicDataType">
+ <sequence>
+ <element name="StringType" type="xsd:string"/>
+ <element name="IntType" type="xsd:int"/>
+ <element name="BooleanType" type="xsd:boolean"/>
+ <element name="DoubleType" type="xsd:double"/>
+ <element name="DateTimeType" type="xsd:dateTime"/>
+ <element name="DateType" type="xsd:date"/>
+ <element name="TimeType" type="xsd:time"/>
+ <element name="Base64BinaryType" type="xsd:base64Binary"/>
+ <element name="ByteType" type="xsd:byte"/>
+ <element name="DecimalType" type="xsd:decimal"/>
+ <element name="FloatType" type="xsd:float"/>
+ <element name="HexBinary" type="xsd:hexBinary"/>
+ <element name="IntegerType" type="xsd:integer"/>
+ <element name="LongType" type="xsd:long"/>
+ <element name="QNameType" type="xsd:QName"/>
+ <element name="ShortType" type="xsd:short"/>
+
+ <!-- Not tested yet
+ -->
+
+ </sequence>
+ </complexType>
+ <complexType name="BenchDataType">
+ <sequence>
+ <element name="count" type="xsd:int"/>
+ <element maxOccurs="unbounded" name="infos" type="impl:BenchBasicDataType"/>
+ </sequence>
+ </complexType>
+
+ <element name="doBenchRequest">
+ <complexType>
+ <sequence>
+ <element name="doBench" type="impl:BenchDataType"/>
+ </sequence>
+ </complexType>
+ </element>
+
+ <element name="doBenchRequestResponse">
+ <complexType>
+ <sequence>
+ <element name="doBench" nillable="true" type="impl:BenchDataType"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="doBenchRequest">
+ <wsdl:part name="parameters" element="intf:doBenchRequest"/>
+ </wsdl:message>
+ <wsdl:message name="doBenchResponse">
+ <wsdl:part name="parameters" element="intf:doBenchRequestResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="AxisBench">
+ <wsdl:operation name="doBenchRequest">
+ <wsdl:input name="doBenchRequest" message="intf:doBenchRequest"/>
+ <wsdl:output name="doBenchResponse" message="intf:doBenchResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="AxisBenchSoapBinding" type="intf:AxisBench">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="doBenchRequest">
+ <wsdlsoap:operation soapAction=""/>
+ <wsdl:input name="doBenchRequest">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="doBenchResponse">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="AxisBenchSoapSvc">
+ <wsdl:port name="AxisBenchSoapImpl" binding="intf:AxisBenchSoapBinding">
+ <wsdlsoap:address location="http://localhost:9080/AxisBench/services/AxisBenchSoapImpl"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: webservices/axis2/trunk/c/test/resources/wsdl/BasicAllTest.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/BasicAllTest.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/BasicAllTest.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/BasicAllTest.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/" xmlns:s3="http://soapinterop.org/echoheader/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-envelope" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s2="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/">
+ <s:import namespace="http://soapinterop.org/xsd" />
+ <s:import namespace="http://soapinterop.org/echoheader/" />
+
+
+
+ <s:element name="echoAll">
+ <s:complexType>
+ <s:sequence>
+ <s:element name="inputAll" type="s1:AllComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoAllResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element name="return" type="s1:AllComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+
+
+
+ </s:schema>
+
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:import namespace="http://soapinterop.org/" />
+
+ <s:complexType name="AllComplexType">
+ <s:all>
+ <s:element minOccurs="0" name="IntValue" type="s:int" />
+ <s:element minOccurs="0" name="StringValue" type="s:string" />
+ </s:all>
+ </s:complexType>
+ </s:schema>
+
+ </types>
+
+
+
+ <message name="echoAllSoapIn">
+ <part name="parameters" element="s0:echoAll" />
+ </message>
+ <message name="echoAllSoapOut">
+ <part name="parameters" element="s0:echoAllResponse" />
+ </message>
+
+ <portType name="AllTestSoap">
+
+
+ <operation name="echoAll">
+ <input message="s0:echoAllSoapIn" />
+ <output message="s0:echoAllSoapOut" />
+ </operation>
+
+ </portType>
+
+
+ <binding name="AllTestSoap" type="s0:AllTestSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+ <operation name="echoAll">
+ <soap:operation soapAction="SimpleAllTest#echoAll" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<binding name="AllTestSoap12" type="s0:AllTestSoap">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+
+ <operation name="echoAll">
+ <soap12:operation soapAction="All#echoAll" style="document" />
+ <input>
+ <soap12:body use="literal" />
+ </input>
+ <output>
+ <soap12:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<service name="AllTest">
+ <documentation>These operations implement DOC/LIT SOAP operations, for interop testing. Please email johnko@microsoft.com with any questions/coments.</documentation>
+ <port name="AllTestSoap" binding="s0:AllTestSoap">
+ <soap:address location="http://localhost:90/axis/All" />
+ </port>
+ <port name="AllTestSoap12" binding="s0:AllTestSoap12">
+ <soap12:address location="http://localhost:90/axis/All" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Added: webservices/axis2/trunk/c/test/resources/wsdl/BasicChoice.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/BasicChoice.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/BasicChoice.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/BasicChoice.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/" xmlns:s3="http://soapinterop.org/echoheader/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-envelope" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s2="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/">
+ <s:import namespace="http://soapinterop.org/xsd" />
+ <s:import namespace="http://soapinterop.org/echoheader/" />
+
+
+
+ <s:element name="echoChoice">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="inputChoice" type="s1:ChoiceComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoChoiceResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="return" type="s1:ChoiceComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+
+
+
+ </s:schema>
+
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:import namespace="http://soapinterop.org/" />
+
+ <s:complexType name="ChoiceComplexType">
+ <s:sequence>
+ <s:choice minOccurs="1" maxOccurs="1">
+ <s:element minOccurs="0" maxOccurs="1" name="name0" type="s:string" />
+ <s:element minOccurs="0" maxOccurs="1" name="name1" type="s:string" />
+ </s:choice>
+ </s:sequence>
+ </s:complexType>
+ </s:schema>
+
+ </types>
+
+
+
+ <message name="echoChoiceSoapIn">
+ <part name="parameters" element="s0:echoChoice" />
+ </message>
+ <message name="echoChoiceSoapOut">
+ <part name="parameters" element="s0:echoChoiceResponse" />
+ </message>
+
+ <portType name="ChoiceTestSoap">
+
+
+ <operation name="echoChoice">
+ <input message="s0:echoChoiceSoapIn" />
+ <output message="s0:echoChoiceSoapOut" />
+ </operation>
+
+ </portType>
+
+
+ <binding name="ChoiceTestSoap" type="s0:ChoiceTestSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+ <operation name="echoChoice">
+ <soap:operation soapAction="Choice#echoChoice" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<binding name="ChoiceTestSoap12" type="s0:ChoiceTestSoap">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+
+ <operation name="echoChoice">
+ <soap12:operation soapAction="Choice#echoChoice" style="document" />
+ <input>
+ <soap12:body use="literal" />
+ </input>
+ <output>
+ <soap12:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<service name="ChoiceTest">
+ <documentation>These operations implement DOC/LIT SOAP operations, for interop testing. Please email johnko@microsoft.com with any questions/coments.</documentation>
+ <port name="ChoiceTestSoap" binding="s0:ChoiceTestSoap">
+ <soap:address location="http://localhost:90/axis/Choice" />
+ </port>
+ <port name="ChoiceTestSoap12" binding="s0:ChoiceTestSoap12">
+ <soap12:address location="http://localhost:90/axis/Choice" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Added: webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2003-2004 The Apache Software Foundation. -->
+<!-- -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
+<!-- you may not use this file except in compliance with the License. -->
+<!-- You may obtain a copy of the License at -->
+<!-- -->
+<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
+<!-- -->
+<!-- Unless required by applicable law or agreed to in writing, software -->
+<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
+<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
+<!-- See the License for the specific language governing permissions and -->
+<!-- limitations under the License. -->
+
+<wsdl:definitions targetNamespace="http://localhost/axis/Calculator"
+xmlns="http://schemas.xmlsoap.org/wsdl/"
+xmlns:apachesoap="http://xml.apache.org/xml-soap"
+xmlns:impl="http://localhost/axis/Calculator"
+xmlns:intf="http://localhost/axis/Calculator"
+xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:message name="addRequest">
+ <wsdl:part name="in0" type="xsd:int"/>
+ <wsdl:part name="in1" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="addResponse">
+ <wsdl:part name="addReturn" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="subResponse">
+ <wsdl:part name="subReturn" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="subRequest">
+ <wsdl:part name="in0" type="xsd:int"/>
+ <wsdl:part name="in1" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="mulRequest">
+ <wsdl:part name="in0" type="xsd:int"/>
+ <wsdl:part name="in1" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="mulResponse">
+ <wsdl:part name="addReturn" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="divRequest">
+ <wsdl:part name="in0" type="xsd:int"/>
+ <wsdl:part name="in1" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:message name="divResponse">
+ <wsdl:part name="addReturn" type="xsd:int"/>
+ </wsdl:message>
+ <wsdl:portType name="Calculator">
+ <wsdl:operation name="add" parameterOrder="in0 in1">
+ <wsdl:input message="intf:addRequest" name="addRequest"/>
+ <wsdl:output message="intf:addResponse" name="addResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="sub" parameterOrder="in0 in1">
+ <wsdl:input message="intf:subRequest" name="subRequest"/>
+ <wsdl:output message="intf:subResponse" name="subResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="mul" parameterOrder="in0 in1">
+ <wsdl:input message="intf:mulRequest" name="mulRequest"/>
+ <wsdl:output message="intf:mulResponse" name="mulResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="div" parameterOrder="in0 in1">
+ <wsdl:input message="intf:divRequest" name="divRequest"/>
+ <wsdl:output message="intf:divResponse" name="divResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CalculatorSoapBinding" type="intf:Calculator">
+ <wsdlsoap:binding style="rpc"
+ transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="add">
+ <wsdlsoap:operation soapAction="Calculator#add"/>
+ <wsdl:input name="addRequest">
+ <wsdlsoap:body
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:input>
+ <wsdl:output name="addResponse">
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="sub">
+ <wsdlsoap:operation soapAction="Calculator#sub"/>
+ <wsdl:input name="subRequest">
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:input>
+ <wsdl:output name="subResponse">
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="mul">
+ <wsdlsoap:operation soapAction="Calculator#mul"/>
+ <wsdl:input name="mulRequest">
+ <wsdlsoap:body
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:input>
+ <wsdl:output name="mulResponse">
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="div">
+ <wsdlsoap:operation soapAction="Calculator#div"/>
+ <wsdl:input name="divRequest">
+ <wsdlsoap:body
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:input>
+ <wsdl:output name="divResponse">
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ namespace="http://localhost/axis/Calculator"
+ use="encoded"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="Calculator">
+ <wsdl:port binding="intf:CalculatorSoapBinding" name="Calculator">
+ <wsdlsoap:address location="http://localhost/axis/Calculator"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: webservices/axis2/trunk/c/test/resources/wsdl/CalculatorDoc.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/CalculatorDoc.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/CalculatorDoc.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/CalculatorDoc.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,255 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2003-2004 The Apache Software Foundation. -->
+<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved -->
+<!-- -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
+<!-- you may not use this file except in compliance with the License. -->
+<!-- You may obtain a copy of the License at -->
+<!-- -->
+<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
+<!-- -->
+<!-- Unless required by applicable law or agreed to in writing, software -->
+<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
+<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
+<!-- See the License for the specific language governing permissions and -->
+<!-- limitations under the License. -->
+
+<wsdl:definitions targetNamespace="http://localhost/axis/Calculator" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost/axis/Calculator" xmlns:intf="http://localhost/axis/Calculator" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://localhost/axis/Calculator" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost/axis/Calculator" xmlns:intf="http://localhost/axis/Calculator" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <element name="add">
+ <complexType>
+ <sequence>
+ <element name="arg_0_0" type="xsd:int"/>
+ <element name="arg_1_0" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="addResponse">
+ <complexType>
+ <sequence>
+ <element name="addReturn" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="sub">
+ <complexType>
+ <sequence>
+ <element name="arg_0_1" type="xsd:int"/>
+ <element name="arg_1_1" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="subResponse">
+ <complexType>
+ <sequence>
+ <element name="subReturn" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="mul">
+ <complexType>
+ <sequence>
+ <element name="arg_0_2" type="xsd:int"/>
+ <element name="arg_1_2" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="mulResponse">
+ <complexType>
+ <sequence>
+ <element name="mulReturn" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="div">
+ <complexType>
+ <sequence>
+ <element name="arg_0_3" type="xsd:int"/>
+ <element name="arg_1_3" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="divResponse">
+ <complexType>
+ <sequence>
+ <element name="divReturn" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="subResponse">
+
+ <wsdl:part element="impl:subResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="mulResponse">
+
+ <wsdl:part element="impl:mulResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="subRequest">
+
+ <wsdl:part element="impl:sub" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="divRequest">
+
+ <wsdl:part element="impl:div" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="divResponse">
+
+ <wsdl:part element="impl:divResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="mulRequest">
+
+ <wsdl:part element="impl:mul" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addResponse">
+
+ <wsdl:part element="impl:addResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addRequest">
+
+ <wsdl:part element="impl:add" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="Calculator">
+
+ <wsdl:operation name="add">
+
+ <wsdl:input message="impl:addRequest" name="addRequest"/>
+
+ <wsdl:output message="impl:addResponse" name="addResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="sub">
+
+ <wsdl:input message="impl:subRequest" name="subRequest"/>
+
+ <wsdl:output message="impl:subResponse" name="subResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="mul">
+
+ <wsdl:input message="impl:mulRequest" name="mulRequest"/>
+
+ <wsdl:output message="impl:mulResponse" name="mulResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="div">
+
+ <wsdl:input message="impl:divRequest" name="divRequest"/>
+
+ <wsdl:output message="impl:divResponse" name="divResponse"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="CalculatorSoapBinding" type="impl:Calculator">
+
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="add">
+
+ <wsdlsoap:operation soapAction="Calculator#add"/>
+
+ <wsdl:input name="addRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="sub">
+
+ <wsdlsoap:operation soapAction="Calculator#sub"/>
+
+ <wsdl:input name="subRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="subResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="mul">
+
+ <wsdlsoap:operation soapAction="Calculator#mul"/>
+
+ <wsdl:input name="mulRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="mulResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="div">
+
+ <wsdlsoap:operation soapAction="Calculator#div"/>
+
+ <wsdl:input name="divRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="divResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="Calculator">
+
+ <wsdl:port binding="impl:CalculatorSoapBinding" name="Calculator">
+
+ <wsdlsoap:address location="http://localhost/axis/Calculator"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Added: webservices/axis2/trunk/c/test/resources/wsdl/Choice.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/Choice.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/Choice.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/Choice.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/" xmlns:s3="http://soapinterop.org/echoheader/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-envelope" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s2="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/">
+ <s:import namespace="http://soapinterop.org/xsd" />
+ <s:import namespace="http://soapinterop.org/echoheader/" />
+
+
+
+ <s:element name="echoChoice">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="inputChoice" type="s1:ChoiceComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoChoiceResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="return" type="s1:ChoiceComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+
+
+
+ </s:schema>
+
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:import namespace="http://soapinterop.org/" />
+
+ <s:complexType name="ChoiceComplexType">
+ <s:sequence>
+ <s:choice minOccurs="1" maxOccurs="1">
+ <s:element minOccurs="0" maxOccurs="1" name="name0" type="s:string" />
+ <s:element minOccurs="0" maxOccurs="1" name="name1" type="s:string" />
+ </s:choice>
+ </s:sequence>
+ </s:complexType>
+ </s:schema>
+
+ </types>
+
+
+
+ <message name="echoChoiceSoapIn">
+ <part name="parameters" element="s0:echoChoice" />
+ </message>
+ <message name="echoChoiceSoapOut">
+ <part name="parameters" element="s0:echoChoiceResponse" />
+ </message>
+
+ <portType name="ChoiceTestSoap">
+
+
+ <operation name="echoChoice">
+ <input message="s0:echoChoiceSoapIn" />
+ <output message="s0:echoChoiceSoapOut" />
+ </operation>
+
+ </portType>
+
+
+ <binding name="ChoiceTestSoap" type="s0:ChoiceTestSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+ <operation name="echoChoice">
+ <soap:operation soapAction="Choice#echoChoice" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<binding name="ChoiceTestSoap12" type="s0:ChoiceTestSoap">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+
+ <operation name="echoChoice">
+ <soap12:operation soapAction="Choice#echoChoice" style="document" />
+ <input>
+ <soap12:body use="literal" />
+ </input>
+ <output>
+ <soap12:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<service name="ChoiceTest">
+ <documentation>These operations implement DOC/LIT SOAP operations, for interop testing. Please email johnko@microsoft.com with any questions/coments.</documentation>
+ <port name="ChoiceTestSoap" binding="s0:ChoiceTestSoap">
+ <soap:address location="http://localhost:90/axis/Choice" />
+ </port>
+ <port name="ChoiceTestSoap12" binding="s0:ChoiceTestSoap12">
+ <soap12:address location="http://localhost:90/axis/Choice" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Added: webservices/axis2/trunk/c/test/resources/wsdl/CombinedAllTest.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/CombinedAllTest.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/CombinedAllTest.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/CombinedAllTest.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/" xmlns:s3="http://soapinterop.org/echoheader/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-envelope" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s2="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/">
+ <s:import namespace="http://soapinterop.org/xsd" />
+ <s:import namespace="http://soapinterop.org/echoheader/" />
+
+
+
+ <s:element name="echoAll">
+ <s:complexType>
+ <s:sequence>
+ <s:element name="inputAll" type="s1:AllComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoAllResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element name="return" type="s1:AllComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+
+
+
+ </s:schema>
+
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:import namespace="http://soapinterop.org/" />
+
+ <s:complexType name="AllComplexType">
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="NonAllIntValue" type="s:int" />
+ </s:sequence>
+ <s:all>
+ <s:element name="Value0" type="s:int" />
+ <s:element minOccurs="0" name="Value1" type="s:int" />
+ <s:element minOccurs="0" name="Value2" type="s:string" />
+ </s:all>
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="NonAllStringValue" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ </s:schema>
+
+ </types>
+
+
+
+ <message name="echoAllSoapIn">
+ <part name="parameters" element="s0:echoAll" />
+ </message>
+ <message name="echoAllSoapOut">
+ <part name="parameters" element="s0:echoAllResponse" />
+ </message>
+
+ <portType name="AllTestSoap">
+
+
+ <operation name="echoAll">
+ <input message="s0:echoAllSoapIn" />
+ <output message="s0:echoAllSoapOut" />
+ </operation>
+
+ </portType>
+
+
+ <binding name="AllTestSoap" type="s0:AllTestSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+ <operation name="echoAll">
+ <soap:operation soapAction="SimpleAllTest#echoAll" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<binding name="AllTestSoap12" type="s0:AllTestSoap">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+
+ <operation name="echoAll">
+ <soap12:operation soapAction="All#echoAll" style="document" />
+ <input>
+ <soap12:body use="literal" />
+ </input>
+ <output>
+ <soap12:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<service name="AllTest">
+ <documentation>These operations implement DOC/LIT SOAP operations, for interop testing. Please email johnko@microsoft.com with any questions/coments.</documentation>
+ <port name="AllTestSoap" binding="s0:AllTestSoap">
+ <soap:address location="http://localhost:90/axis/All" />
+ </port>
+ <port name="AllTestSoap12" binding="s0:AllTestSoap12">
+ <soap12:address location="http://localhost:90/axis/All" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Added: webservices/axis2/trunk/c/test/resources/wsdl/CombinedChoice.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/wsdl/CombinedChoice.wsdl?rev=387111&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/wsdl/CombinedChoice.wsdl (added)
+++ webservices/axis2/trunk/c/test/resources/wsdl/CombinedChoice.wsdl Sun Mar 19 18:26:16 2006
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions xmlns:s1="http://soapinterop.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://soapinterop.org/" xmlns:s3="http://soapinterop.org/echoheader/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-envelope" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s2="http://soapinterop.org" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://soapinterop.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/">
+ <s:import namespace="http://soapinterop.org/xsd" />
+ <s:import namespace="http://soapinterop.org/echoheader/" />
+
+
+
+ <s:element name="echoChoice">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="inputChoice" type="s1:ChoiceComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="echoChoiceResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1" name="return" type="s1:ChoiceComplexType" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+
+
+
+ </s:schema>
+
+ <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd">
+ <s:import namespace="http://soapinterop.org/" />
+
+ <s:complexType name="ChoiceComplexType">
+ <s:sequence>
+
+ <s:element minOccurs="1" maxOccurs="1" name="NonChoiceIntValue" type="s:int" />
+
+ <s:choice minOccurs="1" maxOccurs="1">
+ <s:element minOccurs="0" maxOccurs="1" name="IntValue" type="s:int" />
+ <s:element minOccurs="0" maxOccurs="1" name="StringValue" type="s:string" />
+ </s:choice>
+
+ <s:element minOccurs="1" maxOccurs="1" name="NonChoiceStringValue" type="s:string" />
+
+ </s:sequence>
+ </s:complexType>
+ </s:schema>
+
+ </types>
+
+
+
+ <message name="echoChoiceSoapIn">
+ <part name="parameters" element="s0:echoChoice" />
+ </message>
+ <message name="echoChoiceSoapOut">
+ <part name="parameters" element="s0:echoChoiceResponse" />
+ </message>
+
+ <portType name="ChoiceTestSoap">
+
+
+ <operation name="echoChoice">
+ <input message="s0:echoChoiceSoapIn" />
+ <output message="s0:echoChoiceSoapOut" />
+ </operation>
+
+ </portType>
+
+
+ <binding name="ChoiceTestSoap" type="s0:ChoiceTestSoap">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+ <operation name="echoChoice">
+ <soap:operation soapAction="SimpleChoiceTest#echoChoice" style="document" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<binding name="ChoiceTestSoap12" type="s0:ChoiceTestSoap">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+
+
+ <operation name="echoChoice">
+ <soap12:operation soapAction="Choice#echoChoice" style="document" />
+ <input>
+ <soap12:body use="literal" />
+ </input>
+ <output>
+ <soap12:body use="literal" />
+ </output>
+ </operation>
+
+ </binding>
+
+<service name="ChoiceTest">
+ <documentation>These operations implement DOC/LIT SOAP operations, for interop testing. Please email johnko@microsoft.com with any questions/coments.</documentation>
+ <port name="ChoiceTestSoap" binding="s0:ChoiceTestSoap">
+ <soap:address location="http://localhost:90/axis/Choice" />
+ </port>
+ <port name="ChoiceTestSoap12" binding="s0:ChoiceTestSoap12">
+ <soap12:address location="http://localhost:90/axis/Choice" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file