facebook

How to create Webservice client using myeclipse

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #290603 Reply

    kumar
    Member

    Hi

    I am new to myeclipse IDE. I need to consume Webservice.

    webservice is written on Dot Net Platform and I need to consume web service using my Timer bean in JAVA which will access service every 5 min.
    Service will return XML file. File needs to be parsed and then call API’s to pass the data to another application

    How do i do it? what is the recommended way to use web services via myeclipse?

    Do i need to use JAX-WS or XFire?

    I read Documentations but I am not clear. This is first time i am consuming webservice
    Version of MyEclipse : 4.1.1 GA
    Thanks in advance

    #290608 Reply

    Loyal Water
    Member

    Firstly, I would suggest you upgrade to MyEclipse 6.5 so that you can take advantage of all the new features that were added since 4.1. You are working with a very old release of MyEclipse.

    This would be a good tutorial to start with:-
    http://www.myeclipseide.com/documentation/quickstarts/webservicesclient/

    #290629 Reply

    kumar
    Member

    Thanks Nipun. I may need your help again. Let me install new version and explore with tutorials.

    #290668 Reply

    Loyal Water
    Member

    Your welcome.

    #290872 Reply

    kumar
    Member

    Hi All,
    I stuck again. I am using My Eclipse Enterprise Workbench Version 6.6.0.
    I selected my project and click
    1) New Web Service Client
    2) Framework JAX – WS
    3) Entered my WSDL URL
    4) Entered Java Source Folder
    5) Entered java package
    After That when I click next button I get WSDL validation Page. This page is throwing error as
    WSDL file has validation errors. Code generation may fail
    Error is ——–Cvc-complex-type.4:Attribute’part’ must appear on element ‘mime:content’.
    I read following post http://forums.activevos.com/showthread.php?p=13252 but could not get what’s wrong in my setup.
    Please help
    Thanks

    #290875 Reply

    rmcvay
    Member

    Did you follow the link (http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html#MIME_Binding_Schema_Fixes) in the thread? It seems pretty clear as to what is required in the XML.

    #290882 Reply

    kumar
    Member

    I read it but could not understand as it went above my head.

    one thing is unclear to me that if service is running fine and i am able to get XML from browser why its throwing error while WSDL validation
    Thanks
    kumar

    #290925 Reply

    rmcvay
    Member

    Reverse engineering tools are often a lot crankier about the correctness of their input than the applications using those artifacts in the first place. E.G. There is very little correct HTML and Javascript on the web but most browsers just blow it off and guess at what is wanted.

    #290954 Reply

    kumar
    Member

    Hi All,
    I stuck again. I am using My Eclipse Enterprise Workbench Version 6.6.0.
    I selected my project and click
    1) New Web Service Client
    2) Framework JAX – WS
    3) Entered my WSDL URL
    4) Entered Java Source Folder
    5) Entered java package
    After That when I click next button I get WSDL validation Page. This page is throwing error as
    WSDL file has validation errors. Code generation may fail
    Error is ——–Cvc-complex-type.4:Attribute’part’ must appear on element ‘mime:content’.
    I read following post http://forums.activevos.com/showthread.php?p=13252 but could not get what’s wrong in my setup.
    Please help
    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: How to create Webservice client using myeclipse

You must be logged in to post in the forum log in