This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Environment setup for SCDJWS 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Environment setup for SCDJWS 5" Watch "Environment setup for SCDJWS 5" New topic
Author

Environment setup for SCDJWS 5

Jay Dev
Greenhorn

Joined: Jul 06, 2007
Posts: 4
Hi ,

For trying the code examples for SCDJWS 5, I am setting up the environment on desk top.

Currently I have decided to use

Eclipse 3.6.0 (Helios) - IDE
axis2-1.5.2
Apache C 6.0.29 – Application server.

Can someone confirm my approach to try out the example code for SCDJWS 5 is correct, because I have read in many places that Metro will be a better choice that AXIS2 . I took this approach because I got a better support for AXIS2 –ECLIPS- Apache from user forums.

Very much appreciate your comments as I don’t want to spend time on sitting up environment.

Thanks ,
Jay
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I would strongly advise you to use GlassFish when preparing for the certification.
First of all, it has Metro built-in and you do not need to spend any effort to get your server up and running - it works immediately after installation.
Second, Metro is the JAX-WS reference implementation.
Third, all the examples in my study notes were developed with Eclipse and GlassFish.
Eclipse is a good choice and there is a good GlassFish server plugin for it.

However, the choice is, of course, yours. Regardless of what you choose, good luck with your studies!
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
vasu mannem
Ranch Hand

Joined: Dec 11, 2003
Posts: 38
Ivan,

I am trying to run the examples given in your study notes.. installed glassfish tool bundle with eclipse ide.

https://jaxb-workshop.dev.java.net/plugins/eclipse/xjc-plugin.html


to create java bean classes from XSD, trying to download XJC plug in for eclipse but the given link/url is not working..

do you know where I can get the XJC plugin to run the example from 9.4 section of your notes.

thanks


VasuM.
SCJP, SCBCD,ITIL
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
No, I am very sorry to see that the XJC plugin has disappeared.
Hopefully it will be back at some other place.
Best wishes!
vasu mannem
Ranch Hand

Joined: Dec 11, 2003
Posts: 38
is there any other source where we can download the xjc plug in


or without that plugin, can't we proceed in glassfish tool bundle with eclipse?


instead of glassfish, using RAD7.5 and not sure where to define the end point to test the 9.4 example from your notes.

do you have an idea where to define endpoints in rad7.5 ..which are defined in sun-jaxws.xml file in glassfish..

because there is no wsdl in this example and i am getting the following error while run the example in rad7.5

What operation do you want to perform (Addition = add, Subtraction = sub, Division = div, Multiplication = mult)?
addGive the first integer number:
100Give the second integer number:
200Jan 26, 2011 3:26:15 PM null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Jan 26, 2011 3:26:16 PM null null
INFO: Client code attempting to load security configuration
Jan 26, 2011 3:26:16 PM null null
INFO: Client code attempting to load security configuration
Jan 26, 2011 3:26:17 PM null null
AUDIT: chain.started
javax.xml.ws.WebServiceException: java.net.ConnectException: HTTP ( 404 ) Not Found address : http://localhost:9081/JAX-WSXMLCalculator/xmlcalc/ at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:572)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:123)
at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
at org.apache.axis2.jaxws.client.dispatch.BaseDispatch.invoke(BaseDispatch.java:192)
at com.vasu.client.XMLCalculatorClient.<init>(XMLCalculatorClient.java:87)
at com.vasu.client.XMLCalculatorClient.main(XMLCalculatorClient.java:51)
Caused by: java.net.ConnectException: HTTP ( 404 ) Not Found address : http://localhost:9081/JAX-WSXMLCalculator/xmlcalc/ at com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.processStatusCode(SOAPOverHTTPSender.java:3497)
at com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:502)
at com.ibm.ws.websvcs.transport.http.HTTPTransportSender.invoke(HTTPTransportSender.java:311)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:567)
... 5 more


guessing this error is due to not define the endpoint in deployment descriptor..

i tried to define the endpoint in ibm-web-bnd.xml, ibm-web-ext.xml but there is no endpoints or endpoint elements defined in these xml files..



Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
As I said in another post, the XJC terminal command is still available in recent JDK/JREs.
The Eclipse plugin is just a "wrapper" for this terminal command.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Environment setup for SCDJWS 5
 
Similar Threads
Preparation for SCDJWS?
SCDJWS
Passed SCDJWS with 92%
SCDJWS
SCDJWS 5 Passed with 54%