You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nitin Mulimani <ni...@ivis.com> on 2004/03/22 21:57:41 UTC
Fault - makeTypeElement()
Hi,
This is the error I am facing when I try to invoke my webservice.
I have axis running as part of my web application. I am attaching the
wsdl file for reference.
I have copied the wsdl file at
http://localhost:8080/jboost/wsdl/WebContext.wsdl. Does axis need a
reference to this wsdl file, or will the server-side classes generate
this wsdl?
I have my server side classes at webapps\jboost\web-inf\classes\server
Though the schema is defined in the wsdl file, I also have a copy at
webapps\jboost\schema.
Any help is greatly appreciated. Thanks for your time.
-- Nitin
Fault - makeTypeElement() was told to create a type
"{http://localhost:8080/jboost/schema/WebContext.xsd}>WebContext>Object>
DomainGrant>RegistryID", with no containing element
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: makeTypeElement() was told to create a type
"{http://localhost:8080/jboost/schema/WebContext.xsd}>WebContext>Object>
DomainGrant>RegistryID", with no containing element
faultActor:
faultNode:
faultDetail:
WDSL excerpts
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by Sean
(Ivis) -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xb="http://localhost:8080/jboost/schema/WebContext.xsd"
xmlns:tns="http://localhost:8080/jboost/wsdl/WebContext.wsdl"
targetNamespace="http://localhost:8080/jboost/wsdl/WebContext.wsdl">
<!-- SHOULD xmlns:xb POINT TO A SCHEMA -->
<types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://localhost:8080/jboost/schema/WebContext.xsd">
<!-- SHOULD targetNamespace POINT TO A SCHEMA -->
<xs:element name="WebContext">
<xs:complexType>
<xs:sequence>
<xs:element name="SystemID"
type="xs:string"/>
<xs:element name="DomainID"
type="xs:string"/>
<xs:element name="PublicUID"
type="xs:string"/>
<xs:element name="PublicUGP"
type="xs:string"/>
<xs:element name="DomainSeed"
type="xs:string"/>
<xs:element name="DomainName"
type="xs:string"/>
<xs:element name="DomainURI"
type="xs:anyURI"/>
<xs:element name="MapPath"
type="xs:string"/>
<xs:element name="DomainStatus"
type="xs:boolean"/>
<xs:element name="DomainUTC"
type="xs:integer"/>
<xs:element name="DomainEmail"
type="xs:string"/>
<xs:element name="MaxRows"
type="xs:byte"/>
<xs:element name="DefaultSkinID"
type="xs:string"/>
<xs:element name="TimeSet"
type="xs:dateTime"/>
<xs:element name="Object"
maxOccurs="unbounded">
<xs:complexType>
<xs:choice>
<xs:element
name="WebSkin" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="WebSkinID" type="xs:string"/>
<xs:element name="LocaleID" type="xs:string"/>
<xs:element name="MsgDisplay" type="xs:string"/>
<xs:element name="SkinWidth" type="xs:short"/>
<xs:element name="SkinPath" type="xs:string"/>
<xs:element name="IconPath" type="xs:string"/>
<xs:element name="SwatchPath" type="xs:string"/>
<xs:element name="ResourcePath" type="xs:string"/>
<xs:element name="DarkColor">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6"/>
<xs:minLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LightColor">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrimaryColor1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrimaryColor2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrimaryColor3">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SecondaryColor1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SecondaryColor2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SecondaryColor3">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="6"/>
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element
name="DomainGrant" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="RegistryID">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="APP_123234"/>
<xs:enumeration value="APP_123XYZ"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LocaleID" type="xs:string"/>
<xs:element name="ParentID" type="xs:string"/>
<xs:element name="NavName" type="xs:string"/>
<xs:element name="DisplayNav" type="xs:boolean"/>
<xs:element name="MenuGroup" type="xs:string"/>
<xs:element name="Status" type="xs:boolean"/>
<xs:element name="ObjectPath" type="xs:string"/>
<xs:element name="ObjectName" type="xs:string"/>
<xs:element name="QueryString" type="xs:string"/>
<xs:element name="WebSkinID" type="xs:string"/>
<xs:element name="UserGroups" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element
name="MenuGroup" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="MenuItem">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="order" type="xs:integer" use="optional"
default="0"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="parentid" type="xs:string" use="required"/>
<xs:attribute name="locale" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute
name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="DomainGrant"/>
<xs:enumeration value="MenuGroup"/>
<xs:enumeration value="WebSkin"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="name"
type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
</types>
<message name="WebContextResponse">
<part name="xbwc" element="xb:WebContext"/>
</message>
<message name="WebContextRequest">
<part name="systemID" type="xs:string"/>
<part name="domainID" type="xs:string"/>
</message>
<portType name="WebContextPort">
<operation name="WebContext">
<input message="tns:WebContextRequest"/>
<output message="tns:WebContextResponse"/>
</operation>
</portType>
<binding name="WebContextBinding" type="tns:WebContextPort">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="WebContext">
<soap:operation
soapAction="http://localhost:8080/jboost/services/WebContext"
style="document"/>
<!-- IS STYLE NEEDED HERE -->
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="WebContextService">
<port name="WebContextPort"
binding="tns:WebContextBinding">
<!-- SHOULD WE REPLACE XB WITH TNS -->
<soap:address
location="http://localhost:8080/jboost/services/WebContext"/>
</port>
</service>
</definitions>