axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/wsdls XSD_string.wsdl
Date Wed, 06 Jul 2005 10:26:40 GMT
dicka       2005/07/06 03:26:39

  Modified:    c/tests/auto_build/testcases unitTest.list
  Added:       c/tests/auto_build/testcases/client/cpp XSD_stringClient.cpp
               c/tests/auto_build/testcases/output XSD_string.expected
                        XSD_string_ServerResponse.expected
               c/tests/auto_build/testcases/tests XSD_string.xml
               c/tests/auto_build/testcases/wsdls XSD_string.wsdl
  Log:
  Testcase for the XSD built-in simple types.  The string type.
  
  PR: AXISCPP-715
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.13      +1 -0      ws-axis/c/tests/auto_build/testcases/unitTest.list
  
  Index: unitTest.list
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/unitTest.list,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- unitTest.list	5 Jul 2005 12:39:08 -0000	1.12
  +++ unitTest.list	6 Jul 2005 10:26:38 -0000	1.13
  @@ -24,6 +24,7 @@
   XSD_gMonth.xml
   XSD_gMonthDay.xml
   XSD_gDay.xml
  +XSD_string.xml
   XSD_boolean.xml
   XSD_base64Binary.xml
   XSD_hexBinary.xml
  
  
  
  1.1                  ws-axis/c/tests/auto_build/testcases/client/cpp/XSD_stringClient.cpp
  
  Index: XSD_stringClient.cpp
  ===================================================================
  // Copyright 2003-2004 The Apache Software Foundation.
  // (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved
  // 
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  // 
  //        http://www.apache.org/licenses/LICENSE-2.0
  // 
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  
  
  #include "XSD_string.hpp"
  #include <axis/AxisException.hpp>
  #include <ctype.h>
  #include <iostream>
  
  
  int main(int argc, char* argv[])
  {
      char endpoint[256];
      const char* url="http://localhost:80/axis/XSD_string";
  
      if(argc>1)
          url = argv[1];
  
      try
      {
          sprintf(endpoint, "%s", url);
          XSD_string* ws = new XSD_string(endpoint);
        
          char emptyString[1] = "";
          xsd__string emptyInput = emptyString;
          char simpleString[25] = "A simple test message!";
          xsd__string input = simpleString;
  
          // Test non-nillable element
          xsd__string result = ws->asNonNillableElement(input);
          if (result)
          {
              if (*result)
              {
                  cout << "non-nillable element=" << result << endl;
              }
              else
              {
                  cout << "non-nillable element=<empty>" << endl;
              }
          }
          else
          {
              cout << "non-nillable element=<nil>" << endl;
          }
  
          // Test empty non-nillable element
          result = ws->asNonNillableElement(emptyInput);
          if (result)
          {
              if (*result)
              {
                  cout << "empty non-nillable element=" << result << endl;
              }
              else
              {
                  cout << "empty non-nillable element=<empty>" << endl;
              }
          }
          else
          {
              cout << "empty non-nillable element=<nil>" << endl;
          }
  
          // Test non-nillable element with XML reserved characters
          char reservedCharactersString[] = "<>&\"\'";
          xsd__string reservedCharactersInput = reservedCharactersString;
          result = ws->asNonNillableElement(reservedCharactersInput);
          if (result)
          {
              if (*result)
              {
                  cout << "non-nillable element with XML reserved characters=" <<
result << endl;
              }
              else
              {
                  cout << "non-nillable element with XML reserved characters=<empty>"
<< endl;
              }
          }
          else
          {
              cout << "non-nillable element with XML reserved characters=<nil>"
<< endl;
          }
  
          // Test non-nillable element with XML reserved characters
          char whitespaceString[] = "  \t\r\nsome text \t\r\nmore text \t\r\n";
          xsd__string whitespaceInput = whitespaceString;
          result = ws->asNonNillableElement(whitespaceInput);
          if (result)
          {
              if (*result)
              {
                  cout << "non-nillable element with whitespace characters=\"" <<
result << "\"" << endl;
              }
              else
              {
                  cout << "non-nillable element with whitespace characters=<empty>"
<< endl;
              }
          }
          else
          {
              cout << "non-nillable element with whitespace characters=<nil>"
<< endl;
          }
  
          // Test nillable element, with a value
          xsd__string nillableResult = ws->asNillableElement(input);
          if (nillableResult)
          {
              if (*nillableResult)
              {
                  cout << "nillable element=" << nillableResult << endl;
              }
              else
              {
                  cout << "nillable element=<empty>" << endl;
              }
              delete nillableResult;
          }
          else
          {
              cout << "nillable element=<nil>" << endl;
          }
  
          // Test empty nillable element
          nillableResult = ws->asNillableElement(emptyInput);
          if (nillableResult)
          {
              if (*nillableResult)
              {
                  cout << "empty nillable element=" << nillableResult <<
endl;
              }
              else
              {
                  cout << "empty nillable element=<empty>" << endl;
              }
              delete nillableResult;
          }
          else
          {
              cout << "empty nillable element=<nil>" << endl;
          }
  
          // Test nillable element, with nil
          nillableResult = ws->asNillableElement(NULL);
          if (nillableResult)
          {
              if (*nillableResult)
              {
                  cout << "nil element=" << nillableResult << endl;
              }
              else
              {
                  cout << "nil element=<empty>" << endl;
              }
              delete nillableResult;
          }
          else
          {
              cout << "nil element=<nil>" << endl;
          }
  
          // Test required attribute
          RequiredAttributeElement requiredAttributeInput;
          requiredAttributeInput.setrequiredAttribute(input);
          RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
          if (requiredAttributeResult->getrequiredAttribute())
          {
              if (*(requiredAttributeResult->getrequiredAttribute()))
              {
                  cout << "required attribute=" << requiredAttributeResult->getrequiredAttribute()
<< endl;
              }
              else
              {
                  cout << "required attribute=<empty>" << endl;
              }
          }
          else
          {
              cout << "required attribute=<nil>" << endl;
          }
          delete requiredAttributeResult;
  
          // Test empty required attribute
          requiredAttributeInput;
          requiredAttributeInput.setrequiredAttribute(emptyInput);
          requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
          if (requiredAttributeResult->getrequiredAttribute())
          {
              if (*(requiredAttributeResult->getrequiredAttribute()))
              {
                  cout << "empty required attribute=" << requiredAttributeResult->getrequiredAttribute()
<< endl;
              }
              else
              {
                  cout << "empty required attribute=<empty>" << endl;
              }
          }
          else
          {
              cout << "empty required attribute=<nil>" << endl;
          }
          delete requiredAttributeResult;
  
          // Test optional attribute, with a value
          OptionalAttributeElement optionalAttributeInput;
          optionalAttributeInput.setoptionalAttribute(input);
          OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
          if (optionalAttributeResult->getoptionalAttribute())
          {
              if (*(optionalAttributeResult->getoptionalAttribute()))
              {
                  cout << "optional attribute, with data=" << optionalAttributeResult->getoptionalAttribute()
<< endl;
              }
              else
              {
                  cout << "optional attribute, with data=<empty>" << endl;
              }
          }
          else
          {
              cout << "optional attribute, with data=<not present>" << endl;
          }
          delete optionalAttributeResult;
  
          // Test empty optional attribute
          optionalAttributeInput.setoptionalAttribute(emptyInput);
          optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
          if (optionalAttributeResult->getoptionalAttribute())
          {
              if (*(optionalAttributeResult->getoptionalAttribute()))
              {
                  cout << "empty optional attribute=" << optionalAttributeResult->getoptionalAttribute()
<< endl;
              }
              else
              {
                  cout << "empty optional attribute=<empty>" << endl;
              }
          }
          else
          {
              cout << "empty optional attribute=<not present>" << endl;
          }
          delete optionalAttributeResult;
  
          // Test optional attribute, not present
          // optionalAttributeInput.setattribute();
          optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
          if (optionalAttributeResult->getoptionalAttribute())
          {
              if (*(optionalAttributeResult->getoptionalAttribute()))
              {
                  cout << "optional attribute, not present=" << optionalAttributeResult->getoptionalAttribute()
<< endl;
              }
              else
              {
                  cout << "optional attribute, not present=<empty>" << endl;
              }
          }
          else
          {
              cout << "optional attribute, not present=<not present>" <<
endl;
          }
          delete optionalAttributeResult;
  
          // Test array
          xsd__string_Array arrayInput;
          arrayInput.m_Array = new xsd__string[2];
          arrayInput.m_Size = 2;
          for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
          {
              arrayInput.m_Array[inputIndex] = input;
          }
          xsd__string_Array arrayResult = ws->asArray(arrayInput);
          cout << "array of " << arrayResult.m_Size << " elements" <<
endl;
          for (int index = 0; index < arrayResult.m_Size ; index++)
          {
              if (arrayResult.m_Array[index])
              {
                  if (*(arrayResult.m_Array[index]))
                  {
                      cout << "  element[" << index << "]=" << arrayResult.m_Array[index]
<< endl;
                  }
                  else
                  {
                      cout << "  element[" << index << "]=<empty>"
<< endl;
                  }
                  delete arrayResult.m_Array[index];
              }
              else
              {
                  cout << "  element[" << index << "]=<nil>" <<
endl;
              }
          }
          delete [] arrayInput.m_Array;
          delete [] arrayResult.m_Array;
  
          // Test complex type
          SimpleComplexType complexTypeInput;
          complexTypeInput.setcomplexTypeElement(input);
          SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
          if (complexTypeResult->getcomplexTypeElement())
          {
              if (*(complexTypeResult->getcomplexTypeElement()))
              {
                  cout << "within complex type=" << complexTypeResult->getcomplexTypeElement()
<< endl;
              }
              else
              {
                  cout << "within complex type=<empty>" << endl;
              }
          }
          else
          {
              cout << "within complex type=<nil>" << endl;
          }
          delete complexTypeResult;
  
          // Tests now complete
  
          delete ws;
      }
      catch(AxisException& e)
      {
          cout << "Exception : " << e.what() << endl;
      }
      catch(exception& e)
      {
          cout << "Unknown exception has occured: " << e.what() << endl;
      }
      catch(...)
      {
          cout << "Unknown exception has occured" << endl;
      }
  
      cout<< "---------------------- TEST COMPLETE -----------------------------"<<
endl;
     
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/testcases/output/XSD_string.expected
  
  Index: XSD_string.expected
  ===================================================================
  non-nillable element=A simple test message!
  empty non-nillable element=<empty>
  non-nillable element with XML reserved characters=<>&"'
  non-nillable element with whitespace characters="  	
  some text 	
  more text 	
  "
  nillable element=A simple test message!
  empty nillable element=<empty>
  nil element=<nil>
  required attribute=A simple test message!
  empty required attribute=<empty>
  optional attribute, with data=A simple test message!
  empty optional attribute=<empty>
  optional attribute, not present=<not present>
  array of 2 elements
    element[0]=A simple test message!
    element[1]=A simple test message!
  within complex type=A simple test message!
  ---------------------- TEST COMPLETE -----------------------------
  
  
  
  1.1                  ws-axis/c/tests/auto_build/testcases/output/XSD_string_ServerResponse.expected
  
  Index: XSD_string_ServerResponse.expected
  ===================================================================
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNonNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nonNillableElement>A
simple test message!</nonNillableElement></asNonNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNonNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nonNillableElement></nonNillableElement></asNonNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNonNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nonNillableElement>&lt;&gt;&amp;&quot;&apos;</nonNillableElement></asNonNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNonNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nonNillableElement>
 	
  some text 	
  more text 	
  </nonNillableElement></asNonNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nillableElement>A
simple test message!</nillableElement></asNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nillableElement></nillableElement></asNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asNillableElementResponse xmlns="http://xsd_string.test.apache.org"><nillableElement
xsi:nil="true" /></asNillableElementResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asRequiredAttributeResponse xmlns="http://xsd_string.test.apache.org"><RequiredAttributeElement
requiredAttribute="A simple test message!" /></asRequiredAttributeResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asRequiredAttributeResponse xmlns="http://xsd_string.test.apache.org"><RequiredAttributeElement
requiredAttribute="" /></asRequiredAttributeResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asOptionalAttributeResponse xmlns="http://xsd_string.test.apache.org"><OptionalAttributeElement
optionalAttribute="A simple test message!" /></asOptionalAttributeResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asOptionalAttributeResponse xmlns="http://xsd_string.test.apache.org"><OptionalAttributeElement
optionalAttribute="" /></asOptionalAttributeResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asOptionalAttributeResponse xmlns="http://xsd_string.test.apache.org"><OptionalAttributeElement
/></asOptionalAttributeResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asArrayResponse xmlns="http://xsd_string.test.apache.org"><arrayElement>A
simple test message!</arrayElement><arrayElement>A simple test message!</arrayElement></asArrayResponse></soapenv:Body></soapenv:Envelope>
  0
  
  HTTP/1.1 200 OK
  Server: WebSphere Application Server/5.1
  Content-Type: text/xml; charset=utf-8
  Content-Language: en-GB
  Transfer-Encoding: chunked
  
  ###
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header
/><soapenv:Body><asComplexTypeResponse xmlns="http://xsd_string.test.apache.org"><SimpleComplexType><complexTypeElement>A
simple test message!</complexTypeElement></SimpleComplexType></asComplexTypeResponse></soapenv:Body></soapenv:Envelope>
  0
  
  
  
  
  1.1                  ws-axis/c/tests/auto_build/testcases/tests/XSD_string.xml
  
  Index: XSD_string.xml
  ===================================================================
  <test>
      <name>XSD_string</name>
      <description>Test serialization and deserialization of the XSD built-in simple
type string</description>
      <clientLang>cpp</clientLang>
      <clientCode>XSD_stringClient.cpp</clientCode>
      <wsdl>XSD_string.wsdl</wsdl>
      <expected>
          <output>
              XSD_string.expected
          </output>
  		<serverResponse>
  			XSD_string_ServerResponse.expected
  	    </serverResponse>
      </expected>
  	<endpoint>http://localhost:80/axis/XSD_string</endpoint>
  </test>
  
  
  
  
  1.1                  ws-axis/c/tests/auto_build/testcases/wsdls/XSD_string.wsdl
  
  Index: XSD_string.wsdl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  	xmlns:tns="http://xsd_string.test.apache.org"
  	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  	xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="XSD_string"
  	targetNamespace="http://xsd_string.test.apache.org">
  	<wsdl:types>
  		<xsd:schema
  			targetNamespace="http://xsd_string.test.apache.org"
  			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  			<xsd:element name="asNonNillableElementResponse">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="nonNillableElement"
  							type="xsd:string" nillable="false" minOccurs="1" maxOccurs="1" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="AsNonNillableElementRequest">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="nonNillableElement"
  							type="xsd:string" nillable="false" minOccurs="1" maxOccurs="1" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asNillableElementResponse">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="nillableElement"
  							type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asNillableElementRequest">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="nillableElement"
  							type="xsd:string" nillable="true" minOccurs="1" maxOccurs="1" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:complexType name="RequiredAttributeElement">
  				<xsd:attribute name="requiredAttribute" type="xsd:string"
  					use="required" />
  			</xsd:complexType>
  			<xsd:element name="asRequiredAttributeResponse">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="RequiredAttributeElement"
  							maxOccurs="1" minOccurs="1" type="tns:RequiredAttributeElement" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asRequiredAttributeRequest">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="RequiredAttributeElement"
  							maxOccurs="1" minOccurs="1" type="tns:RequiredAttributeElement" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:complexType name="OptionalAttributeElement">
  				<xsd:attribute name="optionalAttribute" type="xsd:string"
  					use="optional" />
  			</xsd:complexType>
  			<xsd:element name="asOptionalAttributeResponse">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="OptionalAttributeElement"
  							maxOccurs="1" minOccurs="1" type="tns:OptionalAttributeElement" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asOptionalAttributeRequest">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="OptionalAttributeElement"
  							maxOccurs="1" minOccurs="1" type="tns:OptionalAttributeElement" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asArrayResponse">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="arrayElement"
  							type="xsd:string" nillable="false" minOccurs="1"
  							maxOccurs="unbounded" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asArrayRequest">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="arrayElement"
  							type="xsd:string" nillable="false" minOccurs="1"
  							maxOccurs="unbounded" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:complexType name="SimpleComplexType">
  				<xsd:sequence>
  					<xsd:element name="complexTypeElement"
  						type="xsd:string" minOccurs="1" maxOccurs="1" nillable="false" />
  				</xsd:sequence>
  			</xsd:complexType>
  			<xsd:element name="asComplexTypeResponse">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="SimpleComplexType"
  							type="tns:SimpleComplexType" nillable="false" minOccurs="1"
  							maxOccurs="1" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  			<xsd:element name="asComplexTypeRequest">
  				<xsd:complexType>
  					<xsd:sequence>
  						<xsd:element name="SimpleComplexType"
  							type="tns:SimpleComplexType" nillable="false" minOccurs="1"
  							maxOccurs="1" />
  					</xsd:sequence>
  				</xsd:complexType>
  			</xsd:element>
  		</xsd:schema>
  	</wsdl:types>
  	<wsdl:message name="asNonNillableElementResponse">
  		<wsdl:part element="tns:asNonNillableElementResponse"
  			name="asNonNillableElementResponse" />
  	</wsdl:message>
  	<wsdl:message name="asNonNillableElementRequest">
  		<wsdl:part element="tns:AsNonNillableElementRequest"
  			name="parameters" />
  	</wsdl:message>
  	<wsdl:message name="asNillableElementResponse">
  		<wsdl:part name="asNillableElementResponse"
  			element="tns:asNillableElementResponse">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asNillableElementRequest">
  		<wsdl:part name="asNillableElementRequest"
  			element="tns:asNillableElementRequest">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asRequiredAttributeResponse">
  		<wsdl:part name="asRequiredAttributeResponse"
  			element="tns:asRequiredAttributeResponse">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asRequiredAttributeRequest">
  		<wsdl:part name="asRequiredAttributeRequest"
  			element="tns:asRequiredAttributeRequest">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asOptionalAttributeResponse">
  		<wsdl:part name="asOptionalAttributeResponse"
  			element="tns:asOptionalAttributeResponse">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asOptionalAttributeRequest">
  		<wsdl:part name="asOptionalAttributeRequest"
  			element="tns:asOptionalAttributeRequest">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asArrayResponse">
  		<wsdl:part name="asArrayResponse"
  			element="tns:asArrayResponse">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asArrayRequest">
  		<wsdl:part name="asArrayRequest" element="tns:asArrayRequest"></wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asComplexTypeResponse">
  		<wsdl:part name="asComplexTypeResponse"
  			element="tns:asComplexTypeResponse">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:message name="asComplexTypeRequest">
  		<wsdl:part name="asComplexTypeRequest"
  			element="tns:asComplexTypeRequest">
  		</wsdl:part>
  	</wsdl:message>
  	<wsdl:portType name="XSD_string">
  		<wsdl:operation name="asNonNillableElement">
  			<wsdl:input message="tns:asNonNillableElementRequest"
  				name="asNonNillableElementRequest" />
  			<wsdl:output message="tns:asNonNillableElementResponse"
  				name="asNonNillableElementResponse" />
  		</wsdl:operation>
  		<wsdl:operation name="asNillableElement">
  			<wsdl:input message="tns:asNillableElementRequest"
  				name="asNillableElementRequest">
  			</wsdl:input>
  			<wsdl:output message="tns:asNillableElementResponse"
  				name="asNillableElementResponse">
  			</wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asRequiredAttribute">
  			<wsdl:input message="tns:asRequiredAttributeRequest"></wsdl:input>
  			<wsdl:output message="tns:asRequiredAttributeResponse"></wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asOptionalAttribute">
  			<wsdl:input message="tns:asOptionalAttributeRequest"></wsdl:input>
  			<wsdl:output message="tns:asOptionalAttributeResponse"></wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asArray">
  			<wsdl:input message="tns:asArrayRequest"></wsdl:input>
  			<wsdl:output message="tns:asArrayResponse"></wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asComplexType">
  			<wsdl:input message="tns:asComplexTypeRequest"></wsdl:input>
  			<wsdl:output message="tns:asComplexTypeResponse"></wsdl:output>
  		</wsdl:operation>
  	</wsdl:portType>
  	<wsdl:binding name="XSD_stringSOAP" type="tns:XSD_string">
  		<soap:binding style="document"
  			transport="http://schemas.xmlsoap.org/soap/http" />
  		<wsdl:operation name="asNonNillableElement">
  			<soap:operation
  				soapAction="XSD_string#asNonNillableElement" style="document" />
  			<wsdl:input name="asNonNillableElementRequest">
  				<soap:body use="literal" />
  			</wsdl:input>
  			<wsdl:output name="asNonNillableElementResponse">
  				<soap:body use="literal" />
  			</wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asNillableElement">
  			<soap:operation soapAction="XSD_string#asNillableElement"
  				style="document" />
  			<wsdl:input name="asNillableElementRequest">
  				<soap:body use="literal" />
  			</wsdl:input>
  			<wsdl:output name="asNillableElementResponse">
  				<soap:body use="literal" />
  			</wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asRequiredAttribute">
  			<soap:operation
  				soapAction="XSD_string#asRequiredAttribute" style="document" />
  			<wsdl:input>
  				<soap:body use="literal" />
  			</wsdl:input>
  			<wsdl:output>
  				<soap:body use="literal" />
  			</wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asOptionalAttribute">
  			<soap:operation
  				soapAction="XSD_string#asOptionalAttribute" style="document" />
  			<wsdl:input>
  				<soap:body use="literal" />
  			</wsdl:input>
  			<wsdl:output>
  				<soap:body use="literal" />
  			</wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asArray">
  			<soap:operation soapAction="XSD_string#asArray" style="document" />
  			<wsdl:input>
  				<soap:body use="literal" />
  			</wsdl:input>
  			<wsdl:output>
  				<soap:body use="literal" />
  			</wsdl:output>
  		</wsdl:operation>
  		<wsdl:operation name="asComplexType">
  			<soap:operation soapAction="XSD_string#asComplexType"
  				style="document" />
  			<wsdl:input>
  				<soap:body use="literal" />
  			</wsdl:input>
  			<wsdl:output>
  				<soap:body use="literal" />
  			</wsdl:output>
  		</wsdl:operation>
  	</wsdl:binding>
  	<wsdl:service name="XSD_string">
  		<wsdl:port binding="tns:XSD_stringSOAP"
  			name="XSD_stringSOAP">
  			<soap:address
  				location="http://localhost:9080/XSD_string/services/XSD_string" />
  		</wsdl:port>
  	</wsdl:service>
  </wsdl:definitions>
  
  
  

Mime
View raw message