Jaa


OrderServiceAgent Constructor (Uri, String[])

Initializes a new instance of the OrderServiceAgent class for communicating with a specific Web service.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    serviceUri As Uri, _
    allowedAuthModes As String() _
)
'Usage
Dim serviceUri As Uri
Dim allowedAuthModes As String()

Dim instance As New OrderServiceAgent(serviceUri, _
    allowedAuthModes)
public OrderServiceAgent(
    Uri serviceUri,
    string[] allowedAuthModes
)
public:
OrderServiceAgent(
    Uri^ serviceUri, 
    array<String^>^ allowedAuthModes
)
public function OrderServiceAgent(
    serviceUri : Uri, 
    allowedAuthModes : String[]
)

Parameters

  • serviceUri
    Type: System..::.Uri
    Uri for the web service. A URI is a compact representation of a resource available to your application on the Internet
  • allowedAuthModes
    Type: array<System..::.String>[]()[]
    A list of authorization modes which are allowed.

Remarks

The OrderServiceAgent serves to abstract data from the user interface. The OrderServiceAgent provides authentication and SOAP proxy services when initialized to communicate with and authenticate against a Web service.

The ServiceAgent will not prompt on authentication failure.

Permissions

See Also

Reference

OrderServiceAgent Class

OrderServiceAgent Members

OrderServiceAgent Overload

Microsoft.CommerceServer.Orders Namespace