Access denied: HTTP - Host Request with Widget Foundation + Yahoo
Hi,
I have a problem with the new Yahoo widget engine's (4.5) suggested structure, when trying to execute an RFC request.
An older version of my .kon file has a classic structure, and it works fine, I write the script into the .kon file, it looks like this:
<action trigger = "onLoad">
<![CDATA[
// Standard SAP Widget Foundation Libraries
include("js/utils/Common.js");
include("js/utils/PlatformUtil.js");
include("js/utils/Timer.js");
include("js/utils/DataLoader.js");
include("js/utils/RFCRequest.js");
request.execute(function(response) ...
]]>
</action>
When I try to use the new structure (the .kon file contains only the source of the script, no CDATA, just 'src = "Scripts/Main.js"' ), and execute the request from the source JavaScript file, then I get this error:
utils.DataLoader]> Exception was catched: XMLHttpRequest.send(): Access denied: HTTP - Host Request.
Saw anybody this problem already?
Thanks,
Gyuri
Hi,
Yahoo has added security control in widgets since 4.5. You should add tag <security> in your widget.xml
<security>
<http>all</http>
<filesystem>full</filesystem>
<command>true</command>
<hotkey>true</hotkey>
</security>
http://widgets.yahoo.com/static/downloads/WidgetsReference_4.5.zip page 33.
Eriks
Similar Messages
-
HTTP POST Request with XML file in
Hi @ all,
I would like to send an HTTP Request with an XML File in the body to an SAP System
I have the target URL and the a XML File.
Now the question is. Is it possible to use something like the HTTP_POST FuBa to send an url post request with an xml file?
If yes can anybody give me a hint?
I have a php script which exactly do this coding. But to integrate it all in one system it is necessary to transform it into ABAP and call it there.
// compose url and request and call send function
function test($productID, $categoryID) {
// create url
$PIhost = "XXX.wdf.sap.corp";
$PIport = "50080";
$PIurl = "/sap/xi/adapter_plain";
$PIurl .= "?sap-client=800";
$PIurl .= "&service=XXX";
$PIurl .= "&namespace=XXX";
$PIurl .= "&interface=Frontend_Interface";
$PIurl .= "&qos=EO";
$PIurl .= "&sap-user=XXX";
$PIurl .= "&sap-password=XXX";
// create xml
$request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$request .="<n1:FrontendInbound_MessageType xmlns:n1=\"http://crmpiebay.com\">\n";
$request .= "\t<FrontendInbound>\n";
$request .= "\t\t<ProductName/>\n";
$request .= "\t\t<ProductCategory>".$categoryID."</ProductCategory>\n";
$request .= "\t\t<ProductID>".$productID."</ProductID>\n";
$request .= "\t\t<MessageID/>\n";
$request .= "\t</FrontendInbound>\n";
$request .= "</n1:FrontendInbound_MessageType>";
// send http request
postToHost($PIhost, $PIport, $PIurl, $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]."/".$_SERVER["PHP_SELF"], $request);
// send post request to PI server
function postToHost($host, $port, $path, $referer, $data_to_send) {
$fp = fsockopen($host, $port);
if($fp) {
$res="";
fputs($fp, "POST $path HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Referer: $referer\r\n");
fputs($fp, "Content-type: text/plain\r\n");
fputs($fp, "Content-length: ". strlen($data_to_send) ."\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $data_to_send);
while(!feof($fp)) {
$res .= fgets($fp, 128);
fclose($fp);
return $res;
Would be great if anybody could give me a hint how to solve such a HTTP Post request with XML body data.
Thanks in advance.
Chris
Edited by: Christian Kuehne on Feb 26, 2009 4:32 PMhi friend could you please share your solution regarding this query if u got it already?
-
Apache reports "access denied/HTTP 1.1"
When browsing a certain website, I often get the message
"access denied/HTTP 1.1" from the Apache Webserver. Sometimes the error message starts with this output, and the whole page fills with all kind of strange and unreadable special characters.
This happens only on one website and just with Safari, but regularly. When I use Firefox, it works perfectly.
I know the pages uses some heavy include() in their PHP scripts, which probably sometimes take too much data for Safari handling it?
Any idea?Okay I have woked it down that I need to tag some properties or conf file but I need to know which file. I saw somthing about using <ApacheConfig path="<MOD_JK_Home>"> but where would I set this tag.
Brian -
Problema al conectar a facebook- Access denied: Insecure SSL Request
Al tratar de conectar a facebook me aparece el mensaje
Access Denied: Insecure SSL Request, me pueden apoyar?Hola y gracias por participar en el foro,
Para tu comodidad, BlackBerry tiene su propio foro comunitario en español.
Aquí tienes el enlace para el foro: http://foros.blackberry.com/t5/Foros-de-Soporte-General/ct-p/bscf_es
Muchas gracias!
Chronos New to the Community click here
Community Moderator -
Access denied when using IdentityXML with WebGate
Hello,
Here is our setup:
- COREid Identity 7.0.4,
- COREid Access 7.0.4,
- WebPass,
- WebGate,
- IIS 6 (hosting the identity application)
We enabled the default policies to protect the /identity URL.
We are using webservice calls (using C# with WSDL proxies) to query the identity server from other applications.
Prior to enabling the Access policies this was working fine, now we get an Access denied error message.
It looks like WebGate is blocking the IDXML calls.
Does anyone knows what is causing this problem and how to solve it ?
My first guess was to use the Access SDK to build an obSSOCookie and join it to the request, however the developper guide doesn't provide may examples on how to practically do this. Will it solve my problem ?
Thank in advance,
FranckThanks for your answer.
I eventually found a workaround for this problem.
Actually you don't need to provide an SSO cookie the first time you connect to the webgate server, you just need to provide basic credentials and the webgate will provide you an SSO cookie that you can use for the next call.
The problem is that this doesn't work out of the box with the .NET/WSDL framework for some reason (with Java + the HTTPClient library I had no problem).
I had to had manually the following headers to the HTTP request to make it work:
Authentication: Basic XXXXXXXX
Cookie: OBBasicAuth=fromDialog
Where XXXXXXXX is a base64 encoded string containing "login:password"
Thanks,
Franck -
How to insert document into xmltype column through an http post request with perl
Oracle 11.2.0.3
Windows server 2008r2
Apache tomcat 7.0
Oracle APEX 4.2.1
Oracle APEX Listener 2.0
I would like to insert a XML document into the database through an APEX restful web service. The POST into the web service in done with PERL. The following code will insert an empty record in a table with column of XMLType type.
Perl Code
use strict;
use warnings;
use LWP::UserAgent;
use HTTP:Headers;
my $headers = HTTP::Headers->new();
my $url = "http://host:port:apex/<application_workspace>/<restfull service module>/<uri template>/
my $sendthis = ('<?xml version="1.0" enconding="utf-8"?>
<students>
<row>
<name>Mark</name>
<age>30</age>
</row>
<./students>';)
$headers -> header('Content-Type' => 'text/xml; charset=utf-8');
my $request = HTTP:Request->new('POST', $url, $headers, $sendthis);
$request-> protocol('HTTP/1.1');
my $browser = LWP::UserAgent->new();
my $response = $browser->request($request);
my $gotthis= $response->content();
my $the_file_data = $response->content();
APEX restful service
Method: POST
Source type: PL/SQL
MIME Types allowed: blank
require secure access: none
source:
{declare
doc varchar2(32000);
begin
insert into table <column name>
values(doc);
commit;
end;
Table code
{ create table <tablename>
(column name XMLType>);
The above code will insert an empty column into the table.
Any ideas why?It's a really bad idea to assemble XML using strings and string concatenation in SQL or PL/SQL. First there is a 4K limit in SQL, and 32K limit in PL/SQL, which means you end up constructing the XML in chunks, adding uneccessary complications. 2nd you cannot confirm the XML is valid or well formed using external tools.
IMHO it makes much more sense to keep the XML content seperated from the SQL / PL/SQL code
When the XML can be stored a File System accessable from the database, The files can be loaded into the database using mechansims like BFILE.
In cases where the XML must be staged on a remote file system, the files can be loaded into the database using FTP or HTTP and in cases where this is not an option, SQLLDR.
-Mark -
Access Denied Error for Students with "Drop Box" or "Shared" Setting
Georgia State is having the same problem as described the previous threads
http://discussions.apple.com/thread.jspa?threadID=1868505&tstart=0 and http://discussions.apple.com/thread.jspa?threadID=1872710&tstart=0
Students see the "Upload and Manage File" link but get an access denied message when they click it. This happens if access for the student is set to either "Drop Box" or "Shared", but not "Edit" for that tab.
When I log in as a student to a course with a tab set to "Drop Box" access and right-click to get the URL for the "Upload and Manage" file link, it reads:
https://deimos.apple.com/WebObjects/Core.woa/EditFiles/gsu.edu.1856928078.018569 28090/1
The error message when run through Woolamaloo is:
The requested URL /WebObjects/Core.woa/Browse/gsu.edu.1/?credentials=Student%40urn%3Amace%3Agsu.e du%3Aclasses%3Atest01... was not found on this server.D:\java\p_java>set
classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib;D:\ja
a\jdk1.3.1_02\lib\set classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib\rt.jar
is probably better. :-/
where p_java is my java programs directory
jdk1.3.1_02 is the Java 2 SDK directory.
Problem
Whenever a java program is compiled, the very same
error of "Access Denied" is displayed. This can be
seen in the foll. examples.
Example 1:
D:\java\p_java>javac Statik.java
)Statik.java:3: error while writing Statik:
Statik.class (Access is denied
class Statik{
^
1 errorThe problem is when writing to the disk, not due to the classpath. Have you run out of space on the drive? Can you write to the drive in other programs? Try compiling the java file on your C: drive. If it compiles on C:, there's something wrong with your D: drive. :/
Bhav -
Access denied - http authentication
Hi all,
I have a java web service client that needs to connect to a .net web service. When I set up the client in Netbeans 6, the wizard asks to accept the certificate - which I do.
The .net web services provider gave me a username and password to access the web service, but when I typed it in, I got an error.
When I run the web service client, I get:
com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Access Denied
Where can I supply the authentication details for the client to access the server?
Thanks and regards,
BrendaCan someone PLEASE tell me how to perform HTTP authentication when connecting from a java webservice client to a .Net web service?
I have tried:
<code>
((BindingProvider)port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "94648137");
((BindingProvider)port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "Retail03");
</code>
but have had no luck. The web service is using LDAP authentication over HTTPS.
TIA
Brenda -
How to fix "access denied" in windows vista with Deskjet 3056A J611 Series
I am really struggling with getting the printer recognized in windows vista 32 bit. No matter what I try (including HPPSdr)
I keep getting "access denied" or windows cannot print?!
Does anyone have a solution to this?
HELP!I'm sorry, but the subject seems to have been cut off. What Printer are you using? How is the printer connected to the computer, USB, wireless, or Ethernet? Is the printer installed and when you use it you are getting this message, or are you getting this message during installation?
-------------How do I give Kudos? | How do I mark a post as Solved? -------------------------------------------------------- -
Can you make a HTTP GET request with JSC form element?
It seems the form element in JSC make a HTTP POST request by default, but is it possible to make a HTTP GET request by the form element in JSC?
(It is worth to mention here that HTTP GET request has its distinctive advantages like you can embed the parameters in a URL and bookmark it)
Thank you very much.Jim,
I am doing the sameway as you suggested to MISS_DUKE
But have you face any problems in doing so? In otherwords its the page rendering correctly?
On requesting the same page multiple times, Every time I get the page that was rendered for the first time.
To see the correct results, I need to close the browser and check it .
see my previous queries here
http://swforum.sun.com/jive/thread.jspa?threadID=54379&messageID=208223#208223
http://swforum.sun.com/jive/thread.jspa?threadID=56440&messageID=214302#214302
http://swforum.sun.com/jive/thread.jspa?threadID=56676&messageID=214987#214987
http://swforum.sun.com/jive/thread.jspa?threadID=56390&messageID=214139#214139
And I am still expecting the answer from experts. But nobody turn arround
Thanks,
Sudhakar -
Access denied when remotely trying with Get-NlbClusterNode
When I locally, on the SMTP Cluster run this command:
Get-NlbClusterNode
I get the output I need.
But if I try the same from a remote server (same network and domain) I get an:
[smtp-s001a]: PS C:\> Get-NlbClusterNode
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
+ CategoryInfo :
+ FullyQualifiedErrorId :
AccessDenied,Microsoft.NetworkLoadBalancingClusters.PowerShell.GetNlbClusterNode
Why is that? It is ONLY the "Get-NlbClusterNODE" command that gives me access is denied. "Get-NlbCluster" for an example, works just fine.
I am connecting as a Domain Administrator (which is a member of the Local Administrators Group on every node). Same account used remotely when I log on locally, where it works locally.
Any advice?
Thanks Horst MOSS 2007 Farm; MOSS 2010 Farm; TFS 2010; IIS 7.5I run this script now:
cls
Import-Module NetworkLoadbalancingClusters -ErrorAction Stop
Write-Host "Every thing works fine"
Get-NlbClusternode
Get-ChildItem \\zserver\c$
Output:
Every thing works fine
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
+ CategoryInfo
: PermissionDenied: (Microsoft.Netwo...tNlbClusterNode:GetNlbClusterNode) [Get-NlbClusterNode], Unaut
horizedAccessException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.NetworkLoadBalancingClusters.PowerShell.GetNlbClusterNode
+ PSComputerName : zserver
Access is denied
+ CategoryInfo
: PermissionDenied: (\\zserver\c$:String) [Get-ChildItem], UnauthorizedAccessException
+ FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
+ PSComputerName : zserver
Cannot find path '\\zserver\c$' because it does not exist.
+ CategoryInfo
: ObjectNotFound: (\\zserver\c$:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
+ PSComputerName : zserver
Thanks Horst MOSS 2007 Farm; MOSS 2010 Farm; TFS 2010; IIS 7.5 -
POST http(s) request with xml content in Power Query
I have a POST http request which works good in HttpRequester (Firefox plugin). I know that it is possible to call POST request in Power Query but cannot find working solution. Here is the original request:
POST https://svcs.ebay.com/FeedbackService
X-EBAY-SOA-OPERATION-NAME: createDSRSummaryByPeriod
X-EBAY-SOA-SERVICE-VERSION: 1.0.0
X-EBAY-SOA-SERVICE-NAME: FeedbackService
X-EBAY-SOA-APP-NAME: ***
X-EBAY-SOA-SITEID: 0
X-EBAY-SOA-SECURITY-TOKEN: ***
Content-Type: text/xml
<?xml version="1.0" encoding="UTF-8"?>
<createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
<dateRange>
<dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
<dateTo>2013-12-31T23:59:59.999Z</dateTo>
</dateRange>
<dateRangeEventType>ListingDate</dateRangeEventType>
</createDSRSummaryByPeriodRequest>
Power Query WebContent() function is capable to handle headers and xml content, however, there is no any documentation about its syntax.
In Power Query I use this request:
= Xml.Tables(Web.Contents(“https://svcs.ebay.com/FeedbackService”,
[Headers =[" X-EBAY-SOA-OPERATION-NAME"= "createDSRSummaryByPeriod",
"X-EBAY-SOA-SERVICE-VERSION="1.0.0",
"X-EBAY-SOA-SERVICE-NAME"="FeedbackService",
"X-EBAY-SOA-APP-NAME"="***","X-EBAY-SOA-SITEID"="0",
"X-EBAY-SOA-SECURITY-TOKEN"="***"],
Content=["<?xml version="1.0" encoding="UTF-8"?>
<createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
<dateRange>
<dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
<dateTo>2013-12-31T23:59:59.999Z</dateTo>
</dateRange>
<dateRangeEventType>ListingDate</dateRangeEventType>
</createDSRSummaryByPeriodRequest>"]]))
However, it returns "Expression.SyntaxError: Invalid identifier." Maybe anyone has at least examples of analogous working syntax?Task is solved. First of all I updated PowerQuery since previous version does not support Headers option for Web.Contents function. Here is a correct syntax:
=Xml.Document(Web.Contents("https://api.ebay.com/ws/api.dll",[Headers=[#"X-EBAY-API-COMPATIBILITY-LEVEL"= "871",#"X-EBAY-API-SITEID"="0",#"X-EBAY-API-CALL-NAME"="GetMyeBaySelling",#"CONTENT-TYPE"="text/xml"], Content=Text.ToBinary("<?xml version="&Character.FromNumber(34)&"1.0"&Character.FromNumber(34)&" encoding="&Character.FromNumber(34)&"utf-8"&Character.FromNumber(34)&"?>
<GetMyeBaySellingRequest xmlns="&Character.FromNumber(34)&"urn:ebay:apis:eBLBaseComponents"&Character.FromNumber(34)&">
<RequesterCredentials><eBayAuthToken>***</eBayAuthToken></RequesterCredentials><SoldList><DurationInDays>60</DurationInDays><Pagination><EntriesPerPage>100</EntriesPerPage><PageNumber>1</PageNumber></Pagination></SoldList></GetMyeBaySellingRequest>")])) -
Access denied errors while working with RoboHelp Explorer
We get strange errors sometimes when we're working with
RoboHelp Explorer. We recently upgraded to RoboHelp 6.0, and since
then, these errors started appearing.
When compiling a project, or saving, or even just browsing to
a new section in the existing Word files (using the RoboHelp
Explorer), this message appears "Saving could not be completed
because of a sharing violation error" (roughly translated from the
Swedish message "Det gick inte att slutföra Spara på
grund av ett filtillståndsfel (c:\...\Mallar\Robohelp.dot)").
When we log out and log in again, it works fine for a while,
but then the message reappears after a while.
Any ideas? The user in question is running this from a
Terminal Services server.Welcome to the forum.
RH is designed to be installed on and run from the user's PC.
Indeed the licence requires that it is installed with the user's
logon and that the user has admin rights. See the topic about
installation on my site.
Ordinarily I would say the problem was to do with running it
from a Terminal Services Server as presumably those requirements
had not been met but it looks like you had it running OK before.
Thus I am a bit puzzled. Maybe something I have said will remind of
how you installed it before?
Also projects must normally be run from the user's local
drive. Network projects often give problems as RH was not designed
to work that way.
Does the OS language need to be set to English? Not sure if
that would be an issue.
Sorry I cannot give you anything specific and hope you are
able to resolve it. -
HTTP PUT Request for File Uploads is returning a response header with content-length = 0
After upgrading from CF9 to Coldfusion 10, I'm running into an odd issue, with `cURL` calls to a webservice that used to work.
We are using an HTTP PUT Request with multipart="no" so that the request header content is the file itself, now the data is being sent properly in the content but it has a ~8k limit. This is fine for smaller files but some files are 60kb etc.
Errors are odd too, near the 8KB limit we get a bad gateway error 502, and above that the webpage errors with a connection reset.
It works fine with multipart="yes", but in a PUT request the file's data isn't even sent since it's looking for `httpparam formField` , the content-length from the target page's Headers show a content-length of 0 which causes `cURL` to fail with an error (56): http://curl.haxx.se/docs/manpage.html
Here's example code to reproduce:
<cfset sFilename = "C:\999\test4.txt">
<cffile action="readBinary" file="#sFilename#" variable="fileRead">
<cfset oFileInfo = GetFileInfo("#sFilename#")>
<cfhttp url="localhost/Clarence/diff_elt_test_output.cfm"
method="PUT"
username="******"
password="******"
multipart="yes"
result="oHttp">
<cfhttpparam type="header" name="Content-Type" value="text/plain" />
<cfhttpparam type="header" name="Content-Length" value="#oFileInfo.Size#" />
<cfhttpparam type="body" value="#fileRead#"/>
</cfhttp>
<cfdump var="#oHttp#">
Dumping the response via GetHttpRequestData() shows that the header's content-length = 0 and content is blank.
Whereas POST requests work fine, cURL has a -F form option which is our fallback but a solution to this would be great.
Here's what I've tried:
1. Changing CF post request limit sizes (64MB+)
2. Changing IIS config web/webserver http runtime and security.request filtering request limits to much higher values
3. AJP Connector between IIS and Tomcat has a default 8KB header limit, I changed that to 64k on both sides, still nothing
Also am I missing something fundamental here? I thought at the network layer a packet is split up and rejoined, so large content in a http request body should work, what's wrong with Coldfusion 10?I am familiar with java.net package and know how to
Read and Write Streams.
However, what I do not know is what string
represntation of PUT or POST resquests is?It's HttpURLConnection.setRequestMethod("PUT") or ("POST").
Also you have to setDoOutput(true).
Then you set the content type, possibly encode the input, set the content length, and write the file data to the stream.
Using a Jakarta package may be easier, however. -
Deployed new Windows 2008 R2 domain controller, added print and document controll. Added several network printers on R2 server. We currently have mostly Vista biz clients but half a dozen W7Pro clients also. The Vista clients connect to these new network
printers, no problem but none of the W7 clients will connect. I select the printer from the drop down directory list and select to load the drivers, the system starts loading drivers and then right before it finishes it stops with error message, "Windows cannot
connect to the printer. Access denied. Again, this happens only with the W7 clients on our domain, Vista works fine.By default, the security settings for Windows 7 and Server 2008 R2 allow users who are not members of the local
Administrators group to install only trustworthy printer drivers, such as those provided with Windows or in digitally signed printer-driver packages. You may want to install printer-driver packages on the print server
or in the clients. More details can be found this page: Cannot
connect to printer, Access denied -
http://www.chicagotech.net/server/print3.htm
Bob Lin, MS-MVP Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.howtonetworking.com
Maybe you are looking for
-
How to Display SVG Embedded in HTTService? (PHP)
Hi, I don't know if anyone on this list has tried to do this. I have a few files that I have generated SVG with PHP, and I am trying to load them into my Flex app. Looks like that the XMLList that I tried to convert from XML was generated correctly,
-
We have excel spread sheet. We wanted to load data from excel spread sheet to Oracle via external table. I saved my file into .txt format. No I need to create external table in oracle DB. my question is as follows: Do I need to define exact lenght of
-
Hello I am doing a open hub and sending data to a file. Now in the file i want to maitain the header line(description of field) for the fields i am sending to the file. How can i do that. Please can someone explain me a little bit in brief. thanks
-
[solved] Html5 video, Lighttpd and Firefox
Hi, I installed Lighttpd because we need a simple httpd for sahring files and static content. I want to use the new html5 <video> tag with ogg+theora video (see http://camendesign.com/code/video_for_e - /test.html ). I cannot make it work through Lig
-
Quicktime audio won't play in Firefox
Hi, my name is Ryan Janus. I'm designing a web site, and I'm trying to embed video and audio using Quicktime and the <embed> tag. Video: no problem in any browser, including Firefox. Audio: no problem in IE or Opera, but for some reason Firefox is mi