MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
avseq
Post subject: autogen WSDL and deployment problem  PostPosted: Aug 09, 2006 - 08:55 AM



Joined: Jul 27, 2006
Posts: 12

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Aug 14, 2006 - 03:52 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Please go to MyEclipse > About MyEclipse > INstallation Summmary and paste the result here for me.

Also, does Problem 1 happen all the time? Can you test the web service using the xplorer?
And for Problem 2, it's possible Tomcat is in the middle of restart that context after a redeploy.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-michael
Post subject:   PostPosted: Aug 17, 2006 - 11:01 AM
Moderator
Moderator


Joined: May 05, 2003
Posts: 1037

By default the Aegis Java-XML binding mechanism is used. Please be sure to read http://xfire.codehaus.org/Aegis+Binding for general background info and requirements.

Using ME 5.0.1, I created a simple web service that returns a Person class that has only name and age properties. The auto-generated WSDL for Person follows:

Code:
 <xsd:complexType name="Person">
        <xsd:sequence>
          <xsd:element name="age" type="xsd:int" minOccurs="0" />
          <xsd:element name="name" type="xsd:string" minOccurs="0" nillable="true" />
        </xsd:sequence>
      </xsd:complexType>



Also if you were using a milestone release of MyEclipse 5 you should upgrade immediately because there is a fix for a problem in the hot-sync deployer with web services.

_________________
Michael
MyEclipse Support

Posting Guidelines FYI
When posting a bug report, click the "Insert" button above the message window and fill out the empty fields to help us troubleshoot your problem.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits