Developing Web Services Applications from Existing WSDL Files

I did it on Websphere (re: title of this section) using wsdl2java to generate wsdl for java display xml file. My endpoint is a generic stateless EJB. Code in an EJB is generated by going through each wsdl and getting a wsdl operation and pinning it to the generated remote EJB interface. Each EJB impliple method is generic and treats all services the same. Used the instructions from this doc to do it on WAS: http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes /ae/twbs_devwbsjaxrpcwsdl.html

Now I ask all of you for help if anyone has done something similar in Sun AS 9.1.

Starting with existing WSDL (and xsd) files. Knowing a single implementation of EJB service endpoints for each service is the same and generating an EAR file (webservices.xml, ejb-jar.xml, etc.).

Had a hard time dealing with wscompile and the like, but didn't get any software in the same way as for WebSphere.

Thanks for the help.

0


source to share


2 answers


Are you looking to create a WS client that runs Sun AS? I don’t know Sun AS in detail, and I don’t know what WS libraries it supplies. But you can use the publicly available WS library:



For each library there is documentation that describes how to create a project from WSDL.

You can even use Eclipse to create a project from WSDL for you: File -> New -> Other ... -> Web Services -> WSDL. Make sure the "WST Web Services" plugins are installed.

+1


source


I've never used it myself, but recently read about an wsdlLocation()

annotation attribute WebService

that should map a service to an existing WSDL document (not sure if you're even using EJB3 though).



0


source







All Articles