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 ro...@apache.org on 2003/07/15 07:36:21 UTC
cvs commit: xml-axis/c/src/engine Main.cpp HandlerChain.h
roshan 2003/07/14 22:36:21
Modified: c/src/engine Main.cpp HandlerChain.h
Log:
added stuff
Revision Changes Path
1.2 +11 -3 xml-axis/c/src/engine/Main.cpp
Index: Main.cpp
===================================================================
RCS file: /home/cvs/xml-axis/c/src/engine/Main.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Main.cpp 25 Jun 2003 05:13:45 -0000 1.1
+++ Main.cpp 15 Jul 2003 05:36:21 -0000 1.2
@@ -65,12 +65,13 @@
#include "AxisEngine.h"
#include <xercesc/util/PlatformUtils.hpp>
+#include <iostream>
XERCES_CPP_NAMESPACE_USE
int main(int argc, char* argv[])
{
-// char* ip = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><add soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><op1 xsi:type=\"xsd:int\">3</op1><op2 xsi:type=\"xsd:int\">4</op2></add></soapenv:Body></soapenv:Envelope>";
+ char* ip = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><add soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><op1 xsi:type=\"xsd:int\">3</op1><op2 xsi:type=\"xsd:int\">4</op2></add></soapenv:Body></soapenv:Envelope>";
// char* ip = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><echo soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><op1 xsi:type=\"xsd:string\">Hello World!</op1></echo></soapenv:Body></soapenv:Envelope>";
//user type that contains an array of another user type
@@ -150,7 +151,7 @@
</soapenv:Envelope>";
//Array of Point
- char* ip = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"\
+ //char* ip = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"\
http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><EchoPointArray \
soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><enc:Array xmlns:def=\"\
@@ -191,4 +192,11 @@
}
return 0;
}
-
\ No newline at end of file
+
+extern "C" void sendSoapResponse(char* m_cSerializedBuffer)
+{
+ char* abc="temp";
+
+ cout<<m_cSerializedBuffer<<endl;
+ //cout<<"---------"<<endl<<m_cSerializedBuffer;
+}
1.3 +2 -2 xml-axis/c/src/engine/HandlerChain.h
Index: HandlerChain.h
===================================================================
RCS file: /home/cvs/xml-axis/c/src/engine/HandlerChain.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HandlerChain.h 2 Jul 2003 04:54:23 -0000 1.2
+++ HandlerChain.h 15 Jul 2003 05:36:21 -0000 1.3
@@ -85,8 +85,8 @@
HandlerChain();
virtual ~HandlerChain();
- int Invoke(MessageData* pMsg);
- void OnFault(MessageData* pMsg);
+ int Invoke(IMessageData* pMsg);
+ void OnFault(IMessageData* pMsg);
private:
list<Handler*> m_HandlerList;