This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Soap fault while Logging into ARAS

Nishant Kapoor - Friday, June 1, 2012 6:36 AM:

 
I am trying to Login into the Aras Innovator by creating External API (COM – compatible IOM) as described in the ARAS Programmer Guide through Visual basic Console application, using vb.
 
Following are the References (Type:  .Net) I have added into the Console Application followed by their path:
 

1.)    IOM.dll                                 C:Program FilesArasInnovatorInnovatorServerinIOM.dll  (Version - 9.3.0.5663)

2.)    System.dll                           C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0 System.dll

3.)    System.Core.dll                C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0 System.Core.dll

4.)    System.XML.dll                 C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0 System.XML.dll                

5.)    System.Xml.Linq.dll        C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0 System.Xml.Linq.dll

 
The program I’m using is as mentioned in the programmer’s guide..
 
Dim url As String: url = " myserver/MyInnovator/Server/InnovatorServer.aspx"
Dim db As String: db = "MyDB"
Dim user As String: user = "admin"
Dim password As String: password = "innovator"
Dim factory As New IomFactory
Dim conn As HttpServerConnection:
Set conn = factory.CreateHttpServerConnection(url, db, user, password)
Dim login_result As Item: Set login_result = conn.Login
If login_result.IsError Then
MsgBox "Failed to login"
Exit Function
End If
Dim inn As Innovator: Set inn = factory.CreateInnovator(conn)
 
 
After running this program, I am not able to login into the system & getting the following error…
 
{<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n="http://www.aras.com/I18N"><SOAP-ENV:Body><SOAP-ENV:Fault>
      <faultcode>999</faultcode>
      <faultstring>HTTP Error</faultstring>
      <faultactor>HttpServerConnection</faultactor>
      <detail>System.Xml.XmlException: '--' is an unexpected token. The expected token is '&gt;'. Line 81, position 5.</detail>
      </SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>}
 
 
Any help would be really appreciated.
 
Nishant Kapoor 


Eric Domke - Friday, June 1, 2012 6:57 PM:

A few thoughts:

1) Do you have any unusual characters in your database name (e.g. '&', '<', or '>')?

2) Do you have any login handlers running code on login?

3) Do you have any problems logging in using the default Aras user interface?