Solved

Sending XML/SOAP using script

Posted on 2014-10-21
5
293 Views
Last Modified: 2016-02-26
Hi,
two questions
1)Can i send XML file to other server via SOAP using unix script if yes please
give an example

2) The other server wants to response back to our server and for that they need
some kind of listener any idea if we can do that in script too.
0
Comment
Question by:sam2929
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:Thomas Wheeler
ID: 40396111
You can use curl from the command line our if you have access you can use php cli it makes it easy. When I get back to my computer I will post examples.
0
 

Author Comment

by:sam2929
ID: 40396615
Hi Thomas,
what about option 2) for response back do i need to setup some kind of listener.

Thanks
0
 
LVL 7

Expert Comment

by:Thomas Wheeler
ID: 40397232
here is a link to the bash example. I am not sure what you are attempting but it sounds like a web services is what you are looking for. This will allow the other server to respond back.

http://stackoverflow.com/questions/14198986/post-soap-envelope-from-bash-script
0
 

Author Comment

by:sam2929
ID: 40397668
yes i am looking for web services
0
 
LVL 7

Accepted Solution

by:
Thomas Wheeler earned 500 total points
ID: 40397698
Ok so you need to create an API. You can use a framework like http://www.slimframework.com/ or https://github.com/chriskacerguis/codeigniter-restserver as far as calling the remote server here is a soap you can look at the examples here http://us3.php.net/manual/en/soapclient.call.php
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to count occurrences of each item in an array.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question