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 ji...@apache.org on 2004/06/14 16:14:09 UTC
[jira] Commented: (AXIS-1390) doc-literal doesn't work
The following comment has been added to this issue:
Author: Davanum Srinivas
Created: Mon, 14 Jun 2004 7:12 AM
Body:
Is it possible for you to try a nightly build?
-- dims
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1390?page=comments#action_36143
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1390
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1390
Summary: doc-literal doesn't work
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Versions:
beta-2
Assignee:
Reporter: henry lu
Created: Mon, 14 Jun 2004 6:46 AM
Updated: Mon, 14 Jun 2004 7:12 AM
Environment: Windows xp
Description:
Is it a bug? It fialed to runa simple example with doc/literal style.
//my interface:
//////////////////////////////////////////
public interface Echo
{
public String echoString(String arg);
public String echoString_double(String arg1, String arg2);
}
//my interface:
//////////////////////////////////////////
//use following tag to genetate wsdl file
<target name="j2w_compile">
<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>
/////////////////////////////////////////
// use thd following tag to generate all java file for both server and client
<target name="w22j">
<axis-wsdl2java
output="bind/."
deployscope="Session"
skeletondeploy="true"
url="bind/${WSDL_FILE}"
verbose="true"
serverside="true"
typemappingversion="1.2"
>
<mapping
namespace="${NAMESPACE}"
package="${PACKAGE}"
/>
<classpath refid="classpath_bin.library" />
</axis-wsdl2java>
</target>
///////////////////////////////////////////
// my server:
public class EchoImpl implements ws.Echo.Echo{
public java.lang.String echoString(java.lang.String in0) throws java.rmi.RemoteException {
return in0;
}
public java.lang.String echoString_double(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException {
return in0+in1;
}
}
//////////////////////////////////////////
// my client:
public void do_call() throws Exception
{
Echo srv_port = m_src.getEcho();
String int_x1 = "10";
String int_x2 = "3";
String ret1 = srv_port.echoString(int_x1);
System.out.println("ret1="+ret1);
String ret2 = srv_port.echoString_double(int_x1, int_x2);
System.out.println("ret2="+ret2);
}
public void go() throws Exception
{
m_src = new ClnEchoLocator(m_server_url );
do_call();
}
///////////////////////////////////////////////
//the resut:
[java] ret1=10
[java] ret2=10
It should be:
[java] ret1=10
[java] ret2=103
Why? How to fix?
---------------------------------------------------------------------
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