How to send custom message to abap program by using Groovy - eclipse

I am new to groovy.
In groovy I need to send an acknowledgement message(successful) to another program (abap program).

Related

SOAP Message creation without a WebService just with wsdl

I have a wsdl file in a Spring JMS project, where i need to create an XML to sent to a queue. This xml should look like a SOAP Message including Header Body and whole Envelop. I don't understands how not to implement a SOAP WebService but still create a XML SOAP structure. I don't want to create whole structure using SOAP Element classes where i have to write a lot of code and each time if my Java Object updates i have to update this implementation as well, thanks for help.
See the Spring Web Services Reference Manual (specifically JMS Transport on the client side).
For sending messages over JMS, Spring Web Services provides the JmsMessageSender. This class uses the facilities of the Spring framework to transform the WebServiceMessage into a JMS Message, send it on its way on a Queue or Topic, and receive a response (if any).
To use the JmsMessageSender, ...

Passing data from Server in C language to a python script

I am developing a prototype web application. I am using a toy http server which I have developed myself and it is written in C. The server needs to obtain text data from html form submitted and for furthur processing should pass it to a script which I have written in python. I know the following methods to achieve the same. Also once the processing is done the script has to return the data to server.
Save the data in a file and let the python script access it.
Calling the system or exec family of functions from within the Server code.
I have heard of CGI where a socket is used on both sides. I know how to do the same in my python script. But I am not able to see how the same is done in C server side.
Normally this is abstracted out as most people use apache or nginx as theor service. How can CGI be achieved in Server code?
CGI is covered here: https://www.rfc-editor.org/rfc/rfc3875
By 'CGI over sockets' you probably mean FastCGI which is a bit different (and involves a long running process listening on a Unix socket and sending back responses). Classical CGI involves spawning a short lived process which then receives the request parameters via environment variables (set this from your server via setenv().
Request data is sent to the spawned process via stdin (e.g. in Python, sys.stdin). The output response is then written (with headers and all) via stdout.
CGI is very simple and this is why it was so quick to be adopted by a high number of languages -- the learning curve to implementing CGI was rather quick.
FastCGI is similar to CGI only at the script language layer (i.e. the programming interface remains somewhat similar); however the actual mechanics are rather different (you need to serialize the information over Unix sockets).

JMS | IBM Websphere Application Server 8.5 | How to see messages and their formats lying on queues

I am working on a POC wherein I am trying to achieve SOAP over JMS. Basically I'll be submitting my SOAP messages directly to the jms queue and a consumer will further read these SOAP messages and process them. The reason we want to stick to SOAP is because it is a standard formatand we'll not have to do something extra to design a new standard form messages.
For this poc I am using the default messaging provider which comes by default with IBM websphere app server 8.5. I referred to the following and I am able to submit my messages to queue. The problem is that I expected the SOAP to stay as XML/String on my queue however it is getting converted into a byte message.
I want to check the message and its type on my queue using some kind of queue browser tool which could work with IBM WAS8.5 . I googled and found that there are a lot of Queue browser tools available for servers like Glassfish etc but I couldn't find any tool or option for IBM WAS8.5?
Can you please guide me on what I can do to ensure that my SOAP message stays as XML on JMS queue and any GUI tool/option I could use to see the message and its type on Queue ?
Regards
Aakash
You can use the SIB Explorer tool to view the messages on the queue in WAS. The link to the tool is here.
There is also the SIB Destination Handler tool that allows you to perform more actions on the messages that you might find useful for your issue (like printing out properties etc). The SIB Destination Handler tool can be found here.
In addition to tools mentioned by whitfiea you can use web admin console and go to:
Buses > myBus > Destinations > myQueue > Queue points >
myQueue#rad9vmNode02.server1-myBus > (switch to the Runtime tab) > Messages
then select the message. You should be able to see the message contents.

Sending Spring Integration messages over RMI seamlessly?

Is there a way to send Spring Messages over an int-rmi:outbound to int-rmi:inbound gateway?
I've got two components that both use Spring Integration and I'd ideally like to send a Message between them so the receiving component can then seamlessly use a router or filters to decide where that message ends up.
The components are both written in Java, but are running in separate processes (Probably on the same machine but it's not guaranteed).
I've managed to use Spring integration to get Component 1 to call a Method on Component 2 and then for Component 2 to call a Method on Component 1, using RMI, and I Set the parameter of the RMI method to a Message which I can then obtain a channel and send into Spring Integration's flow.
But I was wondering if there was a way to skip that last step? And just have the Message flow through the two applications.
Sorry, it isn't clear what is the issue.
Actually it works out-of-the-box.
Here is a test-case as a sample

OSB Design questions

I have to implement a system to poll emails from a mail server.
Process the email contents(body, subject, sender, date, etc) and prepare a request to send to another service using these data.
My question is: using OSB and the email transport I can read the variables(body, subject, etc), then I have to split the subject into 3 different variables(It's coming in this format: Var1) and prepare a call to another service(this service is already deployed and its wsdl and Url are known).
How can I do all of this? How can I split the subject and prepare my request? Do I have to use a java class or OSB can do it automatically?
How can I achieve this? Are there better options?
Mail transport is a polling based approach. And you need to setup a Proxy Service to poll your mails from a mail server. In you Proxy Service, you process your subject and body. Whether you need a custom Java class depends on how much you work with XML.
The more XML your message is, the less likely you need Java. If you are familiar with XQuery/XSLT, you can also in many ways avoid using custom Java to process your messages.
Once you have your messages ready for delivery, you can route them to a business service which may or may not be WSDL based.