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 8067121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:11:08+00:00 2026-06-05T12:11:08+00:00

Just tried to generate java client generation from a WSDL file ( using XFire

  • 0

Just tried to generate java client generation from a WSDL file ( using XFire using XMLBeans binding )

I am able to generate the client + Fault Message ( no error ) , however input message and output message was not generated, it’s also not generating the operation in the client. Is there anything wrong with my WSDL file, or is there anything I miss ?

Update :

  1. I updated my test XFire project here.

  2. I begin to suspect that the problem can be isoldated to the WSDL (because I can generate other WSDL successfully). I found these warnings, which I feel related :

    WS-I: (BP2402) The wsdl:binding element does not use a
    soapbind:binding element as defined in section “3 SOAP Binding.” of
    the WSDL 1.1 specification.

    WS-I: (BP2032) Defective soapbind:fault element: the “name” attribute value does not match the value of the “name” attribute on
    the parent element wsdl:fault.

    WS-I: (AP2901) A description uses neither the WSDL MIME Binding as described in WSDL 1.1 Section 5 nor WSDL SOAP binding as described in
    WSDL 1.1 Section 3 on each of the wsdl:input or wsdl:output elements
    of a wsdl:binding.

  3. Just found that soap12 might caused the issue. If I changed the xmlns:soap=”http://schemas.xmlsoap.org/wsdl/soap12/” to xmlns:soap=”http://schemas.xmlsoap.org/wsdl/soap/” and removing soapActionRequired in soap:operation it can generated the client successfully. But the webservice is currently only in soap1.2 only. So changing the wsdl to use soap1.1 is not the case here.

Here is my WSDL file :

<!--Created by TIBCO WSDL-->
<wsdl:definitions xmlns:tns="http://schemas.ocbc.com/soa/WSDL/service/CBS-CustAccountInfo-I" xmlns:soap1="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:jndi="http://www.tibco.com/namespaces/ws/2004/soap/apis/jndi" xmlns:ns="http://schemas.ocbc.com/soa/emf/common/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:jms="http://www.tibco.com/namespaces/ws/2004/soap/binding/JMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Untitled" targetNamespace="http://schemas.ocbc.com/soa/WSDL/service/CBS-CustAccountInfo-I">

<wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.ocbc.com/soa/emf/common/envelope/" elementFormDefault="qualified" attributeFormDefault="unqualified">
        <xs:include schemaLocation="../Schemas/XML/CBS-CustAccountInfo-I-ServiceEnvelope.xsd"/>
    </xs:schema>
</wsdl:types>
<wsdl:service name="CBS-CustAccountInfo-I">
    <wsdl:port name="CBS-CustAccountInfo-I_HTTP" binding="tns:CBS-CustAccountInfo-I_HTTPBinding">
        <soap:address location="https://localhost:15038/Services/CBS-CustAccountInfo-I/Processes/MainRequestResponse_HTTP"/>
    </wsdl:port>
</wsdl:service>
<wsdl:portType name="PortType">
    <wsdl:operation name="CBS-CustAccountInfo-I">
        <wsdl:input message="tns:InputMessage"/>
        <wsdl:output message="tns:OutputMessage"/>
        <wsdl:fault name="fault1" message="tns:FaultMessage"/>
    </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CBS-CustAccountInfo-I_HTTPBinding" type="tns:PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CBS-CustAccountInfo-I">
        <soap:operation style="document" soapAction="/Services/CBS-CustAccountInfo-I/Processes/MainRequestResponse_HTTP" soapActionRequired="true"/>
        <wsdl:input>
            <soap:body use="literal" parts="InputMessage"/>
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" parts="OutputMessage"/>
        </wsdl:output>
        <wsdl:fault name="fault1">
            <soap:fault use="literal" name="fault1"/>
        </wsdl:fault>
    </wsdl:operation>
</wsdl:binding>
<wsdl:message name="InputMessage">
    <wsdl:part name="InputMessage" element="ns:ServiceEnvelope"/>
</wsdl:message>
<wsdl:message name="OutputMessage">
    <wsdl:part name="OutputMessage" element="ns:ServiceEnvelope"/>
</wsdl:message>
<wsdl:message name="FaultMessage">
    <wsdl:part name="FaultMessage" element="ns:ServiceEnvelope"/>
</wsdl:message>
</wsdl:definitions>

And here is my ant task to generate :

<!-- Generating XML Beans -->   
<target name="gen-xmlbeans">
<java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler"
          classpathref="build.classpath"
          fork="true">
      <arg value="-out"/>
      <arg value="${basedir}/lib/ocbc.jar"/>
      <arg value="${schema.path}"/>
</java>
</target>

<!-- Generating Client -->
<target name="ws-generate">
        <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask">
            <classpath>
                <fileset dir="${lib.dir}" includes="*.jar" />
            </classpath>    
        </taskdef>    
        <wsgen outputDirectory="${basedir}/src/" wsdl="${wsdl.path}" package="test.client" overwrite="true" binding="xmlbeans"/>                
</target>

Generated Client :

public class CBS_CustAccountInfo_IClient {

private static XFireProxyFactory proxyFactory = new XFireProxyFactory();
private HashMap endpoints = new HashMap();

public CBS_CustAccountInfo_IClient() {
}

public Object getEndpoint(Endpoint endpoint) {
    try {
        return proxyFactory.create((endpoint).getBinding(), (endpoint).getUrl());
    } catch (MalformedURLException e) {
        throw new XFireRuntimeException("Invalid URL", e);
    }
}

public Object getEndpoint(QName name) {
    Endpoint endpoint = ((Endpoint) endpoints.get((name)));
    if ((endpoint) == null) {
        throw new IllegalStateException("No such endpoint!");
    }
    return getEndpoint((endpoint));
}

public Collection getEndpoints() {
    return endpoints.values();
}

}
  • 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-05T12:11:09+00:00Added an answer on June 5, 2026 at 12:11 pm

    @Rudy If you have to use XFire, you might consider to try other binding such as JAXB binding and see if you’re able to get the code generated properly.

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

Sidebar

Related Questions

I tried using axis2 1.6 (and nightly 1.7) to generate Java code from the
I have tried all that i could to generate the R.java file but in
I just finished my java project. It is made from netbeans6.9.1. It can generate
I'm trying to generate Java Web Start files using PHP. Right now I'm just
I'm currently working on a wsdl/soap project using Java/apache cxf. In the wsdl file,
I just tried dynamodb example from amazon. I understand the advantages on the db
I just tried to use JCurses from within Groovy, but I always get the
I have just tried adding a WebService (asmx based) from a WebForms project to
I have just tried using the NSArchiver but for some reason I am getting
Hey, I've tried researching how to POST data from java, and nothing seems to

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.