axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Galzic <jgal...@gmail.com>
Subject missling wsdl namespace when using Caucho Resin 3.0
Date Sun, 29 Jan 2006 02:41:23 GMT
I have a serlvet that when deployed onto Tomcat 5.x, the wsdl generated by
Axis is as expected. However, when I move the same exact webapp to Caucho
Resin 3.0.17 (same exact configuration files are used for the web app), the
wsdl generated is missing the <wsdl:type> element and instead the element is
named '<type>'. This causes the problem of not being automatically generate
a proper web reference with a .NET client and produces the the error,
"Unable to import WebService/Schema.
Unable to import binding 'TestWebServiceSoapBinding' from namespace
mytargetNameSpace-v1.0'.
Unable to import operation 'getEvent'. The datatype 'Event' is missing."

Anyone know if there are any different configurations in the
server-config.wsdd necessary to make the resin version work?

Portions of the wsdl generated by both servlet containers are listed below:

The wsdl generated with Tomcat and Axis:

<wsdl:definitions targetNamespace="mytargetNameSpace-v1.0">
<!-- WSDL created by Apache Axis version: 1.3 Built on Oct 05, 2005
(05:23:37 EDT) -->
<wsdl:types>
   <schema targetNamespace="mytargetNameSpace-v1.0">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  <complexType name="Event">
 <sequence>
    <element name="ID" type="xsd:int"/>
    <element name="comments" nillable="true" type="xsd:string"/>
    <element name="directions" nillable="true" type="xsd:string"/>
    <element name="duration" type="xsd:float"/>
    <element name="location" nillable="true" type="xsd:string"/>
    <element name="name" nillable="true" type="xsd:string"/>
    <element name="startDateTime" nillable="true" type="xsd:dateTime"/>
</sequence>
</complexType>
...
The wsdl generated by Resin and Axis:

<wsdl:definitions targetNamespace="mytargetNameSpace-v1.0">
<!-- WSDL created by Apache Axis version: 1.3 Built on Oct 05, 2005
(05:23:37 EDT) -->
<types> <!--NOTE: This is the line that differs on Resin-->
  <schema targetNamespace="mytargetNameSpace-v1.0">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Event">
   <sequence>
    <element name="ID" type="xsd:int"/>
    <element name="comments" nillable="true" type="xsd:string"/>
    <element name="directions" nillable="true" type="xsd:string"/>
    <element name="duration" type="xsd:float"/>
    <element name="location" nillable="true" type="xsd:string"/>
    <element name="name" nillable="true" type="xsd:string"/>
    <element name="startDateTime" nillable="true" type="xsd:dateTime"/>
   </sequence>
</complexType>

Any thoughts or suggestions would be appreciated,
Justin

Mime
View raw message