Re: Integration to Outlook Task List?

2007-07-23 Thread Dan Hardy
 

I assume in the latter, you mean anything in Remedy will replicate to his 
outlook task list.

 

You are free to customize the source code for the open source Remedy Outlook 
Integration at http://www.sourceforge.net/projects/roi.  It does the second 
thing you are asking for out-of-the-box, but not the first.

 

Regards,

Dan Hardy

Pathworks Software Corporation

Support Made Simple - http://www.PathworksSoftware.com/

 



From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Cupp, Michael E Jr. CTR USAF AFRL/SNOD
Sent: Monday, July 23, 2007 6:54 AM
To: arslist@ARSLIST.ORG
Subject: Integration to Outlook Task List?

 

Here's what I'd like to do with it:

 

If I user enters a task in Outlook, in creates it in Remedy w/ a specific 
Type/Category/Item, etc.  

Meanwhile, anything that is in outlook for a user also will replicate to his 
outlook task list?   Suggestions/Ideas?

 

 

Thanks!
M

__20060125___This posting was submitted with HTML in it___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: Problem with function FreeARQualifierStruct

2007-05-30 Thread Dan Hardy
 
new/delete is perfectly cross-platform.  All platforms (that the C api supports 
anyway) these days have C++ compilers with standard STL implementations.  gcc 
is one of them, and works with RTL as well.  As for structure member byte 
alignment, that depends entirely on your compiler.  8 bytes is necessary for MS 
compilers (and I think it's the default), because that's what the C API uses.  
I don't know if it's the same on Linux, but I do know the default gcc byte 
alignment is not the right one, at least on Linux!  For gcc, you have to set 
-malign-xxx (I don't remember exactly...try -malign-double).
 
Even if you get the alignment right, you still have to deal with C runtime 
version, static/dynamic linkage, and debug/release matching.  If you don't have 
the exact same major version of the compiler that BMC used to build the API 
client libraries, and really understand what options to use, don't trust it to 
free memory you allocate!
 
Dan



From: Action Request System discussion list(ARSList) on behalf of Beketov Danila
Sent: Tue 5/29/2007 11:16 PM
To: arslist@ARSLIST.ORG
Subject: Re: Problem with function FreeARQualifierStruct


** 

The answer on Appajee's message.

 

I have compiled 'driver' with MSVS.NET2005 and memory allocation problem has 
occurred. But It take place in debug mode (when I press 'F5'). If I compile 
program and execute it by running .exe file or pressing 'CTRL+F5', 'driver' and 
my own program execute without errors. In 'driver' project properties C/C++ -> 
Code Generation -> Basic Runtime Checks has been set to 'default', in my 
project to 'Both (/RTC1, equiv. to /RTCsu)'. My program run without errors (in 
non-debug mode, of cause) when I changed my properties like 'driver'. 

If I comment all except the QualifierStruct's initialization and ARFree, I get 
the same error. It's all the same.

 

I will use my own free function or use both functions in the following way for 
example:

 

   #ifndef FREE_AR

  free(qualifier.u.andor.operandLeft->u.relOp);

  free(qualifier.u.andor.operandRight->u.relOp);

  free(qualifier.u.andor.operandLeft);

  free(qualifier.u.andor.operandRight);

   #else

  FreeARQualifierStruct(&qualifier, FALSE);

   #endif

 

Answer to Dan.

 

I don't want to use new/delete because program will be less cross-platform. And 
I don't know where I can know how to define 'structure byte alignment' from?

__20060125___This posting was submitted with HTML in it___ 

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: Problem with function FreeARQualifierStruct

2007-05-29 Thread Dan Hardy
 
Hugo is right here - there are many things you have to very careful of, 
including structure byte alignment, relaese/debug, new/delete vs malloc/free, 
and version of msft c runtime.  Those can all lead to nasty runtime errors.  
The most likely ones here are DLL vs static linkage, release/debug, or C 
runtime version.
 
However, most of that is a moot point.  A better mandate is "never use a 
library's free functions to free memory the library didn't allocate itself!"  
You really have no way of confidently knowing that will work.  Never call 
FreeARQualifierStruct to free an ARQualifierStruct that you allocated yourself. 
 Just free it yourself instead!  This guarantees you won't have any issues.  
(You will, however, have to deal with structure byte alignment if you pass it 
into the API.  An argument for using Java instead.).
 
The above approach is exactly the approach the RTL library uses.  If possible, 
I'd recommend you just use that library and be done with it.  See 
http://rtl.sourceforge.net/doc.  In general, it frees memory allocated by the 
API as quickly as possible, and manages everything in object-oriented classes 
and standard collections.  The classes manage their own memory usage, but can 
cast themselves to C structures usable by the API.  It solves the above problem 
for you, and you have basically zero memory management overhead as it provides 
encapsulation, memory management, collections, etc.  It most likely has the 
functionality you need, and is far simpler.  Your code will be ~80% smaller too.
 
Dan
 

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: Jaspars not connecting (Resolved)

2007-03-01 Thread Dan Hardy
There's a bug in jaspars where it doesn't use the Port or RPC properties when 
retrieving the list of fields from the data source.  (I just looked at the 
code, and those are the two properties you can set).  I had added these 
settings to the code that actually builds the report, but missed the bit that 
retrieves the fields.
 
LJ - I'll see if I can find the time to patch the project, or at least give you 
a new jar file to try out.

Dan

-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of L. J. Head
Sent: Thursday, March 01, 2007 12:25 PM
To: arslist@ARSLIST.ORG
Subject: Re: Jaspars not connecting (Resolved)

Yes,
I tried using the TCP property but it did not work for me.  I eventually
needed to register my Remedy server with portmapper to get it connected.
This will not be a valid solution for my production environment...but it
will get me closer. 

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black
Sent: Thursday, March 01, 2007 11:07 AM
To: arslist@ARSLIST.ORG
Subject: Re: Jaspars not connecting (Resolved)

LJ,

You can also set another "Custom Property" Named "TCP" (no quotes) to set
the TCP port that your ARS server runs on.  I also think RPC does what you
think it should do too. :)

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.


On 3/1/07, L. J. Head <[EMAIL PROTECTED]> wrote:
> **
>
> Okto get it connected you must manually enter
>
> com.ambient.jaspars.DataSourceProvider
> instead of the default
> it.businesslogic.ireport.examples.PersonBeansDataSource
>
> That solved that connection problem...but there is still a bug of it 
> not connecting properly to a server not using portmapper...but I am 
> for the moment connected.
>
>  
>  From: L. J. Head [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 28, 2007 12:13 PM
> To: 'arslist@ARSLIST.ORG'
> Subject: Jaspars not connecting
>
>
>
> Server 6.3
> Windows 2003
> iReport 1.3.1
> Jaspars alpha4
> Java 1.5.0_10
>
> I followed the directions on setting up everything...wonderfully 
> detailed...I'm having a few anomalies that haven't been discussed in 
> the list...so I figured I would ask
>
> When I set my data source to JRDataSourceProvider the screenshot says 
> my classpath should be com.ambient.jaspars.DataSourceProvider
> mine is
> it.businesslogic.ireport.examples.PersonBeansDataSource
> (it tests fine BTW) but I can chalk that up to using a different 
> version of of the tool...but maybe not.  My real problem is when I 
> tell it to 'Get fields from data source..it provides me with fields 
> but not the ones in the User form of
>
> address
> class
> firstNAme
> hobbies
> lastName
>
> and I have the following Custom Properties configured Form Server User 
> Port Password Qualification
>
> just for kicks I configured a user that uses the AREA plug-in and 
> turned on logging...I received no indication from the plug-in that a 
> connection was even attempted __20060125___This
> posting was submitted with HTML in it___


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Open source projects - now LGPL

2006-12-11 Thread Dan Hardy
 

Hi all,

 

I have re-licensed three open source projects as LGPL which were previously 
GPL.  This should eliminate any concerns about using these projects at client 
sites, or even in commercial offerings.  They of course remain 100% free and 
open source.

 

I have already updated the project pages – it may take me a day or so to update 
the embedded license files in the distributions.

 

The open sourced projects are:

RTL – http://www.sourceforge.net/projects/rtl (see 
http://rtl.sourceforge.net/doc )

JOARSE – http://www.sourceforge.net/projects/joarse (see 
http://joarse.sourceforge.net/doc )

COARSE – http://www.sourceforge.net/projects/coarse 

 

Regards,

Dan Hardy

Pathworks Software

Get It Done Right, Every Time

http://www.PathworksSoftware.com/

Introducing Pathworks 2.5! 
<http://www.pathworkssoftware.com/capabilities25.php> 

 



Re: Java Extended API for J2SE5.0 ?

2006-12-11 Thread Dan Hardy
 

A couple of comments on the open source licensing and Java APIs –

 

-  I’m looking into relicensing RTL, JOARSE, and COARSE under the LGPL. 
 I would like to leave the ROI project as GPL.  I should have a decision on 
this by the end of the day today.

-  This is just my personal preference, but faced with the choice of 
two different JNI layers on top of a commercial native library, I’ll pick the 
one with source code available if it is high quality.  (And you’ll see that the 
implementation of the JNI layer for JOARSE is fairly trivial).  That’s just my 
personal preference, of course.  You might instead prefer one that is 
closed-source but commercially supported.

-  The only practical way I see to get to a “pure” Java API is to build 
a server component that itself uses JNI, and then have the pure Java client API 
talk to this service instead of the AR Server.  You’d have to install this 
proxy/adapter software on the server box, and the client Java API would 
communicate with HTTP(s).  This is certainly doable, but I have not spent any 
time on it myself.  There is proprietary stuff inside the C API that makes it 
impossible to build a pure Java API yourself – but you can choose whether to 
put the JNI bit on every client, or on this server component.

 

 

Regards,

Dan Hardy

Pathworks Software

http://www.PathworksSoftware.com/

 

__20060125___This posting was submitted with HTML in it___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: Java Extended API for J2SE5.0 ?

2006-12-08 Thread Dan Hardy
 

Rather than start any new projects, please consider adding to these existing 
projects:

 

C++ (uses STL for collections, exceptions, and provides encapsulation of memory 
management.  Compiles on Windows, Linux, Solaris.)

 

http://www.sourceforge.net/projects/rtl

Why you should use this: http://rtl.sourceforge.net/doc  (check out the code 
comparison)

 

Java (uses proper collections, and is reasonably OO - could use an upgrade to 
Java 5 features.  Works on at least Windows and Linux - can't recall if I 
provided Solaris binaries)

http://www.sourceforge.net/projects/joarse

 

COM (automation compatible, uses proper COM collections and error handling, and 
is also usable from .NET - only 168 kb)

http://www.sourceforge.net/projects/coarse

 

As far as I know, these are all very stable.  The latter two projects build on 
the first (they were initially examples of how trivial it is to build APIs for 
other languages once you have RTL).

 

Dan

 

 



From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Hugo Visser
Sent: Friday, December 08, 2006 3:18 AM
To: arslist@ARSLIST.ORG
Subject: Re: Java Extended API for J2SE5.0 ?

 

** John,

No JNI that would be great :) In the past I've investigated doing a "light" api 
in pure Java, but the whole RPC stuff seemed the biggest hurdle. One could 
ofcourse build a wrapper around the existing API using collections and 
annotations (which I have done just to keep things compatible) but then you'll 
still be stuck with the jni stuff. I think it would be nice to start some kind 
of opensource project of some kind for making working with Remedy easier. Maybe 
an API layer or an alternative API. 

Hugo

On 12/8/06, John Baker <[EMAIL PROTECTED]> wrote:

Julio,

I feel your chances of getting that from the Remedy Java API are around nil.
The API isn't even OO, let alone equipped with Collections (which was a year
2000 feature) - hence, while a nice Java API would be welcome, it's never 
going to happen until the Remedy Java API is taken seriously (I include
removing JNI in this statement).

However. I had heard of an open source Remedy Java API, if you fancy
contriburing towards an alternative.1 


John

Java System Solutions : http://www.javasystemsolutions.com

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


__20060125___This posting was submitted with HTML in it___ 


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: Java Extended API for J2SE5.0 ?

2006-12-08 Thread Dan Hardy
Yes, there is an open source Java API at 
http://www.sourceforge.net/projects/joarse.  

I didn't take advantage of Java 5 features such as generics at the time I wrote 
this, but I think now it would be appropriate to do so as Java 5 has been 
available for quite some time now.  I don't have time to do this at the moment, 
but I'd welcome contributions.  This API is much more of an OO API than 
Remedy's, and perhaps more importantly takes advantages of Java collections so 
is far less verbose and is easier to use.  (See code samples at 
http://joarse.sourceforge.net/doc).

Yes, it still uses JNI - a pretty thin and straightforward layer built on top 
of the RTL project.  There are many reasons for this, not the least of which is 
proprietary encryption and server compatibility mapping, which are built into 
the C API and not otherwise accessible to developers. 

No, it's not a 100% complete wrapper either.  It probably serves most 
integration needs though.

Dan


-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of John Baker
Sent: Friday, December 08, 2006 12:48 AM
To: arslist@ARSLIST.ORG
Subject: Re: Java Extended API for J2SE5.0 ?

Julio,

I feel your chances of getting that from the Remedy Java API are around nil.
The API isn't even OO, let alone equipped with Collections (which was a year
2000 feature) - hence, while a nice Java API would be welcome, it's never
going to happen until the Remedy Java API is taken seriously (I include
removing JNI in this statement).

However. I had heard of an open source Remedy Java API, if you fancy
contriburing towards an alternative.1


John

Java System Solutions : http://www.javasystemsolutions.com

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: AR WebServices not parsing ok

2006-12-01 Thread Dan Hardy
Are you using Axis and wsdl2java for your Java client?

I've found that Axis (1.4, I think) is incompatible with Remedy web services.  
I've needed to manually modify the output classes from wsdl2java to get it to 
work.  

The generated stubs looked for responses in the body, but they are sent in the 
header by Remedy (or vice versa, I can't remember).  The input parameters were 
also sent in the wrong place, so I had to change a boolean flag on each 
parameter.  I ended up finding this after debugging through Axis' source code.

Unfortunately, I couldn't find any settings of wsdl2java or Axis that fixed 
this, and had to manually modify the stubs after generating them from the wsdl.

Dan

-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Bruce Jeng
Sent: Friday, December 01, 2006 1:25 PM
To: arslist@ARSLIST.ORG
Subject: Re: AR WebServices not parsing ok

Hi,

I am having similar OutputMapping problem with Java web service client 
consuming Remedy 6.03 web service, wonder anyone would have a solution for 
this.

My web service has a Create and Get operation, the Java web service client 
I built is getting error "Invalid element in ARWSClient.CreateOutputMap - 
Request_ID" on the Create operation, it successfully created an entry in 
the form but not able to process the output response properly.

It has the same problem processing the output response from the Get 
operation too, "Invalid element in ARWSClient.GetOutputMap - Assigned_To".

The mid-tier log shows proper output response for both Create and Get 
operation, somehow my Java client is not able to process the response.

Would appreciate if anyone could share some ideas on this.

Thanks!

Bruce

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: Popup Blockers

2006-11-30 Thread Dan Hardy
You can detect whether popup blockers are enabled using javascript.
The test code can attempt to create an off-screen popup window and then close 
it, and if an exception is thrown it failed because of a popup blocker.

The test would be something like the code below, which you would run in the 
onload() handler of a page body.  You can put this on a login page or some 
other page that first-time users go to.

try {
var top = 0;
var left = screen.width;
var testWin = 
window.open('PopupTest.jsp','PopupTest','width=1,height=1,left=' + left + 
',top=' + top + 
',scrollbars=no,toolbar=no,menubars=no,location=no,status=no,titlebar=no');
var testWinName = testWin.name;
testWin.close();
} catch (e) {
window.focus();
alert("Popup blockers must be disabled to use this 
application.");
} 
}


It would be nice if Remedy did this for you.  It's not uncommon for users to 
have 2 or even 3 popup blockers installed these days.

Regards,
Dan


-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Christopher Blue
Sent: Thursday, November 30, 2006 11:24 AM
To: arslist@ARSLIST.ORG
Subject: Popup Blockers

Hello list -

I am getting an increasing number of complaints that mid tier 
applications aren't working and the problem is popup blockers. The 
Yahoo toolbar in particular seems to block either dialog boxes or 
error messages.

Is there any way to detect the use of a popup blocker and instruct the 
user to disable it? Or a way to write the workflow that it won't be 
affected?

Everyone uses IE6.

Thanks!

ENV
ARS 6.3 on WIN2K
Oracle 9.2.0.6
Mid Tier 6.3 on Apache 1.3.34

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


Re: ARDBC driver plug-in process on separate hardware/OS?

2006-11-29 Thread Dan Hardy
Thanks much!

I will be likely be trying this approach, and I'll attempt it by installing the 
AR System Server on the second server without licensing it.  One thing I'm 
curious about is how many threads I can run in arplugin.exe if it is not 
licensed.  Hopefully this is a configuration and not affected by licensing 
(unlike the AR Server, which surprisingly is single-threaded when unlicensed).

This seems preferable to porting C++ code (and replacing a few platform 
dependent third party libraries) and finding a Sparc box to compile on!

Dan


-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Carey Matthew Black
Sent: Wednesday, November 29, 2006 2:29 PM
To: arslist@ARSLIST.ORG
Subject: Re: ARDBC driver plug-in process on separate hardware/OS?

Dan,

Yes you can do this. (Well the docs say it is possible.)

A few key points:

1) The plugin server is not really "licensed". So where you run one or
more ARS plugin servers is up to you and there are no "product keys"
needed on those hosts.

2) You have to setup the ARS server to "point" to the target Plugin
"on the remote, or local" box as normal. :0 But you also have to
configure the "Plugin server host" too.  [ Most people do not get the
idea that ar.conf is used by multiple "daemon"s. And I think this is
the real key to this question.]

Server-Plugin-Target-Password
Plugin
Plugin-Port
Server-Plugin-Default-Timeout
Server-Plugin-Alias
  A special note in the docs for this setting:
ConfigGuide-630.pdf page:299
"
Workflow (that is, references to AR Filter API and ARDBC plug-ins)
references a plug-in name. This name can be an alias to a real plug-in
running on a specific host at a given port number. This allows you to
locate a plug-in on a remote host or to run more than one instance of
a plug-in on one host.
"

(And I would guess that a few more would be needed too.)

Keep in mind that when the arplugin.exe starts it will look for
ar.conf on the local box in the "normal places" and that might even
mean registry keys in the windows ENV too.

Note: I have not yet have a need to do this, but I did ask this
question to Doug M. a few year(s) back and I received a bit more info
on the topic than just a "simple yes". Some would call it an ear full,
but I would call it "great customer support". :)


BTW: It is my understanding that the ARMonitor similarly "does not
require a license key" too. (and the email engine, and )

I hope the hard part is just puting the files in the "right places"
and finding all of the dll's and stuff. You might try to install the
ARS server then just comment it (arservd) out in the armonitor.conf
file. :)

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.


On 11/29/06, Dan Hardy <[EMAIL PROTECTED]> wrote:
> I'd appreciate any help on this one:
>
> Can you run an ARDBC driver (arplugin.exe) on a Windows server, if the AR
> System Server is Solaris/Sparc?  In other words, can you remote the plug-in
> process to a different box, and can that box be running a different OS from
> the AR server?
>
>
>
> The target environment looks to be AR System Server 6.0 on Solaris/Sparc.
> The ARDBC driver in question has been tested with 6.0 and 6.3 servers on
> Windows.
>
>
>
> I'm looking for a potential alternative to porting C++ code from Windows to
> Solaris/Sparc.
>
>
>
> (If only ARDBC drivers were Java!)
>
>
>
> Thanks,
>
> Dan Hardy
>
> Pathworks Software Corporation
> http://www.PathworksSoftware.com/

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


ARDBC driver plug-in process on separate hardware/OS?

2006-11-29 Thread Dan Hardy
 

I’d appreciate any help on this one:

 

Can you run an ARDBC driver (arplugin.exe) on a Windows server, if the AR 
System Server is Solaris/Sparc?  In other words, can you remote the plug-in 
process to a different box, and can that box be running a different OS from the 
AR server?

 

The target environment looks to be AR System Server 6.0 on Solaris/Sparc.  The 
ARDBC driver in question has been tested with 6.0 and 6.3 servers on Windows.

 

I’m looking for a potential alternative to porting C++ code from Windows to 
Solaris/Sparc.  

 

(If only ARDBC drivers were Java!)

 

Thanks,

Dan Hardy

Pathworks Software Corporation

http://www.PathworksSoftware.com/

 



Re: Elegant Software Producers

2006-11-06 Thread Dan Hardy
I'm not familiar with the ESP wrapper, and suspect that the .NET API
will fulfill your needs instead.

If for some reason you want VB6 support and don't want it to require.NET
(using COM callable wrappers), you could try an open source project I
started some time back.  See http://www.sourceforge.net/projects/coarse.
It is a simple set of COM objects written using ATL/C++ on top of RTL
(http://www.sourceforge.net/projects/rtl,
http://rtl.sourceforge.net/doc), and the source code is of course
available.  RTL is very stable, and I believe this is quite stable as
well.  I see that it's had 139 downloads, so perhaps it is actually even
used :-o  

It comes with a VBS file showing usage from VBScript, and a JS file
showing usage from JScript.  My initial motivation here was to
demonstrate how easy it is to write API wrappers once you have RTL as a
foundation - beyond that, I expected this to have limited usage because
of the availability of the .NET API.  With coarse though, you get VB6
support in a single 168kb dll, and no dependency on .NET.

Regards,
Dan Hardy
Pathworks Software Corporation
Get Work Done Right, Every Time
http://www.pathworkssoftware.com/


-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Will Du Chene
Sent: Monday, November 06, 2006 12:05 PM
To: arslist@ARSLIST.ORG
Subject: Re: Elegant Software Producers

Just out of idle curiousity, what became of that API wrapper that was
written for VB6 a few years ago? I remember something about the source
being continued, but don't know where it went from there. Has this more
or
less been replaced by the .net component?

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"


FW: Newb needs API help...couple of questions

2006-10-28 Thread Dan Hardy
 
If you are expecting ARInitialization to fail because of a bad server name, or 
user/password - it won't.  ARInitialization simply setus up some client side 
state, and in general won't fail.  It doesn't actually connect to the server.
 
You first "real" API call (ARGetListSchema), or a call to ARVerifyUser, will 
actually test out that the server/user/password is fine.
 
First of all, you should not use the C API without RTL.  
(http://www.sourceforge.net/projects/rtl).  It will reduce your C code below by 
80 or 90% and make it much more bulletproof.  Everything you've done would be 
about 8 lines of code (see below).  To see why and another comparison, go to 
http://rtl.sourceforge.net/doc.  With rtl, you won't have to worry about 
freeing status lists, allocating memory, testing errors after every call, doing 
expensive lookups with for loops, etc.  I cringe looking at how verbose and 
error prone API programs are without it.  Oh yes, I almost forgot - it's free 
and open source.
 
Here is what your code would loook like using RTL (taken straight from the 
docs).  This does everything for you (memory management, error handling, etc.). 
 All those checks for error codes and calls to FreeARStatusList go away for 
starters (whew).
 
 try {
   Server server("localhost", "Demo", "");
   NameList names;
   server.getListSchema(names);
   NameList::iterator iter = names.begin();
   for (; iter != names.end(); iter++) {
   cout << (*iter).getName().c_str() << "\n";
   }
 } catch (Exception &err) {
   cerr << err.toString().c_str();
 }
Regards, 
Dan Hardy
Co-Founder and Chief Architect
Pathworks Software
http://www/pathworkssoftware.com/
Get Work Done Right, Every Time.
 




From: Action Request System discussion list(ARSList) on behalf of Marc Nations
Sent: Fri 10/27/2006 9:47 PM
To: arslist@ARSLIST.ORG
Subject: Newb needs API help...couple of questions


** Hello all,

For starters, I'm trying to integrate the Remedy API into a Python
application. That is my ultimate goal. So if anyone has any experience
with that or knows where some sample code is, I'd appreciate it. I'm 
going to use ctypes to make the dll calls and am building the
structures.

However, I've hit a wall so far with Python so I decided to run some
example code in C and follow the process. I don't understand what is 
happening here, so I'm hoping someone could explain it to me. I am
running the example given in the Remedy API documentation (with a
couple of small modifications):

Let me start off by saying that the code works, however almost 
seemingly by accident. The problem is when I step through it using
Visual Studio, it doesn't respond like I thought it would. Here's the
problem:

Right now I have the application set up to fail at the initialization 
stage. So at Step A (marked below) I should see a failure after the
ARInitialization call is made. However that is not the case. Instead I
get back a response of '0', and it does not fall into the exception
loop. 

Instead it moves on and attempts the ARGetListSchema call. At Step B is
when the error for the initialization is actually recognized. So then
it falls in the exception loop, prints out the error that was supposed 
to be printed in ARInit loop, and finishes execution.

This also means that the status list is not being freed like is
supposed to happen during the FreeARStatusList proc. It's still there
when the next function is called. 

So in the end the application does work, but it's not failing at the
correct place. So until I understand how this is supposed to properly
work, there's no way I'll be able to get it interfaced over to another 
language. Does anyone know what either I or it is doing wrong?

Thanks,
Marc


// ARS.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include " ar.h"
#include "arextern.h"
#include "arfree.h"

void printStatusList(ARStatusList *theList)
{
   unsigned int i;
   for (i=0; i< theList -> numItems; i++)
   {
   if (theList -> statusList[i].appendedText == NULL ||
   theList -> statusList[i].appendedText == '\0')
   printf("%s", theList -> statusList[i].messageText); 
   else
   printf("%s:%s", theList -> statusList[i].messageText,
   theList -> statusList[i].appendedText);
   printf("(ARERR %d)\n", theList -> 
statusList[i].messageNum); 
   printf("(Type %d)\n", theList -> 
statusList[i].messageType);
   }
}

int main(void)
{
   ARControlStruct control =
{0,0,"TEST_REMEDY",&q

Re: Remedy Outlook Integration 1.1 - multiple data sources

2006-09-08 Thread Dan Hardy
Hi Jason,

Regarding the network calendar - it actually synchronizes to your
Exchange mailbox.  So although it runs on your client (and therefore
only synchronizes when Outlook is running), everything is stored on the
server.  It is then visible by anyone who can view your calendar or task
list, and is accessible via Outlook Web Access.  In my case actually
synchronizes to my Treo phone as well, since my phone synchronizes to
our Exchange server.

Regarding the MSI - all it does it install a single DLL and register a
single COM component (the CLSID is
60859BFF-57D4-4AD3-85C1-873959C374AD).  If your IT security guys like,
they can view the complete source code on SourceForge as well as it is
in CVS.

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of NoSuchStudios
Sent: Friday, September 08, 2006 12:24 PM
To: arslist@ARSLIST.ORG
Subject: Re: Remedy Outlook Integration 1.1 - multiple data sources

Hi, 

Thanks for expanding the ROI. I was just showing this to my boss and
we're
going to check it out on our dev server but i was wondering if you could
explain a little more in depth about what the msi actually does? We've
got
to put it through our IT security guys before they'll let us try it so
i'd
like to gather as much info as possible before i submit it. 

Also, would this work with a network based public calendar? I understand
that this is a client side interface so the machine it would have to
work
while logged on but can it be pointed to a location other than the
user's
calendar? 

Thank you very much for sharing this program with us. 

V/R
Jason

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: Integrating Remedy with Outlook

2006-09-08 Thread Dan Hardy
**








 

Hi Rod,

 

I’m not sure how Outlook COM Add-Ins
would handle multiple mailbox connections, or if that is even possible.  I
would have to do some research into the COM Add-In API to see.
 Unfortunately, I won’t have time to look into that any time
soon.  Right now it is based on the Exchange mailbox of the currently
authenticated user.

 

For now I’d suggest having each user
install it, and help them configure their remedy data sources.  It will
run automatically behind the scenes and synchronize whenever they have Outlook
open, and they won’t even have to be aware of it.

 

See my other recent post about an updated
version (1.1) that supports multiple mappings.  (It supports multiple
Remedy data sources mapped to the current user’s Exchange mailbox,
synchronizing calendar and tasks to that mailbox).

 

Dan

 

 

 









From: Action Request
System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG]
On Behalf Of Rodney Harris
Sent: Thursday, September 07, 2006
4:36 PM
To: arslist@ARSLIST.ORG
Subject: Re: Integrating Remedy
with Outlook



 

Hi Dan,

 

But can I not run one
instance of Outlook and connect it to several user’s mailboxes? If the
program could support this feature it would be a significant enhancement. Just
because it is built as a client side add in doesn’t mean it can’t
be run on a server and used to sync lots of users simultaneously. We are
talking of around 30 users at the moment. Have you considered this application?

 

I look forward to getting
my hands on the multi–source version. I like the fact that this solution
is Remedy specific and can connect directly to Remedy and handle dates properly
etc. 

 

Rod

 






__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___

Remedy Outlook Integration 1.1 - multiple data sources

2006-09-08 Thread Dan Hardy
**








 

I’ve had several requests, so I finally got around to
uploading a new installer for the Remedy Outlook Integration, version 1.1.


This version has two changes:

 

1)   If you
manually edit the XML config file, you can have it store your password so that
you are never prompted.  (If you do not do this, you are prompted for your
Remedy password each time Outlook starts)

2)   Also by
manually editing the XML config file, you can specify multiple data sources.  You
can map any number of Remedy queries (each with its own server, user, password,
qualification) to your task list and calendar.

 

I created a Pathworks procedure with instructions for installing
this and configuring data sources, and posted it with public access:

 

http://www.mypathworks.com/arslist/Public?id=8ae4b6940c259f32010c3707fbae01bf

 

Hope that helps meet some of your needs.  (And hey…did
I mention it’s free?)

 

Regards,

Dan Hardy

Ambient Software

http://www.ambientsoftware.com/

 






__20060125___This posting was submitted with HTML in it___


Re: Integrating Remedy with Outlook

2006-09-07 Thread Dan Hardy
**








 

You won’t be able to keep a whole
group of users in sync without running one instance of the Outlook client each,
logged in as each user.  (It sounds like perhaps you are hoping for server-side
synchronization).  This project is built as a client-side Outlook COM add-in,
so runs as a specific user as part of their Outlook client.

 

However…if you configure the XML
file on each client, you can include any number of Remedy servers and forms,
and each can include the authentication information.  The users won’t be
prompted for anything at all.

 

I’ll let you know when the update is
posted; I’ll try to get to it soon.

 

Dan

 









From: Action Request
System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG]
On Behalf Of Rodney Harris
Sent: Thursday, September 07, 2006
3:36 AM
To: arslist@ARSLIST.ORG
Subject: Re: Integrating Remedy
with Outlook



 

Hi Dan,

 

Had a quick look at your
program and I like it. I wouldn’t mind taking a look at the multiple data
sources version as this will allow us to run Outlook on the server and keep a
whole group of users in sync without any config on their end. We were intending
to start with calendar sync anyway so the lack of contacts is something we can
add later.  A config file for the multi data source version might be the
way to go too as I wouldn’t want to be typing heaps of stuff in each time
Outlook started.

 

Yes – I like the
fact that it is free. Perhaps I can contribute to the project in return.

 

Good stuff!!

 

Rod

 

CMS Asset Solutions

Level 10, 23-25
  O’Connell Street

Sydney Australia

 

 

 









From: Action Request
System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG]
On Behalf Of Dan Hardy
Sent: Thursday, 7 September 2006
4:06 PM
To: arslist@ARSLIST.ORG
Subject: Re: Integrating Remedy
with Outlook



 





 





You might look at:





 





http://www.sourceforge.net/projects/roi





 





It doesn't do anything with contacts...but it
synchronizes tasks and/or calendar.  And it's free.  And open
source.  And free.  And you could easily tweak it do contacts as well
(provided you know a little C++/STL/ATL and are able to muck about with
Outlooks' API).





 





I have an update coded locally that allows you to
synchronize multiple data sources (any number of source for tasks and/or
calendar).  It currently lacks a fancy UI for configuration of multiple
sources, but takes a straightforward XML config file.  If there is
interestI'll get around to checking it in and putting a new build up for
download.





 





Did I mention it's free?





 





Dan







 







From:
Action Request System discussion list(ARSList) on behalf of Rodney Harris
Sent: Wed 9/6/2006 7:24 PM
To: arslist@ARSLIST.ORG
Subject: Integrating Remedy with
Outlook





** 

Hi All,

 

I’m looking at using a product called Genius
Connect (or similar) to link our custom Remedy V7 CRM system to Outlook. The
functionality we require is the ability for our sales force to use Outlook as
their contact list, calendar and task list while retaining compatibility with
our CRM. Has anyone done anything like this? 

 

This is how I’m planning to do it.

 

1. When the user has an internet connection, Outlook
synchronises with the Exchange server via HTTP or straight IP. The users use
the offline cache feature of Outlook to retain access to their data when not
connected.

2. A server runs Outlook with Genius connect
installed and connects to each mailbox that we want synchronised. Periodically
Genius Connect synchronises the Outlook mailboxes with an SQL database on the
same server as our Remedy database via ODBC. 

3. The Remedy server runs escalations that read and
write to the intermediate SQL server tables. The intermediate tables allow for
date conversions and allow Remedy to retain full control of its database.
Remedy can read from the SQL tables via View Forms and write to them via direct
SQL.

 

Is there a better way than this to do what we want?
Has anyone done anything similar and would they share their experiences with
me? 

 

Thanks,

 

Rod Harris

CMS Asset Solutions

Level 10, 23-25
  O’Connell Street

Sydney Australia








__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___

Re: Integrating Remedy with Outlook

2006-09-06 Thread Dan Hardy
**



 
You might look at:
 
http://www.sourceforge.net/projects/roi
 
It doesn't do anything with contacts...but it synchronizes tasks and/or calendar.  And it's free.  And open source.  And free.  And you could easily tweak it do contacts as well (provided you know a little C++/STL/ATL and are able to muck about with Outlooks' API).
 
I have an update coded locally that allows you to synchronize multiple data sources (any number of source for tasks and/or calendar).  It currently lacks a fancy UI for configuration of multiple sources, but takes a straightforward XML config file.  If there is interestI'll get around to checking it in and putting a new build up for download.
 
Did I mention it's free?
 
Dan


From: Action Request System discussion list(ARSList) on behalf of Rodney HarrisSent: Wed 9/6/2006 7:24 PMTo: arslist@ARSLIST.ORGSubject: Integrating Remedy with Outlook
** 



Hi All,
 
I’m looking at using a product called Genius Connect (or similar) to link our custom Remedy V7 CRM system to Outlook. The functionality we require is the ability for our sales force to use Outlook as their contact list, calendar and task list while retaining compatibility with our CRM. Has anyone done anything like this? 
 
This is how I’m planning to do it.
 
1. When the user has an internet connection, Outlook synchronises with the Exchange server via HTTP or straight IP. The users use the offline cache feature of Outlook to retain access to their data when not connected.
2. A server runs Outlook with Genius connect installed and connects to each mailbox that we want synchronised. Periodically Genius Connect synchronises the Outlook mailboxes with an SQL database on the same server as our Remedy database via ODBC. 
3. The Remedy server runs escalations that read and write to the intermediate SQL server tables. The intermediate tables allow for date conversions and allow Remedy to retain full control of its database. Remedy can read from the SQL tables via View Forms and write to them via direct SQL.
 
Is there a better way than this to do what we want? Has anyone done anything similar and would they share their experiences with me? 
 
Thanks,
 
Rod Harris
CMS Asset Solutions
Level 10, 23-25 O’Connell Street
Sydney Australia__20060125___This posting was submitted with HTML in it___ 
__20060125___This posting was submitted with HTML in it___

Re: Question: Administrator Tool Not Showing Details

2006-08-31 Thread Dan Hardy
I think this is one of everyone's favorite "as designed"
features...filters are retrieved using a different call than active
links (ARGetListSQL vs ARGetMultipleActiveLinks, I believe).  One is
subject to the "maximum get list" limitation on the server, and the
other is not.  If you have too many filters...you hit the limit.  I've
seen that one pop up here surprisingly frequently - I could still be
wrong though.

How many filters are there on each server, and what is the maximum
number of entries to return from a "get list" call in your server
settings?

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Tyrone Dee
Sent: Thursday, August 31, 2006 5:16 PM
To: arslist@ARSLIST.ORG
Subject: Re: Question: Administrator Tool Not Showing Details

Yes, I turned it off, then back on - still nothing.

The odd thing is all the column titles for the detail view show, but no
details on Filters.  Active links, menus, forms, etc. all show fine -
just
Filters.

Ty
 

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: OT - Where is everybody?

2006-08-29 Thread Dan Hardy
Title: RE: OT - Where is everybody?
**








 

James,

 

What’s the JScript question?  

 

Is it JScript/Windows Script Host, or
_javascript_ in IE/Firefox, or…?  I”ve done my fair share of each.

 

Dan

 









From: Action Request
System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG]
On Behalf Of McKenzie, James J C-E
LCMC HQISEC/L3
Sent: Tuesday, August 29, 2006
1:25 PM
To: arslist@ARSLIST.ORG
Subject: Re: OT - Where is
everybody?



 

Fred:


To add to
this, the "New" Coke was made with corn syrup vice sugar and was too
sweet when first introduced.  Now it is state of the 'art'.  I
actually found some Coke made in Mexico where the use of corn syrup
is outlawed (it wastes corn) and uses 'real' sugar.  The taste is very
different. And there is "Cane Cola" which is made by the same folks
who make that great Ginger Ale (which also has sugar vice corn syrup.)

In any
case, I'm off to work on that problem I've been working on for the last week.
In case anyone is wondering, it is not related to Remedy ARS.  However, if
there is a Jscript guru out there, I want to talk to you...

James
McKenzie 
L-3 GSI 

 






__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___

Re: AR WebServices not parsing ok

2006-08-24 Thread Dan Hardy
I don't know about non-Java web services clients, but I can confirm
Russell's experience with Axis 1.4.  I fixed it with exactly the same
change.  It also happens on any response output values, which was not
quite as elegant to patch in the generated stubs.

I don't know if it's an Axis bug or a Remedy issue, but I can say that
Remedy and Axis' wsdl2java are certainly incompatible.

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Wade Wiles
Sent: Thursday, August 24, 2006 3:11 PM
To: arslist@ARSLIST.ORG
Subject: Re: AR WebServices not parsing ok

Thanks,

But, does anybody know if this is an AXIS bug or remedy issue?  I've got
to
use Java, and frankly, we have this build process fairly automated and
manually editing the stubs isn't so elegant. 

Also, are there other non-java clients that are experiencing this? I'm
also
wondering if this is a wsi compliance issue.

Thanks,

Wade Wiles
EAI & Web Services Development
XO Communications
[EMAIL PROTECTED]

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: ARS API Instalation - Solaris

2006-08-23 Thread Dan Hardy
**








 

I believe you can get it here - http://arswiki.org/wiki/index.php?title=Remedy%27s_Java/C_jar%2C_Header_and_Library_Files

 

Dan

 









From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Rafael Bertolini
Sent: Wednesday, August 23, 2006
10:40 AM
To: arslist@ARSLIST.ORG
Subject: ARS API Instalation -
Solaris



 

Hello all!

When our ars server was installed in our production environment (solaris), tha
api package was not installed together. Now we need the api package.

Is there anyway to install only the api package? Can I copy it from another
server?

tks in advanced!



-- 


 
  
  
  
  
  Rafael
  Bertolini 
System Analyst 
Ícaro Technologies
  http://www.icaro.com.br
  
  
  Work: +55
  19 3731 8308 
E-mail: [EMAIL PROTECTED] 
  
  Fax: +55 19
  3731 8304 
  
 
 
  
  
  A informação
  transmitida destina-se apenas à pessoa ou entidade a quem foi endereçada e
  pode conter informação confidencial, legalmente protegida e para conhecimento
  exclusivo do destinatário. Se o leitor desta advertência não for o seu
  destinatário, fica ciente de que sua leitura, divulgação, distribuição ou
  cópia é estritamente proibida. Caso a mensagem tenha sido recebida por
  engano, favor comunicar ao remetente e apagar o texto do computador. Este
  ambiente está sujeito a monitoramento.
  
  The information
  transmitted is intended only for the person or entity to which it is
  addressed and may contain confidential and/or privileged material. Any review,
  retransmission, dissemination or other use of, or taking of any action in
  reliance upon, this information by persons or entities other than the
  intended recipient is prohibited. If you received this in error, please
  contact the sender and delete the material from any computer. This
  environment is subject to monitoring. 
  
 


 








__20060125___This posting was submitted with HTML in it___
__20060125___This posting was submitted with HTML in it___

New version of Jasper Reports data provider

2006-08-16 Thread Dan Hardy
**








 

I uploaded new versions of jaspars (Jasper Reports data
provider for the AR System) and joarse (Java objects for the AR System).

 

The only enhancement is added support for Decimal fields (which
become BigDecimal in Java) for both.  (This was an oversight on my part
before – thanks to Carey Matthew Black for pointing it out).

 

I’ve been trying to get parent/child subreport support
working for jaspars, but I cannot get iReport to handle subreports at all (nor
charts for that matter).  Somebody who is more of an iReport/Jasper
Reports expert might have better luck than me.  My hope had been to allow
the Qualification custom report property to be something like ‘Parent ID’ = “$F{Request ID}”,
and have the data source do substitution in the qualification using regular
expressions – looking up parameters as passed by the parent report. 
I’ll try upgrading to the latest version of iReport to see if I have any
better luck.

 

http://www.sourceforge.net/projects/jaspars

http://www.sourceforge.net/projects/joarse

 

How to use the Jasper Reports data provider: http://www.mypathworks.com/arslist/Public?id=8ae4b6940c259f32010c3707fbae01bf

 

 

Regards,

Dan Hardy

Ambient Software

Try Pathworks On-Demand: http://www.mypathworks.com/

 






__20060125___This posting was submitted with HTML in it___


Re: Anyone have a Java example of consuming Remedy Web Services

2006-08-10 Thread Dan Hardy
Title: Anyone have a Java example of consuming Remedy Web Services
**



 
From the stack below it doesn't look your developer is using Axis, so my comments may not be relevant.
 
However, I noticed in his request that everything is in the header, not in the body.  So perhaps this will make a difference -
 
My recent experience using web services from Java with Axis 1.4 seemed to indicate that Remedy was incompatible with the default web service client stubs generated by Axis (using wsdl2java).  I had to make two manual modifications for the following issues:
 
- Request side: The client stubs contain code that constructs ParameterDesc objects for each parameter to the web service method.  One of the construct params is whether this parameter should be sent in the header or the body.  Axis generated these as "true", meaning send them in header - but Remedy complained that required elements were missing.  After I manually edited each generated file and changed all of them to false, it worked.  It seems Remedy only looks for method parameters in the body.
- Response side:  Similar issue - Remedy sent all response values in the body, but the Axis client stubs were looking for them in the header only.  This wasn't as easy to fix; I special cased a fix for the one return value I was interested in.
 
I would have expected the Axis client stubs to work without modification, as they were generated from the wsdl.  I didn't see any option in wsdl2java that controls anything with respect to header/body usage for parameters.  I don't know the root cause - but fwiw I was able to get it working with the above changes.Dan 


From: Action Request System discussion list(ARSList) on behalf of Deborah J BrownSent: Thu 8/10/2006 5:52 AMTo: arslist@ARSLIST.ORGSubject: Anyone have a Java example of consuming Remedy Web Services

We are trying to implement an interface to our Remedy systems through webservices.  A non-Remedy Java application is attemting to consume a webservice that we have published.  We can successfully consume our webservice from Remedy via another form (ie. we have published and consumedsaid web service all internally in Remedy) but the outside app is gettingerrors.  Since I don't know Java I can't be of any help to them.  There areplenty of Perl examples available, but... If anyone on the list can seewhat the error is or can just send me a Java example of successfullyconsuming a Remedy published web service I would be grateful.Here is the error that the developer of the other app sent me:run: [java] Peter [java]  [java] URL    :  http://remedy-dev.ntrs.com/arsys/services/ARService?server=chi-rmy-d02&webService=DOUG_TEST [java] Headers    : [java]   SOAPAction: ["urn:DOUG_TEST/OpGet"] [java]   Content-Type: [text/xml] [java] xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema">xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">idmtestrname>remedyv:Header> [java]  [java]  [java] URL   : http://remedy-dev.ntrs.com/arsys/services/ARService?server=chi-rmy-d02&webService=DOUG_TEST [java] Response Code :500 [java] Headers   : [java]   Connection=close [java]   Date=Fri, 21 Jul 2006 21:40:38 GMT [java]   Server=Microsoft-IIS/6.0 [java]   X-Powered-By=ServletExec/5.0p06, Servlet/2.4, JSP/2.0 [java]   Content-Type=text/xml; charset=utf-8 [java] Envelope   : [java]  [java] xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> [java]   [java]    [java]    soapenv:Server.userException [java]    java.lang.NullPointerException [java]     [java]    [java]   [java]  [java]  [java] java.rmi.RemoteException: SOAPFault:javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException [java] Detail: [java]  [java] ; nested exception is: [java] javax.xml.rpc.soap.SOAPFaultException:java.lang.NullPointerException [java] atcom.ntrs.idm.wlservice.wlclientstatic.DOUG_TESTPortType_Stub.opGet(DOUG_TESTPortType_Stub.java:31) [java] at com.ntrs.idm.wlservice.wlclientstatic.RemedyClient.doIt(RemedyClient.java:48) [java] at com.ntrs.idm.wlservice.wlclientstatic.RemedyClient.main(RemedyClient.java:18) [java] Caused by: javax.xml.rpc.soap.SOAPFaultException:java.lang.NullPointerException [java] at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313) [java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144) [java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457) [java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443) [java] at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290) [java] 

Re: API + VBScript : list of fields in a from

2006-08-07 Thread Dan Hardy
I just checked the docs (although they are for an older version) and there is 
also a GetFieldNames method that returns both the IDs and field names for all 
fields, so that would work also - assuming it's still there in the newer 
version.

Dan

-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Tim Widowfield
Sent: Monday, August 07, 2006 11:10 AM
To: arslist@ARSLIST.ORG
Subject: Re: API + VBScript : list of fields in a from

I couldn't find a GetListField() method anywhere in the ARSystem .NET help file 
(ARSystem.NET.chm).  Perhaps you were thinking of the Server.GetAllFields() 
method.  Here's a sample from the CHM file: 
 
 Dim fields
Set fields = server.GetAllFields(formName)
Dim field
For Each field In fields
Next   
 
My brain isn't wired for Visual Basic, so I'll just assume that makes sense.

  
--Tim
http://www.widowfield.com 
 

- Original Message  
From: BALU Frédéric  
To: arslist@ARSLIST.ORG 
Sent: Monday, August 7, 2006 6:51:51 AM 
Subject: [ARSLIST] API + VBScript : list of fields in a from 
 
Hello, 
 
 I'm trying to get the list of fields in a form. Could you hel me ? 
 
 Dim ARserverObject 
 Set ARserverObject = CreateObject("BMC.ARSystem.Server") 
 ARserverObject.Login(SERVER_NAME, SERVER_USERNAME, SERVER_PASSWORD, "" ) 
???  ARserverObject.GetListField(SchemaName ) ??? 
 
Regards, 
-- 
 
___ 
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org 
 
 
 
 

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: API + VBScript : list of fields in a from

2006-08-07 Thread Dan Hardy
It looks to me like he's using the COM facility of the .NET API, not user tool 
automation.  It should be possible to get the list of fields using that.  The 
code looks about right.  Does GetListField not return the list of field ids?

Dan

-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Carey Matthew Black
Sent: Monday, August 07, 2006 4:56 AM
To: arslist@ARSLIST.ORG
Subject: Re: API + VBScript : list of fields in a from

Please read Chapter 6 in the C API guide (v6.3) for details of the COM
interface to the User Tool. I do not (yet) see a way to list the field
on an open form.

The COM interface if very limited when compared to the full C API.

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.
Never ascribe to malice, that which can be explained by incompetence.




On 8/7/06, BALU Frédéric <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  I'm trying to get the list of fields in a form. Could you hel me ?
>
>  Dim ARserverObject
>  Set ARserverObject = CreateObject("BMC.ARSystem.Server")
>  ARserverObject.Login(SERVER_NAME, SERVER_USERNAME, SERVER_PASSWORD, "" )
> ???  ARserverObject.GetListField(SchemaName ) ???
>
> Regards,
> --
>
> ___
> UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org
>

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: Remedy and .NET API

2006-08-01 Thread Dan Hardy
Use the [] operator - that is what the Item default method becomes (in
VB.NET or C# or both, can't remember exactly).  Example:
fieldValues[536870913].

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Mark B.
Sent: Tuesday, August 01, 2006 5:33 AM
To: arslist@ARSLIST.ORG
Subject: Re: Remedy and .NET API

Thanks Appajee.
Your clarification helped me, but I've got another question concerning
this 
issue:
It doesn't seem that I can use an Item property of a FieldValueList
object.
Despite this one, other properties(Count, Field, Keys, Values) appear on

the list of my IntelliSense feature.
A DiaryList object behaves the same way (no use of Item property) in
spite 
of the fact it is described in documentation.
Is something wrong with my API instalation?
As I said before the API is the one I downloaded 2 weeks ago.

thank you in advance.

Mark


___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: Mid-tier app design considerations

2006-07-26 Thread Dan Hardy
Title: Mid-tier app design considerations
**



 
This is nearly certainly outside the scope of AR application design, but clever things can be done with DIV elements acting as modal dialogs, but within a single browser window.  Absolute positioning, z-order control, and disabling of all other elements makes it pretty convincing.  It works pretty well with divs - iframes seems less obvious imho.  I believe if you pay attention you will see this technique used within the pages generated by the mid-tier itself (I think when using the date/time popup?)
 
Dan


From: Action Request System discussion list(ARSList) on behalf of AxtonSent: Wed 7/26/2006 7:13 PMTo: arslist@ARSLIST.ORGSubject: Mid-tier app design considerations

While using the mid-tier with canned/custom apps, it sticks out to methat the use of multiple browser windows (open window action) isprobably the biggest aversion to the usability/user experience.Has anyone devised a way to use force the use of iframes (or somethingsimilar) for modal dialogs?What I'm looking for is a way to leave existing apps/workflow intact,using a single browser window for an entire mid-tier session.On a separate note, as a challenge, how many browser windows can onelaunch using a single mid-tier session using ITSM 7.0, discounting anyrecursions in the path used to launch the windows?  I don't theanswer, I'm just curious.Axton Grams___UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org
__20060125___This posting was submitted with HTML in it___

Re: ITSM 7 - Installation

2006-07-25 Thread Dan Hardy
Title: Re: ITSM 7 - Installation
**



 
Sounds about right - CMDB was about 1.5 hours on my laptop the last time I installed it.  95% of the elapsed CPU time was setup.exe, however - not the AR server or database.  I don't know if Incident would have the same characteristics.  It would be worth bringing up your task manger (or top if on Unix/Linux), and seeing what the cumulative CPU usage of each process is as the install nears the end (between setup.exe, arserver.exe, and your database process).  I think you have to add cumulative CPU as a column; it's not there by default.  It definitely provides good insight into where the time is spent.
 
Dan


From: Action Request System discussion list(ARSList) on behalf of Mary C.Sent: Tue 7/25/2006 6:37 PMTo: arslist@ARSLIST.ORGSubject: Re: ITSM 7 - Installation

Dan,CMDB only took an our or so to install.  It was Incident that took 6 to 9hours to install. I will be curious if modifying threads makes a difference though.___UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org
__20060125___This posting was submitted with HTML in it___

Re: ITSM 7 - Installation

2006-07-20 Thread Dan Hardy
FWIW, my observation when I've installed large Remedy applications (i.e.
the CMDB) is that the CPU usage during the long install is 95% the
installer process, and not the Remedy server or database.  I have no
idea what it is that the installation program is taking so long to
figure out...but it is setup.exe that is pegging the CPU for hours, not
arserver.exe or the database.  Based on that observation, you probably
won't see much difference with those changes.  I'm curious to hear the
results though.

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Mary C.
Sent: Thursday, July 20, 2006 12:57 PM
To: arslist@ARSLIST.ORG
Subject: Re: ITSM 7 - Installation

Thanks, Rick & James.  I upped the fast & list threads.  Hopefully next 
install will go faster.


___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: Problem consuming Remedy web services using Axis

2006-07-19 Thread Dan Hardy
 
I figured this out, after stepping through the axis source code.  (Good thing 
the source is available!)
 
The Axis generated stubs (from WSDL2Java) set all of the method parameters to 
be in the header (specifically, lines of code in the stub look like this next 
fragmenet, where the next to last parameter is true).  This controls whether 
input parameters are passed in the header or body.  I don't see a WSDL2Java 
option to change this - it always generates them this way.
 
param = new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:ESS_Change_Submit", "type"), 
org.apache.axis.description.ParameterDesc.IN, new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"), 
java.lang.String.class, true, false);

Now that would explain why Remedy thinks the parameter is missing.  It 
apparently is looking in the body only, not the header.

I went through the stub classes and manually changed all of them to be false so 
the parameters are in the body.  Then it works!

Question: Is this a bug in Axis, a bug in Remedy, or both?  Should Remedy 
support having the parameters be in the header (which seems the default for 
Axis/WSDL2Java at least based on Remedy's WSDL?)  At the very least there seems 
to be a pretty painful incompatibility between Remedy and Axis here.

Dan




From: Action Request System discussion list(ARSList) on behalf of Grooms, 
Frederick W
Sent: Wed 7/19/2006 11:32 AM
To: arslist@ARSLIST.ORG
Subject: Re: Problem consuming Remedy web services using Axis


** 
With the mid-Tier logs set to the most detailed it will show you the XML being 
sent to Remedy.  What does it look like compared to the XML structure in the 
WSDL?
 
Fred



From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Dan Hardy
Sent: Wednesday, July 19, 2006 1:31 PM
To: arslist@ARSLIST.ORG
Subject: Problem consuming Remedy web services using Axis


** 
 
I'm accessing Remedy web services for the first time, and running into an error.
 
I'm using Java/Axis as the client, and I generated the client stubs using 
WSDL2Java.  This gives me two classes (one for submitting requests, one for 
modifying requests), based on two WSDL files.
 
When my code makes a request of either service, providing values for all 
parameters, I get an error like the below error - it seems the error always 
complains about the first element being missing.  This looks to me like the 
request is definitely getting to the AR Server, and it is rejecting the content.

Any clues?  Are Remedy web services compatible with Axis clients?  I google'd 
and found a couple of other people that have hit this problem, but no solutions 
posted.
 
Thanks,
Dan
MessageType: 2

MessageNum: 8961

MessageText: Required element expected in the input XML document

AppendedText: 

 

 
 
__20060125___This posting was submitted with HTML in it___ 

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Problem consuming Remedy web services using Axis

2006-07-19 Thread Dan Hardy
**


 
I'm accessing Remedy web services for the first time, and running into an error.
 
I'm using Java/Axis as the client, and I generated the client stubs using WSDL2Java.  This gives me two classes (one for submitting requests, one for modifying requests), based on two WSDL files.
 
When my code makes a request of either service, providing values for all parameters, I get an error like the below error - it seems the error always complains about the first element being missing.  This looks to me like the request is definitely getting to the AR Server, and it is rejecting the content.
Any clues?  Are Remedy web services compatible with Axis clients?  I google'd and found a couple of other people that have hit this problem, but no solutions posted.
 
Thanks,
Dan

MessageType: 2
MessageNum: 8961
MessageText: Required element expected in the input XML document
AppendedText: 
 
__20060125___This posting was submitted with HTML in it___

Re: Invalid Address specified to RtlFreeHeap( 00870000, 008A1E90 ) on using FreeInternalIdList

2006-07-18 Thread Dan Hardy
Title: Re: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 ) on
using FreeInternalIdList
**








 

Angus,

 

FWIW, I thought better of this.  While
using the release-mode C run-time may fix your problem, it’s a bad idea
to rely on that fix.

 

Doing so relies on an assumption that
FreeARxyz uses the free() function, and will correctly free memory you allocate
with malloc(), as long as you match version of the C run-time.  This is an
implementation detail of the API.  You should *never* call the FreeARxyz functions unless the entire
structure you are passing was allocated by the API itself.  

 

The Remedy API provides deallocators, but
not allocators; so there is no way to guarantee that you are allocating your
own memory using an allocator compatible with Remedy’s deallocators,
unless the Remedy API allocated the memory itself.  (FWIW, I can’t think
of any other libraries that provides deallocators without allocators, or vice
versa – it’s a bit odd).

 

RTL uses this approach – it never
calls the FreeARxyz functions except on memory allocated directly from an API
call.  It then uses new and delete internally for all of its own allocation.  Yet
another benefit of using it…

 

Dan

 









From: Dan Hardy 
Sent: Tuesday, July 18, 2006 7:45
AM
To: Angus Comber;
arslist@ARSLIST.ORG
Subject: RE: Invalid Address
specified to RtlFreeHeap( 0087, 008A1E90 ) on using FreeInternalIdList



 





 





I've seen problems in the past like this if you are
malloc'ing memory with the debug version of the function, and freeing it with
the release mode version.  This is what is happening if you are using the
debug multi-threaded DLL in your compiler options for your own code.  The
Remedy API was compiled using the release-mode multi-threaded DLL (msvcrt.dll
vs msvcrtd.dll with VS 6.0), and the FreeARxxx functions are calling their
code; therefore you have a debug malloc and a release free.  That's very
likely your cause.  You can still compile your project in debug mode to
debug, but switch the release mode C runtime (which you don't need to debug
anyway).





 





Besides that issues, I see two immediate issues in the below
code:





 





1. The memory leak in the for loop.  You need to free
the ARInternalIdList each time - it's leaking it for every entry that matches
except the last one.





2. This code will crash if there are no matching
entries.  In that case, it will call FreeARInternalIdList on an
uninitialized structure, which will cause a memory exception (a free of a bogus
address).  You should almost always initialize your structures, e.g.
ARInternalIdList idList = {0, NULL}.





 





All three of these are several of the many reasons to move
to a later technology, whether it's C++, COM, Java, or .NET.





 





I know you're not interested in getting into VS .NET. 
Even with VS 6.0, you could use the RTL package to simplify the use of the
library with proper objects.  IMHO, "C" code like that below is
too verbose, error prone, and difficult to maintain to be a productive
development environment.  (But really, I don't mean to start a religious
discussion...my "proof" of this is the code comparison at http://rtl.sourceforge.net/doc). 
If I get the time, I'll "translate" the below code for you to show
that it is probably 80% smaller and simpler.





 





Dan










__20060125___This posting was submitted with HTML in it___


Re: Invalid Address specified to RtlFreeHeap( 00870000, 008A1E90 ) on using FreeInternalIdList

2006-07-18 Thread Dan Hardy
you need to free the top-levelstructure. If you// allocated memory for the top-level structure, specify 1 (TRUE) to freeboth// the structure and its contents. If you used a stack variable for thetop-level// structure, specify 0 (FALSE) to free only the contents of the structure.if (matches < 1)return -1;return 0;}- Original Message -From: "Dan Hardy" <[EMAIL PROTECTED]>Newsgroups: public.remedy.arsystem.generalTo: Sent: Tuesday, July 18, 2006 6:59 AMSubject: Re: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 )on using FreeInternalIdListSure, post the whole function or send it to me privately if you like.  I'lltake a look.What compiler are you using (VS 6, .NET 2003, etc.), which C Run-time areyou linking with (e.g. static vs dll, release vs debug), and which versionof the Remedy API are you linking with?It's probably best to link to the release mode multi-threaded DLL and useVisual Studio 6 if possible, as that's probably what the AR API librarieswere built with.  (I've also used Visual Studio .NET 2003, and while it hasa different run-time, it seems to be okay using the release modemulti-threaded DLL option).Dan
__20060125___This posting was submitted with HTML in it___

Re: Invalid Address specified to RtlFreeHeap( 00870000, 008A1E90 ) on using FreeInternalIdList

2006-07-18 Thread Dan Hardy
st, FALSE);// freeStruct - A flag indicating whether you need to free the top-levelstructure. If you// allocated memory for the top-level structure, specify 1 (TRUE) to freeboth// the structure and its contents. If you used a stack variable for thetop-level// structure, specify 0 (FALSE) to free only the contents of the structure.if (matches < 1)return -1;return 0;}- Original Message -From: "Dan Hardy" <[EMAIL PROTECTED]>Newsgroups: public.remedy.arsystem.generalTo: Sent: Tuesday, July 18, 2006 6:59 AMSubject: Re: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 )on using FreeInternalIdListSure, post the whole function or send it to me privately if you like.  I'lltake a look.What compiler are you using (VS 6, .NET 2003, etc.), which C Run-time areyou linking with (e.g. static vs dll, release vs debug), and which versionof the Remedy API are you linking with?It's probably best to link to the release mode multi-threaded DLL and useVisual Studio 6 if possible, as that's probably what the AR API librarieswere built with.  (I've also used Visual Studio .NET 2003, and while it hasa different run-time, it seems to be okay using the release modemulti-threaded DLL option).Dan
__20060125___This posting was submitted with HTML in it___

Re: Invalid Address specified to RtlFreeHeap( 00870000, 008A1E90 ) on using FreeInternalIdList

2006-07-17 Thread Dan Hardy
 
Sure, post the whole function or send it to me privately if you like.  I'll 
take a look.
 
What compiler are you using (VS 6, .NET 2003, etc.), which C Run-time are you 
linking with (e.g. static vs dll, release vs debug), and which version of the 
Remedy API are you linking with?  
 
It's probably best to link to the release mode multi-threaded DLL and use 
Visual Studio 6 if possible, as that's probably what the AR API libraries were 
built with.  (I've also used Visual Studio .NET 2003, and while it has a 
different run-time, it seems to be okay using the release mode multi-threaded 
DLL option).
 
Dan



From: Action Request System discussion list(ARSList) on behalf of Angus Comber
Sent: Mon 7/17/2006 4:24 PM
To: arslist@ARSLIST.ORG
Subject: Re: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 ) on 
using FreeInternalIdList



I agree with your points below.  But this is just test code - agree not much
error checking going on.

It is just used against a new form I created.  I am only checking against
the Submitter field (ID 2) and the Assigned To field (ID 4).

ARGetEntry returns zero - ie ok.

Length of field values is 4 - ie 2 and 4!

Made a string buffer of size 100 to copy the field values.

But same error.

Compiled and testing on Windows platform. (Windows XP).

Would it be helpful to show the whole function - it is fairly small.

Angus

- Original Message -----
From: "Dan Hardy" <[EMAIL PROTECTED]>
Newsgroups: public.remedy.arsystem.general
To: 
Sent: Monday, July 17, 2006 11:46 PM
Subject: Re: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 )
on using FreeInternalIdList


Which platform are you on?

It could be caused by:

1) Different structure byte-alignment options at compile time (I've
found the default setting works on Windows, on Linux you need a special
-malign switch with gcc at least).  I can look it up if you need it.

2) It doesn't look you are checking the return code from the API call,
checking whether the returned value list has at least 2 items, that
either of the values is of type AR_DATA_TYPE_CHAR, or that the pointer
is not NULL.  You also are copying the data using strcpy, without
checking the length, rather than using strncpy or allocating a buffer of
large enough size.  This could cause corruption (buffer overflow) and
easily explain the error, particularly if szField1 and szField2 are
stack variables.

3) Different run-time library version between your code and the AR
System library (you're calling malloc, it's calling free - could be
mismatched)

If you are on Windows, I put my money on #2 - sounds like stack
corruption.

I would point out that if you used the rtl library much of this would be
done for you, and you wouldn't have to worry about allocating or freeing
any memory, testing for null pointers, checking return codes for error
conditions, etc. ;)

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Angus Comber
Sent: Monday, July 17, 2006 3:11 PM
To: arslist@ARSLIST.ORG
Subject: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 )
on using FreeInternalIdList

Hello

I am doing this with ARGetEntry:

ARInternalIdList idlist;
idlist.numItems = 2; // need two fields
idlist.internalIdList =
(ARInternalId *) malloc(sizeof(ARInternalId) * idlist.numItems);
idlist.internalIdList[0] = fieldID1;   // eg 2 - Submitter
idlist.internalIdList[1] = fieldID2;   // eg 4 - Assigned To
ret=ARGetEntry(&m_ARctrlstruct, szFormName, &entry.entryList[i].entryId,
   &idlist, &fldval, &m_StatusList);

strcpy(szField1, fldval.fieldValueList[0].value.u.charVal);  // copy
field
data
strcpy(szField2, fldval.fieldValueList[1].value.u.charVal);


Then I get Invalid address specified to RtlFreeHeap when I call:
FreeARInternalIdList(&idlist, FALSE);

What am I doing wrong?

Angus


___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org 
<http://www.wwrug.org/> 


___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org 
<http://www.wwrug.org/> 

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org 
<http://www.wwrug.org/> 



___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: Invalid Address specified to RtlFreeHeap( 00870000, 008A1E90 ) on using FreeInternalIdList

2006-07-17 Thread Dan Hardy
Which platform are you on?

It could be caused by:

1) Different structure byte-alignment options at compile time (I've
found the default setting works on Windows, on Linux you need a special
-malign switch with gcc at least).  I can look it up if you need it.

2) It doesn't look you are checking the return code from the API call,
checking whether the returned value list has at least 2 items, that
either of the values is of type AR_DATA_TYPE_CHAR, or that the pointer
is not NULL.  You also are copying the data using strcpy, without
checking the length, rather than using strncpy or allocating a buffer of
large enough size.  This could cause corruption (buffer overflow) and
easily explain the error, particularly if szField1 and szField2 are
stack variables.

3) Different run-time library version between your code and the AR
System library (you're calling malloc, it's calling free - could be
mismatched)

If you are on Windows, I put my money on #2 - sounds like stack
corruption.

I would point out that if you used the rtl library much of this would be
done for you, and you wouldn't have to worry about allocating or freeing
any memory, testing for null pointers, checking return codes for error
conditions, etc. ;)

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Angus Comber
Sent: Monday, July 17, 2006 3:11 PM
To: arslist@ARSLIST.ORG
Subject: Invalid Address specified to RtlFreeHeap( 0087, 008A1E90 )
on using FreeInternalIdList

Hello

I am doing this with ARGetEntry:

ARInternalIdList idlist;
idlist.numItems = 2; // need two fields
idlist.internalIdList =
(ARInternalId *) malloc(sizeof(ARInternalId) * idlist.numItems);
idlist.internalIdList[0] = fieldID1;   // eg 2 - Submitter
idlist.internalIdList[1] = fieldID2;   // eg 4 - Assigned To
ret=ARGetEntry(&m_ARctrlstruct, szFormName, &entry.entryList[i].entryId,
   &idlist, &fldval, &m_StatusList);

strcpy(szField1, fldval.fieldValueList[0].value.u.charVal);  // copy
field
data
strcpy(szField2, fldval.fieldValueList[1].value.u.charVal);


Then I get Invalid address specified to RtlFreeHeap when I call:
FreeARInternalIdList(&idlist, FALSE);

What am I doing wrong?

Angus


___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: COM API

2006-07-11 Thread Dan Hardy
Rachel,

Here's the relevant bit from the original ASP page sample.  I believe
the samples were removed when the latest version of the .NET API was
updated.  (The previous version is still available on the community
downloads, I believe).

This is JScript, not VBScript, but it is a pretty simple translation.
The main difference here vs your code is that the field list is not an
array - it is a COM object (ARSystem.EntryListFieldList) and elements
are added via a method call (AddField).  Perhaps that is the source of
your type mismatch - you might look for an EntryListFieldList class.
However, I'm not sure how much has changed in the latest version of the
.NET/COM api you are using; it sounds like it has changed substantially,
but I have not used it yet.

try
{
var maxRetrieve = 0;
if (Request("MaxRetrieve") != "")
{
maxRetrieve = Request("MaxRetrieve");
}
var fieldList = new
ActiveXObject("ARSystem.EntryListFieldList");
if (Request("Fields") != "" && Request("Fields").Count > 0)
{
// go through all fields
var e = new Enumerator(Request("Fields"));
for (; !e.atEnd(); e.moveNext())
{
var field = e.item();
// add on the request fields
fieldList.AddField(field, 30, "");
}
}
var rows = ARServer.GetListEntryWithFields(Request("formName"),
Request("Qualification"), fieldList, 0, maxRetrieve);
var e = new Enumerator(rows);
for (; !e.atEnd(); e.moveNext())
{
var row = e.item();
%><%=row.EntryId.ToString()%>
<%
var e2 = new Enumerator(row.FieldValues.Fields);
for (; !e2.atEnd(); e2.moveNext())
{
%><%
var fieldValue = e2.item();

Response.Write(row.FieldValues.Item(fieldValue));
%>

<%
}
%>
<%
}
%>Search
Again<%

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Rachel Harding
Sent: Tuesday, July 11, 2006 6:36 AM
To: arslist@ARSLIST.ORG
Subject: COM API

Hi,
Can someone please explain to me how I can retreive a list of records 
field values from a remedy database using the COM/.NET api in an ASP?
(not 
aspnet)
It is actually very simple in asp.net, but eludes me completely when
using 
classic ASP.

I have tried the following which always returns a type mismatch:

Dim entryfieldValueList
Set entryfieldValueList = Server.CreateObject
("BMC.ARSystem.EntryFieldValueList")

dim fieldlist(1)
fieldlist(0)=64500
fieldlist(1)=66400
entryfieldValueList2 = arserver.GetListEntryWithFields
("PEOPLE", "'Personnel ID' LIKE ""123%""", fieldlist, 0, 0)

I cannot find the sample asp page mentioned on the remedy COM & .NET API

articles.

What am I doing wrong?

Thanks in advance
Rachel


___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: help With API

2006-07-06 Thread Dan Hardy
 
Makes sense.  I'm curious why Remedy chose to address application-specific web 
services, before addressing general-purpose web services (at least for data 
operations).  The latter seems simpler, and with broader applicability.
 
Dan



From: Action Request System discussion list(ARSList) on behalf of Carey Matthew 
Black
Sent: Thu 7/6/2006 3:58 PM
To: arslist@ARSLIST.ORG
Subject: Re: help With API



Dan,

Why a general WS client to do ARS Submit, Modify, Delete?:
 Because a general purpose Web Service for Remedy API to create,
modify, delete records should not be much harder than a Java
application(command line client) to do the same thing. In fact the
might even share the exact same line of code to "talk to ARS". If you
go so far with the command line client as to read an "XML config file"
then the code would look almost identical. So the "effort difference"
seems very, very small between the two for me.

And...

 If you implement an ARS hosted Web service then it would need to
be implemented per form. A general WS could cover all forms in one
shot. (and the community as a whole could use the same WS for any
form. Custom application or OOB application.)

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.
Never ascribe to malice, that which can be explained by incompetence.


On 7/6/06, Dan Hardy <[EMAIL PROTECTED]> wrote:
> Just curious - for the latter case, why wouldn't you just create a Web
> Service for your application using the admin tool, and then use Java to
> talk to that?
>
> Regarding the original question, there are many options depending on
> your platform.  The ones I am familiar with - Remedy's own C API,
> Remedy's own Java API, Remedy's .NET and COM API (from the dev
> community), and then open source: RTL (C++), joarse (Java on
> Windows/Linux, hopefully soon Solaris), coarse (again, JScript or
> VBScript), and ARSPerl.  My opinion?  If you are on Windows and want
> something quick, simple, and dirty, just install either one of the two
> COM apis and write a quick JScript file.  If you're on Linux, I'd
> probably pick joarse.
>
> Dan

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org 
<http://www.wwrug.org/> 



___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org


Re: help With API

2006-07-06 Thread Dan Hardy
Just curious - for the latter case, why wouldn't you just create a Web
Service for your application using the admin tool, and then use Java to
talk to that?

Regarding the original question, there are many options depending on
your platform.  The ones I am familiar with - Remedy's own C API,
Remedy's own Java API, Remedy's .NET and COM API (from the dev
community), and then open source: RTL (C++), joarse (Java on
Windows/Linux, hopefully soon Solaris), coarse (again, JScript or
VBScript), and ARSPerl.  My opinion?  If you are on Windows and want
something quick, simple, and dirty, just install either one of the two
COM apis and write a quick JScript file.  If you're on Linux, I'd
probably pick joarse.

Dan

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black
Sent: Thursday, July 06, 2006 2:04 PM
To: arslist@ARSLIST.ORG
Subject: Re: help With API

James,

As soon as Remedy publishes C API files for a Mac, then the Java
Clients would work just fine.

Unless some one wanted to go to the trouble of writing all of this
stuff via a generic Web Service so that the MAC client could talk WS
to the Mid-Tier server then talk ARS API back to the ARS server from
there. (And it would require a Mid-Tier('ish) server for the config to
work.) But that could be done too...

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.
Never ascribe to malice, that which can be explained by incompetence.

___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org