This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes Axis Fault: Attempted to write duplicate schema element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Axis Fault: Attempted to write duplicate schema element" Watch "Axis Fault: Attempted to write duplicate schema element" New topic
Author

Axis Fault: Attempted to write duplicate schema element

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

I registered a web service with <service> element in server-config.wsdd and when I try to access the wsdl file for this service I am getting below server error. I am using WSAD 5.1.2 and WAS 5.0 Test Environment available in WSAD. What am I missing here

faultDetail:
{http://xml.apache.org/axis/}stackTrace:Attempted to write duplicate schema element :
{http://www.dummy.com/schemas/myc/cardservice}getEnrolledCards





My complete server-config.wsdd file is

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
<parameter name="adminPassword" value="admin"/>
<parameter name="attachments.Directory" value="/home/dennis/tools/jakarta-tomcat-5.0.25/webapps/axis/WEB-INF/attachments"/>
<parameter name="disablePrettyXML" value="true"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="sendXMLDeclaration" value="true"/>
<parameter name="axis.development.system" value="true"/>
<requestFlow>
<handler type="java rg.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java rg.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>
<handler name="LocalResponder" type="java rg.apache.axis.transport.local.LocalResponder"/>
<handler name="URLMapper" type="java rg.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate" type="java rg.apache.axis.handlers.SimpleAuthenticationHandler"/>
<service name="CardService" provider="java:EJB" style="wrapped" use="literal">
<parameter name="beanJndiName" value="ejb/Card" />
<parameter name="homeInterfaceName" value="com.mycomp.as.card.ejb.CardServiceHome" />
<parameter name="remoteInterfaceName" value="com.mycomp.as.card.ejb.CardService" />
<parameter name="allowedMethods" value="getCard,getCardList,getConsistentAccountRepresentationMap,getControlAccountHierarchy,getControlAccountProfile,getCorporateCard,getEnrolledCardAccountNumbers,getEnrolledCards" />
<parameter name="className" value="com.mycomp.as.card.ejb.CardServiceBean" />
<parameter name="jndiURL" value="jnp://localhost:1099" />
<parameter name="jndiContextClass" value="org.jnp.interfaces.NamingContextFactory" />
<parameter name="wsdlPortType" value="CardServiceInterface"/>
<parameter name="wsdlServicePort" value="CardService"/>
<parameter name="wsdlTargetNamespace" value="http://ws.mycomp.com/wsdl/cardservice"/>
<namespace>http://www.mycomp.com/schemas/myca/cardservice</namespace>
</service>
<service name="CardJibx" provider="java:EJB" style="wrapped" use="literal">
<parameter name="beanJndiName" value="ejb/Card" />
<parameter name="homeInterfaceName" value="com.mycomp.as.card.ejb.CardServiceHome" />
<parameter name="remoteInterfaceName" value="com.mycomp.as.card.ejb.CardService" />
<parameter name="allowedMethods" value="getCard,getCardList,getConsistentAccountRepresentationMap,getControlAccountHierarchy,getControlAccountProfile,getCorporateCard,getEnrolledCardAccountNumbers,getEnrolledCards" />
<parameter name="className" value="com.mycomp.as.card.ejb.CardServiceBean" />
<parameter name="jndiURL" value="jnp://localhost:1099" />
<parameter name="jndiContextClass" value="org.jnp.interfaces.NamingContextFactory" />
<parameter name="wsdlPortType" value="CardServiceInterface"/>
<parameter name="wsdlServicePort" value="CardService"/>
<parameter name="wsdlTargetNamespace" value="http://ws.mycomp.com/wsdl/cardservice"/>
<namespace>http://ws.mycomp.com/wsdl/cardservice</namespace>
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:vector"<br /> type="java:java.util.Vector"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:card"<br /> type="java:com.mycomp.as.card.shr.valuebean.Card"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:control-account-profile"<br /> type="java:com.mycomp.as.card.shr.valuebean.ControlAccountProfile"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:list"<br /> type="java:java.util.List"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:audit-map"<br /> type="java:com.mycomp.as.cs.shr.AuditMap"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:consistent-account-representation-map"<br /> type="java:com.mycomp.as.card.shr.valuebean.ConsistentAccountRepresentationMap"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:card-service"<br /> type="java:com.mycomp.as.card.shr.valuebean.CardList"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:control-account-hierarchy"<br /> type="java:com.mycomp.as.card.shr.valuebean.ControlAccountHierarchy"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:security-token"<br /> type="java:com.mycomp.wss.shr.authorization.token.SecurityToken"<br /> serializer="com.myp.wsaf.axis.jibx.JibxSerializerFactory"<br /> deserializer="com.myp.wsaf.axis.jibx.JibxDeserializerFactory"<br /> encodingStyle=""<br /> />
<typeMapping<br /> xmlns:ns="http://www.mycomp.com/schemas/myca/cardservice"<br /> qname="ns:CardServiceException"<br /> type="java:com.mycomp.as.card.shr.exception.CardServiceException"<br /> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br /> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br /> encodingStyle=""<br /> />
</service>
<service name="AdminService" provider="java:MSG">
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
</service>
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
<transport name="http">
<requestFlow>
<handler type="URLMapper"/>
<handler type="java rg.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
<parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
<parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
</transport>
<transport name="local">
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
</deployment>


RR Kumaran
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis Fault: Attempted to write duplicate schema element
 
Similar Threads
Axis Fault: Attempted to write duplicate schema element
How to specify the tag name to start with capital letter in Axis webservice
Axis + CGLIB = BeanSerializerFactory problems
NullPointerException returned from webservice
beanMapping, typeMapping in Axis 1 (1.4) in server-config.wsdd generates complexType in wsdl