SOAP Service Calls for .NET - 1.0

Extension ID

com.castsoftware.dotnet.soap

What’s new?

See SOAP Service Calls for .NET - 1.0 - Release Notes for more information.

Description

This extension provides support for SOAP .Net APIs responsible for enabling communication between client and server applications via web services.

In what situation should you install this extension?

If your C# application utilizes SOAP based web services and you want to view objects with their corresponding links then you should install this extension.

Technology support

SOAP is built-in features of the .NET Framework:

Language Item Version Supported
.NET Framework SOAP 1.1 to 1.2

Compatibility 

This extension is compatible with:

CAST Imaging Core release Supported
≥ 8.3.3

Dependencies

The SOAP .Net extension is dependent on following extensions:

  • CAST AIP Internal extension
  • Universal Linker

Download and installation instructions

The extension will not be automatically downloaded and installed. If you need to use it, you should manually install the extension using the Extensions interface:

What results can you expect?

Objects

Icon Description Comment
DotNet SOAP Operation an object is created when we encounter [WebMethod] attribute
DotNet SOAP Operation Call an object is created for each SOAP operation call and Web service method is resolved
DotNet SOAP Unknown Operation Call an object is created for each SOAP operation call and Web service method is not resolved
Link Type Source and Destination Link Supported APIs
callLink Link between the caller C# method and the DotNet SOAP Operation Call object
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
System.Web.Services.Protocols.SoapHttpClientProtocol.InvokeAsync
System.Web.Services.Protocols.SoapHttpClientProtocol.BeginInvoke
callLink Link between the DotNet SOAP Operation object and C# method System.Web.Services.WebMethodAttribute

Code Examples

Server Side

SOAP Operation

[WebMethod]
public bool InsertAssessment(Assessment a)
{
    return DAL.InsertAssessment(a);
}//close InsertAssessment

Client Side

SOAP Operation Call

wsdl file

<wsdl:definitions xmlns:tns="http://tempuri.org/"  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:portType name="WebService1Soap">
    <wsdl:operation name="InsertAssessment">
      <wsdl:input message="tns:InsertAssessmentSoapIn" />
      <wsdl:output message="tns:InsertAssessmentSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
</wsdl:definitions>
public bool InsertAssessment(Assessment a) {
    object[] results = this.Invoke("InsertAssessment", new object[] {
                a});
    return ((bool)(results[0]));
}

SOAP Unknown Operation Call

public System.Data.DataTable GetTable(string table, string col) {
    String method = getMethodName();
    object[] results = this.Invoke(method, new object[] {
                table,
                col});
    return ((System.Data.DataTable)(results[0]));
}