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/16 16:30:11 UTC
cvs commit: xml-axis/c/src/server/samples/serviceinteropgroupb GroupBTestsWrapper.h GroupBTestsWrapper.cpp
susantha 2003/07/16 07:30:11
Modified: c/src/server/samples/serviceinteropgroupb
GroupBTestsWrapper.h GroupBTestsWrapper.cpp
Log:
sample webservices for interop base and group B tests
Revision Changes Path
1.2 +4 -4 xml-axis/c/src/server/samples/serviceinteropgroupb/GroupBTestsWrapper.h
Index: GroupBTestsWrapper.h
===================================================================
RCS file: /home/cvs/xml-axis/c/src/server/samples/serviceinteropgroupb/GroupBTestsWrapper.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- GroupBTestsWrapper.h 27 Jun 2003 12:43:48 -0000 1.1
+++ GroupBTestsWrapper.h 16 Jul 2003 14:30:06 -0000 1.2
@@ -11,7 +11,7 @@
#include "../libinteropgroupb/GroupBTests.h"
#include "../../../common/WrapperClassHandler.h"
-#include "../../../common/MessageData.h"
+#include "../../../common/IMessageData.h"
#include "../../../common/GDefine.h"
#include "../../../common/AccessBean.h"
@@ -21,12 +21,12 @@
GroupBTestsWrapper();
virtual ~GroupBTestsWrapper();
public: //WrapperClassHandler
- int Invoke(MessageData* mc);
- void OnFault(MessageData* pMsg);
+ int Invoke(IMessageData* mc);
+ void OnFault(IMessageData* pMsg);
int Init();
int Fini();
private: //Methods corresponding to the web service methods
- int SetResponseMethod(MessageData* mc, const char* name);
+ int SetResponseMethod(IMessageData* mc, const char* name);
private:
GroupBTests *pWs; // Actual web service object.
};
1.2 +10 -9 xml-axis/c/src/server/samples/serviceinteropgroupb/GroupBTestsWrapper.cpp
Index: GroupBTestsWrapper.cpp
===================================================================
RCS file: /home/cvs/xml-axis/c/src/server/samples/serviceinteropgroupb/GroupBTestsWrapper.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- GroupBTestsWrapper.cpp 27 Jun 2003 12:43:48 -0000 1.1
+++ GroupBTestsWrapper.cpp 16 Jul 2003 14:30:06 -0000 1.2
@@ -3,8 +3,8 @@
//////////////////////////////////////////////////////////////////////
#include "GroupBTestsWrapper.h"
-#include "../../../soap/SoapDeSerializer.h"
-#include "../../../soap/SoapSerializer.h"
+#include "../../../common/ISoapDeSerializer.h"
+#include "../../../common/ISoapSerializer.h"
#include "../../../common/BasicTypeSerializer.h"
//////////////////////////////////////////////////////////////////////
@@ -21,9 +21,9 @@
}
// Implementation of WrapperClassHandler interface.
-int GroupBTestsWrapper::Invoke(MessageData* mc)
+int GroupBTestsWrapper::Invoke(IMessageData* mc)
{
- string method = mc->m_pDZ->GetMethodName();
+ string method = mc->getSoapDeserializer()->GetMethodName();
return FAIL;
}
int GroupBTestsWrapper::Init()
@@ -37,16 +37,17 @@
return 0;
}
-int GroupBTestsWrapper::SetResponseMethod(MessageData* mc, const char* name)
+int GroupBTestsWrapper::SetResponseMethod(IMessageData* mc, const char* name)
{
- string method = name;
- SoapMethod* pMethod = new SoapMethod();
+ string method = name;
+ ISoapMethod* pMethod= mc->getSoapSerializer()->createSoapMethod();
pMethod->setLocalName(method + "Response");
- mc->m_pSZ->setSoapMethod(pMethod);
+ pMethod->setPrefix("m");
+ pMethod->setUri("http://www.opensource.lk");
return SUCCESS;
}
-void GroupBTestsWrapper::OnFault(MessageData* mc)
+void GroupBTestsWrapper::OnFault(IMessageData* mc)
{
}