[
http://issues.apache.org/jira/browse/AXISCPP-36?page=comments#action_12318636 ]
Andreas Gratz commented on AXISCPP-36:
--------------------------------------
The state is fixed but in the current version from AXIS (1.5) the problem
remained, as my sample is showing up
>>>>>>>>>>>>The Java EJB prototype>>>>>>>>>>>>
public AllResult allResultEcho( boolean bo,
//char c,
byte b,
short s,
int i,
long l,
float f,
double d,
String str )
{
AllResult r = new AllResult() ;
r.bo = bo ;
//r.c = c ;
r.b = b ;
r.s = s ;
r.i = i ;
r.l = l ;
r.f = f ;
r.d = d ;
r.str = str ;
return r ;
}
>>>>>>>>>>>>WSDL>>>>>>>>>>>>
<message name="allResultEcho">
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:boolean"
name="booleanVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:byte"
name="byteVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:short"
name="shortVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int"
name="intVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:long"
name="longVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:float"
name="floatVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:double"
name="doubleVal" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string"
name="string" />
</message>
>>>>>>>>>>>>C++ Snipplet
m_pCall->addParameter((void*)Value0, "_string", XSD_STRING);
m_pCall->addParameter((void*)&Value1, "intVal", XSD_INT);
m_pCall->addParameter((void*)&Value2, "floatVal", XSD_FLOAT);
m_pCall->addParameter((void*)&Value3, "doubleVal", XSD_DOUBLE);
m_pCall->addParameter((void*)&Value4, "shortVal", XSD_SHORT);
m_pCall->addParameter((void*)&Value5, "byteVal", XSD_BYTE);
m_pCall->addParameter((void*)&Value6, "booleanVal", XSD_BOOLEAN);
m_pCall->addParameter((void*)&Value7, "longVal", XSD_LONG);
This is not expected, because up to two parameter (string, int) it is working
well.
Should i made a bug report or is this topic still running ?
Regards
Andreas
> A bug about WSDL2Ws
> -------------------
>
> Key: AXISCPP-36
> URL: http://issues.apache.org/jira/browse/AXISCPP-36
> Project: Axis-C++
> Type: Bug
> Components: WSDL processing - RPC
> Versions: 1.0 Beta
> Environment: Operating System: Other
> Platform: PC
> Reporter: leo mok
> Fix For: current (nightly)
>
> I use axis as web service server. and the Java Interface is like this:
> public void test(java.lang.String in0, java.lang.String in1, java.lang.String
> in2, java.lang.String in3);
> the generate wsdl seg is :
> <wsdl:message name="testRequest">
> <wsdl:part name="in0" type="xsd:string"/>
> <wsdl:part name="in1" type="xsd:string"/>
> <wsdl:part name="in2" type="xsd:string"/>
> <wsdl:part name="in3" type="xsd:string"/>
> </wsdl:message>
> but WSDL2Ws generate like this:
> m_pCall->SetOperation("test", "urn:EchoService");
> m_pCall->AddParameter(Value0, "in2", XSD_STRING);
> m_pCall->AddParameter(Value1, "in0", XSD_STRING);
> m_pCall->AddParameter(Value2, "in1", XSD_STRING);
> m_pCall->AddParameter(Value3, "in3", XSD_STRING);
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira