I successfully compiled, deployed and tested a WebService using pure Java.
However, I experience problems when I test the service through a VBS (VB
script). The exception I get is; java.xml.rpc.JAXRPCException: Cannot find
child element: int_1
| @WebService
| @SOAPBinding(style=Style.RPC)
| public interface Calculator extends Remote
| {
| @WebMethod int add(int x, int y);
|
| @WebMethod int subtract(int x, int y);
| }
| @Stateless
| @WebService(endpointInterface="org.bilgidata.kitapdemo.service.Calculator")
| public class CalculatorBean
| {
| public int add(int x, int y)
| {
| return x + y;
| }
|
| public int subtract(int x, int y)
| {
| return x - y;
| }
| }
The calling VBS script is
| set soapclient = CreateObject("MSSOAP.SoapClient30")
|
| On Error Resume Next
| url = "http://localhost:8080/kitapdemo/CalculatorBean?wsdl"
| Call soapclient.mssoapinit(url, "", "")
|
| if err <> 0 then
| Wscript.echo "initialization failed" + err.description
| end if
|
| wscript.echo soapclient.add(1,2)
|
| if err <> 0 then
| wscript.echo err.description
| end if
|
Any help would be appreciated.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957518#3957518
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957518
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user