When I use myeclipse deploy web service according to “Web Services: Code-First Technique”.
I find the questions list below :
problem 1 : It can’t depoy web service that have simple object type.
For Example , I have a pserson class , it has two property , name and age. so WSDL should include following information
<xsd:schema
targetNamespace=”http://examples.org/Person”>
<xsd:complexType name=”Person”>
<xsd:sequence>
<xsd:element name=”name” type=”xsd:string”/>
<xsd:element name=”age” type=”xsd:int”/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
But when I deploy web service by myeclpise on Tomcat , the WSDL loss the property information , list as below
<xsd:complexType name=”Person” />
<xsd:element name=”sayHelloResponse”>
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs=”1″ maxOccurs=”1″ name=”out” nillable=”true” type=”tns:Person” />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
problem : 2 : Sometimes I deploy web service by myeclipse , it shows deploy successfully , but can’t be find by Web service
exployer or other program, it return error code is 503 , but sometimes ok , is any problem about this fucntion in myeclpise?
I have checked that the WSDL URL is correct.
Best Regards