Regarding deploying web services and accessing web services....
Hai,
I am new to web services and I am using Sun Java System Application Server PE 8.2.
Please anyone help me how to create a web services and web services clients and also give me the step by step procedure( creating directories and compiling) to develop and deploy the web services in Sun Java System Application Server PE 8.2.
I read the tutorials and I followed the procedures.But too I acn't get work.
I deployed the web services but I couldn't compile the client(staticclient)
becoz it generates error. I tried above 50 times for atleast 3 days, but I couldn't get the client compile.
anyone please help me..
i am in urgent..
thanks a lot..
with regards,
MS.PalaniSaami@gmail.com
[757 byte] By [
MoonJava] at [2007-11-26 8:15:36]

# 1
i have the solution of ur problems io am sending u some steps related with this if again u
have some problem then contact me...
STEPS TO WRITE WSDL IN ECLIPSE
1. Create new web project.
2. Add axis.jar, axis-ant.jar, wsdl4j.jar and wsdl4j1.5.1.jar files in class path.
3. Now we can start to write WSDL file .
* In WSDL file we have to define service name, binding, port type, messages and data types.
* In service tag we have to define port name and binding name. by help of this port name we can generate WSDL client and in binding attribute of service tag we need to pass the name of binding tag where we define our operations.
* For each method we need to define operations in binding tag, port type, messages and data types.
4. Once you define all the tags and attributes correctly in WSDL file , then generate java files from this WSDL file.
5. To generate java files create one configuration. For this select Run command from Eclipse Menu Bar.Run > Runit will open configuration wizard.
6. In this configuration wizard click on new button, give configuration name as WSDL2Java.
7. Browse your web project where you define your WSDL file.
8. give 搊rg.apache.axis.wsdl.WSDL2Java?as Main class.
9. In Program arguments text area of argument tab write ?v -s -S true -o src ${resource_name}? .resource_name is the name of your WSDL file from which you want to generate Java files.
10. Now click on Apply button then click on Run button of configuration wizard to generate Java files.
Notes :- If Soap Binding Implementation class exist in your source folder then WSDL2Java does not overwrite it. If you are defining any new operation or method in existing WSDL file then rename the previous Soap Binding Implementation class so that WSDL2Java command can generate Soap Binding Implementation class with new operations. copy the generated new operation or method into previous Soap Binding Implementation class, delete the current one and then give the correct name to your previous Soap Binding Implementation class.
11. With Java files , it also generate wsdd file used to deploy web service.
12. Now deploy your web project.
13. After that deploy your wsdd file or you can say deploy web service. For this you need to create another configuration like we create WSDL2Java configuration.
14. Go to configuration wizard, click on New button to create wsdeploy configuration. Give any name to configuration. e.g wsdeploy
15. Browse your web project where you define your WSDL file.
16. give 搊rg.apache.axis.client.AdminClient?as Main class.
17. In Program arguments text area of argument tab write ?l http://127.0.0.1:8080/ivrsws/services/AdminService deploy.wsdd?br> 18. in above line ivrsws is the context root of your web project.
19. Now click on Apply button then click on Run button of configuration wizard to deploy web service.
20. Now your web service is ready to serve. Its time to create client for your web service.
21. Create one new web project for WSDL client.
22. To generate client, again we need to create configuration in the same as we did for WSDL2Java and wsdeploy configuration.
23. Go to configuration wizard, click on New button give configuration name. e.g. WSDL2javaClient
24. Browse to your client web project.
25. give 搊rg.apache.axis.wsdl.WSDL2Java?as Main class.
26. In Program arguments text area of argument tab write?v -t -o src http://127.0.0.1:8080/ivrsws/services/CustRegistrationHelper?wsdl?br> 27. In above line CustRegistrationHelper is port name that we define in WSDL file.
28. Now click on Apply button then click on Run button of configuration wizard to generate WSDL client code.
29. Now we can make jar file from wsdl client to use web service from our application.