Anne,
Thanks for the info. I had to make a few minor changes to what you sent (I've attached a corrected version below) but that gave me enough to work with. Except for one problem...
WSDL2Java produces both client and server code without apparent problem but when I invoke the service I get a NullPointerException. I wonder if this is a problem with "empty" namespaces. The response from the server looks like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getObjectResponse xmlns="http://cityxpress.com/external">
<thedate xsi:type="xsd:dateTime" xmlns="">2004-10-13T16:30:38.953Z</thedate>
<avalue xsi:type="xsd:int" xmlns="">0</avalue>
</getObjectResponse>
</soapenv:Body>
</soapenv:Envelope>
I'm wondering if the xmlns="" in response values are the problem. Should the xmlns attribute even be there? If so, shouldn't it be http://cityxpress.com/external?
Thanks, Dan.
Corrected WSDL:
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://cityxpress.com/external" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://cityxpress.com/external">
<wsdl:types>
<xsd:schema targetNamespace="http://cityxpress.com/external">
<xsd:element name="getObject" type="tns:GetObjectType"/>
<xsd:complexType name="GetObjectType">
<xsd:sequence>
<xsd:element name="id" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="getObjectReturn" type="tns:CXObjectType"/> <xsd:complexType name="CXObjectType">
<xsd:sequence>
<xsd:element name="thedate" type="xsd:dateTime"/>
<xsd:element name="avalue" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getObjectRequest">
<wsdl:part name="parameters" element="tns:getObject"/>
</wsdl:message>
<wsdl:message name="getObjectResponse">
<wsdl:part name="parameters" element="tns:getObjectReturn"/>
</wsdl:message>
<wsdl:portType name="XMTestPortType">
<wsdl:operation name="getObject">
<wsdl:input message="tns:getObjectRequest"/>
<wsdl:output message="tns:getObjectResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="XMTestBinding" type="tns:XMTestPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http/"/>
<wsdl:operation name="getObject">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="XMTest">
<wsdl:port name="XMTest" binding="tns:XMTestBinding">
<soap:address location="http://localhost:8080/v01/XMTest"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
begin:vcard fn:Dan Ciarniello n:Ciarniello;Dan org:CityXpress Corp adr;dom:;;200 - 1727 West Broadway;Vancouver;BC;V6J 4W5 email;internet:[EMAIL PROTECTED] title:Software Developer tel;work:604-638-3800 ext. 322 x-mozilla-html:TRUE url:http://www.cityxpress.com version:2.1 end:vcard