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 di...@apache.org on 2005/02/04 17:57:23 UTC

cvs commit: ws-axis/c/tests/auto_build/testcases/output IHeaderBlockTest4Request.out IHeaderBlockTest5Request.out

dicka       2005/02/04 08:57:23

  Modified:    c/src/soap ComplexElement.cpp
               c/tests/auto_build/testcases/output
                        IHeaderBlockTest4Request.out
                        IHeaderBlockTest5Request.out
  Log:
  Declare namespace when a prefix is provided to BasicNode::createChild or BasicNode::createImmediateChild.
  
  PR: AXISCPP-357
  Submitted by: Adrian Dick
  Reviewed by: James Jose
  
  Revision  Changes    Path
  1.33      +2 -1      ws-axis/c/src/soap/ComplexElement.cpp
  
  Index: ComplexElement.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/ComplexElement.cpp,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- ComplexElement.cpp	5 Jan 2005 08:59:00 -0000	1.32
  +++ ComplexElement.cpp	4 Feb 2005 16:57:23 -0000	1.33
  @@ -250,6 +250,7 @@
               if( (m_pachPrefix != NULL) && (strlen(m_pachPrefix) != 0))
               {                
                   pSZ.serialize(m_pachPrefix, ":", NULL);
  +                blnIsNewNamespace = true;
               }
               else if ( (m_pachURI != NULL) && (strlen(m_pachURI) != 0))
               {
  @@ -271,7 +272,7 @@
                       ( (m_pachURI != NULL) && (strlen(m_pachURI) != 0)) && 
                       (blnIsNewNamespace))
               {
  -                pSZ.serialize(" xmlns:", m_pachPrefix, "=\"", m_pachURI, "\" ",
  +                pSZ.serialize(" xmlns:", m_pachPrefix, "=\"", m_pachURI, "\"",
                       NULL);
               }
   
  
  
  
  1.2       +2 -2      ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest4Request.out
  
  Index: IHeaderBlockTest4Request.out
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest4Request.out,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IHeaderBlockTest4Request.out	2 Feb 2005 16:26:52 -0000	1.1
  +++ IHeaderBlockTest4Request.out	4 Feb 2005 16:57:23 -0000	1.2
  @@ -2,11 +2,11 @@
   Host: localhost:13260
   Content-Type: text/xml; charset=UTF-8
   SOAPAction: "Calculator#add"
  -Content-Length: 715
  +Content-Length: 725
   
   <?xml version='1.0' encoding='utf-8' ?>
   <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:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/"><np:Name xmlns:np="http://ws.apache.org/"><np1:FirstPart xmlns:np1="http://ws.apache.org/">AXIS</np1:FirstPart><LastPart>APACHE</LastPart></np:Name><Project Type="Open Source">AXISCPP</Project>This is a test message</ns2:TestHeader></SOAP-ENV:Header>
  +<SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/"><np:Name xmlns:np="http://ws.apache.org/"><np1:FirstPart xmlns:np1="http://ws.apache.org/">APACHE</np1:FirstPart><np1:LastPart>APACHE</np1:LastPart></np:Name><Project Type="Open Source">AXISCPP</Project>This is a test message</ns2:TestHeader></SOAP-ENV:Header>
   <SOAP-ENV:Body>
   <ns1:add xmlns:ns1="http://localhost/axis/Calculator">
   <ns1:arg_0_0>2</ns1:arg_0_0>
  
  
  
  1.2       +2 -2      ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest5Request.out
  
  Index: IHeaderBlockTest5Request.out
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest5Request.out,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IHeaderBlockTest5Request.out	2 Feb 2005 16:26:52 -0000	1.1
  +++ IHeaderBlockTest5Request.out	4 Feb 2005 16:57:23 -0000	1.2
  @@ -2,11 +2,11 @@
   Host: localhost:13260
   Content-Type: text/xml; charset=UTF-8
   SOAPAction: "Calculator#add"
  -Content-Length: 718
  +Content-Length: 726
   
   <?xml version='1.0' encoding='utf-8' ?>
   <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:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/"><np:Name xmlns:np="http://ws.apache.org/"><np1:FirstPart xmlns:np1="http://ws.apache.org/">AXIS</np1:FirstPart></np:Name><Location>Sri Lanka</Location><Project Type="Open Source">AXISCPP</Project>This is a test message</ns2:TestHeader></SOAP-ENV:Header>
  +<SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://ws.apache.org/"><np:Name xmlns:np="http://ws.apache.org/"><np1:FirstPart xmlns:np1="http://ws.apache.org/">AXIS</np1:FirstPart></np:Name><ns2:Location>Sri Lanka</ns2:Location><Project Type="Open Source">AXISCPP</Project>This is a test message</ns2:TestHeader></SOAP-ENV:Header>
   <SOAP-ENV:Body>
   <ns1:add xmlns:ns1="http://localhost/axis/Calculator">
   <ns1:arg_0_0>2</ns1:arg_0_0>