30 void WsdlParser::print(std::ostream & out)
32 Binding *bn = bindings_.front();
33 int i = 0, soapBindingId, inId, outId, faultId;
34 int numOps = bn->numOps();
40 for (i = 0; i < getNumSchemas(); i++)
41 schemaParser_[i]->print(out);
45 const int *bindings = 0;
47 n = bn->getOpBinding(i, bindings);
48 soapBindingId = bindings[0];
49 n = bn->getInputBinding(i, bindings);
51 n = bn->getOutputBinding(i, bindings);
53 n = bn->getFaultBinding(i, bindings);
54 faultId = bindings[0];
55 const Operation *op = bn->getOperation(i);
56 out << op->getName() << endl;
57 const Message *inMessage = op->getMessage(
Input);
58 const Message *outMessage = op->getMessage(
Output);
59 int nParams = 0, j = 0;
60 int typeId = 0,schemaId;
62 nParams = inMessage->getNumParts();
63 for (j = 0; j < nParams; j++)
65 if (inMessage->getPartRefType(j) == Part::Elem)
68 typeId = inMessage->getPartType(j);
69 pType = schemaParser_[schemaId]->getType(typeId);
79 for (ci=cit_b;ci!=cit_e;ci++){
80 if(ci->second==ContentModel::Particle){
81 out<<ci->first.e->getName()<<
":" <<
82 ci->first.e->getType();
90 out << inMessage->getPartName(j) <<
":" << inMessage->
94 nParams = outMessage->getNumParts();
95 for (j = 0; j < nParams; j++)
97 if (outMessage->getPartRefType(j) == Part::Elem)
100 const Element * e =outMessage->getPartElement(j);
105 out << outMessage->getPartName(j) <<
":" << outMessage->
ContentModel * getContents() const
std::list< ContentHolder >::iterator ContentsIterator
std::string getName() const
virtual bool isSimple() const =0
std::ostream & blk(std::ostream &str)
std::ostream & dbsp(std::ostream &str)