ContractReference.ReadDocument メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As ContractReference Dim stream As Stream Dim returnValue As Object returnValue = instance.ReadDocument(stream)
戻り値
参照されるサービスの説明の内容を含んでいる ServiceDescription。

Class MyClass1 Shared Sub Main() Try ' Create the file stream. Dim wsdlStream As _ New FileStream("MyService1_vb.wsdl", FileMode.Open) Dim myContractReference As New ContractReference() ' Read the service description from the passed stream. Dim myServiceDescription As ServiceDescription = _ CType(myContractReference.ReadDocument(wsdlStream), _ ServiceDescription) Console.Write(("Target Namesapce for the service description is: " _ + myServiceDescription.TargetNamespace)) wsdlStream.Close() Catch e As Exception Console.WriteLine(("Exception: " + e.Message)) End Try End Sub 'Main End Class 'MyClass1
class MyClass1 { static void Main() { try { // Create the file stream. FileStream wsdlStream = new FileStream("MyService1_cs.wsdl" , FileMode.Open); ContractReference myContractReference=new ContractReference(); // Read the service description from the passed stream. ServiceDescription myServiceDescription= (ServiceDescription)myContractReference.ReadDocument(wsdlStream); Console.Write("Target Namespace for the service description is: " + myServiceDescription.TargetNamespace); wsdlStream.Close(); } catch(Exception e) { Console.WriteLine("Exception: "+e.Message); } } }
int main() { try { // Create the file stream. FileStream^ wsdlStream = gcnew FileStream( "MyService1_cpp.wsdl",FileMode::Open ); ContractReference^ myContractReference = gcnew ContractReference; // Read the service description from the passed stream. ServiceDescription^ myServiceDescription = dynamic_cast<ServiceDescription^>(myContractReference->ReadDocument( wsdlStream )); Console::Write( "Target Namespace for the service description is: {0}", myServiceDescription->TargetNamespace ); wsdlStream->Close(); } catch ( Exception^ e ) { Console::WriteLine( "Exception: {0}", e->Message ); } }
class MyClass1 { public static void main(String[] args) { try { // Create the file stream. FileStream wsdlStream = new FileStream("MyService1_jsl.wsdl", FileMode.Open); ContractReference myContractReference = new ContractReference(); // Read the service description from the passed stream. ServiceDescription myServiceDescription = (ServiceDescription) myContractReference.ReadDocument(wsdlStream); Console.Write("Target Namespace for the service description is: " + myServiceDescription.get_TargetNamespace()); wsdlStream.Close(); } catch (System.Exception e) { Console.WriteLine("Exception: " + e.get_Message()); } } //main } //MyClass1

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からContractReference.ReadDocument メソッドを検索する場合は、下記のリンクをクリックしてください。

- ContractReference.ReadDocument メソッドのページへのリンク