1 Reply Latest reply on Dec 22, 2006 1:32 PM by cmaclachlan

    Cannot find child element: int_1

    burakbayramli Newbie

      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

      public interface Calculator extends Remote
       @WebMethod int add(int x, int y);
       @WebMethod int subtract(int x, int y);

      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.

        • 1. Re: Cannot find child element: int_1
          cmaclachlan Newbie

          I am having exactly the same problem; works just fine when using a Java Client but when using a VB client (SoapClient30) I get a "Cannot find child element" error. Calls with no parameters work fine. Calls with any parameter, regardless of the type cause the "cannot find child element" error. I upgraded to the latest version of JBossWS (1.0.4) and it still does not work. I tried different SOAP Binding Styles: RPC/literal, DOCUMENT/literal.

          Did you ever find a resolution?