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 "Alex Grivnin (JIRA)" <ax...@ws.apache.org> on 2005/10/26 17:59:56 UTC

[jira] Created: (AXIS-2272) Duplicated operation names

Duplicated operation names
--------------------------

         Key: AXIS-2272
         URL: http://issues.apache.org/jira/browse/AXIS-2272
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2.1    
 Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
OS - Windows server 2003
Java - java full version "1.4.2_07-b05"
Client - Macromedia flex running in MS IE 6.0


    Reporter: Alex Grivnin


Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.

This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 

Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.

At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).

Configuration files:
--------------------------

 ------- WSDD fragment ----------

	<service name="filtersWS" provider="Handler" style="java:RPC">
		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
		<parameter name="springBean" value="filtersWS"/>
		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
	</service>

 ------- End of WSDD fragment ----------

 ------- Spring bean context -------------
	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
		<property name="filterDAO">
			<ref bean="filterDAO"/>
		</property>
		<property name="viewDAO">
			<ref bean="viewDAO"/>
		</property>
		<property name="userDAO">
			<ref bean="userDAO"/>
		</property>
	</bean>

 ------- End of Spring bean context -------------


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Jason Weiss (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360597 ] 

Jason Weiss commented on AXIS-2272:
-----------------------------------

Tom,

Yes, WSDL 1.1 supports overloaded operations, however; as you can see in my pasted Java code- I don't have an overloaded operation.  I have 1 method.  1 Method that results in WSDL that says I have *two* insert methods.  Clearly, a bug.  

package com.cynergysystems.training;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;

public class IdeaImpl
{
	
	public void insert(IdeaBean bean) throws SQLException
	{
		try
		{
			Context ctxt = new InitialContext();
			DataSource ds = (DataSource) ctxt.lookup("java:comp/env/jdbc/Cynergy");
			Connection conn = ds.getConnection();
			conn.setAutoCommit(true);
			
	   		PreparedStatement pstmt = conn.prepareStatement("insert into training_idea values (null,?,?,?)");
	   		pstmt.setInt(1, bean.getCategoryId());
	   		pstmt.setString(2, bean.getTopic());
	   		pstmt.setString(3, bean.getDescription());
	   		pstmt.execute();
	   		
	   		conn.close();
		} catch (SQLException sqle)
		{
			sqle.printStackTrace();
			throw sqle;
		} catch (NamingException e)
		{
			e.printStackTrace();
			throw new SQLException(e.getMessage());
		}
	}

}



> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Jason Weiss (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360554 ] 

Jason Weiss commented on AXIS-2272:
-----------------------------------

We've run into this exact same issue on multiple projects.  We've wasted more time wondering what was going on until we actually looked at the WSDL and saw the operation duplicated in the WSDL.  Please fix this :-)

> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Alex Grivnin (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360710 ] 

Alex Grivnin commented on AXIS-2272:
------------------------------------

Jason,

 Are you using Spring with axis?

 If yes, then it could be that there are simultaneous requests issued to fetch WSDL.  I tried to fix it using static synchronization of method calls:

In the class that fetches beans use lock object for synchronization:

    private static Object lock = new Object();

 in the initServiceDesc() method use 

 synchronized (lock) {
 .....
}

 as well as in the makeNewServiceObject() method.

 I do not have 100% guarantee that this solved the problem, but I did not hear any complains since then.



> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360595 ] 

Tom Jordahl commented on AXIS-2272:
-----------------------------------

Overloaded operations are allowed in WSDL 1.1.  It doesn't sounds like there is a bug here.  If the flex/flash client does not support overloaded operations, then you need to publish your service with unique operation names.


> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360599 ] 

Tom Jordahl commented on AXIS-2272:
-----------------------------------

Fair enough.  A simple test case and patches welcome.


> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Alex Grivnin (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360800 ] 

Alex Grivnin commented on AXIS-2272:
------------------------------------

We also use flex and we had problem with simultaneous flex requests which fetch WSDLs. 
So I had to synchronize code that returns web service implementation classes to axis. It could be that there is a need synchronize axis RPCProvider methods - makeNewServiceObject() and initServiceDesc.

Alex

> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2272) Duplicated operation names

Posted by "Alex Grivnin (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2272?page=all ]

Alex Grivnin updated AXIS-2272:
-------------------------------

    Attachment: axis.zip

Spring source files that install web service beans.

> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Jason Weiss (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12360771 ] 

Jason Weiss commented on AXIS-2272:
-----------------------------------

Alex,

No, we are using Macromedia Flex (Adobe Flex now, I guess!).  We provide the WSDL URL to Flex and it handles the rest- there isn't a hook of sorts for me to tinker with Flex.

Jason


> Duplicated operation names
> --------------------------
>
>          Key: AXIS-2272
>          URL: http://issues.apache.org/jira/browse/AXIS-2272
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>     Reporter: Alex Grivnin
>  Attachments: axis.zip
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2272) Duplicated operation names

Posted by "Jose M. Palomar (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2272?page=comments#action_12450713 ] 
            
Jose M. Palomar commented on AXIS-2272:
---------------------------------------

I have exactly same problem using Flex with Axis 1.4. ¿Any hope someone solve it?.

> Duplicated operation names
> --------------------------
>
>                 Key: AXIS-2272
>                 URL: http://issues.apache.org/jira/browse/AXIS-2272
>             Project: Apache Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.2.1
>         Environment: Server - jakarta tomcat 5.0.28, spring framework 1.2.5
> OS - Windows server 2003
> Java - java full version "1.4.2_07-b05"
> Client - Macromedia flex running in MS IE 6.0
>            Reporter: Alex Grivnin
>         Attachments: axis.zip
>
>
> Axis generates invalid WSDL - more specifically operation names appears to be duplicated in WSDL.
> This happens sporadically and I do not have a specific scenario to reproduce it.  But I'll try to describe the application flow and may be it will provide some hint... 
> Our application runs on a Tomcat server 5.0.28, it uses spring framework 1.2.5 for binding Axis beans which are exposed to the client. See wsdd fragment at the end of the message as well as spring context.
> At some point client (Macromedia flesh) requests wsdl before calling a web service and gets an exception that fetched WSDL is not supported (as it contains duplicated operation names).
> Configuration files:
> --------------------------
>  ------- WSDD fragment ----------
> 	<service name="filtersWS" provider="Handler" style="java:RPC">
> 		<parameter name="handlerClass" value="com.mercury.onyx.client.services.axis.SpringBeanRPCProvider"/>
> 		<parameter name="methodName" value="deleteFilter,getFilter,saveUserFilter,getUserViews,getUserFilterCategories"/>
> 		<parameter name="springBean" value="filtersWS"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterCategoryVO" qname="ns3:FilterCategoryVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterVO" qname="ns3:FilterVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterDefinitionVO" qname="ns3:FilterDefinitionVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.FilterConstraintVO" qname="ns3:FilterConstraintVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.ViewVO" qname="ns3:ViewVO" xmlns:ns3="someNamespace"/>
> 		<beanMapping languageSpecificType="java:com.mercury.onyx.client.services.vo.AttributeVO" qname="ns3:AttributeVO" xmlns:ns3="someNamespace"/>
> 	</service>
>  ------- End of WSDD fragment ----------
>  ------- Spring bean context -------------
> 	<bean id="filtersWS" class="com.mercury.onyx.client.services.webservices.FiltersWS">
> 		<property name="filterDAO">
> 			<ref bean="filterDAO"/>
> 		</property>
> 		<property name="viewDAO">
> 			<ref bean="viewDAO"/>
> 		</property>
> 		<property name="userDAO">
> 			<ref bean="userDAO"/>
> 		</property>
> 	</bean>
>  ------- End of Spring bean context -------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org