• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Axis Fault: Attempted to write duplicate schema element

 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic