| Author |
Message |
Babar Shahzad
Guest
|
Posted:
Mon Aug 15, 2005 8:52 am Post subject:
AS400 Emulator |
|
|
Host Integration Server (HIS) Version: 2004
Developer Type : New to HIS
Task to Perform : Create a WIP Web Service that uses AS/400 and RPG
I am trying to perform the above mentioned task (defined in HIS 2004 by
Microsoft). These are the steps which have been taken:
1-Create an TI WIP component by importing an RPG code in TI designer (Visual
Studio 2003).
2- Create a New Remote Environment Definition
Target Host: OS400
Port, type: 8475
3- Define the security settings for the remote environment
4- Create the TI .NET proxy and associate the TI component with the remote
environment
5- Create the XML Web Service
Supporting references and objects are added:
5.1) Microsoft.HostIntegration.TI.ClientContext
5.2) System.Runtime.Remoting
5.3) OS400_DPC.CedarBank_Proxy.dll (Proxy Object Created in previous step)
6- Following code is written to create a Web Method:
<WebMethod()> _
Public Function GetAccounts(ByVal UserID As String, ByVal Password As
String, ByVal AcctName As String, ByVal AcctPin As String) As DataSet
Dim myCedarBank As New OS400_DPC.CedarBank
Dim myContextObject As New Microsoft.HostIntegration.TI.ClientContext
Dim TIContext As Object
Dim myDataSet As New DataSet
myContextObject.WriteContext("USERID", UserID, TIContext)
myContextObject.WriteContext("PASSWORD", Password, TIContext)
myDataSet.Tables.Add(myCedarBank.Getaccts(AcctName, AcctPin, TIContext))
Return myDataSet
End Function
7- Execute the code
7.1) Start SimHost (The host simulator simulates the connection to the
server)
Well, i can'nt perform this step as i do'nt have the SimHost.
8- Execute the WebMethod from browser.
But i Got the follwing error messages:
System.Runtime.InteropServices.COMException (0x80010105): The server threw
an exception.
Server stack trace:
at DCGENLib.DCGenObjClass.PrivateInvoke(String bstrCLSID, Int32 dispID,
Object[]& ppContextArray, Object[] pInParams, Object[]& pOutParams, Int32&
pHResult, Object& pResult, String& pMessage, String& pHelpLink)
at
Microsoft.HostIntegration.TI.RemotingInterceptor.InterceptorServerChannelSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage msg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& rm, ITransportHeaders& responseHeaders, Stream&
responseStream)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN, Object[]&
rgCtxt)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN, Object[]&
rgCtxt)
at OS400WebService.Service1.GetAccounts(String UserID, String Password,
String AcctName, String AcctPin) in
c:\inetpub\wwwroot\OS400WebService\Service1.asmx.vb:line 67
I think this is becuase there is no connection to the server so the proxy
object failed to connect to the server.
After that following questions come into my mind:
1- Am i right or there is somethig else ?
2- From Where i can Download the SimHost ?
3- Is there any alternative to SimHost, If yes then what is its source ?
Thanks in Advance. |
|
| Back to top |
|
 |
Rob Beardsworth [MSFT]
Guest
|
Posted:
Mon Aug 15, 2005 8:52 pm Post subject:
RE: AS400 Emulator |
|
|
Hi,
you should be able to find SimHost.exe under: program files\microsoft host
integration server\sdk\samples\AppInt\WindowsInitiated\SimHost\Release. Did
you look in the Event Log as there should have been a more useful message
provided (other than the server threw an exception). If you have turned on
WIP Tracing, please make sure that Convert->Extended Trace Info is NOT
Checked (this causes an exception when an error occurs).
Rob Beardsworth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Subject: AS400 Emulator
Date: Mon, 15 Aug 2005 00:03:02 -0700
Lines: 85
Host Integration Server (HIS) Version: 2004
Developer Type : New to HIS
Task to Perform : Create a WIP Web Service that uses AS/400 and RPG
I am trying to perform the above mentioned task (defined in HIS 2004 by
Microsoft). These are the steps which have been taken:
1-Create an TI WIP component by importing an RPG code in TI designer
(Visual
Studio 2003).
2- Create a New Remote Environment Definition
Target Host: OS400
Port, type: 8475
3- Define the security settings for the remote environment
4- Create the TI .NET proxy and associate the TI component with the remote
environment
5- Create the XML Web Service
Supporting references and objects are added:
5.1) Microsoft.HostIntegration.TI.ClientContext
5.2) System.Runtime.Remoting
5.3) OS400_DPC.CedarBank_Proxy.dll (Proxy Object Created in previous step)
6- Following code is written to create a Web Method:
<WebMethod()> _
Public Function GetAccounts(ByVal UserID As String, ByVal Password As
String, ByVal AcctName As String, ByVal AcctPin As String) As DataSet
Dim myCedarBank As New OS400_DPC.CedarBank
Dim myContextObject As New Microsoft.HostIntegration.TI.ClientContext
Dim TIContext As Object
Dim myDataSet As New DataSet
myContextObject.WriteContext("USERID", UserID, TIContext)
myContextObject.WriteContext("PASSWORD", Password, TIContext)
myDataSet.Tables.Add(myCedarBank.Getaccts(AcctName, AcctPin, TIContext))
Return myDataSet
End Function
7- Execute the code
7.1) Start SimHost (The host simulator simulates the connection to the
server)
Well, i can'nt perform this step as i do'nt have the SimHost.
8- Execute the WebMethod from browser.
But i Got the follwing error messages:
System.Runtime.InteropServices.COMException (0x80010105): The server threw
an exception.
Server stack trace:
at DCGENLib.DCGenObjClass.PrivateInvoke(String bstrCLSID, Int32 dispID,
Object[]& ppContextArray, Object[] pInParams, Object[]& pOutParams, Int32&
pHResult, Object& pResult, String& pMessage, String& pHelpLink)
at
Microsoft.HostIntegration.TI.RemotingInterceptor.InterceptorServerChannelSin
k.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage msg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& rm, ITransportHeaders& responseHeaders, Stream&
responseStream)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400WebService.Service1.GetAccounts(String UserID, String Password,
String AcctName, String AcctPin) in
c:\inetpub\wwwroot\OS400WebService\Service1.asmx.vb:line 67
I think this is becuase there is no connection to the server so the proxy
object failed to connect to the server.
After that following questions come into my mind:
1- Am i right or there is somethig else ?
2- From Where i can Download the SimHost ?
3- Is there any alternative to SimHost, If yes then what is its source ?
Thanks in Advance. |
|
| Back to top |
|
 |
Babar Shahzad
Guest
|
Posted:
Tue Aug 16, 2005 12:52 pm Post subject:
RE: AS400 Emulator |
|
|
Thanks Rob,
Below are my findings against the actions which you have specified.
1- I did'nt find "SimHost" under Program files\microsoft host
integration server\sdk\samples\AppInt\WindowsInitiated\. i am using
evaluation version (still valid for 114 days). Does SimHost included in
evaluation version ?
2- Yes you are right, there are some errors/warnings in event log. I am
copying them here for your analysis.
Event Type: Warning
Event Source: SNA Base Service
Event Category: None
Event ID: 561
Date: 8/16/2005
Time: 1:52:01 PM
User: DEMOAPPSERVER\Administrator
Computer: DEMOAPPSERVER
Description:
Write to mailslot or socket failed, rc = 64
EXPLANATION
A Win32 WriteFile() or winsock sendto() call failed. The return code is
shown.
ACTION
Provide network support personnel with the event log file(s) related to
SNA, and the return code included in this message. For information about SNA
log files, see the "Microsoft Host Integration Server Online Books."
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
=============================================
Event Type: Information
Event Source: COMTI
Event Category: General
Event ID: 150
Date: 8/16/2005
Time: 1:52:47 PM
User: BUILTIN\Administrators
Computer: DEMOAPPSERVER
Description:
(150) Transaction Integrator component started in process ID 272.
EXPLANATION
The Transaction Integrator components (for Virtual Directory TI_NetLabs)
have been attached to the ASP.Net Worker Process whose process ID is shown
above.
ACTION
No action is necessary.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
===============================================
Event Type: Error
Event Source: COMTI
Event Category: General
Event ID: 116
Date: 8/16/2005
Time: 1:52:47 PM
User: BUILTIN\Administrators
Computer: DEMOAPPSERVER
Description:
(116) Transaction Integrator was unable to initalize its management objects.
HRESULT: 0xc0000834
EXPLANATION
The Transaction Integrator runtime DLL was unable either to create its
management object or to initialize it. The HRESULT shown above indicates
the cause of this error.
ACTION
The error may be caused by corrupted system files or registry entries.
Remove and reinstall TI. If problem persists, contact Microsoft customer
support.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
3- Extended Error Info in WIP tracing is NOT checked.
"Rob Beardsworth [MSFT]" wrote:
| Quote: | Hi,
you should be able to find SimHost.exe under: program files\microsoft host
integration server\sdk\samples\AppInt\WindowsInitiated\SimHost\Release. Did
you look in the Event Log as there should have been a more useful message
provided (other than the server threw an exception). If you have turned on
WIP Tracing, please make sure that Convert->Extended Trace Info is NOT
Checked (this causes an exception when an error occurs).
Rob Beardsworth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Subject: AS400 Emulator
Date: Mon, 15 Aug 2005 00:03:02 -0700
Lines: 85
Host Integration Server (HIS) Version: 2004
Developer Type : New to HIS
Task to Perform : Create a WIP Web Service that uses AS/400 and RPG
I am trying to perform the above mentioned task (defined in HIS 2004 by
Microsoft). These are the steps which have been taken:
1-Create an TI WIP component by importing an RPG code in TI designer
(Visual
Studio 2003).
2- Create a New Remote Environment Definition
Target Host: OS400
Port, type: 8475
3- Define the security settings for the remote environment
4- Create the TI .NET proxy and associate the TI component with the remote
environment
5- Create the XML Web Service
Supporting references and objects are added:
5.1) Microsoft.HostIntegration.TI.ClientContext
5.2) System.Runtime.Remoting
5.3) OS400_DPC.CedarBank_Proxy.dll (Proxy Object Created in previous step)
6- Following code is written to create a Web Method:
<WebMethod()> _
Public Function GetAccounts(ByVal UserID As String, ByVal Password As
String, ByVal AcctName As String, ByVal AcctPin As String) As DataSet
Dim myCedarBank As New OS400_DPC.CedarBank
Dim myContextObject As New Microsoft.HostIntegration.TI.ClientContext
Dim TIContext As Object
Dim myDataSet As New DataSet
myContextObject.WriteContext("USERID", UserID, TIContext)
myContextObject.WriteContext("PASSWORD", Password, TIContext)
myDataSet.Tables.Add(myCedarBank.Getaccts(AcctName, AcctPin, TIContext))
Return myDataSet
End Function
7- Execute the code
7.1) Start SimHost (The host simulator simulates the connection to the
server)
Well, i can'nt perform this step as i do'nt have the SimHost.
8- Execute the WebMethod from browser.
But i Got the follwing error messages:
System.Runtime.InteropServices.COMException (0x80010105): The server threw
an exception.
Server stack trace:
at DCGENLib.DCGenObjClass.PrivateInvoke(String bstrCLSID, Int32 dispID,
Object[]& ppContextArray, Object[] pInParams, Object[]& pOutParams, Int32&
pHResult, Object& pResult, String& pMessage, String& pHelpLink)
at
Microsoft.HostIntegration.TI.RemotingInterceptor.InterceptorServerChannelSin
k.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage msg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& rm, ITransportHeaders& responseHeaders, Stream&
responseStream)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400WebService.Service1.GetAccounts(String UserID, String Password,
String AcctName, String AcctPin) in
c:\inetpub\wwwroot\OS400WebService\Service1.asmx.vb:line 67
I think this is becuase there is no connection to the server so the proxy
object failed to connect to the server.
After that following questions come into my mind:
1- Am i right or there is somethig else ?
2- From Where i can Download the SimHost ?
3- Is there any alternative to SimHost, If yes then what is its source ?
Thanks in Advance |
|
|
| Back to top |
|
 |
Rob Beardsworth [MSFT]
Guest
|
Posted:
Tue Aug 16, 2005 8:53 pm Post subject:
RE: AS400 Emulator |
|
|
Hi, when you installed, did you click on "SDK" or just on Application
Integration etc? (I don't know what the evaluation install included but
assumed that it had everything, but was just limited to 120 days). The fact
that you are getting the 3rd event message indicates that the effective
user of the thread that your call is on is not in the HIS Runtime group.
You need to make sure that the Virtual Directory settings (and any
web.config edits you may have made) result in the call running under a User
who is in the HIS Runtime group. In IIS5 make ASPNET a member of that group
(you MAY need to reboot, we have seen a problem with this), in IIS6 make
the Identity of the Default App Pool a user in that group. Allow Anonymous
access on the virtual directory and make sure that your web.config does NOT
say :
<identity impersonate="true" />.
Rob Beardsworth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Thread-Topic: AS400 Emulator
Subject: RE: AS400 Emulator
Date: Tue, 16 Aug 2005 02:11:05 -0700
Thanks Rob,
Below are my findings against the actions which you have specified.
1- I did'nt find "SimHost" under Program files\microsoft host
integration server\sdk\samples\AppInt\WindowsInitiated\. i am using
evaluation version (still valid for 114 days). Does SimHost included in
evaluation version ?
2- Yes you are right, there are some errors/warnings in event log. I am
copying them here for your analysis.
Event Type: Warning
Event Source: SNA Base Service
Event Category: None
Event ID: 561
Date: 8/16/2005
Time: 1:52:01 PM
User: DEMOAPPSERVER\Administrator
Computer: DEMOAPPSERVER
Description:
Write to mailslot or socket failed, rc = 64
EXPLANATION
A Win32 WriteFile() or winsock sendto() call failed. The return code is
shown.
ACTION
Provide network support personnel with the event log file(s) related to
SNA, and the return code included in this message. For information about
SNA
log files, see the "Microsoft Host Integration Server Online Books."
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
=============================================
Event Type: Information
Event Source: COMTI
Event Category: General
Event ID: 150
Date: 8/16/2005
Time: 1:52:47 PM
User: BUILTIN\Administrators
Computer: DEMOAPPSERVER
Description:
(150) Transaction Integrator component started in process ID 272.
EXPLANATION
The Transaction Integrator components (for Virtual Directory TI_NetLabs)
have been attached to the ASP.Net Worker Process whose process ID is shown
above.
ACTION
No action is necessary.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
===============================================
Event Type: Error
Event Source: COMTI
Event Category: General
Event ID: 116
Date: 8/16/2005
Time: 1:52:47 PM
User: BUILTIN\Administrators
Computer: DEMOAPPSERVER
Description:
(116) Transaction Integrator was unable to initalize its management objects.
HRESULT: 0xc0000834
EXPLANATION
The Transaction Integrator runtime DLL was unable either to create its
management object or to initialize it. The HRESULT shown above indicates
the cause of this error.
ACTION
The error may be caused by corrupted system files or registry entries.
Remove and reinstall TI. If problem persists, contact Microsoft customer
support.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
3- Extended Error Info in WIP tracing is NOT checked.
"Rob Beardsworth [MSFT]" wrote:
| Quote: | Hi,
you should be able to find SimHost.exe under: program files\microsoft
host
integration server\sdk\samples\AppInt\WindowsInitiated\SimHost\Release.
Did
you look in the Event Log as there should have been a more useful message
provided (other than the server threw an exception). If you have turned
on
WIP Tracing, please make sure that Convert->Extended Trace Info is NOT
Checked (this causes an exception when an error occurs).
Rob Beardsworth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Subject: AS400 Emulator
Date: Mon, 15 Aug 2005 00:03:02 -0700
Lines: 85
Host Integration Server (HIS) Version: 2004
Developer Type : New to HIS
Task to Perform : Create a WIP Web Service that uses AS/400 and RPG
I am trying to perform the above mentioned task (defined in HIS 2004 by
Microsoft). These are the steps which have been taken:
1-Create an TI WIP component by importing an RPG code in TI designer
(Visual
Studio 2003).
2- Create a New Remote Environment Definition
Target Host: OS400
Port, type: 8475
3- Define the security settings for the remote environment
4- Create the TI .NET proxy and associate the TI component with the
remote
environment
5- Create the XML Web Service
Supporting references and objects are added:
5.1) Microsoft.HostIntegration.TI.ClientContext
5.2) System.Runtime.Remoting
5.3) OS400_DPC.CedarBank_Proxy.dll (Proxy Object Created in previous
step)
6- Following code is written to create a Web Method:
<WebMethod()> _
Public Function GetAccounts(ByVal UserID As String, ByVal Password As
String, ByVal AcctName As String, ByVal AcctPin As String) As DataSet
Dim myCedarBank As New OS400_DPC.CedarBank
Dim myContextObject As New Microsoft.HostIntegration.TI.ClientContext
Dim TIContext As Object
Dim myDataSet As New DataSet
myContextObject.WriteContext("USERID", UserID, TIContext)
myContextObject.WriteContext("PASSWORD", Password, TIContext)
myDataSet.Tables.Add(myCedarBank.Getaccts(AcctName, AcctPin, TIContext))
Return myDataSet
End Function
7- Execute the code
7.1) Start SimHost (The host simulator simulates the connection to
the
server)
Well, i can'nt perform this step as i do'nt have the SimHost.
8- Execute the WebMethod from browser.
But i Got the follwing error messages:
System.Runtime.InteropServices.COMException (0x80010105): The server
threw
an exception.
Server stack trace:
at DCGENLib.DCGenObjClass.PrivateInvoke(String bstrCLSID, Int32
dispID,
Object[]& ppContextArray, Object[] pInParams, Object[]& pOutParams,
Int32&
pHResult, Object& pResult, String& pMessage, String& pHelpLink)
at
Microsoft.HostIntegration.TI.RemotingInterceptor.InterceptorServerChannelSin
k.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage msg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& rm, ITransportHeaders& responseHeaders, Stream&
responseStream)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400WebService.Service1.GetAccounts(String UserID, String
Password,
String AcctName, String AcctPin) in
c:\inetpub\wwwroot\OS400WebService\Service1.asmx.vb:line 67
I think this is becuase there is no connection to the server so the proxy
object failed to connect to the server.
After that following questions come into my mind:
1- Am i right or there is somethig else ?
2- From Where i can Download the SimHost ?
3- Is there any alternative to SimHost, If yes then what is its source ?
Thanks in Advance |
|
|
| Back to top |
|
 |
Aaron Grady [MSFT]
Guest
|
Posted:
Thu Aug 18, 2005 4:53 pm Post subject:
Re: AS400 Emulator |
|
|
Babar-
Regarding SimHost, this is a new program which we have been using at some of
our training events and possibly TechEd (I wasn't there this year so I don't
know for sure) which simulates a host system so that you can test the WIP
side of transaction integrator without a live host. This program was created
after HIS 2004 was released and is NOT included in the SDK. It will be
included in the SDK of the next release of HIS I believe.
There are a few other ways to test WIP without a live host:
1. You can try using the recording files that come with the HIS 2004 SDK.
These are the .RCD files that are contained in the specific directories
under the SDK\Samples\Appint\WindowsInitiated
2. You can setup the HIP (host initiated processing) side of CedarBank and
have WIP call into HIP. To WIP, the HIP application acts just like a host
system, and to HIP the WIP request looks just like a request from a host
system. This way takes a few more steps to setup, but is a very flexible
approach because you can use it to provide a "fake" host for your own WIP
components, not just the CedarBank samples.
HTH,
--
Aaron Grady
MCSE + Internet, MCDBA, MCSD, MCAD.NET
SNA Server/Host Integration Server
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Babar Shahzad" <BabarShahzad@discussions.microsoft.com> wrote in message
news:0D8F85D3-E342-423A-8978-792163FF98F0@microsoft.com...
| Quote: | Thanks Rob,
Below are my findings against the actions which you have specified.
1- I did'nt find "SimHost" under Program files\microsoft host
integration server\sdk\samples\AppInt\WindowsInitiated\. i am using
evaluation version (still valid for 114 days). Does SimHost included in
evaluation version ?
2- Yes you are right, there are some errors/warnings in event log. I am
copying them here for your analysis.
Event Type: Warning
Event Source: SNA Base Service
Event Category: None
Event ID: 561
Date: 8/16/2005
Time: 1:52:01 PM
User: DEMOAPPSERVER\Administrator
Computer: DEMOAPPSERVER
Description:
Write to mailslot or socket failed, rc = 64
EXPLANATION
A Win32 WriteFile() or winsock sendto() call failed. The return code is
shown.
ACTION
Provide network support personnel with the event log file(s) related to
SNA, and the return code included in this message. For information about
SNA
log files, see the "Microsoft Host Integration Server Online Books."
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
=============================================
Event Type: Information
Event Source: COMTI
Event Category: General
Event ID: 150
Date: 8/16/2005
Time: 1:52:47 PM
User: BUILTIN\Administrators
Computer: DEMOAPPSERVER
Description:
(150) Transaction Integrator component started in process ID 272.
EXPLANATION
The Transaction Integrator components (for Virtual Directory TI_NetLabs)
have been attached to the ASP.Net Worker Process whose process ID is
shown
above.
ACTION
No action is necessary.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
===============================================
Event Type: Error
Event Source: COMTI
Event Category: General
Event ID: 116
Date: 8/16/2005
Time: 1:52:47 PM
User: BUILTIN\Administrators
Computer: DEMOAPPSERVER
Description:
(116) Transaction Integrator was unable to initalize its management
objects.
HRESULT: 0xc0000834
EXPLANATION
The Transaction Integrator runtime DLL was unable either to create its
management object or to initialize it. The HRESULT shown above indicates
the cause of this error.
ACTION
The error may be caused by corrupted system files or registry entries.
Remove and reinstall TI. If problem persists, contact Microsoft customer
support.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
3- Extended Error Info in WIP tracing is NOT checked.
"Rob Beardsworth [MSFT]" wrote:
Hi,
you should be able to find SimHost.exe under: program files\microsoft
host
integration server\sdk\samples\AppInt\WindowsInitiated\SimHost\Release.
Did
you look in the Event Log as there should have been a more useful message
provided (other than the server threw an exception). If you have turned
on
WIP Tracing, please make sure that Convert->Extended Trace Info is NOT
Checked (this causes an exception when an error occurs).
Rob Beardsworth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Subject: AS400 Emulator
Date: Mon, 15 Aug 2005 00:03:02 -0700
Lines: 85
Host Integration Server (HIS) Version: 2004
Developer Type : New to HIS
Task to Perform : Create a WIP Web Service that uses AS/400 and RPG
I am trying to perform the above mentioned task (defined in HIS 2004 by
Microsoft). These are the steps which have been taken:
1-Create an TI WIP component by importing an RPG code in TI designer
(Visual
Studio 2003).
2- Create a New Remote Environment Definition
Target Host: OS400
Port, type: 8475
3- Define the security settings for the remote environment
4- Create the TI .NET proxy and associate the TI component with the
remote
environment
5- Create the XML Web Service
Supporting references and objects are added:
5.1) Microsoft.HostIntegration.TI.ClientContext
5.2) System.Runtime.Remoting
5.3) OS400_DPC.CedarBank_Proxy.dll (Proxy Object Created in previous
step)
6- Following code is written to create a Web Method:
WebMethod()> _
Public Function GetAccounts(ByVal UserID As String, ByVal Password As
String, ByVal AcctName As String, ByVal AcctPin As String) As DataSet
Dim myCedarBank As New OS400_DPC.CedarBank
Dim myContextObject As New Microsoft.HostIntegration.TI.ClientContext
Dim TIContext As Object
Dim myDataSet As New DataSet
myContextObject.WriteContext("USERID", UserID, TIContext)
myContextObject.WriteContext("PASSWORD", Password, TIContext)
myDataSet.Tables.Add(myCedarBank.Getaccts(AcctName, AcctPin, TIContext))
Return myDataSet
End Function
7- Execute the code
7.1) Start SimHost (The host simulator simulates the connection to the
server)
Well, i can'nt perform this step as i do'nt have the SimHost.
8- Execute the WebMethod from browser.
But i Got the follwing error messages:
System.Runtime.InteropServices.COMException (0x80010105): The server
threw
an exception.
Server stack trace:
at DCGENLib.DCGenObjClass.PrivateInvoke(String bstrCLSID, Int32
dispID,
Object[]& ppContextArray, Object[] pInParams, Object[]& pOutParams,
Int32&
pHResult, Object& pResult, String& pMessage, String& pHelpLink)
at
Microsoft.HostIntegration.TI.RemotingInterceptor.InterceptorServerChannelSin
k.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage msg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& rm, ITransportHeaders& responseHeaders, Stream&
responseStream)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400_DPC.CedarBank.Getaccts(String& IPNAME, String& IPPIN,
Object[]&
rgCtxt)
at OS400WebService.Service1.GetAccounts(String UserID, String
Password,
String AcctName, String AcctPin) in
c:\inetpub\wwwroot\OS400WebService\Service1.asmx.vb:line 67
I think this is becuase there is no connection to the server so the proxy
object failed to connect to the server.
After that following questions come into my mind:
1- Am i right or there is somethig else ?
2- From Where i can Download the SimHost ?
3- Is there any alternative to SimHost, If yes then what is its source ?
Thanks in Advance |
|
|
| Back to top |
|
 |
|
|
|
|