Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8537913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:00:58+00:00 2026-06-11T11:00:58+00:00

An existing Soap WebServices is providing a WSDL file that specifies an xsd:struct .

  • 0

An existing Soap WebServices is providing a WSDL file that specifies an xsd:struct.
The WebService is written in PHP.

If I try execute Wsdl2Java goal in my Java, Maven, Spring-ws, Axis Environment, it fails saying:

[INFO] [axistools:wsdl2java {execution: default}]
[INFO] about to add compile source root
[INFO] Processing wsdl: /home/foobar/workspace/com.foobar/src/main/wsdl/foobar.wsdl
Sep 17, 2012 2:29:42 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error generating Java code from WSDL.

Embedded error: Error running Axis
Type {http://www.w3.org/2001/XMLSchema}struct is referenced but not defined.

Any ideas how to fix this?

The WSDL looks like this:

<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://foobar.service.de/service/v2" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Soap_Manager" targetNamespace="http://foobar.service.de/service/v2">
    <types>
        <xsd:schema targetNamespace="http://foobar.service.de/service/v2"/>
    </types>
    <portType name="Soap_ManagerPort">
        <operation name="searchFoo">
            <documentation>searchFoo</documentation>
            <input message="tns:searchFooIn"/>
            <output message="tns:searchFooOut"/>
        </operation>
    </portType>
    <binding name="Soap_ManagerBinding" type="tns:Soap_ManagerPort">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="searchFoo">
            <soap:operation soapAction="http://foobar.service.de/service/v2#searchFoo"/>
            <input>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://foobar.service.de/service/v2"/>
            </input>
            <output>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://foobar.service.de/service/v2"/>
            </output>
        </operation>
    </binding>
    <service name="Soap_ManagerService">
        <port name="Soap_ManagerPort" binding="tns:Soap_ManagerBinding">
            <soap:address location="http://foobar.service.de/service/v2"/>
        </port>
    </service>
    <message name="searchFooIn">
        <part name="param" type="xsd:struct"/>
    </message>
    <message name="searchFooOut">
        <part name="return" type="xsd:struct"/>
    </message>
</definitions>

Thanks for your help.

Edit 1:

This reference says:
...It's xsd:struct, which means it should be treated as an array with multiple values. Most languages render xsd:struct types as hashes with a key => value notation....

But how to do this with Apache Axis?

Edit 2:

This is the current pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
...
    <build>
        <plugins>
...
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>axistools-maven-plugin</artifactId>
                <version>1.4</version>
                <configuration>
                    <urls>
                        <url>http://foobar.service.de/wsdlv2.wsdl</url>
                    </urls>
                    <packageSpace>com.foobar.wsdl</packageSpace>
                    <testCases>true</testCases>
                    <serverSide>true</serverSide>
                    <subPackageByFileName>true</subPackageByFileName>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>

                <dependencies>      
                    <dependency>
                        <groupId>javax.activation</groupId>
                        <artifactId>activation</artifactId>
                        <version>1.1.1</version>
                    </dependency>

                    <dependency>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                        <version>1.4.5</version>
                    </dependency>
                </dependencies>

            </plugin>

        </plugins>
...
    </build>
...

Edit 3:

An valid Soap Request looks like this (I get it from the doc and tested it with soap-ui):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:emn="interface.foobar">
<soap:Header/>
<soap:Body>
    <emn:searchFoobar>
    <emn:searchParameter>
        <emn:username>xxxx</emn:username>
        <emn:password>xxxx</emn:password>
        <emn:maxHitCount>1</emn:maxHitCount>
        <emn:sorting>distance</emn:sorting>
        <emn:searchtext>example</emn:searchtext>        
    </emn:searchParameter>
    </emn:searchFoobar>
</soap:Body>
</soap:Envelope>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:00:59+00:00Added an answer on June 11, 2026 at 11:00 am
    Unable to find required classes (javax.activation.DataHandler
    

    You are missing a jar file from classpath. Probably activation.jar. Please look at here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing SOAP client to existing service of which i have WSDL file. I
I'm trying to ammend an existing SOAP Webservice that uses Spring-WS and JAXB on
I have an existing Workflow Rule that fires of a (SOAP) Outbound Message when
I have to access a existing SOAP webservice from an Android application. I have
I am developing second client application that is consuming existing SOAP web-services. I generate
I'm currently configuring an existing WCF SOAP webservice to be accessible using WebApi I
I'm troubleshooting an existing webservice. It previously worked just fine, but now SOAP-based requests
I have an existing WSDL which returns information to remote devices using SOAP. However,
I need to write a WSDL file to an existing web service which is
I've added a new SOAP request to an existing project that already uses a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.