axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1457) Something is wrong, wsdl???
Date Mon, 11 Oct 2004 13:26:51 GMT
The following comment has been added to this issue:

     Author: henry lu
    Created: Mon, 11 Oct 2004 6:25 AM
       Body:
 Jayachandra, it didn't help. here is errors when server restarted:

Oct 11, 2004 9:08:47 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /axis from URL file:C:\tomcat-5
.0.25\webapps\axis
- IOException while loading persisted sessions: java.io.WriteAbortedException: w
riting aborted; java.io.NotSerializableException: ws.Echo.EchoImpl
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException
: ws.Echo.EchoImpl
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
45)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)

        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
646)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
        at org.apache.catalina.session.StandardSession.readObject(StandardSessio
n.java:1338)
        at org.apache.catalina.session.StandardSession.readObjectData(StandardSe
ssion.java:882)

Hope that helps.

-Henry
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1457?page=comments#action_53908

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1457

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1457
    Summary: Something is wrong, wsdl???
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
   Versions:
             beta-2

   Assignee: 
   Reporter: henry lu

    Created: Thu, 15 Jul 2004 6:13 AM
    Updated: Mon, 11 Oct 2004 6:25 AM

Description:
I use doc/literal to create a service:

public interface Echo
{
    public String echoString(String arg);
    public String echoString_double(String arg1, String arg2);
}

create wsdl file by:

    <axis-java2wsdl
      bindingname="${SERVICE_CLASS}"
      output="${WSDL_FILE}" 
      location="${HOST_URL}"
      typemappingversion="1.2"
      style="DOCUMENT"
      use="LITERAL"
      classname="${INT_CLASS}" 
      namespace="${NAMESPACE_TAR}" 
      soapaction="OPERATION"
      >
      <classpath refid="classpath_int.library" />
    </axis-java2wsdl>
  </target>

create java files for both server and client by

    <axis-wsdl2java
      output="bind/."
      deployscope="Session"
      skeletondeploy="true"
      url="bind/${WSDL_FILE}" 
      verbose="true"
      serverside="true"
      typemappingversion="1.2"
      >
      <mapping
        namespace="${NAMESPACE_TAR}" 
        package="${PACKAGE}"
      />
      <classpath refid="classpath_bin.library" />
    </axis-wsdl2java>
  </target>

and there is no deployment error.

Here is my client code:

  public String m_server_url;
  public EchoService m_src;

  public ClnEcho()
  {
     m_server_url = "http://localhost:8088/axis/services/Echo";
     m_src = null;
  }

  public void do_call() throws Exception
  {
    System.out.println(m_server_url);

    Echo srv_port = m_src.getEcho();
      java.lang.String string_x1="10";
      java.lang.String string_x2="20";

      java.lang.String ret1 = srv_port.echoString(string_x1);

      System.out.println("ret1="+ret1);

      java.lang.String ret2 = srv_port.echoString_double(string_x1, string_x2);

      System.out.println("ret2="+ret2);

  }

I got the foolowing results:

c:\java_dev\axis\Echo>ant go
Buildfile: build.xml

go:
     [java] log4j:WARN No appenders could be found for logger (org.apache.axis.i
18n.ProjectResourceBundle).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] http://localhost:8088/axis/services/Echo
     [java] ret1=10
     [java] ret2=10null

But the correct anwser should be

c:\java_dev\axis\Echo>ant go
Buildfile: build.xml

go:
     [java] log4j:WARN No appenders could be found for logger (org.apache.axis.i
18n.ProjectResourceBundle).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] http://localhost:8088/axis/services/Echo
     [java] ret1=10
     [java] ret2=1020





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message