You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Stevens, Paul A" <pa...@eds.com> on 2006/10/17 18:09:51 UTC

WSDL2Java Error

We are getting the following error trying to convert a wsdl to java:

D:\ehro\wsdl_test>WSDL2Java -uri "eTrust spml-wsdl.wsdl" -o test
Using AXIS2_HOME:   D:\axis2
Using JAVA_HOME:    D:\j2sdk1.4.2_08
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:96)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: WSDLException (at /wsdl:definitions/wsdl:import):
faultCode=3DINVALID_WSDL: Encountered illegal extension attribute
'schemaLocation'. Extension attributes must be in a namespace other than
WSDL's.:
        at
com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityAttributes(Unknown
Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Cod
eGenerationEngine.java:238)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:81)
        ... 2 more




Here is the wsdl:

<?xml version="1.0" encoding="utf-8"?>

<wsdl:definitions
name="eTrust IAM SPML Service" 
targetNamespace="urn:oasis:names:tc:SPML:1:0:wsdl" 
xmlns:xsd="http://www.w3.org/1/XMLSchema"
xmlns:tns="urn:oasis:names:tc:SPML:1:0:wsdl" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:spml="urn:oasis:names:tc:SPML:1:0:req"
xmlns="http://schemas.xmlsoap.org/wsdl/"> 

<wsdl:import namespace="urn:oasis:names:tc:SPML:1:0:req"
schemaLocation="http://www.oasis-open.org/committees/download.php/2396/c
s-pstc-spml-schema-1.0.xsd"/>

<wsdl:documentation>
This is a web-service interface to the eTrust Admin
user provisioning functions such as add, modify, delete, 
search, and extended requests.
It provides a platform- and language-independent protocol 
that allows the eTrust Provisioning Server to respond to 
requests generated from any Requesting Authority (RA) able 
to construct a valid SPML request.
</wsdl:documentation>

<wsdl:message name="SPMLBatchRequestMessage"> 
<wsdl:part name="body" element="spml:batchRequest" /> 
</wsdl:message>

<wsdl:message name="SPMLBatchResponseMessage"> 
<wsdl:part name="body" element="spml:batchResponse" /> 
</wsdl:message> 

<wsdl:message name="SPMLAddRequestMessage"> 
<wsdl:part name="body" element="spml:addRequest" /> 
</wsdl:message> 

<wsdl:message name="SPMLAddResponseMessage"> 
<wsdl:part name="body" element="spml:addResponse" /> 
</wsdl:message> 

<wsdl:message name="SPMLModifyRequestMessage"> 
<wsdl:part name="body" element="spml:modifyRequest" /> 
</wsdl:message> 

<wsdl:message name="SPMLModifyResponseMessage"> 
<wsdl:part name="body" element="spml:modifyResponse" /> 
</wsdl:message> 

<wsdl:message name="SPMLDeleteRequestMessage"> 
<wsdl:part name="body" element="spml:deleteRequest" /> 
</wsdl:message> 

<wsdl:message name="SPMLDeleteResponseMessage"> 
<wsdl:part name="body" element="spml:deleteResponse" /> 
</wsdl:message> 

<wsdl:message name="SPMLSearchRequestMessage"> 
<wsdl:part name="body" element="spml:searchRequest" /> 
</wsdl:message> 

<wsdl:message name="SPMLSearchResponseMessage"> 
<wsdl:part name="body" element="spml:searchResponse" /> 
</wsdl:message> 

<wsdl:message name="SPMLExtendedRequestMessage"> 
<wsdl:part name="body" element="spml:extendedRequest" /> 
</wsdl:message> 

<wsdl:message name="SPMLExtendedResponseMessage"> 
<wsdl:part name="body" element="spml:extendedResponse" /> 
</wsdl:message> 

<wsdl:message name="SPMLSchemaRequestMessage"> 
<wsdl:part name="body" element="spml:schemaRequest" /> 
</wsdl:message> 

<wsdl:message name="SPMLSchemaResponseMessage"> 
<wsdl:part name="body" element="spml:schemaResponse" /> 
</wsdl:message> 

<wsdl:portType name="SPMLRequestPortType"> 

<wsdl:operation name="SPMLBatchRequest"> 
<wsdl:input name="SPMLBatchRequestInput" 
message="tns:SPMLBatchRequestMessage"/> 
<wsdl:output name="SPMLBatchRequestOutput" 
message="tns:SPMLBatchResponseMessage"/> 
</wsdl:operation> 

<wsdl:operation name="SPMLAddRequest"> 
<wsdl:input name="SPMLAddRequestInput" 
message="tns:SPMLAddRequestMessage"/> 
<wsdl:output name="SPMLAddRequestOutput" 
message="tns:SPMLAddResponseMessage"/> 
</wsdl:operation> 

<wsdl:operation name="SPMLModifyRequest"> 
<wsdl:input name="SPMLModifyRequestInput" 
message="tns:SPMLModifyRequestMessage"/> 
<wsdl:output name="SPMLModifyRequestOutput" 
message="tns:SPMLModifyResponseMessage"/> 
</wsdl:operation> 

<wsdl:operation name="SPMLDeleteRequest"> 
<wsdl:input name="SPMLDeleteRequestInput" 
message="tns:SPMLDeleteRequestMessage"/> 
<wsdl:output name="SPMLDeleteRequestOutput" 
message="tns:SPMLDeleteResponseMessage"/> 
</wsdl:operation> 

<wsdl:operation name="SPMLSearchRequest"> 
<wsdl:input name="SPMLSearchRequestInput" 
message="tns:SPMLSearchRequestMessage"/> 
<wsdl:output name="SPMLSearchRequestOutput" 
message="tns:SPMLSearchResponseMessage"/> 
</wsdl:operation> 

<wsdl:operation name="SPMLExtendedRequest"> 
<wsdl:input name="SPMLExtendedRequestInput" 
message="tns:SPMLExtendedRequestMessage"/> 
<wsdl:output name="SPMLExtendedRequestOutput" 
message="tns:SPMLExtendedResponseMessage"/> 
</wsdl:operation> 

<wsdl:operation name="SPMLSchemaRequest"> 
<wsdl:input name="SPMLSchemaRequestInput" 
message="tns:SPMLSchemaRequestMessage"/> 
<wsdl:output name="SPMLSchemaRequestOutput" 
message="tns:SPMLSchemaResponseMessage"/> 
</wsdl:operation> 

</wsdl:portType> 

<wsdl:binding name="SPMLSoapBinding" type="tns:SPMLRequestPortType"> 
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/> 

<wsdl:operation name="SPMLBatchRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/batchRequest" /> 
<wsdl:input name="SPMLBatchRequestInput" >
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLBatchRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

<wsdl:operation name="SPMLAddRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/addRequest" /> 
<wsdl:input name="SPMLAddRequestInput" > 
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLAddRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

<wsdl:operation name="SPMLModifyRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/modifyRequest" /> 
<wsdl:input name="SPMLModifyRequestInput" > 
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLModifyRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

<wsdl:operation name="SPMLDeleteRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/deleteRequest" /> 
<wsdl:input name="SPMLDeleteRequestInput" > 
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLDeleteRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

<wsdl:operation name="SPMLSearchRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/searchRequest" /> 
<wsdl:input name="SPMLSearchRequestInput" > 
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLSearchRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

<wsdl:operation name="SPMLExtendedRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/extendedRequest" /> 
<wsdl:input name="SPMLExtendedRequestInput" > 
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLExtendedRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

<wsdl:operation name="SPMLSchemaRequest"> 
<soap:operation style="document" 
soapAction="urn:oasis:names:tc:SPML:1:0:req/schemaRequest" /> 
<wsdl:input name="SPMLSchemaRequestInput" > 
<soap:body use="literal" /> 
</wsdl:input> 
<wsdl:output name="SPMLSchemaRequestOutput" > 
<soap:body use="literal" /> 
</wsdl:output> 
</wsdl:operation> 

</wsdl:binding> 

<wsdl:service name="eTrustIAMSPMLService"> 
<wsdl:documentation>eTrust IAM SPML Service</wsdl:documentation> 
<wsdl:port name="SPMLRequestPortType" binding="tns:SPMLSoapBinding">
<soap:address location="port here" /> 
</wsdl:port>
</wsdl:service> 

</wsdl:definitions> 

Thanks in advance for any help.