Hi everyone,
When I am trying to generate a JAX-WS client from the following wsdl i receive the following message, but the operations are not generated. I've been struggling with these problem for quite a long time. Can anyone who knows this help me.
Here is a description of warning messages
parsing WSDL...
[WARNING] ignoring operation "registerPersonnel": message part does not refer to a schema element declaration
line 68 of file:/C:/MCM_App3/WebServiceClient/src/conf/xml-resources/web-service-references/PersonnelAdministrationService/wsdl/localhost_9080/j1_demonstrator/PersonnelAdministrationService.wsdl
[WARNING] Port "PersonnelAdministrationPort" does not contain any usable operations
line 88 of file:/C:/MCM_App3/WebServiceClient/src/conf/xml-resources/web-service-references/PersonnelAdministrationService/wsdl/localhost_9080/j1_demonstrator/PersonnelAdministrationService.wsdl
[WARNING] Service "PersonnelAdministrationService" does not contain any usable ports. try running wsimport with -extension switch.
line 87 of file:/C:/MCM_App3/WebServiceClient/src/conf/xml-resources/web-service-references/PersonnelAdministrationService/wsdl/localhost_9080/j1_demonstrator/PersonnelAdministrationService.wsdl
**Here is a sample of my wsdl file**
−
<definitions name="PersonnelAdministrationService" targetNamespace="http://openesb.mcm.cciw.csir.co.za/wsdl/personnel_administration">
−
<types>
−
<xsd:schema targetNamespace="http://openesb.mcm.cciw.csir.co.za/wsdl/personnel_administration">
<xsd:import namespace="http://openesb.mcm.cciw.csir.co.za/client_schema" schemaLocation="http://146.64.248.149:9080/J1_DemonstratorCA-sun-http-binding/J1_Demonstrator/client_schema/ObjectItem.xsd"/>
<xsd:import namespace="http://openesb.mcm.cciw.csir.co.za/client_schema" schemaLocation="http://146.64.248.149:9080/J1_DemonstratorCA-sun-http-binding/J1_Demonstrator/client_schema/ObjectItemAlias.xsd"/>
</xsd:schema>
</types>
−
<message name="register">
<part name="objectItemParameter" element="ns:ObjectItem">
</part>
<part name="objectItemAliasParameter" element="ns:ObjectItemAlias">
</message>
−
<message name="registerResponse">
<part name="registrationStatus" type="xsd:string">
</part>
</message>
−
<portType name="PersonnelAdministrationPortType">
−
<operation name="registerPersonnel">
<input name="registerInput" message="tns:register">
</input>
<output name="registerOutput" message="tns:registerResponse">
</output>
</operation>
</portType>
−
<binding name="PersonnelAdministrationBinding" type="tns:PersonnelAdministrationPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
−
<operation name="registerPersonnel">
<soap:operation soapAction="PersonnelAdministrationPortType#registerPersonnel"/>
−
<input name="registerInput">
<soap:body use="literal"/>
</input>
−
<output name="registerOutput">
<soap:body use="literal"/>
</output>
</operation>
</binding>
−
<service name="PersonnelAdministrationService">
−
<port name="PersonnelAdministrationPort" binding="tns:PersonnelAdministrationBinding">
<soap:address location="http://146.64.248.149:9080/j1_demonstrator/PersonnelAdministrationService"/>
</port>
</service>
−
<plnk:partnerLinkType name="PersonnelAdministrationPartnerLinkType">
<plnk:role name="PersonnelAdministrationClientRole" portType="tns:PersonnelAdministrationPortType"/>
</plnk:partnerLinkType>
</definitions>