This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi everybody, I'm here to ask for some help because I'm new to this. I have a WSDL File an schema files (.xsd), I'm using Rational Application Developer and WebSphere Application Server 7.0. I need to generate the web service to implement functionalities, I think the webservice is a RESTful type since the WSDL file contains the methods: CREATE, DELETE, GET and PUT with some policies.
I don't know how to start, I've already created a Dynamic Web Project and imported the required libraries from JAX-WS, but how can I generate? Please I will be really grateful if you could help me, thanks in advance.
Thanks everybody for your replies, I've finally deployed my WebService based on my WSDL, but I have a problem when I try to consume the WebService. I've just implemented "Create" method that receives an XML file as parameter and copies it to another directory. When I execute the client, at first, it seems to copy the file successfully in the folder, but when I execute it for the second time I'm getting this:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: java.lang.ClassCastException: org.w3._2009._02.ws_tra.Create incompatible with javax.xml.bind.JAXBElement at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:190)
at $Proxy27.create(Unknown Source)
I'm using RAD, WebSphere Application Server 7 and Web Features Pack 2.
Don't know the cause of why I'm getting that error