Solved

Sending XML/SOAP using script

Posted on 2014-10-21
5
331 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

691 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