summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-01-25 14:54:21 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-01-25 14:54:21 +0000
commitcc5aaa2c605c7f260cfab6239d89ee484351dd80 (patch)
treebdec7882ba1901ca977be4918241012ae08f5881 /cpp/src
parentInitial version of slice2wsdl. (diff)
downloadice-cc5aaa2c605c7f260cfab6239d89ee484351dd80.tar.bz2
ice-cc5aaa2c605c7f260cfab6239d89ee484351dd80.tar.xz
ice-cc5aaa2c605c7f260cfab6239d89ee484351dd80.zip
Generate type-id.wsdl. Bug fix.
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2wsdl/Gen.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/src/slice2wsdl/Gen.cpp b/cpp/src/slice2wsdl/Gen.cpp
index e35dbb2b1c3..0462c2a3cbd 100644
--- a/cpp/src/slice2wsdl/Gen.cpp
+++ b/cpp/src/slice2wsdl/Gen.cpp
@@ -41,7 +41,8 @@ Slice::Gen::Gen(const string& name, const string& base, const string& include,
_base.erase(0, pos + 1);
}
- string fileO = _base + ".wsdl";
+ //string fileO = _base + ".wsdl";
+ string fileO = containedToId(classDef) + classDef->name() + ".wsdl";
if (!dir.empty())
{
fileO = dir + '/' + fileO;
@@ -80,11 +81,11 @@ Slice::Gen::generate(const UnitPtr& unit)
// correctly.
//
ostringstream os;
- os << "wsdl:definitions name=\"" << scopeId << "\""
- << "\n xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\""
- << "\n xmlns:xsd1=\"" << _orgName << "/schemas\""
- << "\n xmlns:tns=\"" << _orgName << "/definitions\""
- << "\n targetNamespace=\"" << _orgName << "/definitions\"";
+ os << "wsdl:definitions name=\"" << scopeId << _classDef->name() << "\""
+ << "\n xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\""
+ << "\n xmlns:xsd1=\"" << _orgName << "/schemas\""
+ << "\n xmlns:tns=\"" << _orgName << "/definitions\""
+ << "\n targetNamespace=\"" << _orgName << "/definitions\"";
start(os.str());