Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

missling wsdl namespace for wsdl:type element when using Caucho Resin 3.0  RSS feed

 
Justin Galzic
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a serlvet that when deployed onto Tomcat 5.5.12, the wsdl generated by Axis is as expected. However, when I move the same exact webapp to Caucho Resin 3.0.17 with same exact configuration files, the wsdl generated is missing the <wsdl:type> element and instead the element is named '<type>'. This causes the problem of not automatically generating a proper web reference with a .NET client to consume the webservice 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:
<pre>
<wsdl efinitions 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 ateTime"/>
</sequence>
</complexType>
...
</pre>
The wsdl generated by Resin and Axis:
<pre>
<wsdl efinitions 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 ateTime"/>
</sequence>
</complexType>
</pre>

Any thoughts or suggestions would be appreciated,
Justin
[ January 28, 2006: Message edited by: Justin Galzic ]
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this one.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!