PHP SOAP OTA Connection - php

for a customer I want to implement the OTA service in an interface to check availabilty and things like that.
I've downloaded the 2017 specifications from OpenTravel. But I lack some information. I want to realize it with PHP and SOAP and later connect it to Magento. But I can't find any url for the SOAP client to send those XMLs to.
I would greatly appreciate any help on this topic or maybe suggestions to do it in an easier way.
Greetings

Consuming OTA SOAP web services is tricky as PHP SoapClient class does not handle it properly.
First you should generate the PHP sdk from the WSDL corresponding to the availabilities you need to send requests to. You should give the PackageGenerator project from Github a try.
Nevertheless, as I said, the native PHP SoapClient class does not map the parameters to the XML request correctly. This is where you have to write your proper code to handle the mapping from the PHP objects to the XML request.
As I work regularly on these sorte of issues, I can help you further but only privately at contact#wsdltophp.com.

Related

PHP SOAP Request with XML Payload

I have a Wordpress website and I'm trying to allow the case system that I have created to file cases electronically in an automated fashion. Here's a link to the documentation and such for what I'm trying to do....
https://www.courts.mo.gov/exchanges/display/MOJXECFAF/Missouri+Judicial+Exchanges+Electronic+Case+Filing+-+Automated+Filing
There is an example of Java web service in the documentation, but I'm trying to create a PHP version of this. The documentation and help that I've gotten says this... You will need to submit a SOAP Request with the XML payload and binary documents to our Automated Filing Web Service. The end point is documented in the WSDL in the Automated Filing IEPD. I have my own credentials that I can plug into the request.xml file in the documentation, but I have no idea how to send this SOAP request using PHP to the appropriate endpoint. I have tried a bunch of different things, but nothing has worked so far.
Any help would be greatly apprecaited.
Thanks!

Create a webservice in Php native

I am new in web service. I was totally confused when seeing examples to create web service in internet. Actually, My client have xml to place the orders. what they want is they need to create a wsdl(web service) to call the xml by their vendor forms. So i need to create a webservice that integrate with xml and vendopform(it may be in any language). How i can do this, my mind has empty now to think this. Can any body help me to sort this issue.
If you're creating a SOAP service (which it sounds like you are, and I feel sorry for you ;)), try starting by looking at PHP's SOAP extension:
http://php.net/manual/en/book.soap.php
If you can create something more RESTful, Ruby on Rails does a good job at allowing you to throw together a quick and dirty web service without too many headaches, but even in PHP you can create RESTful APIs pretty easily.
You can read the HTTP request body via e.g. fgets(STDIN) if your requests will accept XML as a POST/PUT format.
But yes, your question is too broad to provide anything more than nudges towards the tools you might choose to use.

PHP Soap (Server)

I am trying to create a webservice using the PHP Soap extension and I am having problems with the .wsdl. Is there an easy way to generate 2.0 wsdl's? Where is a good site (or book) that I can look to in order to determine how to build the WSDL? I have no problem getting my soap client to retrieve soap messages from other web services so I know soap is installed and working. I have found a few links out there that generate WSDL's for you, but most of the sites are down. Any help pointing me in the right direction would be helpful
PHP does not have a built-in WSDL generation utility. I would recommend using Zend_Soap_Server which supports WSDL generation via its Autodiscover feature.

Consuming a php soap web service with excel2007

I'm trying to figure out how to connect Excel 2007 to php5 based web services.
I found this pretty interessting article on the topic. Ok, so it seems to be
doable. Now, php5 soap services don't accept parameters in url form, so a RESTesque call like
http://domain.org/service.php?getme=something
won't work out since there are soap request envelopes to be transfered...
Does anyone have experiences / hints for me on this topic?
tia
K
It looks like excel just does simple get requests. You will need to write a non-soap interface to your php web service.

Accessing Sabre Web Services using PHP

I have been approached to create a website using Sabre Web Services to power the reservations system. All documentation I have seen refers to .NET or Java solutions, and I was in doubt as to whether PHP can be used, as access is performed using SOAP.
I have found no further information about this, and I assume the answer is yes, but I wonder why there is not a single reference to this being possible. All solutions seem to be .NET!
SOAP is language independent, which means that any language can communicate with the web service if it can generate SOAP requests and handle responses.
PHP's SOAP documentation can be found in the php manual
PHP can be used to call SOAP pretty effectively.
There's a very good tutorial on devzone on how you can use SOAP well.
I've just done a little digging around and it looks like you can use stream_context_create() to create a custom HTTP stream context. This would include the HTTP content type header you need. The resource returned from this function call can then be passed to the SoapClient constructor to be used in SOAP calls. Have a look at http://ca.php.net/stream_context_create and the PHP manual page for the SoapClient constructor (sorry, I can only post one link as a new user) for more information.
Yes, PHP can be be used to connect to SOAP web services - take a look at NuSOAP. It allows a nice & easy object oriented way to consume web services.

Categories