Hi guys,
I've been able to get a simple web service to work if I use an EJB for it. I want to make use of a simple Java Project/Code and then create a package for it (EAR) for deployment as a WS.
So far here are the steps I've done:
1. Create Java project. Create a class that returns a string and has recieves a String param.
2. Created WS by using Web Service --> Test.
3. Tried to package it into an EAR by creating a Enterprise Application Project and selecting the jar for #1.
4. Deploy the EAR created to the AS.
5. I'm able to get the WSDL by going to the appropriate URL.
6. When I try to test it my WS via Soap Sonar (so I could just see the xml that will be generated when I pass a variable to my method) I get an error:
<?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>Cannot resolve requested bean using reference Reference Class Name: Type: clientAppName Content: sap.com/WoofEAR Type: ejb-jar Content: Woof.jar Type: ejb-link Content: Woof </faultstring> <detail> <ns1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException xmlns:ns1="http://sap-j2ee-engine/client-runtime-error"> <!-- Cannot resolve requested bean using reference Reference Class Name: Type: clientAppName Content: sap.com/WoofEAR Type: ejb-jar Content: Woof.jar Type: ejb-link Content: Woof --> </ns1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Any body have any thoughts on what's going on with this or how I can package a Java Project properly?