This handy line of VBScript in Syspro will refresh the screen (such as the Sales Order Lines' grid):
SystemVariables.CodeObject.ActionToInvoke = "DoRefreshLines,40004"
SystemVariables.CodeObject.ActionToInvoke = "DoRefreshLines,40004"
A blog about developing applications for use with SYSPRO - technical information in full detail. The opinions expressed here do not necessarily reflect those of Syspro or anybody else; the information is given in good faith but is not backed by Syspro or anybody else; use at your own risk; your mileage may vary; not valid in Sector C.
private static string MakeSafeForVBScript(string sourceString)
{
// The VB Script will essentially do a statement like this:
// Dim RefreshValue : Refreshvalue = "<?xml version="1.0" encoding="Windows-1252"?>
// However, it will give a syntax error on any embedded double quotes or new lines,
// so convert new lines into CTRL+B,
// and convert double-quotes into CTRL+D.
string newLineReplacement = ((char)0x2).ToString(); // CTRL+B
const char doubleQuoteReplacement = (char)0x4; // CTRL+D
const char doubleQuote = '"';
sourceString = sourceString.Replace(doubleQuote, doubleQuoteReplacement).Replace("\r\n", newLineReplacement);
return dotNetVariable;
}
Function Unencode (encodedString) Dim control_B Dim control_D Dim doubleQuote Dim newLine Dim result control_B = Chr(2) control_D = Chr(4) doubleQuote = Chr(34) newLine = chr(13) & chr(10) ' \r\n, i.e. CTRL+M CTRL+J. encodedString = Replace(encodedString, control_D, doubleQuote) Unencode = Replace(encodedString, control_B, newLine) End Function
<DiagnosticAppPath Value="""C:\SYSPRO61\BASE\IMPACT.EXE"""/>
<DiagnosticAppPath Value="\"C:\SYSPRO61\BASE\IMPACT.EXE\""/>
String tripleQuotes = @""""""""; String singleQuoteBackslashedQuote = @""""; var fixedQuotes = systemVariables.Replace(tripleQuotes, singleQuoteBackslashedQuote);
Dim GUID as String
Dim XmlOut as String
Dim WebServicesBaseURL = "http://example.com/sysprowebservices"
GUID = LogonToSysproViaWebServices()
XmlOut = CreateSalesOrderWebServices(GUID, "SORTOI", XmlParameters, XmlIn)
Private Function LogonToSysproViaWebServices() As String
Dim XmlIn As String
Dim XmlOut As String
Dim GUID As String
XmlIn = ""
Dim objSysproWS As New Syspro_Utilities_Web_Service
objSysproWS.Setup WebServicesBaseURL
XmlOut = objSysproWS.Logon(Operator, OperatorPassword, CompanyId, CompanyPassword, LanguageCode, LogLevel, EncoreInstance, XmlIn)
GUID = Trim(XmlOut)
Set objSysproWS = Nothing
LogonToSysproViaWebServices = GUID
End Function
Private Function CreateSalesOrderWebServices(ByRef GUID As String, ByRef BusinessObject As String, ByRef XmlParameters As String, ByRef XmlIn As String) As String
Dim XmlOut As String
Dim objSysproWS As New Syspro_Transaction_Web_Service
objSysproWS.Setup WebServicesBaseURL
XmlOut = objSysproWS.Post(GUID, BusinessObject, XmlParameters, XmlIn)
Set objSysproWS = Nothing
CreateSalesOrderWebServices = XmlOut
End Function ' CreateSalesOrderWebServices
'*****************************************************************
' This is based on Microsoft-generated code from:
' http://msdn.microsoft.com/en-us/magazine/cc163837.aspx
' ... but it has been modified to make the URL configurable.
'
'*****************************************************************
'This class was created by the Microsoft Office 2003 Web Services Toolkit.
'
'Description:
'This class is a Visual Basic for Applications class representation of the 'Web service as defined by http://localhost/sysprowebservice/transaction.asmx?wsdl.
'
'To Use:
'Dimension a variable as new clsws_Service, and then write code to
'use the methods provided by the class.
'Example:
' Dim ExampleVar as New clsws_Service
' debug.print ExampleVar.wsm_Post("Sample Input")
'
'For more information, see Complex Types in Microsoft Office 2003
'Web Services Toolkit Help.
'
'Changes to the code in this class may result in incorrect behavior.
'
'*****************************************************************
Option Explicit
'Dimensioning private class variables.
Private sc_Service As SoapClient30
' e.g. Private Const c_WSDL_URL As String = "http://localhost/sysprowebservices/utilities.asmx?WSDL"
' e.g. Private Const c_WSDL_URL As String = "http://www.example.com/sysprowebservices2/utilities.asmx?WSDL"
' The last part of the line MUST be "/utilities.asmx?WSDL".
'Private Const c_WSDL_URL As String = "http://localhost/sysprowebservices/utilities.asmx?WSDL"
Private c_WSDL_URL As String
Private Const c_WSDL_URL_Extension As String = "/utilities.asmx?WSDL"
Private Const c_SERVICE As String = "Service"
Private Const c_PORT As String = "ServiceSoap"
Private Const c_SERVICE_NAMESPACE As String = "http://www.syspro.com/ns/utilities/"
Private Sub Class_Initialize()
End Sub
Public Sub Setup(ByVal c_WSDL_URL_Base As String)
'*****************************************************************
'This subroutine will be called each time the class is instantiated.
'Creates sc_ComplexTypes as new SoapClient30, and then
'initializes sc_ComplexTypes.mssoapinit2 with WSDL file found in
'http://localhost/sysprowebservices/transaction.asmx?wsdl.
'*****************************************************************
Dim str_WSML As String
' WSML: Default value is "".
' This string is in Web Services Meta Language (WSML).
' This is a required parameter only when using custom type mappers.
str_WSML = ""
Set sc_Service = New SoapClient30
' Set sc_Service = Server.CreateObject("MSSOAP.SoapClient30")
' Not needed:
'sc_Service.ClientProperty("ServerHTTPRequest") = True
c_WSDL_URL = c_WSDL_URL_Base & c_WSDL_URL_Extension
sc_Service.MSSoapInit (c_WSDL_URL)
' Doesn't work; reason unknown:
'sc_Service.MSSoapInit2 c_WSDL_URL, str_WSML, c_SERVICE, c_PORT, c_SERVICE_NAMESPACE
'Use the proxy server defined in Internet Explorer's LAN settings by
'setting ProxyServer to
sc_Service.ConnectorProperty("ProxyServer") = ""
'Autodetect proxy settings if Internet Explorer is set to autodetect
'by setting EnableAutoProxy to True
sc_Service.ConnectorProperty("EnableAutoProxy") = True
End Sub
Private Sub Class_Terminate()
'*****************************************************************
'This subroutine will be called each time the class is destructed.
'Sets sc_ComplexTypes to Nothing.
'*****************************************************************
'Error Trap
On Error GoTo Class_TerminateTrap
Set sc_Service = Nothing
Exit Sub
Class_TerminateTrap:
ServiceErrorHandler ("Class_Terminate")
End Sub
Private Sub ServiceErrorHandler(str_Function As String)
'*****************************************************************
'This subroutine is the class error handler. It can be called from any
'class subroutine or function when that subroutine or function
'encounters an error. Then, it will raise the error along with the
'name of the calling subroutine or function.
'*****************************************************************
'SOAP Error
If sc_Service.FaultCode "" Then
Err.Raise vbObjectError, str_Function, sc_Service.FaultString
'Non SOAP Error
Else
Err.Raise Err.Number, str_Function, Err.Description
End If
End Sub
Public Function Logon(ByVal Operator As String, ByVal OperatorPassword As String, ByVal CompanyId As String, ByVal CompanyPassword As String, ByVal LanguageCode As String, ByVal LogLevel As String, ByVal EncoreInstance As String, ByVal XmlIn As String) As String
'*****************************************************************
'Proxy function created from
'http://localhost/sysprowebservice/utilities.asmx?wsdl.
'
'"Logon" is defined as XML. See Complex Types: XML Variables
'in Microsoft Office 2003 Web Services Toolkit Help for details on
'implementing XML variables.
'*****************************************************************
'Error Trap
On Error GoTo Logon_ErrorHandler
Logon = sc_Service.Logon(Operator, OperatorPassword, CompanyId, CompanyPassword, LanguageCode, LogLevel, EncoreInstance, XmlIn)
Exit Function
Logon_ErrorHandler:
ServiceErrorHandler "Logon"
End Function
Public Function Logoff(ByVal Operator As String) As String
'*****************************************************************
'Proxy function created from
'http://localhost/sysprowebservice/utilities.asmx?wsdl.
'
'"Logoff" is defined as XML. See Complex Types: XML Variables
'in Microsoft Office 2003 Web Services Toolkit Help for details on
'implementing XML variables.
'*****************************************************************
'Error Trap
On Error GoTo Logoff_ErrorHandler
Logoff = sc_Service.Logoff(Operator)
Exit Function
Logoff_ErrorHandler:
ServiceErrorHandler "Logoff"
End Function
' TODO: Create other routines: GetLogonProfile, Run.
'*****************************************************************
' Proxy to post to the a web service.
'
' This is based on Microsoft-generated code from:
' http://msdn.microsoft.com/en-us/magazine/cc163837.aspx
' ... but it has been modified to make the URL configurable.
'
'*****************************************************************
'This class was created by the Microsoft Office 2003 Web Services Toolkit.
'
'Description:
'This class is a Visual Basic for Applications class representation of the 'Web service as defined by http://localhost/sysprowebservice/transaction.asmx?wsdl.
'
'To Use:
'Dimension a variable as new clsws_Service, and then write code to
'use the methods provided by the class.
'Example:
' Dim ExampleVar as New clsws_Service
' debug.print ExampleVar.wsm_Post("Sample Input")
'
'For more information, see Complex Types in Microsoft Office 2003
'Web Services Toolkit Help.
'
'Changes to the code in this class may result in incorrect behavior.
'
'*****************************************************************
Option Explicit
'Dimensioning private class variables.
Private sc_Service As SoapClient30
Dim c_WSDL_URL As String
Private Const c_WSDL_URL_Extension As String = "/transaction.asmx?WSDL"
Private Const c_SERVICE As String = "Service"
Private Const c_PORT As String = "ServiceSoap"
Private Const c_SERVICE_NAMESPACE As String = "http://www.syspro.com/ns/transaction/"
Private Sub Class_Initialize()
End Sub
Public Sub Setup(ByVal c_WSDL_URL_Base As String)
'*****************************************************************
'This subroutine will be called each time the class is instantiated.
'Creates sc_ComplexTypes as new SoapClient30, and then
'initializes sc_ComplexTypes.mssoapinit2 with WSDL file found in
'http://localhost/sysprowebservices/transaction.asmx?wsdl.
'*****************************************************************
Dim str_WSML As String
str_WSML = ""
Set sc_Service = New SoapClient30
' Set sc_Service = Server.CreateObject("MSSOAP.SoapClient30")
' Not needed:
'sc_Service.ClientProperty("ServerHTTPRequest") = True
c_WSDL_URL = c_WSDL_URL_Base & c_WSDL_URL_Extension
sc_Service.MSSoapInit (c_WSDL_URL)
' Doesn't work; reason unknown:
'sc_Service.MSSoapInit2 c_WSDL_URL, str_WSML, c_SERVICE, c_PORT, c_SERVICE_NAMESPACE
'Use the proxy server defined in Internet Explorer's LAN settings by
'setting ProxyServer to
sc_Service.ConnectorProperty("ProxyServer") = ""
'Autodetect proxy settings if Internet Explorer is set to autodetect
'by setting EnableAutoProxy to True
sc_Service.ConnectorProperty("EnableAutoProxy") = True
End Sub
Private Sub Class_Terminate()
'*****************************************************************
'This subroutine will be called each time the class is destructed.
'Sets sc_ComplexTypes to Nothing.
'*****************************************************************
'Error Trap
On Error GoTo Class_TerminateTrap
Set sc_Service = Nothing
Exit Sub
Class_TerminateTrap:
ServiceErrorHandler ("Class_Terminate")
End Sub
Private Sub ServiceErrorHandler(str_Function As String)
'*****************************************************************
'This subroutine is the class error handler. It can be called from any
'class subroutine or function when that subroutine or function
'encounters an error. Then, it will raise the error along with the
'name of the calling subroutine or function.
'*****************************************************************
'SOAP Error
If sc_Service.FaultCode "" Then
Err.Raise vbObjectError, str_Function, sc_Service.FaultString
'Non SOAP Error
Else
Err.Raise Err.Number, str_Function, Err.Description
End If
End Sub
Public Function Post(ByVal UserId As String, ByVal BusinessObject As String, ByVal XmlParameters As String, ByVal XmlIn As String) As String
'*****************************************************************
'Proxy function created from
'http://localhost/sysprowebservice/transaction.asmx?wsdl.
'
'"Post" is defined as XML. See Complex Types: XML Variables
'in Microsoft Office 2003 Web Services Toolkit Help for details on
'implementing XML variables.
'*****************************************************************
'Error Trap
On Error GoTo Post_ErrorHandler
Post = sc_Service.Post(UserId, BusinessObject, XmlParameters, XmlIn)
Exit Function
Post_ErrorHandler:
ServiceErrorHandler "Post"
End Function
HKCR\Wow6432Node\CLSID\{the-GUID}\InprocHandler
HKCR\Wow6432Node\CLSID\{the-GUID}\InprocServer32.
Function CustomizedPane_OnToolbarButton1Clicked()
Dim WshShell
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "%{F4}"
' WshShell.SendKeys "{ESCAPE}" ' Can use this too
set WshShell = nothingEnd Function
Good sendkeys reference:http://www.devguru.com/technologies/wsh/quickref/wshshell_SendKeys.html
Filename
prior to and including Syspro 6.1
|
Where kept
|
Description
|
Where the information is kept in Syspro 7
|
|
ADMLSR.DAT
(.idx)
|
Client
|
List
view layouts and settings file
|
List_operator_listviewName.XML
|
|
ADMLSD.DAT
(.idx)
|
Client
|
Docking
control layouts
|
Dock_operator_dockingName.XML
|
|
ADMLST.DAT
(.idx)
|
Client
|
Form
settings
|
ADMLFR.DAT
(.idx)
|
|
ADMPRO.DAT
(.idx)
|
Client
|
Form
caption sequences
|
Form_operator_formName.XML
|
|
ADMLAY.DAT(.idx)
|
Server
|
List
view, docking, form and customized pane layouts for roles
|
…\settings\role_nnn\
|
|
List_name.XML
|
||||
Form_name.XML
|
||||
Dock_name.XML
|
||||
Pane_name.TXT
|
||||
ADMPRO.DAT
(.idx)
|
Server
|
Group
and Company caption layouts
|
Form_Group_group_formName.XML
|
|
Form_Company_company_formName.XML
|
||||
ADMOPR.DAT
(.idx)
|
Server
|
List of Syspro Operators
|
ADMOPR.DAT
(.idx)
|
Dim transaction As Object
Set transaction = CreateObject("Encore.transaction") Dim XmlParameters as string Dim XmlIn as string Dim EncoreLanguageCode as string
Dim EncoreLogLevel as string
Dim EncoreInstance as string
EncoreLogLevel = "ldNoDebug" EncoreInstance = "EncoreInstance_0" XmlParameters = "<your xml>" XmlIn = "<your xml in>" Dim GUID as string GUID = transaction.Logon("Operator", "OperatorPassword", "CompanyId", _ "CompanyPassword", EncoreLanguageCode, EncoreLogLevel, EncoreInstance, "") Dim XmlOut as string XmlOut = transaction.Post(GUID, "SORTOI", XmlParameters, XmlIn) |
ActiveX component can't create object
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.ServiceModel;
using Syspro.Base.SoapClient.SysproQueryServiceReference;
using Syspro.Base.SoapClient.SysproSetupServiceReference;
using Syspro.Base.SoapClient.SysproUtilitiesServiceReference;
using Syspro.Base.SoapClient.SysproTransactionServiceReference;
namespace Syspro.Base.SoapClient
{
[Guid("2672CDBD-F7C9-41E9-A86E-BD7034285E2E")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface ISoapClient
{
[DispId(1)] // TODO: Are these Dispatch ID's necessary? If not, remove them.
void SetBaseURL(string URL);
// Utility routines
[DispId(2)]
string Logon(string Operator, string OperatorPassword, string CompanyId, string CompanyPassword);
[DispId(3)]
string Logoff(string userId);
[DispId(4)]
string GetLogonProfile(string UserId);
[DispId(5)]
string Run(string UserId, string BusinessObject, string Parameter);
// Transaction routines
[DispId(6)]
string Post(string UserId, string BusinessObject, string XmlParameters, string XmlIn);
[DispId(7)]
string Build(string UserId, string BusinessObject, string XmlIn);
// Query routines
[DispId(8)]
string Query(string UserId, string BusinessObject, string XmlIn);
[DispId(9)]
string Browse(string UserId, string XmlIn);
[DispId(10)]
string Fetch(string UserId, string XmlIn);
[DispId(11)]
string NextKey(string UserId, string XmlIn);
[DispId(12)]
string PreviousKey(string UserId, string XmlIn);
// Setup routines
[DispId(13)]
string Add(string UserId, string BusinessObject, string XmlParameters, string XmlIn);
[DispId(14)]
string Delete(string UserId, string BusinessObject, string XmlParameters, string XmlIn);
[DispId(15)]
string Update(string UserId, string BusinessObject, string XmlParameters, string XmlIn);
}
// Reference: http://msdn.microsoft.com/en-us/library/bb608604.aspx
[Guid("7D825322-30C9-42A4-9A74-57154FC3169F")]
[ClassInterface(ClassInterfaceType.None)]
[ProgId("Syspro.Base.SoapClient")]
public class SoapClient : ISoapClient
{
private string BaseURL = String.Empty;
private const string utilitiesEndpointName = "/utilities.asmx";
private const string transactionEndpointName = "/transaction.asmx";
private const string queryEndpointName = "/query.asmx";
private const string setupEndpointName = "/setup.asmx";
public SoapClient()
{
// Must have a public default constructor so that COM clients can create the type.
// Reference: http://msdn.microsoft.com/en-us/library/7fcfby2t.aspx
}
public void SetBaseURL(string URL)
{
BaseURL = URL;
}
#region Utility Routines
public string Logon(string Operator, string OperatorPassword, string CompanyId, string CompanyPassword)
{
System.ServiceModel.Channels.Binding binding = new System.ServiceModel.BasicHttpBinding();
var endPoint = new EndpointAddress(BaseURL + utilitiesEndpointName);
var client = new utilitiesclassSoapClient(binding, endPoint);
var result = client.Logon(Operator, OperatorPassword, CompanyId,
CompanyPassword, Language.AUTO,
LogDetail.ldNoDebug, Instance.EncoreInstance_0, "");
return result;
}
public string Logoff(string userId)
{
System.ServiceModel.Channels.Binding binding = new System.ServiceModel.BasicHttpBinding();
var endPoint = new EndpointAddress(BaseURL + utilitiesEndpointName);
var client = new utilitiesclassSoapClient(binding, endPoint);
var result = client.Logoff(userId);
return result;
}
public string GetLogonProfile(string userId)
{
System.ServiceModel.Channels.Binding binding = new System.ServiceModel.BasicHttpBinding();
var endPoint = new EndpointAddress(BaseURL + utilitiesEndpointName);
var client = new utilitiesclassSoapClient(binding, endPoint);
var result = client.GetLogonProfile(userId);
return result;
}
public string Run(string UserId, string BusinessObject, string Parameter)
{
System.ServiceModel.Channels.Binding binding = new System.ServiceModel.BasicHttpBinding();
var endPoint = new EndpointAddress(BaseURL + utilitiesEndpointName);
var client = new utilitiesclassSoapClient(binding, endPoint);
var result = client.Run(UserId, BusinessObject, Parameter);
return result;
}
#endregion Utilities Routines
#region Transaction Routines
public string Post(string UserId, string BusinessObject, string XmlParameters, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + transactionEndpointName);
var client = new transactionclassSoapClient(binding, endPoint);
var result = client.Post(UserId, BusinessObject, XmlParameters, XmlIn);
return result;
}
public string Build(string UserId, string BusinessObject, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + transactionEndpointName);
var client = new transactionclassSoapClient(binding, endPoint);
var result = client.Build(UserId, BusinessObject, XmlIn);
return result;
}
#endregion Transaction Routines
#region Query Routines
public string Query(string UserId, string BusinessObject, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + queryEndpointName);
var client = new queryclassSoapClient(binding, endPoint);
var result = client.Query(UserId, BusinessObject, XmlIn);
return result;
}
public string Browse(string UserId, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + queryEndpointName);
var client = new queryclassSoapClient(binding, endPoint);
var result = client.Browse(UserId, XmlIn);
return result;
}
public string Fetch(string UserId, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + queryEndpointName);
var client = new queryclassSoapClient(binding, endPoint);
var result = client.Fetch(UserId, XmlIn);
return result;
}
public string NextKey(string UserId, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + queryEndpointName);
var client = new queryclassSoapClient(binding, endPoint);
var result = client.NextKey(UserId, XmlIn);
return result;
}
public string PreviousKey(string UserId, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + queryEndpointName);
var client = new queryclassSoapClient(binding, endPoint);
var result = client.PreviousKey(UserId, XmlIn);
return result;
}
#endregion Query Routines
#region Setup Routines
public string Add(string UserId, string BusinessObject, string XmlParameters, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + setupEndpointName);
var client = new setupclassSoapClient(binding, endPoint);
var result = client.Add(UserId, BusinessObject, XmlParameters, XmlIn);
return result;
}
public string Delete(string UserId, string BusinessObject, string XmlParameters, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + setupEndpointName);
var client = new setupclassSoapClient(binding, endPoint);
var result = client.Delete(UserId, BusinessObject, XmlParameters, XmlIn);
return result;
}
public string Update(string UserId, string BusinessObject, string XmlParameters, string XmlIn)
{
BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.ReaderQuotas.MaxStringContentLength = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var endPoint = new EndpointAddress(BaseURL + setupEndpointName);
var client = new setupclassSoapClient(binding, endPoint);
var result = client.Update(UserId, BusinessObject, XmlParameters, XmlIn);
return result;
}
#endregion Setup Routines
}
}
|
cd
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
regasm /codebase
"C:\Syspro61\Base\ManagedAssemblies\Syspro.Base.SoapClient.dll"
|
Types registered
successfully
|
Dim soap as Object
Dim XmlOut as string Dim XmlParameters as string Dim XmlIn as string XmlParameters = "<your xml>" XmlIn = "<your xml in>" Set soap = CreateObject("Syspro.Base.SoapClient") soap.SetBaseURL "http://www.example.com/sysprowebservices/" Dim GUID as string GUID = soap.Logon("Operator", "OperatorPassword", "CompanyId", "CompanyPassword") XmlOut = soap.Post(GUID, "SORTOI", XmlParameters, XmlIn) |