You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/09/29 10:26:11 UTC
svn commit: r451158 - in /webservices/axis2/trunk/c/woden:
samples/wsdl10/CalculatorDoc.wsdl src/builder/wsdl10/wsdl10_reader.c
src/wsdl10/wsdl10_interface_msg_ref.c
Author: dinesh
Date: Fri Sep 29 01:26:11 2006
New Revision: 451158
URL: http://svn.apache.org/viewvc?view=rev&rev=451158
Log:
woden wsdl2c patch
Modified:
webservices/axis2/trunk/c/woden/samples/wsdl10/CalculatorDoc.wsdl
webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c
webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_msg_ref.c
Modified: webservices/axis2/trunk/c/woden/samples/wsdl10/CalculatorDoc.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/samples/wsdl10/CalculatorDoc.wsdl?view=diff&rev=451158&r1=451157&r2=451158
==============================================================================
--- webservices/axis2/trunk/c/woden/samples/wsdl10/CalculatorDoc.wsdl (original)
+++ webservices/axis2/trunk/c/woden/samples/wsdl10/CalculatorDoc.wsdl Fri Sep 29 01:26:11 2006
@@ -14,7 +14,7 @@
<!-- 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: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">
Modified: webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c?view=diff&rev=451158&r1=451157&r2=451158
==============================================================================
--- webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c (original)
+++ webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c Fri Sep 29 01:26:11 2006
@@ -2135,8 +2135,28 @@
axis2_char_t *namespc_str = NULL;
axis2_array_list_t *msgs = NULL;
int i = 0, size = 0;
+ axis2_char_t *tmp_msg = NULL;
+
+ /**
+ * NOTE:
+ * msg can contain names like "impl:msg_name"
+ * this time msg_name is in impl prefixed namespace rather than in tns
+ * so the following logic is wrong.
+ */
namespc = WODEN_WSDL10_DESC_ELEMENT_GET_TARGET_NAMESPACE(desc, env);
+
+ /** currently I m removing impl from the msg */
+ for ( tmp_msg = msg; *msg != ':' && *msg != '\0' && *msg != '|'; msg ++ );
+ if( *msg == '\0' || *msg == '|')
+ {
+ msg = tmp_msg;
+ }
+ else
+ {
+ msg++;
+ }
+
namespc_str = AXIS2_URI_TO_STRING(namespc, env, AXIS2_URI_UNP_OMITUSERINFO);
qname = axis2_qname_create(env, msg, namespc_str, NULL);
msg_ref = woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
Modified: webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_msg_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_msg_ref.c?view=diff&rev=451158&r1=451157&r2=451158
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_msg_ref.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_msg_ref.c Fri Sep 29 01:26:11 2006
@@ -504,6 +504,12 @@
axis2_hash_set(interface_msg_ref_impl->methods, "get_direction",
AXIS2_HASH_KEY_STRING,
woden_wsdl10_interface_msg_ref_get_direction);
+ axis2_hash_set(interface_msg_ref_impl->methods, "get_msg",
+ AXIS2_HASH_KEY_STRING,
+ woden_wsdl10_interface_msg_ref_get_msg);
+ axis2_hash_set(interface_msg_ref_impl->methods, "set_msg",
+ AXIS2_HASH_KEY_STRING,
+ woden_wsdl10_interface_msg_ref_set_msg);
axis2_hash_set(interface_msg_ref_impl->methods, "get_msg_content_model",
AXIS2_HASH_KEY_STRING,
woden_wsdl10_interface_msg_ref_get_msg_content_model);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org