PHP SOAP

PHP SOAP

Chat session started at 4:23:34 PM
Please be patient while you are being connected with an operator ...
You are now chatting with Edward
Edward:Hello and thank you for your interest in LiveHelpNow, please allow me a moment to review your question.
Visitor:Hi, what is the fastest way I can get an API key ? Add to knowledge
Visitor:sure Add to knowledge
Michael:irespond
Michael:ll generate onerespond
Edward:I will get you the key in one minute
Visitor:Amazing Add to knowledge
Michael:22EDECFC-B936-4E9C-8417-382788C0F22Drespond
Edward:22EDECFC-B936-4E9C-8417-382788C0F22D
Michael:Please guard it with your life :)respond
Visitor:that's tied to the gwava.com account, right ? Add to knowledge
Michael:correctrespond
Edward:That is correct
Michael:LHN4279respond
Visitor:Amazing Add to knowledge
Visitor:thank you very much Edward Add to knowledge
Edward:Client LHN4279
Visitor:That's us Add to knowledge
Edward:Sure not a problem. Have a great day
Chat session has been terminated
Chat session started at 5:06:47 PM
Please be patient while you are being connected with an operator ...
You are now chatting with Michael
Michael:Hello and thank you for your interest in LiveHelpNow, please allow me a moment to review your question.
Michael:is there an error message?
Visitor:Hello Michael Add to knowledge
Visitor:yes Add to knowledge
Michael:what's the error message?
Visitor:Access to the API was blocked due to invalid ClientID or API Key Add to knowledge
Visitor:My guess is that I didn't pass the parameters properly Add to knowledge
Visitor:I am using the SOAPClient PHP Class Add to knowledge
Visitor:$sc = new SOAPClient("http://alerter.livehelpnow.net/webservices/enterprise.asmx?wsdl"); Add to knowledge
Visitor:that works Add to knowledge
Visitor:$out = $sc->__soapCall('GetDailyChatters',
array(
'ClientID'=> 4279,
'API_Key' => '22EDECFC-B936-4E9C-8417-382788C0F22D',
'sDate' => '03/23/2011' ) );
Add to knowledge
Michael:I can provide only very limited support in this area
Visitor:I guessed so Add to knowledge
Michael:Once thing i can tell you for sure, if everything is passed correctly - it'll work
Visitor:do you have any sample code ? Add to knowledge
Michael:As it is being used by thousands of clients daily
Visitor:I know ;-) Add to knowledge
Michael:Which platform are you developing it?
Visitor:I am sure it's on my side Add to knowledge
Visitor:PHP Add to knowledge
Michael:No sorry
Visitor:just plain PHP Add to knowledge
Michael:Not PHP
Michael:i can ask some of our clients to provide an example code
Visitor:Linux ? Add to knowledge
Visitor:LAMP Add to knowledge
Michael:But it'll take time
Visitor:I will try with curl then Add to knowledge
Michael:ok
Michael:sorry cannot help better
Michael:PHO is our weak spot
Michael:we are a microsoft shop
Michael:PHP* i mean
Visitor:I have another error : Add to knowledge
Visitor:Unable to handle request without a valid action parameter. Please supply a valid soap action Add to knowledge
Visitor:Oh Add to knowledge
Michael:this is again PHP related
Visitor:yeah, it's in the header Add to knowledge
Visitor:How do I get more help ? Add to knowledge
Visitor:I open a ticket ? Add to knowledge
Michael:We do not have any PHO developers here
Michael:Your best bet is just googling PHP SOAP
Visitor:I did Add to knowledge
Visitor:the problem is your WSDL Add to knowledge
Visitor:I am going by the books, Add to knowledge
Visitor:but my API_Ker is still rejected Add to knowledge
Visitor:I might have an idea Add to knowledge
Michael:I'll try to get a code sample from some of our clients
Michael:But again, it'll take time
Visitor:that would be very useful Add to knowledge
Michael:ok, i'll see what i can do
Visitor:wait Add to knowledge
Visitor:I think I have something Add to knowledge
Visitor:Can you check the last day there was a chat in our account ? Add to knowledge
Michael:just a second
Visitor:I no longer have the error ! Add to knowledge
Michael:good
Visitor:But I am getting an empty result, Add to knowledge
Visitor:probably because the day was empty Add to knowledge
Michael:2011-03-22 09:23:09.240
Michael:last chat
Visitor:Germanygw01.gwava.euhttp://www.gwavacon.com/gwavacon/gwavacon-archives.html22 Mar 2011 09:23:09:240 ) Add to knowledge
Visitor:Yeah ! Add to knowledge
Michael:good
Visitor:it's working ! Add to knowledge
Visitor:thank you for your help Add to knowledge
Michael:Great
Michael:You are very welcome
Michael:Is there a way i may ask you to email me the code you used
Michael:So we can publish it on our KB
Michael:For other clients having the same issue with PHP
Michael:If you don't mind of course
Michael:I would imagine it's like two lines of code...
Visitor:sure Add to knowledge
Visitor:Yeah Add to knowledge
Michael:mk@livehelpnow.com
Visitor:$sc = new SOAPClient("http://alerter.livehelpnow.net/webservices/enterprise.asmx?wsdl");


$out = $sc->GetDailyChatters(array(
'ClientID'=> 4279,
'API_Key' => '22EDECFC-B936-4E9C-8417-382788C0F22D',
'sDate' => '03/16/2011' ) );
Add to knowledge
Michael:thank you so much!
Visitor:Of course, Add to knowledge
Michael:and $out will contain the XML ?
Visitor:replace my clientID and my API_key with placeholders Add to knowledge
Visitor:It does! Add to knowledge
Visitor:NO Add to knowledge
Visitor:Wait Add to knowledge
Michael:wonderful
Visitor:$out->GetDailyChattersResult Add to knowledge
Michael:Thank you@
Michael:!
Visitor:it's $out->GetDailyChattersResult which has the XML Add to knowledge
Michael:got it
Michael:thanks!
Visitor:no problem Add to knowledge
Visitor:If you want, you can give my employers a month or two in credit, but otherwise, thanks anyway ! ;-) Add to knowledge
Michael::)
Michael:We'll consider this :)
Michael:thanks

Leave a comment?

0 Comments
Login
REGISTER WITH EMAIL

Related articles