You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/08 06:58:51 UTC

[jira] Commented: (AXIS-1457) Something is wrong, wsdl???

The following comment has been added to this issue:

     Author: Jayachandra Sekhara Rao Sunkara
    Created: Thu, 7 Oct 2004 9:57 PM
       Body:
Hope by now the issue got resolved. If not, as a first step can I see your Echo interface implementation code. Since the problem appears to be at echoString_double(String arg1, String arg2) at least post that part of the code.

Thank you,
Jayachandra
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1457?page=comments#action_53824

---------------------------------------------------------------------
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: Thu, 7 Oct 2004 9:57 PM

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