Hi all,
I want generate a client java from a wsdl, but when use wsdl2java, this operation generate a suspicous class:
[[
[...]
public class ArrayOf_xsd_short extends java.lang.Object[] implements java.io.Serializable {
public ArrayOf_xsd_short() {
}
[...]
public ArrayOf_xsd_short() {
}
[...]
]]
I tried with Axis 1.2.1, Axis 1.3 and Axis 1.4. The output is:
[[
Generating class from ( http://lintanium:8080/active-bpel/services/PN_1141311750984PLService?wsdl). ..
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipar
t). Attachment support is disabled.
Parsing XML file: http://lintanium:8080/active-bpel/services/PN_1141311750984PLService?wsdl
Retrieving schema at 'http://lintanium:8080/active-bpel/catalog/project:/PN_1141311750984/wsdl/outpu
t_PN_1141311750984.xsd', relative to 'http://lintanium:8080/active-bpel/services/PN_1141311750984PLS
ervice?wsdl'.
Retrieving schema at ' http://schemas.xmlsoap.org/soap/encoding/', relative to ' http://lintanium:8080
/active-bpel/catalog/project:/PN_1141311750984/wsdl/output_PN_1141311750984.xsd'.
Generating output_PN_1141311750984\ArrayOf_xsd_short.java
Generating output_PN_1141311750984\Accesso.java
Generating output_PN_1141311750984\Esenzione.java
Generating output_PN_1141311750984\Date.java
Generating output_PN_1141311750984\Servizio.java
Generating output_PN_1141311750984\DateTimeBase.java
Generating output_PN_1141311750984\Anagrafica.java
Generating com\hp\best\terregov\PN_1141311750984\PN_1141311750984PT.java
Generating com\hp\best\terregov\PN_1141311750984\PN_1141311750984PLServiceBindingStub.java
- soap:body in Binding com.hp.best.terregov.PN_1141311750984.PN_1141311750984PLServiceBinding / Oper
ation doProcess has an empty namespace
Generating com\hp\best\terregov\PN_1141311750984\PN_1141311750984PLService.java
Generating com\hp\best\terregov\PN_1141311750984\PN_1141311750984PLServiceLocator.java
]]
In attach you can find the wsdl and genereted java class.
Any comment/help is highly appreciated.
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://terregov.best.hp.com/PN_1141311750984" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:slt="http://schemas.xmlsoap.org/ws/2003/03/service-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://terregov.best.hp.com/PN_1141311750984" xmlns:tns0="http://terregov.regione.veneto.it:8083/tgv/services/SearchAssistito" xmlns:tns1="http://terregov.regione.veneto.it:8083/tgv/services/InfoAssistito" xmlns:tnsouttgv="urn:output_PN_1141311750984" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="urn:output_PN_1141311750984" schemaLocation="http://lintanium:8080/active-bpel/catalog/project:/PN_1141311750984/wsdl/output_PN_1141311750984.xsd"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="MessageOutput">
<wsdl:part name="messageOutput" type="tnsouttgv:Anagrafica"/>
</wsdl:message>
<wsdl:message name="MessageInput">
<wsdl:part name="messageInput" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="PN_1141311750984PT">
<wsdl:operation name="doProcess">
<wsdl:input message="tns:MessageInput"/>
<wsdl:output message="tns:MessageOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PN_1141311750984PLServiceBinding" type="tns:PN_1141311750984PT">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
<wsdl:operation name="doProcess">
<soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
<wsdl:input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</wsdl:input>
<wsdl:output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="PN_1141311750984PLService">
<wsdl:port binding="tns:PN_1141311750984PLServiceBinding" name="PN_1141311750984PLServicePort">
<soap:address location="http://lintanium:8080/active-bpel/services/PN_1141311750984PLService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
/**
* ArrayOf_xsd_short.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package output_PN_1141311750984;
public class ArrayOf_xsd_short extends java.lang.Object[] implements java.io.Serializable {
public ArrayOf_xsd_short() {
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(ArrayOf_xsd_short.class, false);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:output_PN_1141311750984", "ArrayOf_xsd_short"));
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
