CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
soap_http_client_protocol.h
1
2#pragma once
3#include <system/iasyncresult.h>
4#include <system/io/stream.h>
5#include <system/object.h>
6#include <system/shared_ptr.h>
7#include <system/string.h>
8#include <system/uri.h>
9#include <xml/xml_writer.h>
10#include <cstdint>
11#include <net/web_request.h>
12#include <system/array.h>
13#include <system/async_callback.h>
14#include <system/collections/dictionary.h>
15#include <net/web/services/protocol/http_web_client_protocol.h>
16#include <net/web/services/protocol/soap_protocol_version.h>
17#include <system/threading/send_or_post_callback.h>
18#include <xml/xml_reader.h>
19#include <xml/xml_serializer_implementation.h>
20
21namespace System { namespace Web { namespace Services { namespace Protocols {
22
23class SoapTypeStubInfo;
24class SoapClientMessage;
25
31{
32public:
39
41 ASPOSECPP_SHARED_API SoapHttpClientProtocol();
42
44 void Discover();
47 ASPOSECPP_SHARED_API void
50 String name /*, String ns*/);
51
52protected:
59 ASPOSECPP_SHARED_API System::SharedPtr<IAsyncResult>
61 System::SharedPtr<Object> asyncState);
75 ASPOSECPP_SHARED_API virtual System::SharedPtr<Xml::XmlReader>
81 ASPOSECPP_SHARED_API virtual System::SharedPtr<Xml::XmlWriter>
89 ASPOSECPP_SHARED_API void InvokeAsync(String methodName, System::ArrayPtr<System::SharedPtr<Object>> parameters,
96 ASPOSECPP_SHARED_API void InvokeAsync(String methodName, System::ArrayPtr<System::SharedPtr<Object>> parameters,
98
99private:
101 static System::SharedPtr<
103 soapTypeInfos;
107 SoapProtocolVersion soapVersion;
108
111 void AsyncGetRequestStreamDone(System::SharedPtr<IAsyncResult> ar);
113 void AsyncGetResponseDone(System::SharedPtr<IAsyncResult> ar);
132 void InvokeAsyncCallback(System::SharedPtr<IAsyncResult> ar);
133};
134
135}}}} // namespace System::Web::Services::Protocols
Forward declaration of Dictionary class.
Definition: dictionary.h:96
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a particular type and provides information about it.
Definition: type_info.h:109
This base class is used in all XML Web service client proxies that use HTTP. Objects of this class sh...
Definition: http_web_client_protocol.h:21
The client proxy services must inherit this class when the SOAP is used. Objects of this class should...
Definition: soap_http_client_protocol.h:31
void InvokeAsync(String methodName, System::ArrayPtr< System::SharedPtr< Object > > parameters, Threading::SendOrPostCallback callback, System::SharedPtr< Object > userState)
Calls the specified method asynchronously.
virtual System::SharedPtr< Xml::XmlReader > GetReaderForMessage(System::SharedPtr< SoapClientMessage > message, int32_t bufferSize)
Creates an XmlReader-class instance using the specified message.
System::ArrayPtr< System::SharedPtr< Object > > Invoke(String method_name, System::ArrayPtr< System::SharedPtr< Object > > parameters)
Calls the specified method synchronously.
virtual System::SharedPtr< Net::WebRequest > GetWebRequest(System::SharedPtr< System::Uri > uri)
Creates a WebRequest-class instance for the specified URI.
void Discover()
Binds the current instance to the XML Web service.
virtual System::SharedPtr< Xml::XmlWriter > GetWriterForMessage(System::SharedPtr< SoapClientMessage > message, int32_t bufferSize)
Creates an XmlWriter-class instance using the specified message.
System::SharedPtr< IAsyncResult > BeginInvoke(String methodName, System::ArrayPtr< System::SharedPtr< Object > > parameters, AsyncCallback callback, System::SharedPtr< Object > asyncState)
Initiates an asynchronous call.
SoapProtocolVersion get_SoapVersion()
Gets the SOAP version.
void set_SoapVersion(SoapProtocolVersion value)
Sets the SOAP version.
System::ArrayPtr< System::SharedPtr< Object > > EndInvoke(System::SharedPtr< IAsyncResult > asyncResult)
Waits until the specified asynchronous call completes.
void InvokeAsync(String methodName, System::ArrayPtr< System::SharedPtr< Object > > parameters, Threading::SendOrPostCallback callback)
void InitializeSerializers(const System::TypeInfo &serviceType, System::SharedPtr< System::Xml::Serialization::XmlSerializerImplementation > impl, String name)
Initializes the internal fields.
System::MulticastDelegate< void(System::SharedPtr< Object >)> SendOrPostCallback
Definition: send_or_post_callback.h:12
SoapProtocolVersion
Enumerates the versions of SOAP.
Definition: soap_protocol_version.h:7
Definition: db_command.h:9
System::MulticastDelegate< void(SharedPtr< IAsyncResult >)> AsyncCallback
A delegate type that represents a method to be called when asynchronous operation completes.
Definition: async_callback.h:13