I am working on a product which needs to display the site created on i-phone. However there is some content in the site which is causing the bad XML parsing error on I-Phone only. Is there any way to tell the I-Phone and other mobiles to ignore such type of errors .
As far as i am concerned there is no other way to parse a bad XML and tell iPhone that there is a bad XML.Whenever you tried to parse the XML in iPhone , the didfailwththe error delegate method will be called.
Hope it helps you...........
Related
I recently got thrown into a company to do DD on a SaaS solution that needs to generate codes to send invites. Has anyone seen or used this method of passing an API key/auth code? It's using the Play Framework. I don't have access to the play source code, just a compiled binary so I can't even see how the GET request is validated.
Eg:
https://<site.com>/?auth=10002-1644542228446-75ac043770463c36039f29d75304171c
I checked the packages used and there is io.jsonwebtoken.jjwt-0.9.1.jar used but I'm only familiar with passing it as a header "Bearer ". and haven't seen this three segmented formatting. XXXXX-XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Any help would be appreciated. I know it's not a lot to go off but I'm only looking to be pointed at the method used to get started.
I'm trying to Uploading assets by way of HTTP POSTs to the UploadFile Servlet in Adobe Scene7 and for the life of me cannot get it to work no matter what I try. Here is their documentation:
https://marketing.adobe.com/resources/help/en_US/s7/ips_api/c_http_post.html
I usually get the following error / response:
"Header section has more than 10240 bytes (maybe it is not properly terminated)"
https://gist.github.com/erickertz/8b50c503fd0e75fdb962515051253097
One thing to note is that I could not get their example working with separate "auth" and "uploadParams" parts. I instead imported their WSDL in SOAPUI which had the following form that seemed to work:
https://gist.github.com/erickertz/a4eb13e35f7709c6e5d2b4721b08510a
Here is an example of one of my failed requests:
https://gist.github.com/erickertz/3feccd53b9cb63bdba40de86c86da289
I admit that I'm not all that familiar with SOAP in general but this is driving me nuts :( Thanks!
Well, hope this saves someone else some time. I found a somewhat unrelated post here that had the same error with SOAP and a .NET application:
https://community.tableau.com/thread/213098
Issue was the service only recognized "/r/n" as newline characters. I converted all of my "/n" characters to "/r/n" and it works! Thanks Adobe!
I get SOAP_EMPTY using gsoap, I have searched for a long time and had no answer,SOAP_EMPTY is newly added to gsoap,and it seems I'm the unlucky guy to meet this problem.
Here is where my code come from:https://github.com/miibotree/ONVIF/blob/master/main.c
Now soap_call___tds__GetCapabilities will return code SOAP_EMPTY,I'm now using gdb to track this problem it seems that I need to set a valid soap->id to avoid this problem,but I'm a fresh guy with onvif and don't know how to set a valid soap->id,and now I'm reading various docs about onvif and trying to solve it.
Hope any guys could help me, sinch searching so many docs makes my eyes pain and I still haven't found the answer,thanks.
SOAP_EMPTY is a validation failure. This error indicates than an element/attribute is empty but is supposed to have content. For example an integer value should not be an empty string. The old error generated by older gSOAP releases in this case was SOAP_TYPE which was less informative. In either case, validation fails. The best way to find out is to use soap_print_fault() and soap_print_fault_location()` where the latter call shows the location in XML where the problem is. Our ONVIF testing with gSOAP did not reveal such an issue.
im trying to debug facebook app with krumo, but facebook breaks it (i think he block the script) anyone has success to use krumo with facebook ?
The only thing I've had trouble outputting through Krumo is some object types; however, most seem to be output just fine. If you're trying to output an unusual object type, that might be it.
Otherwise, can you explain in more detail what you mean by "breaks it"? Does the output not display? Do you get an error? Etc. I can't think of a scenario where Facebook would break Krumo.
I need to use ZendAMF on a symfony project and I'm currently working on integrating the two.
I have a frontend app with two modules, one of which is 'gateway' - the AMF gateway. In my frontend app config, I have the following in the configure function:
// load symfony autoloading first
parent::initialize();
// Integrate Zend Framework
require_once('[MY PATH TO ZEND]\Loader.php');
spl_autoload_register(array('Zend_Loader', 'autoload'));
The executeIndex function my the gateway actions.class.php looks like this
// No Layout
$this->setLayout(false);
// Set MIME Type
$this->getResponse()->setContentType('application/x-amf; charset='.sfConfig::get('sf_charset'));
// Disable cause this is a non-html page
sfConfig::set('sf_web_debug', false);
// Create AMF Server
$server = new Zend_Amf_Server();
$server->setClass('MYCLASS');
echo $server->handle();
return sfView::NONE;
Now when I try to visit the url for the gateway module, or even the other module which was working perfectly fine until this attempt, I only see a blank screen, with not even the symfony dev bar loaded. Oddly enough, my symfony logs are not being updated as well, which suggests that Synfony is not even being 'reached'.
So presumably the error has something to do with Zend, but I have no idea how to figure out what the error could be. One thing I do know for sure is that this is not a file path error, because if I change the path in the following line (a part of frontendConfiguration as shown above), I get a Zend_Amf_Server not found error. So the path must be correct. Also if I comment out this very same line, the second module resumes to normality, and my gateway broadcasts a blank x-amf stream.
spl_autoload_register(array('Zend_Loader', 'autoload'));
Does anyone have any tips on how I could attach this problem?
Thanks
P.S. I'm currently running an older version of Zend, which is why I am using Zend_Loader instead of Zend_autoLoader (I think). But I've tried switching to the new lib, but the error still remains. So it's not a version problem as well.
got it...
I was not using
set_include_path()
while loading Zend. It's still odd that it would give such a cryptic error, but this was the missing piece indeed.