axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1431) Fault - makeTypeElement ... problem with AXIS handling doc/literal WSDL
Date Fri, 06 Aug 2004 11:21:27 GMT
The following comment has been added to this issue:

     Author: Tom Crossland
    Created: Fri, 6 Aug 2004 4:20 AM
       Body:
Note that this issue fairly common (i.e. unresolved) and IMHO should be prioritized as Major
rather than Minor:

Duplicate issues:
http://nagoya.apache.org/jira/browse/AXIS-1453
http://nagoya.apache.org/jira/browse/AXIS-1431
http://nagoya.apache.org/jira/browse/AXIS-1284
http://nagoya.apache.org/jira/browse/AXIS-1277
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1431?page=comments#action_37093

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1431

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1431
    Summary: Fault - makeTypeElement ... problem with AXIS handling doc/literal WSDL
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

    Project: Axis
 Components: 
             Serialization/Deserialization
   Versions:
             1.1

   Assignee: 
   Reporter: B Williams

    Created: Fri, 2 Jul 2004 12:18 PM
    Updated: Fri, 6 Aug 2004 4:20 AM
Environment: Windows 2000 Professional with AXIS running inside Tomcat 5.0.25 (and happyaxis
pages says everything is fine)

Description:
The complete ME.wsdl and the generated deploy.wsdd files are below.  Notice the fromWhat element
contains simpleType and restriction elements.
Used WSDL2Java like so:
java org.apache.axis.wsdl.WSDL2Java -t -s -d Application -Nhttp://www.me.com/me/=com.me.soap.ws.axis
ME.wsdl
I then compiled and deployed the generated classes like so:
java org.apache.axis.client.AdminClient deploy.wsdd

When I then open http://localhost:8080/axis/services/SOAPPort?wsdl in my browser, I get the
error:
"AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - makeTypeElement() was told to create a type "{http://www.me.com/me/}MyMetaData>fromWhat",
with no containing element
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: makeTypeElement() was told to create a type "{http://www.me.com/me/}MyMetaData>fromWhat",
with no containing element
 faultActor: 
 faultNode: 
 faultDetail:"

When I use IBM's web service engine from WSAD 5.1.1 to build and deploy this same WSDL file,
all is fine.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="me" 
			targetNamespace="http://www.me.com/me/" 
			xmlns:me="http://www.me.com/me/" 
			xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
			xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<wsdl:types>
		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://www.me.com/me/">
			<xsd:complexType name="MyMetaData">
				<xsd:sequence>
					<xsd:element name="fromWhat">
						<xsd:annotation>
							<xsd:documentation>something
							</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="xsd:string">
								<xsd:enumeration value="A"/>
								<xsd:enumeration value="B"/>
								<xsd:enumeration value="C"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
					<xsd:element name="fromWhatVersion" type="xsd:string"/>
					<xsd:element name="fromWhatParentName" minOccurs="0" type="xsd:string"/>
					<xsd:element name="fromWhatParentNameVersion" minOccurs="0" type="xsd:string"/>
					<xsd:element name="toWhat">
						<xsd:annotation>
							<xsd:documentation>something
							</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="xsd:string">
								<xsd:enumeration value="A"/>
								<xsd:enumeration value="B"/>
								<xsd:enumeration value="C"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
					<xsd:element name="tosomething" type="xsd:string" minOccurs="0"><xsd:annotation><xsd:documentation>optional</xsd:documentation></xsd:annotation></xsd:element>
					<xsd:element name="tosomethingelse" type="xsd:string" minOccurs="0"><xsd:annotation><xsd:documentation>optional</xsd:documentation></xsd:annotation></xsd:element>
					<xsd:element name="tosomethingelseversion" type="xsd:string" minOccurs="0"><xsd:annotation><xsd:documentation>optional</xsd:documentation></xsd:annotation></xsd:element>
					<xsd:element name="requestType">
						<xsd:annotation>
							<xsd:documentation>some comment</xsd:documentation>
						</xsd:annotation>
						<xsd:simpleType>
							<xsd:restriction base="xsd:string">
								<xsd:enumeration value="synch"/>
								<xsd:enumeration value="asynch"/>
							</xsd:restriction>
						</xsd:simpleType>
					</xsd:element>
				</xsd:sequence>
			</xsd:complexType>
			<xsd:complexType name="MyMessage">
				<xsd:sequence>
					<xsd:element name="MyMetaData" type="me:MyMetaData"></xsd:element>
					<xsd:any maxOccurs="unbounded"></xsd:any>
				</xsd:sequence>
			</xsd:complexType> 
			<xsd:element name="MyMessage" type="me:MyMessage"/>
		</xsd:schema>
	</wsdl:types>
	<wsdl:message name="SendMyMessageRequest">
		<wsdl:part name="MyInputMessage" element="me:MyMessage"></wsdl:part>
	</wsdl:message>
	<wsdl:message name="SendMyMessageResponse">
		<wsdl:part name="MyMessage" element="me:MyMessage"></wsdl:part>
	</wsdl:message>
	<wsdl:portType name="MyMessagePortType">
		<wsdl:operation name="SendMyMessage">
			<wsdl:input message="me:SendMyMessageRequest"></wsdl:input>
			<wsdl:output message="me:SendMyMessageResponse"></wsdl:output>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="ProcessMyBinding" type="me:MyMessagePortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="SendMyMessage">
			<soap:operation soapAction="http://www.me.com/me/SendMyMessage" />
			<wsdl:input>
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="ProcessBODService">
		<wsdl:port name="SOAPPort" binding="me:ProcessMyBinding">
			<soap:address location="http://www.me.com" />	
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

-----------------------Below is the deploy.wsdd autogenerated by AXIS 1.1's WSDL2JAVA-----------------------
<!-- Use this file to deploy some handlers/chains and services      -->
<!-- Two ways to do this:                                           -->
<!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
<!--      after the axis server is running                          -->
<!-- or                                                             -->
<!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
<!--      from the same directory that the Axis engine runs         -->

<deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

  <!-- Services from ProcessBODService WSDL service -->

  <service name="SOAPPort" provider="java:RPC" style="document" use="literal">
      <parameter name="wsdlTargetNamespace" value="http://www.me.com/me/"/>
      <parameter name="wsdlServiceElement" value="ProcessBODService"/>
      <parameter name="wsdlServicePort" value="SOAPPort"/>
      <parameter name="className" value="com.me.soap.ws.axis.ProcessMyBindingImpl"/>
      <parameter name="wsdlPortType" value="MyMessagePortType"/>
      <operation name="sendMyMessage" qname="SendMyMessage" returnQName="retNS:MyMessage"
xmlns:retNS="http://www.me.com/me/" returnType="rtns:MyMessage" xmlns:rtns="http://www.me.com/me/"
>
        <parameter qname="pns:MyMessage" xmlns:pns="http://www.me.com/me/" type="tns:MyMessage"
xmlns:tns="http://www.me.com/me/"/>
      </operation>
      <parameter name="allowedMethods" value="sendMyMessage"/>
      <parameter name="scope" value="Application"/>

      <typeMapping
        xmlns:ns="http://www.me.com/me/"
        qname="ns:MyMessage"
        type="java:com.me.soap.ws.axis.MyMessage"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.me.com/me/"
        qname="ns:MyMetaData>fromWhat"
        type="java:com.me.soap.ws.axis.MyMetaData_fromWhat"
        serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.me.com/me/"
        qname="ns:MyMetaData>requestType"
        type="java:com.me.soap.ws.axis.MyMetaData_requestType"
        serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.me.com/me/"
        qname="ns:MyMetaData>toWhat"
        type="java:com.me.soap.ws.axis.MyMetaData_toWhat"
        serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="http://www.me.com/me/"
        qname="ns:MyMetaData"
        type="java:com.me.soap.ws.axis.MyMetaData"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle=""
      />
  </service>
</deployment>



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message