Hola! > -----Mensaje original----- > De: Dies Koper [mailto:[EMAIL PROTECTED] > Enviado el: viernes, 03 de marzo de 2006 1:18 > Para: [email protected] > Asunto: Re: [jira] Commented: (AXIS-2086) WSDL2Java and xmldsig > > Hello Antonio, > > Please compare your WSDL with the one I fixed and attached to > your bug report. > It generates files correctly on my machine with Axis 1.3 > using the following command: > > java -Dhttp.proxyHost=our.proxy.host -Dhttp.proxyPort=8080 > org.apache.axis.wsdl.WSDL2Java fixed-ref.wsdl >
Ok. Thanks it works. My bug was sent to the AXIS 1.2.1 and I was testing it with that version. I try to move to the 1.3 version. With version 1.3 works :) Thanks a lot, Regards, Antonio. > Regards, > Dies > > > Antonio Ruiz Martínez wrote: > > Hello! > > > > > > > >> -----Mensaje original----- > >> De: Dies Koper (JIRA) [mailto:[EMAIL PROTECTED] Enviado el: > >> jueves, 02 de marzo de 2006 9:29 > >> Para: [EMAIL PROTECTED] > >> Asunto: [jira] Commented: (AXIS-2086) WSDL2Java and xmldsig > >> > >> [ > >> http://issues.apache.org/jira/browse/AXIS-2086?page=comments#a > > ction_12368457 ] > >> Dies Koper commented on AXIS-2086: > >> ---------------------------------- > >> > >> The XSD file you are referring to seems to be invalid: > >> > >> SignedInfoType refers to Reference in the namespace > >> "http://www.w3.org/2000/09/xmldsig#". > >> <element ref="ds:Reference" maxOccurs="unbounded"/> > >> > >> Element Reference (see below) is in the targetnamespace > >> "http://ea.carm.es/schemas/funcionales/efirma/xmldsig-core-sch > > ema.xsd", so it cannot be found. > >> <element name="Reference" type="ds:ReferenceType"/> > >> > >> If you cannot fix the XSD, maybe you had better import the > following > >> file instead. > >> http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd > >> > > > > Thanks for your answer but that it is not the problem because > > > http://ea.carm.es/schemas/funcionales/efirma/xmldsig-core-schema.xsd > > has the same content that > > http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd > > > > In any case, I have tried to make the change and I'm > getting a similar > > error: > > > > C:\Archivos de programa\Apache Software Foundation\Tomcat > > 5.5\axis-1_2_1\lib>jav a org.apache.axis.wsdl.WSDL2Java > > validasimple.wsdl > > java.io.IOException: Type > > {http://www.w3.org/2000/09/xmldsig#}Reference is refer > enced but not defined. > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > > Table.java:665) > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545 > > ) > > 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(Unknown Source) > > > > C:\Archivos de programa\Apache Software Foundation\Tomcat > > 5.5\axis-1_2_1\lib> > > > > > > > > Then, I think the problem is other... It might be a bug... > > > > Best regards, > > Antonio. > > > > > > > > > > > > > > > > > >>> WSDL2Java and xmldsig > >>> --------------------- > >>> > >>> Key: AXIS-2086 > >>> URL: http://issues.apache.org/jira/browse/AXIS-2086 > >>> Project: Apache Axis > >>> Type: Bug > >>> Components: WSDL processing > >>> Versions: 1.2RC3, 1.2, 1.2.1 > >>> Reporter: Antonio Ruiz > >>> Hello! > >>> The problem is that when wsdl2java proccesses the schema of > >> xmldig it raises the following error: > >>> java.io.IOException: Type > >>> {http://www.w3.org/2000/09/xmldsig#}Reference is refer > >> enced but not defined. > >>> at > >>> > >> > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > >>> Table.java:665) > >>> at > >>> > >> > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545 > >>> ) > >>> 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(Unknown Source) I attach > >> the example > >>> with I'm testing it. > >>> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" > >> xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/" > >> xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" > >> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > >> xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" > >> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > >> xmlns:ns0="http://ea.carm.es/schemas/basicos/seguridad/certifi > > cados/respuestaCertificado.xsd" > > xmlns:s="http://www.w3.org/2001/XMLSchema" > > > >> xmlns:s0="http://ea.carm.es/schemas/basicos/seguridad/certific > > ados/ValidaCertificadoWS.xsd" xmlns:s1> > > ="http://ea.carm.es/schemas/basicos/seguridad/certificados/Val > >> idaCertificadoWS.wsdl" > >> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > >> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > >> xmlns:ds="http://www.w3.org/2000/09/xmldsig#" > >> targetNamespace="http://ea.carm.es/schemas/basicos/seguridad/c > >> ertificados/ValidaCertificadoWS.wsdl"> > >>> <types> > >>> <s:schema targetNamespace="mitarjet.xsd"> > >>> <s:import > >> namespace="http://www.w3.org/2000/09/xmldsig#" > >> schemaLocation="http://ea.carm.es/schemas/funcionales/efirma/x > >> mldsig-core-schema.xsd"/> > >>> </s:schema> > >>> </types> > >>> <message name="validaSigSoapIn"> > >>> <part name="parameters" element="ds:Signature"/> > >>> </message> > >>> <message name="validaSigSoapOut"> > >>> <part name="parameters" element="ds:Signature"/> > >>> </message> > >>> <portType name="ValidaSigWSSoap"> > >>> <operation name="validaSig"> > >>> <input message="s1:validaSigSoapIn"/> > >>> <output message="s1:validaSigSoapOut"/> > >>> </operation> > >>> </portType> > >>> <binding name="ValidaSigWSSoap" type="s1:ValidaSigWSSoap"> > >>> <soap:binding style="document" > >> transport="http://schemas.xmlsoap.org/soap/http"/> > >>> <operation name="validaSig"> > >>> <soap:operation > >> soapAction="http://ea.carm.es/schemas/basicos/seguridad/certif > >> icados/ValidaCertificadoWS.wsdl/validaSig" style="document"/> > >>> <input> > >>> <soap:body use="literal"/> > >>> </input> > >>> <output> > >>> <soap:body use="literal"/> > >>> </output> > >>> </operation> > >>> </binding> > >>> <service name="ValidaSigWS"> > >>> <port name="ValidaSigWSSoap" binding="s1:ValidaSigWSSoap"> > >>> <soap:address > >> location="http://miip:80/servicios/basicos/seguridad/certifica > >> dos/ValidaCertificadoWS.jws"/> > >>> </port> > >>> </service> > >>> </definitions> > >>> Thanks for your help, > >>> Regards > >> -- > >
