-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Masterpricer Expert Search #170
Conversation
The first thing I notice is that the request options object Also, it seems to copy a lot of the MasterPricerTravelBoardSearch request options, perhaps you should consider extending FareMasterPricerTbSearch from your new request options object, whichever is most limited. The same with building the request structure, you seem to have copy-pasted a lot (which is a good start, but I don't want unnecessary copy-pasting in the released version). And obviously, unittests still need to be added, because I want the library at 100% (minus 1 file which I haven't figured out how to test completely yet). so, you're off to a good start |
Also, |
Thanks for your feedback. I have some other things to solve right now and will try to come back to that soon. |
Sure, no rush! I'm already happy you're willing to contribute ;) |
signOut method is called securitySignOut in Client.php
Do you plan to continue working on this PR? |
Hey, yeah i want too. I saw last week, that you changed things in Travelboard Search, so i will have to adapt that stuff too. |
It was only a small change, but yes, I merged yet another @bimusiek PR ;) Let me know if you need any help, I'd really like to have this message in the library too! |
Hey there, i was able to normalize most of the things you called for. One call is extending another one and i was able to solve some other things too. The naming convention is fullfilled now. Beside of the missing unit tests, is that ok now? If you give me your go, i will add the missing tests. What would be the best way to gather the needed XML for a response test? |
I usually either make a real call with a message and remove personal info from the response, or just look if I can find a response sample in the docs I can't do a review now, I'll have to get back to you in a few days when I have access to my computer again. |
Are the ClientTest.php Methods are autoloading some xml files? I have some trouble there. Would you be up for a short chat on irc or something? |
Sorry for the delay. Are you developing on Windows? In that case it could be a problem with case sensitivity (the unittests are ran on a linux box at TravisCI) |
You should be able to find an e-mail address in the code, use that to contact me privately ;) |
Are you going to continue working on this in short-ish timescales? I would like to release 1.8.0 and I'd like to include this message in the release, but I won't wait too long - in which case it'll be for a future release. |
Waaait a minute. Tests are failed with error It's just need to change the class name in the tests and in samples... @m0veax when you ran the tests, have you ran |
Thanks for your insights. I will check this up in my Codebase. Are there any Resources to understand how responses are loaded in the Testframework? That is the Showstopper for me right now. I really want to finish this, but i didn't had the time to get that tests done (the kids needed a bit more attention the lasts weeks and i wanted to serve the attention they need). Maybe the comment from @therealartz does fix my problem any way. I will try to apply his changes this month. |
Thanks a lot for that! Somewhere i started to rename that and somehow i missed a lot. So i just have one test that still fails and will investigate further :) |
Now the mistake in this line of your test method: // ClientTest.php
$mockedSendResult->responseXml = 'dummyfarepricemasterpricerexpertsearchresponsemessage'; You must specify responseXml to be taken from example response file in this way: $mockedSendResult->responseXml = $this->getTestFile('fareMasterPricerExpertSearchReply-12.4.txt'); Also I want recommend you to change your example response (fareMasterPricerExpertSearchReply-12.4.txt) to be one-lined XML, because 21k added lines confuses 😄 |
@therealartz appreciated! Thanks for your hints! I hopefully get this done within the next two weeks. But real life is a bit demanding the last year. |
Well it seems the next two weeks was too optimistic, but i am working on this again. At the moment i have the Problem, that my XML does not generated properly. I am investigating at the moment and hope to find that last bug soon. |
Thanks for coming back to finish this :) |
Sure, i don't like unfinished things :) Could you do me a favor and point me to the Class which is responsible for generating XML out of the Request Object? My Request Objects seems to miss something and i need to debug this. |
Well... What this library does: it builds a PHP object through a Usually when you are missing an expected part in the XML document, one of these things happened:
So if you suspect there is a mismatch between your object and the WSDL definition, you may try these things:
|
Very helpfull, thanks for your input! |
So, due to your informations i was able to trace down, that my code generates valid SOAP Requests. I tested the library against the API too and get valid results. So i am doing something wrong in |
I had a free hour and I decided to help you. Found a mistake in test set up. Could you please give me access to push in your fork? |
@therealartz I granted push permissions for you. I am looking forward to see your changes. Guess I can learn a thing there :) |
@therealartz big thanks! I guess I would have spend some working days to find this, since tests are not my daily business yet. But I started to improve my knowledge there already. @DerMika is this mergable or do we need some more changes :) |
I will review tonight... |
No hurry :) I just have been happy about this solution |
Hey Mika, anything you need me to do here? I don't want to hurry you up, but i have some spare time this weekend and would be able to investigate :) |
Ok, finally going to merge this. Sorry it took so long! And thanks for your contribution, much appreciated! |
Hi,
i created a base PR so you can see my progress regarding Issue #168.
There are no Unit Tests or Docs added right now. But this is working and returning Results.
I tried to copy only what is needed but i somehow think, maybe the Master Pricer Base Struct could be modified to hold more of the three Master Pricer types?
Any thoughts for me?
Thanks for your fast Support :)