Java – Importing Delphi Web Services into Java


I have a web server built in Delphi, and I'm trying to consume its web services on Java (I'm using Eclipse IDE) by creating a Web Service Client through the Eclipse wizard. The Web Services Explorer recognice the WSDL file, but when trying to create the client, the wizard says there's an "unexpected attribute" and does not create any file.

This is my wsdl file (the one that my Delphi Web Server publishes).

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xmlns:xs="" name="ITSOAPWebServiceservice" targetNamespace="" xmlns:tns="" xmlns:soap="" xmlns:soapenc="" xmlns:mime="">
  <message name="WebMethod0Request">
    <part name="Document" type="xs:string"/>
  <message name="WebMethod0Response">
    <part name="return" type="xs:boolean"/>
  <portType name="ITSOAPWebService">
    <operation name="WebMethod">
      <input message="tns:WebMethod0Request"/>
      <output message="tns:WebMethod0Response"/>
  <binding name="ITSOAPWebServicebinding" type="tns:ITSOAPWebService">
    <soap:binding style="rpc" transport=""/>
    <operation name="WebMethod">
      <soap:operation soapAction="urn:TWebServiceIntf1-ITSOAPWebService#WebMethod" style="rpc"/>
      <input message="tns:WebMethod0Request">
        <soap:body use="encoded" encodingStyle="" namespace="urn:TWebServiceIntf1-ITSOAPWebService"/>
      <output message="tns:WebMethod0Response">
        <soap:body use="encoded" encodingStyle="" namespace="urn:TWebServiceIntf1-ITSOAPWebService"/>
  <service name="ITSOAPWebServiceservice">
    <port name="ITSOAPWebServicePort" binding="tns:ITSOAPWebServicebinding">
      <soap:address location="http://localhost:1024/soap/ITSOAPWebService"/>

Now, Eclipse says that the "message" attribute in both:


is unexpected. I know it's redundant, since these are already defined in


but still, I can't import the web service.

My Java app will be running on a JBoss 4.2 server, but I thought it'd be easier to create the client as a Java Utility Project (since it creates only one project instead of two).

So, any idea on how to make Eclipse ignore these attributes, or Delphi not to publish them?

Best Solution

Try Axis2 from apache, look at the wsdl2java command to generate a java client to your Delphi web service. If you are using Ant for your build there is a task to generate your client.