WSDL을 임포트하여 XML을 SOAP로 전송하는 프로그램을 작성중입니다.
그런데 데이터를 넣는 법을 모르겠네요 ㅜㅜ.
힌트가 될만한 것이 있으시면 알려주세요.
목표는 XML파일에 Header안에 Verb 에 "create"를 집어넣는 겁니다.
소스는 아래 나갑니다.
클래스 선언부입니다.
// ************************************************************************ //
// XML : HeaderType, global,
// Namespace : http://www.iec.ch/TC57/2008/schema/message
// ************************************************************************ //
class HeaderType : public TRemotable {
private:
UnicodeString FVerb;
UnicodeString FNoun;
UnicodeString FRevision;
..........
..........
..........
void __fastcall SetRevision(int Index, UnicodeString _prop_val)
{ FRevision = _prop_val; FRevision_Specified = true; }
bool __fastcall Revision_Specified(int Index)
{ return FRevision_Specified; }
void __fastcall SetReplayDetection(int Index, ReplayDetectionType* _prop_val)
{ FReplayDetection = _prop_val; FReplayDetection_Specified = true; }
..........
..........
..........
public:
__fastcall ~HeaderType();
__published:
__property UnicodeString Verb = { read=FVerb, write=FVerb };
__property UnicodeString Noun = { read=FNoun, write=FNoun };
__property UnicodeString Revision = { index=(IS_OPTN), read=FRevision, write=SetRevision, stored = Revision_Specified };
..........
..........
..........
};
데이터를 집어넣는 부분입니다.
void __fastcall TfrmMain::Button1Click(TObject *Sender)
{
_di_Charging InterfaceVariable;
HTTPRIO1->QueryInterface(InterfaceVariable);
if(InterfaceVariable) {
HeaderType *header = new HeaderType ();
header->Verb = "create"; /*에러발생*/
..........
..........
..........
}
}
이런식으로 짰는데 데이터를 집어넣는 부분에서 에러가 발생하네요.
어떻게 넣을 수 있을까요?
|