You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Antonio Ruiz (JIRA)" <ax...@ws.apache.org> on 2005/06/23 19:50:23 UTC

[jira] Created: (AXIS-2086) WSDL2Java and xmldsig

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.2, 1.2RC3, 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/certificados/respuestaCertificado.xsd" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.xsd" xmlns:s1="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.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/certificados/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/xmldsig-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/certificados/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/certificados/ValidaCertificadoWS.jws"/>
       </port>
   </service>
</definitions> 

Thanks for your help,
Regards

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2086) WSDL2Java and xmldsig

Posted by "Dies Koper (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2086?page=all ]

Dies Koper updated AXIS-2086:
-----------------------------

    Attachment: fixed-ref.wsdl

Updated user's wsdl to point to a valid XSD:
Changed the import's schemaLocation and namespace values.


> 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
>  Attachments: fixed-ref.wsdl
>
> 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/certificados/respuestaCertificado.xsd" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.xsd" xmlns:s1="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.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/certificados/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/xmldsig-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/certificados/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/certificados/ValidaCertificadoWS.jws"/>
>        </port>
>    </service>
> </definitions> 
> Thanks for your help,
> Regards

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2086) WSDL2Java and xmldsig

Posted by "Lars Olson (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2086?page=comments#action_12316413 ] 

Lars Olson commented on AXIS-2086:
----------------------------------

This looks like the same bug as AXIS-1993.

> 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/certificados/respuestaCertificado.xsd" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.xsd" xmlns:s1="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.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/certificados/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/xmldsig-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/certificados/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/certificados/ValidaCertificadoWS.jws"/>
>        </port>
>    </service>
> </definitions> 
> Thanks for your help,
> Regards

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2086) WSDL2Java and xmldsig

Posted by "Dies Koper (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2086?page=comments#action_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-schema.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

> 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/certificados/respuestaCertificado.xsd" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.xsd" xmlns:s1="http://ea.carm.es/schemas/basicos/seguridad/certificados/ValidaCertificadoWS.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/certificados/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/xmldsig-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/certificados/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/certificados/ValidaCertificadoWS.jws"/>
>        </port>
>    </service>
> </definitions> 
> Thanks for your help,
> Regards

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira