Error attempting to Login to UpShot with UpXMLLibrary

Hi,
We've been having as issue trying to login to UpShot via the API using Classic ASP.
We get this error:
msxml4.dll error '80070005'
Access is denied.
At this line of the SendXml function
xmlHttp.send xmlRequest
Below is the exact code of the test page we're using to troubleshoot.
<!--#include file="../../includes/UpXMLLibrary.inc"-->
<%
Response.Write("Before login")
Const COMPANYNAME = "Our Company Name"
Const LOGINNAME = "ourusername"
Const PASSWORD = "ourpassword"
Const TIMEZONE = "Eastern Time"
Const DAYLIGHTSAVINSRULE = "North America"
If Login(COMPANYNAME, LOGINNAME, PASSWORD, TIMEZONE, DAYLIGHTSAVINSRULE) Then
     Response.Write("we're logged in to UpShot")
     Logoff
End If
%>
Any help would be greatly appreciated. Thank you.

Hi, sorry for not responding earlier, I didn't see this. I guess the email notification of replies is not working.
It's the login function from the UpXMLLibrary include file that's part of the UpShot API.
Here's the Login function from that file
' Function Login
' Purpose:
' This function encapsulates the UpShot Login XML call. If this function succeeds,
' then the glbSessionID variable is set to the returned SessionID to be used in
' all the subsequent XML calls
' Parameters:
' companyname - Company name to use in Login request
' loginID - User Login Name to use in Login request
' password - User's Password to use in Login request
' timezone - TimeZone to use in Login request
' daylightsavingrule - DaylightSavingrule to use in Login request
' Return Value:
' Boolean - True if this function completes successfully
Function Login(companyname,loginID,password,timezone,daylightsavingrule)
Dim xmlLogin
Dim xmlOut
' default return value
Login = False
' construct the Login XML request
xmlLogin = "<Login " & _
"Company=""" & XMLEncode(companyname) & """ " & _
"LoginName=""" & XMLEncode(loginID) & """ " & _
"Password=""" & XMLEncode(password) & """ " & _
"TimeZone=""" & timezone & """ " & _
"DaylightSavingRule=""" & daylightsavingrule & """/>"
' Send the XML to the UpShot Server
If SendXML(xmlLogin, xmlOut) Then
Dim xmlDoc
Dim loginElement
' Load the XML into the MSXML object for parsing
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.4.0")
xmlDoc.LoadXML xmlOut
' Check the returned action status to make sure this request succeeded
If VerfiyRequestStatus(xmlDoc, "Login") Then
' Login was successfull, so get the SessionID and store it in the
' global SessionId variable
Set loginElement = xmlDoc.selectSingleNode("/*/Login")
glbSessionID = loginElement.selectSingleNode("SessionID").Text
' If we get here then everything succeeded
Login = TRUE
End If
End If
End Function
And the SendXML function that Login calls (and where the error is happening)
' Function SendXML
' Purpose:
' This function encapsulates the sending of an XML request to the
' UpShot server. It takes in a string containing and XML request and
' returns a string containing the XML response. The passed in XML is
' not a complete XML request. This routine will package the passed in
' XML into a well-formed UpShot XML request before sending it to the UpShot
' server.
' Parameters:
' xmlIn - XML request to send to the upshot server
' xmlOut [out] - A string containing the XML response
' Return Value:
' Boolean - True if the request was sent and recieved successfully
Function SendXML(xmlIn, xmlOut)
Dim serverUrl
Dim xmlRequest
Dim xmlDoc
Dim xmlHttp
Dim errorElement
' default return value
SendXML = False
' create the MSXML objects to send the XML request
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.4.0")
Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.4.0")
' construct an URL to send the request to
serverUrl = PROTOCOL & "://" & SERVERNAME
' package the XML request with the correct processing instructions
' and insode of the UpShotRequest node
xmlRequest = "<?xml version=""1.0"" encoding=""ISO-8859-1""?>" & "<UpShotRequest"
If Len(glbSessionID) > 0 Then
xmlRequest = xmlRequest & " SessionID="""&glbSessionID&""""
End If
xmlRequest = xmlRequest & ">"& xmlIn & "</UpShotRequest>"
' send the XML to the UpShot server
xmlHttp.Open"POST", serverUrl & "/UpShotdev/xml.dll", False
xmlHttp.send xmlRequest
' set the XML output
xmlOut = xmlHttp.responseXML.xml
' load the XML results
If Not xmlDoc.Load(xmlHttp.responseXML) Then
Dim xPE
' Valid XML was not passed back. Get a string error
' describing the error
Set xPE = xmlDoc.parseError
With xPE
glbErrorMsg = "Your XML Document failed to load" & _
"due the following error." & vbCrLf & _
"Error #: " & .errorCode & ": " & xPE.reason & _
"Line #: " & .Line & vbCrLf & _
"Line Position: " & .linepos & vbCrLf & _
"Position In File: " & .filepos & vbCrLf & _
"Source Text: " & .srcText & vbCrLf & _
"Document URL: " & .URL
End With
Exit Function
End If
' look for an error node at the top level
Set errorElement = xmlDoc.selectNodes("/*/Error")
If errorElement.length > 0 Then
glbErrorMsg = errorElement.item(0).Text
Exit Function
End If
' If we get here then everything succeeded
SendXML = True
End Function
Thanks for your help. It's much appreciated.

Similar Messages

  • IChat Error: "attempted to login too many times" problem/solution

    *I don't know if its okay to post a new topic/question then answer it, but i was having this issue and finally found a resolution so i wanted to share it with everyone.*
    _*Your problem:*_ You Log into ichat then it suddenly begins to act crazy- logging in and out multiple times for no apparent reason... then its gives you the message, yes THE message "You have attempted to login too often in a short period of time. Wait a few minutes before trying to login again".
    You silently think to yourself, "w.t.f". lol.
    Okay, well different things worked for different people, it just depends on the time, the moment, and whether or not ichat wants to act right...
    SOLUTIONS:
    1. Change to SSL
    Go to iChat Menu --> Preferences --> Accounts --> Server Settings --> then check "Use SSL"
    2. Use Port 443
    iChat--> Preferences--> Server Settings --> Use port "443"
    3. Delete the user from my ichat accounts, by pressing the minus sign. Then waiting a couple minutes just to make sure that I would not get the logged in too many times error and re added the account.
    *4. THIS SHOULD MOST Definitely WORK:
    1.) Quit iChat if it is already open, and then open Finder.
    2.) Browse to your user folder (can be found by clicking on your main hard drive, then going to Users > Your Username.
    3.) Open the Library folder and go to the Preferences directory.
    4.) You’ll see a long list of files with a .plist extension. The one we’re looking for is com.apple.iChat.AIM.plist. When you find it, delete it by dragging the file to the trash.
    5.) Launch iChat and this time you should be able to sign in to your AIM account successfully. iChat will automatically rebuild the preference file you deleted.
    _*More INFO:*_
    Now some people may wonder "Why is this happening to me" I'll tell you why:
    The cause of the issue most likely roots from using your Mac at multiple locations (such as home, school, or work), which could lead to the preference files somehow getting corrupted. It sounds serious, but really shouldn't take more than a minute or so to resolve. Just follow the above steps...
    I wish I could take credit for all these, btu I just pulled them from different sites and forums, including forums.macrumers.com and macyourself.com
    I hope this helps someone out there Good Luck.
    Oh and feel free to add other ways to fix this weird issue.

    Also look at http://discussions.apple.com/thread.jspa?threadID=1462798
    The Apple Article on the related Issue
    http://support.apple.com/kb/TS1643
    10:24 PM Saturday; June 6, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
    Message was edited by: Ralph Johns (UK)
    Corrected link

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • CDS-18010 Error:A Index and a index with the same name

    Hi
    I am facing strange error is some one expert there to help me to get rid of this error.
    CDS-18010 Error:A Index and a index with the same name 'LA_SP_FK_1' have been asked to be created.
    I am generating tables from Data model diagram & getting this error.
    Thanks,
    Vijay

    Your Right!!
    Designer does not like 2 of the same name.
    there are several bugs on the same name issue and CDS-18010
    Bug.3973155/3443005 (92) CDS-18010 IN CAPTURING A TYPE WITH CONSTRUCTOR FUNTIONS IN ITS BODY:
    Bug.2586582 (93) CDS-18010 A DOMAIN AND A DOMAIN WITH THE SAME NAME 'D1' BEEN ASKED TO CREATE:
    Bug.2561625 (15) CDS-18010 GENERATION OF TWO SYNONYMS WITH SAME NAME BUT DIFFERENT SCOPE:
    Bug.2072505 (93) CDS-18010 CAPTURING 2 TRIGGERS WITH SAME NAME ON ONE TABLE SHOULD BE A WARNING:
    Bug.1689800 (90) CDS-18010 PLSQL WITH THE SAME PROCEDURE NAME ALREADY EXISTS:
    Bug.1073311/1029997 (96) CDS-18010 ERROR ATTEMPTING TO CREATE 2 PROCEDURES WITH SAME NAME:
    Just to name a few.
    I would suggest you change the name.
    Michael

  • Attempt to process file failed with java.lang.StringIndexOutOfBoundsExcep..

    Hello All,
       I am implementing file2file with file going from shared folder to FTPS server.
    I am using TLS and X.509 certificate in file receiver communication channel.
    when I implemented my scenario, this is the error its throwing :
    Success : Connect to FTP server "my ftp address", directory "/TEST/"
    Error : Attempt to process file failed with java.lang.StringIndexOutOfBoundsException: String index out of range: 3
    I know this error is caused when java expects the 3 character length string and if its getting more than that... Does any faced this kindaa problem before...Any help is greatly appreciated....Obviously even points....
    Thanks,
    Ravi

    There is no custom code at all? No mappings, no custom modules, no pre/post processing commands?
    Also, check if you get this error when sending to ftps server without certificate (or with another certificate). It may be an incompatibility issue with certificate.
    Did you import the .pfx (or .p12) file in KeyStorage Service?
    Regards,
    Henrique.

  • I'm trying to connect through the FTP client Filezilla. When I try to login with the wizard, it gives me a "503 Failure of Data Connection" reply; when I attempt to login myself, it gives me a "530 Login Authentication Failed." HELP!!!

    My current softward is: Mac OS X Lion 10.7.5 (11G63)
    When I attempt to use the Filezilla connection wizard I get the following message:
    Connecting to probe.filezilla-project.org
    Response: 220 FZ router and firewall tester ready
    USER FileZilla
    Response: 331 Give any password.
    PASS 3.7.1.1
    Response: 230 logged on.
    Checking for correct external IP address
    Retrieving external IP address from http://ip.filezilla-project.org/ip.php
    Checking for correct external IP address
    IP 27.0.19.56 ch-a-bj-fg
    Response: 200 OK
    PREP 52470
    Response: 200 Using port 52470, data token 1871898076
    PORT 27,0,19,56,204,246
    Response: 200 PORT command successful
    LIST
    Response: 150 opening data connection
    Response: 503 Failure of data connection.
    Server sent unexpected reply.
    Connection closed
    When I attempt to login Host/Username/Password myself I get the following message:
    Status:          Resolving address of amyhoney.com
    Status:          Connecting to 184.168.54.1:21...
    Status:          Connection established, waiting for welcome message...
    Response:          220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response:          220-You are user number 12 of 500 allowed.
    Response:          220-Local time is now 04:05. Server port: 21.
    Response:          220-This is a private system - No anonymous login
    Response:          220 You will be disconnected after 3 minutes of inactivity.
    Command:          USER 5475****
    Response:          331 User 5475**** OK. Password required
    Command:          PASS ********************
    Response:          530 Login authentication failed
    Error:          Critical error
    Error:          Could not connect to server
    Now before anyone points out the obvious: my username and password are correct. I've already gone through changing them so I know they are.
    Additionally, I've pretty much tried EVERYTHING I've read online, from messing with "terminal" (and subsequently the FTP and STFP options) to changing the sharing options and turning on file sharing/remote management as well as just turning off my Firewall completely.
    Now I've used Filezilla before when I first published my site and everything worked fine. My site is published through Wordpress so most of my editing was done through simply logging into my "wp-login." I recently changed the theme and in order to change the header image in that theme I have to do it through my "wp-content" folder, which means I need to use Filezilla. I feel like a complete moron right now considering I've had my site for about a year and can't even doing something this simple.
    I've read that the newer version of Lion/Mountain Lion don't support automatice FTP anymore, which (as I mentioned prior) I attempted to fix through Terminal. However, nothing I do seem to do works.
    Can someone walk me through fixing this? And I do mean 'walk me through'. I'm not a tech-savvy nerd who knows all the lingo, I just know the basics so sorry if my ignorance offends you.
    HELP!!

    First be sure login and password are OK. Sometimes the address starts wit "http://..." and sometime starts with "ftp://...". Try both normal FTP access and Scure FTP access (SFTP). At the end, contact the site's provider.

  • When attempting to login to iCloud I get the following error message "Connection Error iCloud encountered an error while attempting to connect to the server"

    I am attempting to login to iCloud via my PC (Win XP) and get the error message above.  Any thoughts??
    Thanks,
    Richard Quinn

    Although your symptoms aren't mentioned, I'd try the following document with that. (The server error message is consistent with a LSP conflict.)
    Apple software on Windows: May see performance issues and blank iTunes Store

  • Trying to burn a playlist in itunes and i get this message at the end 'The attempt to burn a disc failed. An nknown error occurred (4450)'.  This is with a new Dell laptop running windows 8. The playlist was 17 songs from cd's and itunes.  Any ideas?

    Trying to burn a playlist in itunes and i get this message at the end 'The attempt to burn a disc failed. An nknown error occurred (4450)'.  This is with a new Dell laptop running windows 8. The playlist was 17 songs from cd's and itunes.  Any ideas?

    try this...
    This is how I managed to fix the problem...and I hope this helps others in the similar situation.
    I tried with another program..latest version of Nero, and this was also stopping at the 'initialising' stage. I was now lost! I thought the last resort is to give Evesham (My PC manufacturer) a buzz. They were very helpfull. Basically go into 'Control Panel', 'System', and click on the Hardware tab, then 'Device Manager'. Uninstall everything in the DVD/CDRom Drives. Then uninstall everything under the catagory IDE ATA/Atapi disk controllers. This is where my problem was, as I only had one IDE channel here. You should have 4 or 5! Reboot your machine, and everything will automatically re-load. I tried burning using Nero and it worked. Then the big test was iTunes. It worked 1st time!
    I asked why the IDE channels have dissappearred, and he said sometimes uninstalling Programmes occasionally removes them.
    I hope this will help others who are having problems to burn stuff on iTunes.

  • TS1436 I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    Hello Pat,
    The following article provides troublehsooting steps and information that can help get iTunes burning discs again.
    Can't burn a CD in iTunes for Windows
    http://support.apple.com/kb/TS1436
    Cheers,
    Allen

  • Business Management Error: You are attempting to create a user with a domain logon that does not exist. Select another domain logon and try again.

    Hello,
    Suddenly the working CRM is being stopped for some group of users.
    I drilled down to the issue and have checked that the users from Domain in which CRM is installed are having CRM access.
    But for other domain user having problem to access CRM.
    I tried to add a user from a domain which is not of CRM domain then it gives following error.
    "Business Management Error: You are attempting to create a user with a domain logon that does not exist. Select another domain logon and try again.
    <Message>LookupAccountNameW failed with error</Message> "
    The change is made - AD group have upgraded Activer Directory server to 2012 R2
    Please help as the Production CRM is not working for other domain user.

    We have Activer Directory Structure like below.
    One Root Domain says A
    and there are multiple child domain like B,C,D etc...
    B,C and D are all in same level,they are child of A domain.
    There are two way transitive trusts between A and all the child Domain.
    But there is no trust in between B and C and so on.
    Our CRM server is in B domain and B domain's user can access CRM but users of Domain C,D and so on can not access CRM.
    If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

  • Get 'Generic Error' when attempting to import .mov files with transparency?

    I get the 'Generic Error' when attempting to import .mov files with transparency? I'm trying to use mattes with an alpha channel but I cannot import them. I have had this same issue since cs6, now I have it with cc 2014? Any clues would be most appreciated.
    I have uninstalled the DVCPro Codec, but it didn't help.
    I have tried converting the .mov file (which is now automatic in Yosemite) and this creates a ProRes4444 Codec, Again no luck with import.
    I've seen this issue on the web, but never a solution? Anyone?

    Hi Terence,
    I tried iPhoto Library Manager but it could not solve my problem. Opening the iPhoto library I can see that the reference to the pictures are pointing to my old location not to the new one. I considered running a script that would change all pointers since this is basically what is needed (in my case from /Volumes/RAID1/Fotos/XXX to /Volumes/Fotos/XXX). Instead I inserted a soft unix link to make to connection but that did not work. It is referring to the airport disk by the airport name rather than the mounted disk name. Very strange indeed. The problem is maybe not in iPhoto but in OSX? Anyway, maybe the only way out is to take some hours and manually run through all linked photos... cumbersome and annoying!
    Regards,
    Søren

  • I just installed Lightroom 5 but can't import photos, there is no import option anywhere. Get pop-up saying error attempting to change modules  ?? Any help with this??

    I just installed Lightroom 5 but can't import photos, there is no import option anywhere. Get pop up saying error attempting to change modules.
    I had this with the trial , then I purchased license and still happens.  Any help with this ??

    <moved from Downloading, Installing, Setting Up to Photoshop Lightroom>

  • OEM12c jobs fail with "Error attempting to invoke console command"

    Hi gurus,
    I'm wondering if someone could help me on this issue.
    When I try to execute a job it remains in "Running" state for a long time periord and looking at the jobs details I can see something like this:
    Execution: DB11G.WORLD
         DB11G.WORLD     Running     Aug 29, 2012 10:17:31 AM GMT+02:00          57.9 minutes
    Step: DeployDriver     DB11G.WORLD     Scheduled
    Doing drilldown in "Scheduled" hiperlynk the message displayed is that:
    Error attempting to invoke console command, retrying
    And this is the Tip offered by oem:
         TIP:      Management Service from which the job step was dispatched.
    Everything seems to be working even the Management Service, but any job launched fail in the same way.
    Environment:
    Oem12c 12.1.0.1.0 with last patch
    Oracle Linux 5.7
    DB Oracle 11gr2
    Any suggestion on this issue will be welcome.
    Thanks,
    Carlos.

    Thanks Eric for your feedback.
    It seems that the problem was related with target "Oracle Authorization Policy Manager" because this target was down and after restart OMS and check that this target was up again all pending jobs worked and finished.
    However the job_queue_processes value was a good point to take into account so I increase this parameter just in case.
    Thanks,
    Carlos.
    QUERY STATUS = SOLVED

  • I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    Can you access other apps? Can you acess the internet? Can you access applications that use internet besides facebook?
    If answer is yes to all of these; contact Facebook.

  • On every attempt to install Itunes I've recieved the error message, "There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package Vendor." What do?

    On every attempt to install Itunes I've recieved the error message, "There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package Vendor." What do?

    I know there's a million threads like this, but I thought I'd record my experience.  I, too, was having the original poster's error when I tried to update iTunes on Windows XP.  I think I was stuck on 10. 
    I solved it by un-installing iTunes and every other Apple app.  I discovered that Apple Software Update would not un-install as its MSI file could not be found.  I used the "Windows Install Cleanup" tool from Microsoft to remove Apple Software Update from the list of installed programs.  Google "kb290301" for a Microsoft page that includes a download link for it.  After that, I was able to install a fresh copy of iTunes 10.5.2.
    I'm not sure why this app's folder and MSI were missing from my computer.  I had once used Laplink PC Mover to move everything from my old computer to this one, and perhaps it missed a bit.

Maybe you are looking for