|
| Making parameters optional |
 |
Thu, 24 Apr 2008 12:59:15 -070 |
Sorry if this is covered somewhere else. I did some searches and did not find
the answer. Maybe I'm not searching for the right thing. At any rate, I'm new
to WebLogic and WL Workshop. I created this simple web service:
package shorty_pkg;
import javax.jws.*;
@WebService
public class firstTest {
@WebMethod
public String test01(String pName, int pAge, java.util.Calendar pBDay) {
return "Your name is " + pName;
}
}
As you can see, right now the WS does not even use the pAge and pBDay parameters
(I plan to use them later but only if they are present.
How do I go about making them optional?
I tried editing the WSDL and generating a new service from it but the service it
creates generates errors when I test it.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|