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 na...@apache.org on 2008/07/15 07:08:38 UTC
svn commit: r676797 - in
/webservices/axis/trunk/c/tests/auto_build/testcases:
client/cpp/CombinedAllTestClient.cpp
output/CombinedAll_ServerResponse.expected wsdls/CombinedAllTest.wsdl
Author: nadiramra
Date: Mon Jul 14 22:08:38 2008
New Revision: 676797
URL: http://svn.apache.org/viewvc?rev=676797&view=rev
Log:
WSDL for test case is not valid. An 'all' group must appear as the sole child at the top of a content model. Thus in a complex type you cannot have combination of sequence elements and all group.
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedAllTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/output/CombinedAll_ServerResponse.expected
webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/CombinedAllTest.wsdl
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedAllTestClient.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedAllTestClient.cpp?rev=676797&r1=676796&r2=676797&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedAllTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedAllTestClient.cpp Mon Jul 14 22:08:38 2008
@@ -48,28 +48,31 @@
AllTestSoap ws (endpoint, APTHTTP1_1);
AllComplexType* inParam = new AllComplexType();
- inParam->NonAllIntValue = 3;
+ xsd__int NonAllIntValue = 3;
inParam->Value0 = new int;
*(inParam->Value0) = 5;
inParam->Value2 = "TINTIN";
- inParam->NonAllStringValue = "HELLO";
+ xsd__string NonAllStringValue = "HELLO";
printf("\nSending.................");
- printf("\nNonAllIntValue = %d",inParam->NonAllIntValue);
+ printf("\nNonAllIntValue = %d",NonAllIntValue);
printf("\nAllValue0 = %d",*(inParam->Value0));
printf("\nAllValue2 = %s",inParam->Value2);
- printf("\nNonAllStringValue = %s",inParam->NonAllStringValue);
+ printf("\nNonAllStringValue = %s", NonAllStringValue);
ws.setTransportProperty("SOAPAction" , "CombinedAll#echoAll");
- AllComplexType* outParam = ws.echoAll(inParam);
+ AllComplexType* outParam = NULL;
+ xsd__int outValue0 = NULL;
+ xsd__string OutValue2 = NULL;
+ ws.echoAll(NonAllIntValue, inParam, NonAllStringValue, &outValue0, &outParam, &OutValue2);
if (outParam != NULL)
{
printf("\n\nReceived................");
- printf("\nNonAllIntValue = %d",outParam->NonAllIntValue);
+ printf("\nNonAllIntValue = %d", outValue0);
printf("\nAllValue0 = %d",*(outParam->Value0));
printf("\nAllValue2 = %s",outParam->Value2);
- printf("\nNonAllStringValue = %s",outParam->NonAllStringValue);
+ printf("\nNonAllStringValue = %s", OutValue2);
printf("\n\nSuccessfull\n");
}
else
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/output/CombinedAll_ServerResponse.expected
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/output/CombinedAll_ServerResponse.expected?rev=676797&r1=676796&r2=676797&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/output/CombinedAll_ServerResponse.expected (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/output/CombinedAll_ServerResponse.expected Mon Jul 14 22:08:38 2008
@@ -9,11 +9,12 @@
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:echoAllResponse xmlns:ns1="http://soapinterop.org/">
-<return><ns2:NonAllIntValue xmlns:ns2="http://soapinterop.org/xsd">3</ns2:NonAllIntValue>
+<ns1:NonAllIntValue xmlns:ns2="http://soapinterop.org/xsd">3</ns1:NonAllIntValue>
+<return>
<ns3:Value0 xmlns:ns3="http://soapinterop.org/xsd">5</ns3:Value0>
<ns4:Value2 xmlns:ns4="http://soapinterop.org/xsd">TINTIN</ns4:Value2>
-<ns5:NonAllStringValue xmlns:ns5="http://soapinterop.org/xsd">HELLO</ns5:NonAllStringValue>
</return>
+<ns1:NonAllStringValue xmlns:ns5="http://soapinterop.org/xsd">HELLO</ns1:NonAllStringValue>
</ns1:echoAllResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/CombinedAllTest.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/CombinedAllTest.wsdl?rev=676797&r1=676796&r2=676797&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/CombinedAllTest.wsdl (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/CombinedAllTest.wsdl Mon Jul 14 22:08:38 2008
@@ -10,14 +10,18 @@
<s:element name="echoAll">
<s:complexType>
<s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="NonAllIntValue" type="s:int" />
<s:element name="inputAll" type="s1:AllComplexType" />
+ <s:element minOccurs="1" maxOccurs="1" name="NonAllStringValue" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="echoAllResponse">
<s:complexType>
<s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="NonAllIntValue" type="s:int" />
<s:element name="return" type="s1:AllComplexType" />
+ <s:element minOccurs="1" maxOccurs="1" name="NonAllStringValue" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
@@ -30,17 +34,11 @@
<s:import namespace="http://soapinterop.org/" />
<s:complexType name="AllComplexType">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="NonAllIntValue" type="s:int" />
- </s:sequence>
<s:all>
<s:element minOccurs="0" name="Value0" type="s:int" />
<s:element minOccurs="0" name="Value1" type="s:int" />
<s:element minOccurs="0" name="Value2" type="s:string" />
</s:all>
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="NonAllStringValue" type="s:string" />
- </s:sequence>
</s:complexType>
</s:schema>