#120104 - 07/10/05 10:08 PM
XML to Java to Remedy
|
journeyman
Registered: 03/11/04
Posts: 93
|
Hello List
Would anyone share an example of Java code to create Remedy entry. Actually if some one has an example code of creating entry using XML input it going to be the best.
I would use my favorite ARSperl for this type of project, but requirement stated to use Java.
Any input is highly appreciated.
Regards, Mike
------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org (Support: mailto:support@arslist.org)
|
|
Top
|
|
|
|
|
#120105 - 07/11/05 09:37 PM
Re: XML to Java to Remedy
[Re: richard_phillips6]
|
journeyman
Registered: 05/01/05
Posts: 114
|
You may wish to consider our XML Gateway product:
http://www.javasystemsolutions.com/products/xmlgw
Once installed (a simple procedure), you can start sending bespoke XML messages at the gateway within minutes. It's really that easy.
John
Java System Solutions : http://www.javasystemsolutions.com
UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org (Support: mailto:support@arslist.org)
|
|
Top
|
|
|
|
|
#120106 - 07/11/05 10:09 PM
Re: XML to Java to Remedy
[Re: richard_phillips6]
|
old hand
Registered: 07/10/04
Posts: 851
|
Mike,
Hum... What is your starting point for this "XML data"? Is it a flat file on the OS? An in bound web service call to Remedy? Some other source of data exported to XML format? How much data are we talking about? (1 record?, 1 GB file?)
For what it is worth I have a few notes from a RUG event that dealt specifically with a Java based WebServices client built from an ARS generated WSDL. Basic overview is:
A) Make Remedy WebService. B) Use Apache AXIS (<=1.2, maybe 1.2.1) to generate the bulk of the code. (WSDL2Java Utility) -- This requires all tools for AXIS to work properly to be installed too -- Then fix up the SoapBindingStub.java file to "fix" a "bug" in the WSDL2Java Utility. find the "addParameter(bla, bla, ... bla, true, false);" and change to "addParameter(bla, bla, ... bla, false, false); C) Write a small wrapper script to parse your XML file (You could look at JAXB for a "xsd" to Java code tool. http://java.sun.com/xml/jaxb ) and pass the parsed XML data into the WebServices call.
On the other hand....
Remedy does have an "XML Create" API call too. (Just not sure if they wrapped in in their Java JNI wrappers or not.) So that might be "easier" than going through the Webservices route to get into the ARS server too. (But JAXB might still be of some help to get the XML data in to Java variables too.)
HTH.
-- 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/11/05, Ilmer, Mikhail wrote: > Hello List > > Would anyone share an example of Java code to create Remedy entry. > Actually if some one has an example code of creating entry using XML > input it going to be the best. > > > I would use my favorite ARSperl for this type of project, but > requirement stated to use Java. > > > Any input is highly appreciated. > > Regards, > Mike > > > ------------------------------------------------------------------------------ > This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. > > > UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org > (Support: mailto:support@arslist.org) >
UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org (Support: mailto:support@arslist.org)
|
|
Top
|
|
|
|
|
#120107 - 07/12/05 01:32 AM
Re: XML to Java to Remedy
[Re: richard_phillips6]
|
journeyman
Registered: 03/11/04
Posts: 93
|
Thanks for all responses. Basically I need to have a jar to push data to Remedy. By nature of the requirement I cannot use WSDL or any external product. So what I'm asking is an example of Java code to create or update data in the custom schema.
Rgds, and have a good time on the RUG!
Mike
-----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Carey Matthew Black Sent: Tuesday, July 12, 2005 4:09 AM To: arslist@ARSLIST.ORG Subject: Re: XML to Java to Remedy
Mike,
Hum... What is your starting point for this "XML data"? Is it a flat file on the OS? An in bound web service call to Remedy? Some other source of data exported to XML format? How much data are we talking about? (1 record?, 1 GB file?)
For what it is worth I have a few notes from a RUG event that dealt specifically with a Java based WebServices client built from an ARS generated WSDL. Basic overview is:
A) Make Remedy WebService. B) Use Apache AXIS (<=1.2, maybe 1.2.1) to generate the bulk of the code. (WSDL2Java Utility) -- This requires all tools for AXIS to work properly to be installed too -- Then fix up the SoapBindingStub.java file to "fix" a "bug" in the WSDL2Java Utility. find the "addParameter(bla, bla, ... bla, true, false);" and change to "addParameter(bla, bla, ... bla, false, false); C) Write a small wrapper script to parse your XML file (You could look at JAXB for a "xsd" to Java code tool. http://java.sun.com/xml/jaxb ) and pass the parsed XML data into the WebServices call.
On the other hand....
Remedy does have an "XML Create" API call too. (Just not sure if they wrapped in in their Java JNI wrappers or not.) So that might be "easier" than going through the Webservices route to get into the ARS server too. (But JAXB might still be of some help to get the XML data in to Java variables too.)
HTH.
-- 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/11/05, Ilmer, Mikhail wrote: > Hello List > > Would anyone share an example of Java code to create Remedy entry. > Actually if some one has an example code of creating entry using XML > input it going to be the best. > > > I would use my favorite ARSperl for this type of project, but > requirement stated to use Java. > > > Any input is highly appreciated. > > Regards, > Mike > > > ---------------------------------------------------------------------- > -------- > This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. > > > > UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org > (Support: mailto:support@arslist.org) >
UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org (Support: mailto:support@arslist.org)
------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
UNSUBSCRIBE or access ARSlist Archives at http://www.ARSLIST.org (Support: mailto:support@arslist.org)
|
|
Top
|
|
|
|
|
|
|