Since I have not heard back, I've been trying to do some research.
I am trying to setup a bindings.xml file to define integer.

I've been using web pages and ChatCPT trying to get the correct syntax and then 
slice and splice into the bindings file.

I keep getting the error "WSDLToJava Error: Not a valid jaxb or jaxws binding 
file, please check the namespace"

My command line is: C:\Users\xxxxxxxx\Desktop\apache-cxf-4.0.6\bin\wsdl2java 
-verbose -keep -d c:\users\xxxxxxxx\dev2.jar -p com.example.generated -xjc 
-exsh true -b c:\users\snelliga\bindings.xml 
https://aimDEV2.xx.xxxxxxxx.xxx/fmax/wsdl/fmax-wsdl.wsdl


My bindings.xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<bindings xmlns="http://apache.org/cxf/wsdl/extensions/binding";
          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
          xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
          xmlns:xsd="http://www.w3.org/2001/XMLSchema";
          
wsdlLocation="https://aimDEV2.fs.illinois.edu/fmax/wsdl/fmax-wsdl.wsdl";>

    <!-- Example: Modify SOAP Binding -->
    <wsdl:binding name="MyServiceSoapBinding">
        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
    </wsdl:binding>

    <jxb:bindings version="2.1" xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
                  xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <jxb:bindings 
schemaLocation="https://aimDEV2.fs.illinois.edu/fmax/wsdl/fmax-web-services.xsd";>
            <jxb:bindings node="//xs:element[@name='integer']">
                <jxb:javaType name="java.lang.Integer"/>
            </jxb:bindings>
        </jxb:bindings>
    </jxb:bindings>
</bindings>

Can anyone please direct me into what I am doing wrong?

Steven M Nelligan

From: Nelligan, Steven M <[email protected]>
Sent: Friday, February 28, 2025 4:21 PM
To: [email protected]
Subject: 1st time user of cxf.

I am trying to replace axis2 with cxf

C:\...\apache-cxf-4.0.6\apache-cxf-4.0.6\bin\wsdl2java.bat -client -p 
com.assetworks.service https://...

I am getting an error message:
https://...:[6,057,7]<https://urldefense.com/v3/__https:/...:*6,057,7*__;W10!!DZ3fjg!9-QonIu-D2oUzmw6vH8cu0Zxo8XU4Gf_EMwlPou8oJeyPcfVyI0-nkY7cN2t9CqYuYv6HZ88yU4sztyFyDW-jfjP$>
Caused by 
{http://maximus.com/assetworks/fmax-wsdl}[message:integer]<https://urldefense.com/v3/__http:/maximus.com/assetworks/fmax-wsdl*7D*5Bmessage:integer*5D__;JSUl!!DZ3fjg!9-QonIu-D2oUzmw6vH8cu0Zxo8XU4Gf_EMwlPou8oJeyPcfVyI0-nkY7cN2t9CqYuYv6HZ88yU4sztyFyCpMa8Hc$>
 not exist.

Line in question is:
<output message='tns:integer'/>

What is going on?
Using:
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)

Thanks in  advance for any assistance,
Steven M Nelligan
SENIOR SOFTWARE DEVELOPER

Facilities and Services
Information Technology Services
University of Illinois at Urbana-Champaign
Facilities and Services
1501 S. Oak Street | M/C 800
Champaign, IL 61820
217.244.8097 | other: 217.244.8097 | 
[email protected]<mailto:[email protected]>
www.fs.illinois.edu<http://www.fs.illinois.edu/>

[facebook]<https://urldefense.com/v3/__https:/www.facebook.com/UniversityOfIllinoisFacilitiesServices__;!!DZ3fjg!9-QonIu-D2oUzmw6vH8cu0Zxo8XU4Gf_EMwlPou8oJeyPcfVyI0-nkY7cN2t9CqYuYv6HZ88yU4sztyFyE9Gr27n$>
    [twitter] 
<https://urldefense.com/v3/__https:/twitter.com/UofIFS__;!!DZ3fjg!9-QonIu-D2oUzmw6vH8cu0Zxo8XU4Gf_EMwlPou8oJeyPcfVyI0-nkY7cN2t9CqYuYv6HZ88yU4sztyFyGOXZ7En$>
     [instagram] 
<https://urldefense.com/v3/__https:/www.instagram.com/uofifs/__;!!DZ3fjg!9-QonIu-D2oUzmw6vH8cu0Zxo8XU4Gf_EMwlPou8oJeyPcfVyI0-nkY7cN2t9CqYuYv6HZ88yU4sztyFyGFCfsYQ$>
     [youtube] 
<https://urldefense.com/v3/__https:/www.youtube.com/user/UofIFS__;!!DZ3fjg!9-QonIu-D2oUzmw6vH8cu0Zxo8XU4Gf_EMwlPou8oJeyPcfVyI0-nkY7cN2t9CqYuYv6HZ88yU4sztyFyEUk4XzA$>

[https://webtools.illinois.edu/webservices/js/ds/signature_logo.png]<http://illinois.edu/>

Under the Illinois Freedom of Information Act any written communication to or 
from university employees regarding university business is a public record and 
may be subject to public disclosure.



Reply via email to