users@jax-rpc.java.net

another problem from starting from a wsdl

From: Aurelio Cedillo <acedillos_at_NETSCAPE.NET>
Date: Wed, 29 May 2002 13:54:58 -0600

Hi, I'm trying to run a client using the classes that generate the xrpcc tool starting from a wsdl file

My WSDL file is this:

<?xml version="1.0" encoding="UTF-8" ?>
<definitions name="AcuerdosService" targetNamespace="http://Acuerdos.org/wsdl" xmlns:tns="http://Acuerdos.org/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
  <types />
<message name="getAcuerdos">
  <part name="String_1" type="xsd:string" />
  <part name="String_2" type="xsd:string" />
  <part name="String_3" type="xsd:string" />
  <part name="String_4" type="xsd:string" />
  <part name="String_5" type="xsd:string" />
  </message>
<message name="getAcuerdosResponse">
  <part name="result" type="xsd:string" />
  </message>
<portType name="AcuerdosIFPortType">
<operation name="getAcuerdos">
  <input message="tns:getAcuerdos" />
  <output message="tns:getAcuerdosResponse" />
  </operation>
  </portType>
<binding name="AcuerdosIFBinding" type="tns:AcuerdosIFPortType">
<operation name="getAcuerdos">
<input>
  <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://Acuerdos.org/wsdl" />
  </input>
<output>
  <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://Acuerdos.org/wsdl" />
  </output>
  <soap:operation soapAction="" />
  </operation>
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
  </binding>
<service name="Acuerdos">
<port name="AcuerdosIFPort" binding="tns:AcuerdosIFBinding">
  <soap:address location="http://iberius.cjf.gob.mx:8080/acuerdos/acuerdos/AcuerdosIF" />
  </port>
  </service>
  </definitions>




my client goes like this:

package acuerdoscjf;

public class AcuerdosClient{


public static void main (String args[]){
     try{
         String res ="";
         String url = "";
         url = "http://iberius.cjf.gob.mx:8080/jaxrpc-acuerdos/acuerdos/acuerdosIF";
         AcuerdosIFPort_Stub stub = getStub(url);
         System.out.println("Uno");
         res = stub.getAcuerdos("","2002","","","");
         System.out.println(res);
     }catch(Exception ex){
        ex.printStackTrace();}
}


private static AcuerdosIFPort_Stub getStub(String endpoint) {

        AcuerdosIFPort_Stub stub = null;
        try {
            stub =
                (AcuerdosIFPort_Stub)(new AcuerdosImpl().getAcuerdosIFPort());
            stub._setTargetEndpoint(endpoint);
            //stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,endpoint);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return stub;

    } // getStub


}


then I compile :
>ant compile-client

then I run it and the command line sends this error:

run:
     [echo] Running the acuerdoscjf.AcuerdosClient program:
     [echo] java -classpath C:\jwsdp-1_0-ea1/common/lib/jaxrpc-ri.jar:C:\jwsdp-1
_0-ea1/common/lib/jaxrpc-api.jar:C:\jwsdp-1_0-ea1/common/lib/activation.jar:C:\j
wsdp-1_0-ea1/common/lib/dom4j.jar:C:\jwsdp-1_0-ea1/common/lib/jaxm-api.jar:C:\jw
sdp-1_0-ea1/common/lib/jaxm-client.jar:C:\jwsdp-1_0-ea1/common/lib/log4j.jar:C:\
jwsdp-1_0-ea1/common/lib/mail.jar:C:\jwsdp-1_0-ea1/common/lib/xalan.jar:C:\jwsdp
-1_0-ea1/common/lib/xerces.jar:build acuerdoscjf.AcuerdosClient http://dgi-acs:8
080/jaxrpc-acuerdos/acuerdoscjf/acuerdosIF
     [echo]
     [java] Uno
     [java] java.rmi.RemoteException: Received fault: "Internal server error" (c
ode: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested ex
ception is:
     [java] Received fault: "Internal server error" (code: "Server" namespac
e: "http://schemas.xmlsoap.org/soap/envelope/")
     [java] Received fault: "Internal server error" (code: "Server" namespace: "
http://schemas.xmlsoap.org/soap/envelope/")
     [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingS
ender.java:300)
     [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
java:191)
     [java] at acuerdoscjf.AcuerdosIFPort_Stub.getAcuerdos(Unknown Source)
     [java] at acuerdoscjf.AcuerdosClient.main(Unknown Source)

BUILD SUCCESSFUL

please if anybody knows what i'm doing wrong? thanks a lot