NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
vandunen
Joined: 11 Mar 2010 Posts: 2
|
Posted: Thu Mar 11, 2010 6:21 pm Post subject: wsimport-client-generate duplicate class error |
|
|
Hello *,
after trying to deploy a web appplication which has a web reference as consumer and a web service as provider, the wsimport generates
always classes of the web service in one package
like com.webservice and the duplicate ones in another package
with the class name as prefix like MyService.com.webservice whereby
MyService is the generated name of the wsdl:service in the WSDL.
No matter what version of Windows Netbeans I use (6.7.1 or 6. I always
get the same duplicate classes created.
Can anybody help me out please?
this is my WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/soap/http" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bt="http://wayside.home.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://wayside.home.com">
<wsdl:types>
<xs:schema xmlns:btd="http://wayside.home.com/xsd" targetNamespace="http://wayside.home.com">
<xs:import namespace="http://wayside.home.com/xsd"/>
<xs:element name="DownloadFile">
<xs:complexType>
<xs:sequence>
<xs:element name="fileName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UploadFile">
<xs:complexType>
<xs:sequence>
<xs:element name="fileName" type="xs:string"/>
<xs:element name="targetDirectory" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<xs:schema targetNamespace="http://wayside.home.com/xsd">
<xs:simpleType name="filenames">
<xs:list itemType="xs:string"/>
</xs:simpleType>
</xs:schema>
</wsdl:types>
<wsdl:message name="GetDownloadFileRequest">
<wsdl:part name="contentlistname" element="bt:DownloadFile"/>
</wsdl:message>
<wsdl:message name="GetUploadFileRequest">
<wsdl:part name="filename" element="bt:UploadFile"/>
</wsdl:message>
<wsdl:portType name="FtpService">
<wsdl:operation name="DownloadFile">
<wsdl:input message="bt:GetDownloadFileRequest"/>
</wsdl:operation>
<wsdl:operation name="UploadFile">
<wsdl:input message="bt:GetUploadFileRequest"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ftpService" type="bt:FtpService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="DownloadFile">
<soap:operation soapAction="http://home.com/wayside/ftp" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="UploadFile">
<soap:operation soapAction="http://home.com/wayside/ftp" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="FileTransferService">
<wsdl:port name="FileRepositoryPort" binding="bt:ftpService">
<soap:address location="http://home.com"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Regards,
vandunen |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|