- This topic has 8 replies, 3 voices, and was last updated 16 years ago by kumar.
-
AuthorPosts
-
kumarMemberHi
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 applicationHow 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
Loyal WaterMemberFirstly, 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/
kumarMemberThanks Nipun. I may need your help again. Let me install new version and explore with tutorials.
Loyal WaterMemberYour welcome.
kumarMemberHi 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
rmcvayMemberDid 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.
kumarMemberI 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
rmcvayMemberReverse 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.
kumarMemberHi 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 -
AuthorPosts