xml-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Snell <jmsn...@intesolv.com>
Subject RE: C++ Implementation
Date Wed, 02 Aug 2000 16:36:55 GMT
As an FYI, I started work last night on the following set of components:

EnvelopeWriter
EnvelopeReader
SOAPEnvelope
SOAPHeader
SOAPPayload

These classes would provide a extensible factory approach to creating SOAP
Envelopes.  Imagine the following psuedo code:

   SOAPEnvelope   Envelope;
   SecurityHeader Header;   /* SecurityHeader Extends SOAPHeader */
   RPCPayload     Payload;  /* RPCPayload Extends SOAPPayload    */
   EnvelopeWriter Writer;
  
   Writer.setEnvelopeEncodingStyle(SOAP_ENC);
   Writer.createHeader(&Header);
   Header.mustUnderstand = true;
   Header.setActor(SOAP_ACTOR_NEXT);
   Header.setCredentials(USER_LOGIN, USER_PASSWORD);
   Writer.appendHeader(Header);
   
   Writer.createPayload(&Payload);
   Payload.setPayloadEncodingStyle(SOAP_ENC);
   Payload.setOperation("doSomething");
   Payload.setParameter("param1", "value");
   Payload.setParameter("param2", "value");
   Writer.appendPayload(&Payload);

   Writer.getEnvelope(&Envelope);

   // Do whatever you want to do with Envelope from here on out


Mime
View raw message