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 su...@apache.org on 2003/07/24 05:51:32 UTC

cvs commit: xml-axis/c/src/wcg WSClass.cpp

susantha    2003/07/23 20:51:32

  Modified:    c/src/wcg WSClass.cpp
  Log:
  now WCG can generate wrapper classes for web services that passes and returns complex types as well but not arrays
  
  Revision  Changes    Path
  1.4       +2 -2      xml-axis/c/src/wcg/WSClass.cpp
  
  Index: WSClass.cpp
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/wcg/WSClass.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WSClass.cpp	18 Jul 2003 13:31:44 -0000	1.3
  +++ WSClass.cpp	24 Jul 2003 03:51:31 -0000	1.4
  @@ -194,7 +194,7 @@
   		file << "}" << endl;
   		file << endl;
   
  -		file << "void" << m_Name << "::OnFault(IMessageData* pMsg)" << endl; 		
  +		file << "void " << m_Name << "::OnFault(IMessageData* pMsg)" << endl; 		
   		file << "{" << endl;
   		file << "}" << endl;
   		file << endl;
  @@ -216,7 +216,7 @@
   		file << "\tstring method = name;" << endl;
   		file << "\tISoapMethod* pMethod = mc->getSoapSerializer()->createSoapMethod();" << endl;
   		file << "\tpMethod->setLocalName(method + \"Response\");" << endl;
  -		file << "\tpMethod->setPrefix(\"" << "amp" << "\");"<< endl; //amp - axis method prefix :)
  +		file << "\tpMethod->setPrefix(" << "mc->getSoapSerializer()->getNewNamespacePrefix()" << ");"<< endl; //amp - axis method prefix :)
   		file << "\tpMethod->setUri(\"" << g_ClassNamespaces[m_AWSName] << "\");"<< endl; //http://www.opensource.lk will come from wsdd
   		file << "\treturn SUCCESS;" << endl; 
   		file << "}" << endl;