# CreateServiceURI Method

## Overloads

| [CreateServiceURI(QTServiceType, EndpointType, String, Int32)](https://help.qlik.com/en-US/qlikview-developer/May2024/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateServiceURI.htm#PIX_Services_ServiceSupport_QTServiceSupport_CreateServiceURI_PIX_Services_ServiceSupport_QTServiceType_PIX_Services_ServiceSupport_EndpointType_System_String_System_Int32_) |  |  |
| --- | --- | --- |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateServiceURI.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateServiceURI.htm)

## CreateServiceURI(QTServiceType, EndpointType, String, Int32)

### Declaration

```

          public static Uri CreateServiceURI(QTServiceType serviceType, EndpointType endpointType, string machineName, int port)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QTServiceType](https://help.qlik.com/en-US/qlikview-developer/May2024/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceType.htm) | serviceType |  |
| [EndpointType](https://help.qlik.com/en-US/qlikview-developer/May2024/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.EndpointType.htm) | endpointType |  |
| System.String | machineName |  |
| System.Int32 | port |  |

### Returns

| Type | Description |
| --- | --- |
| System.Uri |  |