axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edward.thomp...@wachovia.com
Subject RE: using Axis2 wsdl2java to generate Axis1 client stubs
Date Mon, 11 May 2009 15:03:58 GMT
What the .NET folks generally mean by "tree wsdl" is using imports for 
"child" files.

Axis1 (1.4) seems to handle the xsd:imports fine, but the error I get 
seems to imply something wrong with the 
wsdl:import?

java.io.IOException: Emitter failure.  There is an undefined portType 
(IAEEPerso
nCompositeDataService) in the WSDL document 
http://zcic9h0002v042.xtch.xtrt.wach
ovia.net/1AES.Services/AEEPersonCompositeDataService.svc?wsdl=wsdl0.
Hint: make sure <binding type=".."> is fully qualified.
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:596)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:715)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:734)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:518)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
        at 
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Thread.java:595)


Axis2 version of wsdl2java has NO issue, and generates code just fine, but 
one of my 4 apps can't upgrade to Axis2, so I have to generate code for 
Axis1.


Here is the "parent" wsdl

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="AEEPersonCompositeDataService"
        targetNamespace=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages"
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:wsu=
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
        xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:tns=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages"
        xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
        xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
        xmlns:i0=
"http://1aes.services.com/AEEPersonCompositeDataService/bindings"
        xmlns:wsap=
"http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
        xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
        xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
        xmlns:wsa10="http://www.w3.org/2005/08/addressing"
        xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
        <wsdl:import
                namespace=
"http://1aes.services.com/AEEPersonCompositeDataService/bindings"
                location=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?wsdl=wsdl0"

/>
        <wsdl:types>
                <xsd:schema
                        targetNamespace=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/Imports"
>
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd0"
                                namespace=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages" 
/>
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd1"
                                namespace=
"http://schemas.microsoft.com/2003/10/Serialization/" />
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd2"
                                namespace=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/entities" 
/>
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd3"
                                namespace=
"http://schemas.datacontract.org/2004/07/WS.Bpi.Framework" />
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd4"
                                namespace=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd5"
                                namespace=
"http://1aes.services.wachovia.com/DataEntitlementsServiceV1/entities" />
                        <xsd:import
                                schemaLocation=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc?xsd=xsd6"
                                namespace=
"http://1aes.services.wachovia.com/FuncEntitlementServiceV1/entities" />
                </xsd:schema>
        </wsdl:types>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonBetaIDsByAnumber_InputMessage"
>
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonBetaIDsByAnumber" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonBetaIDsByAnumber_OutputMessage"
>
                <wsdl:part name="parameters"
                        element=
"tns:RetrievePersonBetaIDsByAnumberResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonBetaIDsByBetaId_InputMessage"
>
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonBetaIDsByBetaId" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonBetaIDsByBetaId_OutputMessage"
>
                <wsdl:part name="parameters"
                        element=
"tns:RetrievePersonBetaIDsByBetaIdResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonBetaIDsByPPID_InputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonBetaIDsByPPID" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonBetaIDsByPPID_OutputMessage"
>
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonBetaIDsByPPIDResponse" 
/>
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonByPPID_InputMessage">
                <wsdl:part name="parameters" element=
"tns:RetrievePersonByPPID" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonByPPID_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonByPPIDResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonByAnumber_InputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonByAnumber" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonByAnumber_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonByAnumberResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonByBetaID_InputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonByBetaID" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrievePersonByBetaID_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrievePersonByBetaIDResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_DoesPersonExist_InputMessage">
                <wsdl:part name="parameters" element="tns:DoesPersonExist" 
/>
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_DoesPersonExist_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:DoesPersonExistResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrieveActuatePerson_InputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrieveActuatePerson" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrieveActuatePerson_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrieveActuatePersonResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrieveAeePerson_InputMessage">
                <wsdl:part name="parameters" element=
"tns:RetrieveAeePerson" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrieveAeePerson_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrieveAeePersonResponse" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrieveT1APerson_InputMessage">
                <wsdl:part name="parameters" element=
"tns:RetrieveT1APerson" />
        </wsdl:message>
        <wsdl:message
                name=
"IAEEPersonCompositeDataService_RetrieveT1APerson_OutputMessage">
                <wsdl:part name="parameters"
                        element="tns:RetrieveT1APersonResponse" />
        </wsdl:message>
        <wsdl:portType name="IAEEPersonCompositeDataService">
                <wsdl:operation name="RetrievePersonBetaIDsByAnumber">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonBetaIDsByAnumber"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonBetaIDsByAnumber_InputMessage" 
/>
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonBetaIDsByAnumberResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonBetaIDsByAnumber_OutputMessage" 
/>
                </wsdl:operation>
                <wsdl:operation name="RetrievePersonBetaIDsByBetaId">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonBetaIDsByBetaId"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonBetaIDsByBetaId_InputMessage" 
/>
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonBetaIDsByBetaIdResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonBetaIDsByBetaId_OutputMessage" 
/>
                </wsdl:operation>
                <wsdl:operation name="RetrievePersonBetaIDsByPPID">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonBetaIDsByPPID"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonBetaIDsByPPID_InputMessage" 
/>
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonBetaIDsByPPIDResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonBetaIDsByPPID_OutputMessage" 
/>
                </wsdl:operation>
                <wsdl:operation name="RetrievePersonByPPID">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonByPPID"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonByPPID_InputMessage" />
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonByPPIDResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonByPPID_OutputMessage" />
                </wsdl:operation>
                <wsdl:operation name="RetrievePersonByAnumber">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonByAnumber"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonByAnumber_InputMessage" 
/>
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonByAnumberResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonByAnumber_OutputMessage" 
/>
                </wsdl:operation>
                <wsdl:operation name="RetrievePersonByBetaID">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonByBetaID"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonByBetaID_InputMessage" 
/>
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrievePersonByBetaIDResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrievePersonByBetaID_OutputMessage" 
/>
                </wsdl:operation>
                <wsdl:operation name="DoesPersonExist">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/DoesPersonExist"
                                message=
"tns:IAEEPersonCompositeDataService_DoesPersonExist_InputMessage" />
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/DoesPersonExistResponse"
                                message=
"tns:IAEEPersonCompositeDataService_DoesPersonExist_OutputMessage" />
                </wsdl:operation>
                <wsdl:operation name="RetrieveActuatePerson">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrieveActuatePerson"
                                message=
"tns:IAEEPersonCompositeDataService_RetrieveActuatePerson_InputMessage" />
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrieveActuatePersonResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrieveActuatePerson_OutputMessage" 
/>
                </wsdl:operation>
                <wsdl:operation name="RetrieveAeePerson">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrieveAeePerson"
                                message=
"tns:IAEEPersonCompositeDataService_RetrieveAeePerson_InputMessage" />
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrieveAeePersonResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrieveAeePerson_OutputMessage" />
                </wsdl:operation>
                <wsdl:operation name="RetrieveT1APerson">
                        <wsdl:input
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrieveT1APerson"
                                message=
"tns:IAEEPersonCompositeDataService_RetrieveT1APerson_InputMessage" />
                        <wsdl:output
                                wsaw:Action=
"http://1aes.services.wachovia.com/AEEPersonCompositeDataServiceV1/messages/IAEEPersonCompositeDataService/RetrieveT1APersonResponse"
                                message=
"tns:IAEEPersonCompositeDataService_RetrieveT1APerson_OutputMessage" />
                </wsdl:operation>
        </wsdl:portType>
        <wsdl:service name="AEEPersonCompositeDataService">
                <wsdl:port name="MyAEEPersonCompDataEndPoint"
                        binding="i0:MyAEEPersonCompDataEndPoint">
                        <soap:address
                                location=
"http://zcic9h0002v042.xtch.xtrt.wachovia.net/1AES.Services/AEEPersonCompositeDataService.svc"

/>
                </wsdl:port>
        </wsdl:service>
</wsdl:definitions>

Edward Thompson

(704) 383-9933
401 South Tryon Street
Three Wachovia Center, Sixth floor
Charlotte, NC 28202

Authentication & Entitlements 




Martin Gainty <mgainty@hotmail.com> 
05/11/2009 10:08 AM
Please respond to
axis-user@ws.apache.org


To
<axis-user@ws.apache.org>
cc

Subject
RE: using Axis2 wsdl2java to generate Axis1 client stubs






Good Morning Edward

could you explain the schema/namespace which defines DotNet tree element?
could you explain what is the purpose of DotNet tree element?
attaching your DotNet generated wsdl would be helpful

Thank You,
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte 
Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht 
dient lediglich dem Austausch von Informationen und entfaltet keine 
rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von 
E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire 
informez l'expéditeur. N'importe quelle diffusion non autorisée ou la 
copie de ceci est interdite. Ce message sert à l'information seulement et 
n'aura pas n'importe quel effet légalement obligatoire. Étant donné que 
les email peuvent facilement être sujets à la manipulation, nous ne 
pouvons accepter aucune responsabilité pour le contenu fourni.





To: axis-user@ws.apache.org
Subject: using Axis2 wsdl2java to generate Axis1 client stubs
From: edward.thompson@wachovia.com
Date: Mon, 11 May 2009 09:18:08 -0400


I am using the Axis2 wsdl2java utility to generate client side java code 
for Axis1. 

The reason is that the Axis1 wsdl2java utility can't seme to handle "tree 
wsdl" generated by out .NET applications. 

The wdl2java utility for Axis2 indicates a backward compatability option, 
(-b).   

However, the code generated a) still references axis2 packages, and b) 
still has a dependency on the Stubs generated for Axis2 use (i.e. it 
doesn't seem to generate standalone code that is free from Axis2 
dependencies.) 

So I am wondering what the purpose of the backward compatability option 
is.  I am assuming that I have misunderstood its purpose. 

Hotmail® goes with you. Get it on your BlackBerry or iPhone.

Mime
View raw message