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 vincent le squere <vi...@gmail.com> on 2006/01/02 14:11:26 UTC
[axis2] wdsl2java generation
Hello, you can see below my wsdl file.
There are some commented lines, if i uncomment them the generation
fail with a nullPointerException at :
org.apache.axis2.wsdl.builder.wsdl4j.WSDLPump.generateReferenceQName
and i've any idea why...
Someone could help me ?
thanks
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://intCoriolis.sismer.ifremer.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://intCoriolis.sismer.ifremer.com-impl"
xmlns:intf="http://intCoriolis.sismer.ifremer.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types/>
<wsdl:message name="getCriteresSpecifiquesResponse">
<wsdl:part name="getCriteresSpecifiquesReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="extraireDonneesResponse">
<wsdl:part name="extraireDonneesReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="executerRequeteRequest">
<wsdl:part name="p_requete" type="xsd:string"/>
<!--<wsdl:part name="p_codeBase" type="xsd:string"/>-->
</wsdl:message>
<wsdl:message name="extraireDonneesRequest">
<wsdl:part name="p_requete" type="xsd:string"/>
<!--<wsdl:part name="p_format" type="xsd:string"/>
<wsdl:part name="p_codeBase" type="xsd:string"/>-->
</wsdl:message>
<wsdl:message name="executerRequeteResponse">
<wsdl:part name="executerRequeteReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="getCriteresSpecifiquesRequest">
<wsdl:part name="p_codeBase" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="Integrateur">
<wsdl:operation name="executerRequete" parameterOrder="p_requete
p_codeBase">
<wsdl:input message="intf:executerRequeteRequest"
name="executerRequeteRequest"/>
<wsdl:output message="intf:executerRequeteResponse"
name="executerRequeteResponse"/>
</wsdl:operation>
<wsdl:operation name="extraireDonnees" parameterOrder="p_requete
p_format p_codeBase">
<wsdl:input message="intf:extraireDonneesRequest"
name="extraireDonneesRequest"/>
<wsdl:output message="intf:extraireDonneesResponse"
name="extraireDonneesResponse"/>
</wsdl:operation>
<wsdl:operation name="getCriteresSpecifiques" parameterOrder="p_codeBase">
<wsdl:input message="intf:getCriteresSpecifiquesRequest"
name="getCriteresSpecifiquesRequest"/>
<wsdl:output message="intf:getCriteresSpecifiquesResponse"
name="getCriteresSpecifiquesResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IntegrateurSoapBinding" type="intf:Integrateur">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="executerRequete">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="executerRequeteRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
</wsdl:input>
<wsdl:output name="executerRequeteResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="extraireDonnees">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="extraireDonneesRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
</wsdl:input>
<wsdl:output name="extraireDonneesResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getCriteresSpecifiques">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getCriteresSpecifiquesRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
</wsdl:input>
<wsdl:output name="getCriteresSpecifiquesResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="IntegrateurService">
<wsdl:port binding="intf:IntegrateurSoapBinding" name="Integrateur">
<wsdlsoap:address
location="http://localhost:8081/integrateur/services/Integrateur"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Re: [axis2] wdsl2java generation
Posted by Anne Thomas Manes <at...@gmail.com>.
Your binding definition is invalid. In particular:
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
You cannot specify an encoding style with use="literal". Either change
use="encoded" or remove the encodingStyle attribute on all your binding
definitions.
Anne
On 1/2/06, vincent le squere <vi...@gmail.com> wrote:
>
> Hello, you can see below my wsdl file.
> There are some commented lines, if i uncomment them the generation
> fail with a nullPointerException at :
> org.apache.axis2.wsdl.builder.wsdl4j.WSDLPump.generateReferenceQName
>
> and i've any idea why...
> Someone could help me ?
>
> thanks
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://intCoriolis.sismer.ifremer.com"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://intCoriolis.sismer.ifremer.com-impl"
> xmlns:intf="http://intCoriolis.sismer.ifremer.com"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <wsdl:types/>
>
> <wsdl:message name="getCriteresSpecifiquesResponse">
> <wsdl:part name="getCriteresSpecifiquesReturn" type="xsd:string"/>
> </wsdl:message>
>
> <wsdl:message name="extraireDonneesResponse">
> <wsdl:part name="extraireDonneesReturn" type="xsd:string"/>
> </wsdl:message>
>
> <wsdl:message name="executerRequeteRequest">
> <wsdl:part name="p_requete" type="xsd:string"/>
> <!--<wsdl:part name="p_codeBase" type="xsd:string"/>-->
> </wsdl:message>
>
> <wsdl:message name="extraireDonneesRequest">
> <wsdl:part name="p_requete" type="xsd:string"/>
> <!--<wsdl:part name="p_format" type="xsd:string"/>
> <wsdl:part name="p_codeBase" type="xsd:string"/>-->
> </wsdl:message>
>
> <wsdl:message name="executerRequeteResponse">
> <wsdl:part name="executerRequeteReturn" type="xsd:string"/>
> </wsdl:message>
>
> <wsdl:message name="getCriteresSpecifiquesRequest">
> <wsdl:part name="p_codeBase" type="xsd:string"/>
> </wsdl:message>
>
> <wsdl:portType name="Integrateur">
> <wsdl:operation name="executerRequete" parameterOrder="p_requete
> p_codeBase">
> <wsdl:input message="intf:executerRequeteRequest"
> name="executerRequeteRequest"/>
> <wsdl:output message="intf:executerRequeteResponse"
> name="executerRequeteResponse"/>
> </wsdl:operation>
>
> <wsdl:operation name="extraireDonnees" parameterOrder="p_requete
> p_format p_codeBase">
> <wsdl:input message="intf:extraireDonneesRequest"
> name="extraireDonneesRequest"/>
> <wsdl:output message="intf:extraireDonneesResponse"
> name="extraireDonneesResponse"/>
> </wsdl:operation>
>
> <wsdl:operation name="getCriteresSpecifiques"
> parameterOrder="p_codeBase">
> <wsdl:input message="intf:getCriteresSpecifiquesRequest"
> name="getCriteresSpecifiquesRequest"/>
> <wsdl:output message="intf:getCriteresSpecifiquesResponse"
> name="getCriteresSpecifiquesResponse"/>
> </wsdl:operation>
> </wsdl:portType>
>
> <wsdl:binding name="IntegrateurSoapBinding" type="intf:Integrateur">
> <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
> <wsdl:operation name="executerRequete">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="executerRequeteRequest">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
> </wsdl:input>
> <wsdl:output name="executerRequeteResponse">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
> </wsdl:output>
> </wsdl:operation>
>
> <wsdl:operation name="extraireDonnees">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="extraireDonneesRequest">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
> </wsdl:input>
> <wsdl:output name="extraireDonneesResponse">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
> </wsdl:output>
> </wsdl:operation>
>
> <wsdl:operation name="getCriteresSpecifiques">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="getCriteresSpecifiquesRequest">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
> </wsdl:input>
> <wsdl:output name="getCriteresSpecifiquesResponse">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://intCoriolis.sismer.ifremer.com" use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
>
> <wsdl:service name="IntegrateurService">
> <wsdl:port binding="intf:IntegrateurSoapBinding" name="Integrateur">
> <wsdlsoap:address
> location="http://localhost:8081/integrateur/services/Integrateur"/>
> </wsdl:port>
> </wsdl:service>
>
> </wsdl:definitions>
>