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 Justin Galzic <jg...@gmail.com> on 2006/01/29 03:41:23 UTC

missling wsdl namespace when using Caucho Resin 3.0

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