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?

Asked by: Kellan296 | Posted: 28-01-2022

Answer 1

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.

Answered by: Miranda263 | Posted: 01-03-2022

Similar questions

java - Importing the content of another web resource using JSTL

I have a JSP page that will display the exact content of another web page on a different server. My understanding was that c:import from the JSTL should be able to include content from files that are not part of the current web application. I added c:import url="page on my server in a different application" and it works fine, but when I try to include a page from another server it fails. Any suggestions as...

java - Importing and using external schema using XML Beans

I have a bit of a problem. I wrote an API a long time ago for our production system, and it used Apache XML Beans. The schema was homogeneous (ie no imports, everything was from within the same schema), and everything worked just fine, even if the code for API handling was incredibly verbose. I've since written a far simpler and more elegant restful API using JAXB, with parts of the old one in mind, ie different schema,...

java - problem while importing the data from text to mysql

I have used an application to import some data from a text file to mysql. I have used the following code. try { stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); stmt1= (Statement) conn.createStatement(); int deleteRows = stmt1.executeUpdate("delete from powerdata where dateformat &lt; dateformat_sub(now(), interval 8 month)");...

java - Importing CSV data with Apache POI

How can I efficiently import CSV data with Apache POI? If I have a very large CSV file that I would like to store in my Excel spreadsheet, then I don't imagine that going cell-by-cell is the best way to import...?

java - Why is WSDL parser still importing external documents?

I tried to turn off importing documents in WSDL4J (1.6.2) in the way suggested by the API documentation: wsdlReader.setFeature("javax.wsdl.importDocuments", false); In fact, it stops importing XML schema files declared with wsdl:import tag, but does stop importing files declared with xs:import tags. The following code snippet [see at the end of t...

java - importing Source code into Jlist

Closed. This question does not meet Stack Overflow guid...

java - warning in importing ""

I import these:;; to use and play a sound, but compiler produce warining. the sound plays well but when I run the jar file no sound is played! NetBeans says that I'm using forbidden import. Can someone tell me "Why the jar file does not play the sound?"

import - problem in importing java class in jsp

i have created a java package in source packages in netbeans i have a jsp file in a web folder now i want to import this java package in jsp file but i am not getting my package name in import command

java - class importing in jython

I've got a jython script that needs to include a class (from JUnit in this case). I've got the junit jar in "some/path/junit.jar". My script is: from junit.textui import TestRunner TestRunner.Main(["name of some class here"]) I'm running it like this: java -cp "some/path/junit.jar" -jar jython.jar but it complains that: from ...

java - importing a text file

any way easier to do this?? i'm trying to import a file which is four lines: name phone mobile address I'm using: public void importContacts() { try { BufferedReader infoReader = new BufferedReader(new FileReader( "../files/example.txt")); int i = 0; String loadContacts; while ((loadContacts = infoReader.readLine()) != null) ...

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)