- This topic has 1 reply, 1 voice, and was last updated 17 years, 4 months ago by Michaelw.
-
AuthorPosts
-
MichaelwMemberI deployed my web service in Weblogic Server 9.21 (jdk1.5.0_06). Then I used MyEclipse 5.5 (jdk 1.5.0_06) to generate the web service client from the WSDL. And I am getting this message during web service client generation:
WS-I: A problem occurred while running the WS-I WSDL conformance check:org.eclipse.wst.wsi.internal.analyzer. WSIAnalyzer Exctption: The conformance validation failed. Nested exception is: java.lang.NullPointerException. The WSDLAnalyzer was unable to validate the given WSDL file.
Attached is my WSDL:
<?xml version=”1.0″ encoding=”UTF-8″ ?>
– <s0:definitions name=”FotoComplexServiceDefinitions” targetNamespace=”http://complex.example.org” xmlns=”” xmlns:s0=”http://schemas.xmlsoap.org/wsdl/” xmlns:s1=”http://complex.example.org” xmlns:s2=”http://schemas.xmlsoap.org/wsdl/soap/”>
– <s0:types>
– <xs:schema attributeFormDefault=”unqualified” elementFormDefault=”qualified” targetNamespace=”http://complex.example.org” xmlns:s0=”http://schemas.xmlsoap.org/wsdl/” xmlns:s1=”http://complex.example.org” xmlns:s2=”http://schemas.xmlsoap.org/wsdl/soap/” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<xs:import namespace=”java:com.dps.foto” />
– <xs:element name=”getFotoInfo”>
– <xs:complexType>
– <xs:sequence>
<xs:element name=”userId” type=”xs:string” />
<xs:element name=”licenceNo” type=”xs:string” />
<xs:element name=”dateOfBirth” type=”xs:string” />
<xs:element name=”jurisdiction” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:element>
– <xs:element name=”getFotoInfoResponse”>
– <xs:complexType>
– <xs:sequence>
<xs:element name=”getFotoInfoReturnMessage” type=”java:FotoInqResult” xmlns:java=”java:com.dps.foto” />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
– <xs:schema attributeFormDefault=”unqualified” elementFormDefault=”qualified” targetNamespace=”java:com.dps.foto” xmlns:s0=”http://schemas.xmlsoap.org/wsdl/” xmlns:s1=”http://complex.example.org” xmlns:s2=”http://schemas.xmlsoap.org/wsdl/soap/” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
– <xs:complexType name=”FotoInqResult”>
– <xs:sequence>
<xs:element minOccurs=”1″ name=”UserId” nillable=”true” type=”xs:string” />
<xs:element minOccurs=”1″ name=”LicenceNo” nillable=”true” type=”xs:string” />
<xs:element minOccurs=”1″ name=”DateOfBirth” nillable=”true” type=”xs:string” />
<xs:element minOccurs=”1″ name=”Jurisdiction” nillable=”true” type=”xs:string” />
<xs:element minOccurs=”1″ name=”MessageNo” nillable=”true” type=”xs:string” />
<xs:element minOccurs=”1″ name=”MessageEn” nillable=”true” type=”xs:string” />
<xs:element minOccurs=”1″ name=”MessageFr” nillable=”true” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:schema>
</s0:types>
– <s0:message name=”getFotoInfo”>
<s0:part element=”s1:getFotoInfo” name=”parameters” />
</s0:message>
– <s0:message name=”getFotoInfoResponse”>
<s0:part element=”s1:getFotoInfoResponse” name=”parameters” />
</s0:message>
– <s0:portType name=”FotoComplexPortType”>
– <s0:operation name=”getFotoInfo” parameterOrder=”parameters”>
<s0:input message=”s1:getFotoInfo” />
<s0:output message=”s1:getFotoInfoResponse” />
</s0:operation>
</s0:portType>
– <s0:binding name=”FotoComplexServiceSoapBinding” type=”s1:FotoComplexPortType”>
<s2:binding style=”document” transport=”http://schemas.xmlsoap.org/soap/http” />
– <s0:operation name=”getFotoInfo”>
<s2:operation soapAction=”” style=”document” />
– <s0:input>
<s2:body parts=”parameters” use=”literal” />
</s0:input>
– <s0:output>
<s2:body parts=”parameters” use=”literal” />
</s0:output>
</s0:operation>
</s0:binding>
– <s0:service name=”FotoComplexService”>
– <s0:port binding=”s1:FotoComplexServiceSoapBinding” name=”FotoComplexPort”>
<s2:address location=”http://localhost:7001/complexService/FotoComplexService” />
</s0:port>
</s0:service>
</s0:definitions>My complex type java class “FotoInqResult.java” is in “com.dps.foto” package. However,
MyEclipse ended up generate it under “java.com_dps”. Why??Mike
MichaelwMemberI created a new package “com.dps.foto” which MyEclipse should have created for me. Then I moved all the files from the package “java.com_dps” created by MyEclipse to the new package I created. I ran the application and it retrieved the result from the web service I deployed in Weblogic Server. My question is “Is there a bug in MyEclipse when generating a web service client from WSDL or I am missing something in my WSDL”?
Mike
-
AuthorPosts