can you help me?
thx
Simone
On 2/16/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
My guess is that it's your WSDL, but we need the imported XSD to make a final determination.
One error that I see in the WSDL:<wsdl:message name="uploadResponse">
<wsdl:part name="return" type="xsd:string"/>
</wsdl:message>
When using document style, a message part must reference an element, not a type. This error could be causing the NPE.
Also suspect is the reference to the element "apachesoap:DataHandler". First, you need to make sure that this element is actually defined. And second, typically, you use this type when sending attachments, but you have not defined your binding to use attachments.
AnneOn 2/16/06, Simone Bonazzoli <[EMAIL PROTECTED]> wrote:i run wsdl2java for this instance do wsdl and i have the error below, this is an error of mine or bug of wsdl2java tool???
thanks
Simone
[axis-wsdl2java] java.lang.NullPointerException
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.Utils.getParameterTypeName(Utils.java:994)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignature(JavaGeneratorFactory.java:1473)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignatures(JavaGeneratorFactory.java:1420)
[axis-wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.generatorPass(JavaGeneratorFactory.java:213)
[axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:425)
[axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
[axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run (Parser.java:362)
[axis-wsdl2java] at java.lang.Thread.run(Thread.java:595)
BUILD FAILED
/home/simo/develop/java/WebDisk/build.xml:104: WSDL processing error for /home/simo/develop/java/WebDisk/src/it/uniroma2/informatica/WebDisk.wsdl :
null
Total time: 3 seconds
-------------------------
WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace=" http://www.informatica.uniroma2.it/WebDisk/wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/ "
xmlns:tns=" http://www.informatica.uniroma2.it/WebDisk/wsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ "
xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:types=" http://www.informatica.uniroma2.it/WebDisk"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/ "
xmlns:xsd=" http://www.w3.org/2001/XMLSchema" name="WebDisk">
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace=" http://www.informatica.uniroma2.it/WebDisk/wsdl/types">
<xsd:import namespace=" http://www.informatica.uniroma2.it/WebDisk" schemaLocation="/home/simo/develop/java/WebDisk/src/it/uniroma2/informatica/WebDisk.xsd"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="listRequest">
<wsdl:part name="parameters" element="types:listRequest" />
</wsdl:message>
<wsdl:message name="listResponse">
<wsdl:part name="parameters" element="types:listResponse"/>
</wsdl:message>
<wsdl:message name="uploadRequest">
<wsdl:part name="file" element="apachesoap:DataHandler"/>
</wsdl:message>
<wsdl:message name="uploadResponse">
<wsdl:part name="return" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="WebDiskPortType">
<wsdl:operation name="list">
<wsdl:input message="tns:listRequest" />
<wsdl:output message="tns:listResponse" />
</wsdl:operation>
<wsdl:operation name="upload">
<wsdl:input message="tns:uploadRequest"/>
<wsdl:output message="tns:uploadResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WebDiskSOAPBinding" type="tns:WebDiskPortType">
<soap:binding style="document" transport=" http://schemas.xmlsoap.org/soap/http "/>
<wsdl:operation name="list">
<soap:operation soapAction=" http://www.informatica.uniroma2.it/WebDisk/wsdl/list "/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="upload">
<soap:operation soapAction=" http://www.informatica.uniroma2.it/WebDisk/wsdl/upload"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WebDiskService">
<wsdl:port binding="tns:WebDiskSOAPBinding" name="WebDiskSOAP">
<soap:address location=" http://localhost:8080/axis/services/WebDiskSOAP "/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>