Solved

Sending XML/SOAP using script

Posted on 2014-10-21
5
304 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 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