Error Bad Request opening Related Links
Hi everyone, I am having the following error.
I created an I-view which points to an html page that is stored in KM.
I then put this i-view as a related link to a page on a workset.
When I click on the link on the Related Links i-view on DEV system it works ok, the popup with the html page is displayed correctly.
But, When I click on the link on the Related Links i-view on PRD system in the popup it shows a HTTP 400 - Bad Request Error, if I then refresh the page (the popup page) then the html is shown correctly.
I checked the URLs that are open on DEV and PRD and I found out that the behavior is different in the two systems.
For DEV System the URL opened is (This is the one that works correctly):
http://ecpepdev.red.ecopetrol.com.co:50600/irj/servlet/prt/portal/prteventname/navigate/prtroot/pcd!3aportal_content!2fco.com.ecopetrol.principal_ecopetrol!2fco.com.ecopetrol.Desktops!2fEcopetrol!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fco.com.ecopetrol.principal_ecopetrol%2Fco.com.ecopetrol.principal_roles%2Fco.com.ecopetrol.ess_ecp%2Fco.com.ecopetrol.wsPa_0%2Fpersinfo%2Fcom.sap.pct.ess.persinfo.pz03_lnk_page_3%2FrelatedItems%2FRelatedLinks%2Fco.com.ecopetrol.Informacion_Bancos
For PRD System the URL opened is (This is the one that doesn't work):
http://ecpep6prd.red.ecopetrol.com.co:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fco.com.ecopetrol.principal_ecopetrol!2fco.com.ecopetrol.principal_roles!2fco.com.ecopetrol.rolEssEcpAutoservicio!2fco.com.ecopetrol.wsPa_0!2fpersinfo!2fcom.sap.pct.ess.persinfo.pz03_lnk_page_3!2frelatedItems!2fRelatedLinks!2fco.com.ecopetrol.Informacion_Bancos
As you can see on DEV System it opens up as a sort of event called Navigate, while on the PRD System it opens up as a redirection to the content.
Can anyone help me on how to solve this issue?
Or does anyone knows where is the configuration to decide how the related link is opened? (Navigate event or redirection).
Best regards,
Juan Daniel Riveros R.
Anyone please help.
Thanks,
Orton
Similar Messages
-
KDE Printer Manager fails with "client-error-bad-request"
I'm having some trouble with printing on my system. The KDE printer manager shows "client-error-bad-request" and no other information. When I run the KCM from the command line, I also get "kcmshell(17286) KCupsRequest::serverError: status unrecognised: 1024" on the console. I wasn't able to find any useful information on this issue on google or these forums; not even what the 1024 status code means. It seems to me that this may be a bug in the kcm_printer_manager module, but I'd like to rule out other possibilities first. Unfortunately, I don't know what to try from here. I'll provide as much potentially relevant information as I can think of below.
Changes since last successful print job:
Multiple updates to KDE packages
Update to cups that changed systemd unit file names.
Stopped and disbled old units
daemon-reload
Enable and start new units
Other updates to cups since then, if I recall correctly.
Packages and versions:
kdeutils-print-manager 4.14.3-1 (owns kcm_printer_manager module for kcmshell4)
kdebase-runtime 4.14.3-1 (owns kcmshell4 binary)
cups 2.0.1-1
libcups 2.0.1-1
systemd 218-1
linux 3.17.6-1
Let me know if any other information might be helpful.Anyone please help.
Thanks,
Orton -
Hello All,
In our development system, we are able to perform all the transactions normally(SAP level) and there is no performance issues..
We have checked from OS level in work directory file dev_disp..
We are getting below error.
Can you please suggest us on this..............
=========================================================
ERROR => DpRqCheck: T72 in stat TM_SLOT_FREE [dpxxdisp.c 5805]
***LOG Q0G=> DpRqBadHandle, bad_req ( DIA) [dpxxdisp.c 4621]
ERROR => BAD REQUEST - Reason: DpRqCheck failed (line 5195): [dpxxdisp.c 4623]
-IN-- sender_id DISPATCHER tid 72 wp_ca_blk -1 wp_id -1
-IN-- action SEND_TO_WP uid 8012 appc_ca_blk -1 type DIA
-IN-- new_stat NO_CHANGE mode 0 len -1 rq_id 53650
-IN-- req_info MS_ERROR
ERROR => DpRqCheck: T73 in stat TM_SLOT_FREE [dpxxdisp.c 5805]
***LOG Q0G=> DpRqBadHandle, bad_req ( DIA) [dpxxdisp.c 4621]
ERROR => BAD REQUEST - Reason: DpRqCheck failed (line 5195): [dpxxdisp.c 4623]
-IN-- sender_id DISPATCHER tid 73 wp_ca_blk -1 wp_id -1
-IN-- action SEND_TO_WP uid 8013 appc_ca_blk -1 type DIA
-IN-- new_stat NO_CHANGE mode 0 len -1 rq_id 53651
-IN-- req_info MS_ERROR
ERROR => DpRqCheck: T74 in stat TM_SLOT_FREE [dpxxdisp.c 5805]
***LOG Q0G=> DpRqBadHandle, bad_req ( DIA) [dpxxdisp.c 4621]
ERROR => BAD REQUEST - Reason: DpRqCheck failed (line 5195): [dpxxdisp.c 4623]
-IN-- sender_id DISPATCHER tid 74 wp_ca_blk -1 wp_id -1
-IN-- action SEND_TO_WP uid 8014 appc_ca_blk -1 type DIA
-IN-- new_stat NO_CHANGE mode 0 len -1 rq_id 53652
-IN-- req_info MS_ERROR
ERROR => DpRqCheck: T77 in stat TM_SLOT_FREE [dpxxdisp.c 5805]
***LOG Q0G=> DpRqBadHandle, bad_req ( DIA) [dpxxdisp.c 4621]
ERROR => BAD REQUEST - Reason: DpRqCheck failed (line 5195): [dpxxdisp.c 4623]
-IN-- sender_id DISPATCHER tid 77 wp_ca_blk -1 wp_id -1
-IN-- action SEND_TO_WP uid 8019 appc_ca_blk -1 type DIA
-IN-- new_stat NO_CHANGE mode 0 len -1 rq_id 53653
-IN-- req_info MS_ERROR
Wed Apr 7 08:55:32 2010
***LOG Q0K=> DpMsAttach, mscon ( ussapdir00) [dpxxdisp.c 10127]
Wed Apr 7 08:55:33 2010
use SAPLOCALHOST=<ussapdir00> as internal hostname
NiPAccept: accept failed (socket=7;errno=72)
***LOG Q0I=> NiPRead: recv (73: Connection reset by peer) [niuxi.c 928]
SoftCancel request for T45 U8133 M0 received from REMOTE_TERMINAL
Network error of client T46, NiBufReceive (-6: NIECONN_BROKEN), dp_tm_status=3
Client address of T46 is 10.228.250.65(10.228.250.65)
***LOG Q04=> DpRTmPrep, NiBufReceive (8135 MKK27890 46 BREWL07D4359) [dpxxdisp.c 9830]
RM-T46, U8135, 620 MKK27890, BREWL07D43598, 08:43:19, M0, W4, , 2/0
Network error of client T45, NiBufReceive (-6: NIECONN_BROKEN), dp_tm_status=3
Client address of T45 is 10.228.250.65(10.228.250.65)
***LOG Q04=> DpRTmPrep, NiBufReceive (8133 RR606033 45 BREWL07D4359) [dpxxdisp.c 9830]
RM-T45, U8133, 600 RR606033, BREWL07D43598, 08:38:22, M0, W0, SPRO, 2/3
Release check o.K.
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
MBUF state ACTIVE
Wed Apr 7 08:55:39 2010
ERROR => DpRqCheck: T45 in stat TM_SLOT_FREE [dpxxdisp.c 5805]
***LOG Q0G=> DpRqBadHandle, bad_req ( DIA) [dpxxdisp.c 4621]
ERROR => BAD REQUEST - Reason: DpRqCheck failed (line 5195): [dpxxdisp.c 4623]
-IN-- sender_id DISPATCHER tid 45 wp_ca_blk -1 wp_id -1
-IN-- action SEND_TO_WP uid 8133 appc_ca_blk -1 type DIA
-IN-- new_stat NO_CHANGE mode 0 len -1 rq_id 53678
-IN-- req_info LOGOFF CANCELMODE
Wed Apr 7 08:55:44 2010
ERROR => DpRqCheck: T46 in stat TM_SLOT_FREE [dpxxdisp.c 5805]
***LOG Q0G=> DpRqBadHandle, bad_req ( DIA) [dpxxdisp.c 4621]
ERROR => BAD REQUEST - Reason: DpRqCheck failed (line 5195): [dpxxdisp.c 4623]
-IN-- sender_id DISPATCHER tid 46 wp_ca_blk -1 wp_id -1
-IN-- action SEND_TO_WP uid 8135 appc_ca_blk -1 type DIA
-IN-- new_stat NO_CHANGE mode 0 len -1 rq_id 53676
-IN-- req_info LOGOFF CANCELMODE
======================================================================
Thanks in advance..
Best Regards,
KiranHi Kiran,
It's not a problem or error, it's just a message and hence can be ignored. However you can check out SAP note 1111154 once, it will fix the issue probably if it's happening due to HTTP problem. Else you can very well ignore it.
Regards
Sourabh Majumdar -
When I sign into Methodintegration.com my data base I can get in ok. When I sign out I get the following error: I am getting an error Bad Request Request too long HTTP Error 400. The size of the request headers is too long. If I close Fire Fox and go back in it will work one time and then I get the same error message.
That is usually a problem with corrupted cookies.
Clear the cache and the cookies from sites that cause problems.
* "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
* "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies" -
I cannot update 2 changes to portfolio, get error bad request error 400
I hit edit portfolio and I made a change to the number of share and to cost price per share. I hit enter and get message Bad Request Error 400
Can you make the changes while you are in Private Browsing mode?
In Private Browsing mode any cookies that you have from regular are not accessible.
*https://support.mozilla.org/kb/Private+Browsing
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode -
I downloaded the latest version of Firefox 8.0.1. I have an Intel imac with os 10.6.8. I can log onto the Yahoo website, but not my e-mail, it works fine in Safari but not with FF? I get a message in the tab that reads"Bad Request", never seen this before, has anyone else?
That issue can be caused by corrupted cookies.
*https://support.mozilla.com/kb/Cannot+log+in+to+websites
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox > Preferences > Privacy > Cookies: "Show Cookies" -
I've found an error in the italian translation file f4000_it.sql. At the 1137413th row is needed a point after *&SESSION.* in fact the original version is:
c1:=c1||'<a href="javascript:popUp2(''f?p=4000:411:&SESSION::::P411_CALLING_FIELD:#CURRENT_ITEM_NAME#'',320,400);" tabindex="999" title="Scegli colonna" class="itemlink">[Insert column value]</a>';
I've modified in:
c1:=c1||'<a href="javascript:popUp2(''f?p=4000:411:&SESSION.::::P411_CALLING_FIELD:#CURRENT_ITEM_NAME#'',320,400);" tabindex="999" title="Scegli colonna" class="itemlink">[Insert column value]</a>';
Now I can show in Column Formatting correctly when I search fields in Insert column valueHi,
Thank you for bringing this issue to our attention. Bug 9888444 has been logged to track this issue. Please note that this issue impacts users running in French, Italian, Japanese and Korean. When you edit a Classic Report column in the Application Builder, the Column Formatting region holds an item "HTML Expression" with an associated shortcut [Insert column value]. When running in French, Italian, Japanese or Korean, when the user clicks on the shortcut link, the popup displays an error "Bad Request". The popup works for all other languages.
We do not recommend that users modify the APEX internal application files. Instead, you can workaround this issue by directly entering column values into the "HTML Expression" text area in the Column Formatting region on the Column Attributes page, similar to the following:
*#EMPNO#*
where EMPNO is a column on your report.
Regards,
Hilary -
Since I upgraded my firefox..I get this box most of the time when I click on a link to go to another page...
Java Script
Exc in ev handl: Error: Bad NPObject as private data! Then I have to click ok to get the page to open.That issue can be caused by the McAfee Site Advisor extension
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode -
Sorry, Bad Request.
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Cookie: B=75kpq496lk13o&b=4&d=sCtogappYEIRcz6KBGzeoYZ9MqTV.a4yAp6fAQ--&s=ka&i=KBG0.9m3_RKQtWi41uCH; CH=Ahs0ZxveIG43DDRlM2sJzTTiDVorThat issue can be caused by corrupted cookies.
*https://support.mozilla.com/kb/Cannot+log+in+to+websites
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies" -
Still getting this Internal error: 400 bad request. (115000).
I am still getting this Internal error: 400 bad request. (115000). I read that it was supposed to be fixed in Muse 3. I am using forms with long labels. Please help.
Thanks.
Bill MurphyThanks but his is how I solved my issue. I added a link in the Label in its own text box to look like a button. This is because I could not add a link in a label omits own. This is a nice solution because the linked info is opened in its own page so when the use closes that page there form is not lost and they can continue to the next form field. A work around that made my project look better.
If you can tell me how to add a close button or link on the info pages that would help so the user can see it right off and not have to use the browser to close the newly opened window.
Thanks for getting back to me. I would send you the muse file to test but I copied over it making this new version.
Bill Murphy
(647) 966-9325
[email protected]
www.purplealien.net
Communication is everything; without it we have nothing. -
Hi
i have a code of url show.It is working but when i open some link then it's show Bad Request. See when i open www.google.com then it show but when i click some google link like "photo" then it's show error.
I am useing these syntex
if (url.indexOf(":/") < 0)
url = "http://" + url;
there is any error.My prot is 8080.
Plz help meM_baba wrote:
thxs for reply
what you need for help...You mean source code.......ok if you need then i give you..Relevant source code yes. Or maybe an exact error message. Or maybe what the URL you are constructing is/contains and how you are constructing it. -
Hello All , Request your help on the below issue ,
We have a single server farm SP 2013 where workflow was working as expected but its broken now , Not sure
what caused this. Workflow manager is installed alongside Service Bus. Workflow Manager client is installed on the same SP server.
We are able to create and publish the workflows from SP Designer without errors but when we start the workflow from SharePoint list we get an error " Sorry something went wrong". We have tried creating new workflows but the same problem.
We receive the below error in event viewer.
Error processing management request. Method: PUT, RequestUri: http://server URL:12291/$Workflows/89c767d2-82d2-4bd9-8e5e-dcace81d844f, Error: System.ArgumentException: The remote server returned an error: (400) Bad Request. ---> System.Net.WebException:
The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.EndGetResponse(GetAsyncResult`1 thisPtr, IAsyncResult ar)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of inner exception stack trace ---
Server stack trace:
Exception rethrown at [0]:
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass6a.<EndCreateOrUpdateWorkflow>b__69()
at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
ULS logs give below error
Error 1 - Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: Servername.
Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManager.Publish(WorkflowDescription description, Boolean terminateActiveInstances)
at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishWorkflow(String serviceGroupName, WorkflowDescription workflow)
at Microsoft.SharePoint.WorkflowServices.WorkflowProxy.CreateDefinitionSubscription(String subscriptionName, String eventSource, List`1 eventTypes, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext) StackTrace:
at Microsoft.Office.Server.Native.dll: (sig=35339f9c-8871-4ef1-9118-9c1bd0cb6598|2|microsoft.office.server.native.pdb, offset=131CE)
at Microsoft.Office.Server.Native.dll: (offset=21B4D)
Error 2 - Error publishing workflow subscription (republish or retry publish) information: Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received
from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId:
ServerName. Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500)
Internal Server Error.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) -
-- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManager.Publish(WorkflowDescription description, Boolean terminateActiveInstances)
at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishWorkflow(String serviceGroupName, WorkflowDescription workflow)
at Microsoft.SharePoint.WorkflowServices.WorkflowProxy.CreateDefinitionSubscription(String subscriptionName, String eventSource, List`1 eventTypes, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext)
at Microsoft.SharePoint.WorkflowServices.FabricSubscriptionService.<>c__DisplayClass1.<CreateDefinitionSubscription>b__0()
at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)
at Microsoft.SharePoint.WorkflowServices.FabricSubscriptionService.CreateDefinitionSubscription(String subscriptionName, Guid eventSourceId, String eventSource, List`1 eventNames, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext)
at Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionStorageEventReceiver.ItemUpdating(SPItemEventProperties properties)
Error3 - Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: ServerName.
Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-182846760-3036401646-508972453-351846, AppPrincipalName= ,bstrUrl=http://sharepointsite ,bstrListName={48A21758-9123-48F0-9BDE-9EB632B07BC6} ,bAdd=False ,bSystemUpdate=False ,bPreserveItemVersion=False
,bPreserveItemUIVersion=False ,bUpdateNoVersion=False ,pbstrNewDocId=00000000-0000-0000-0000-000000000000 ,bHasNewDocId=False ,bstrVersion=16 ,bCheckOut=False ,bCheckin=False ,bUnRestrictedUpdateInProgress=True ,bMigration=False ,bPublish=False ,bstrFileName=<null>
Any help appreciated. Thanks in advance.Hi,
As I understand, you encountered the issue when you published a workflow on SharePoint 2013 workflow platform.
I wonder does it work well before when using 2013 workflow platform? If it works before, did you install any updates or change the configuration to the workflow related settings?
If this is the first time after you installed workflow manager 2013, then I’d recommend you try re-registering workflow service per the link below and post the result:
http://technet.microsoft.com/en-us/library/jj663115(v=office.15).aspx
http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx
From the message you accessed workflow host uri, please make sure the account to wfsetup and wfservice account are both in wfadmins group.
http://blogs.msdn.com/b/briangre/archive/2013/02/20/least-privilege-configuration-for-windows-azure-workflow-with-sharepoint-2013.aspx
Regards,
Rebecca Tu
TechNet Community Support -
Hi there,
I am building a large application in LabVIEW 2013. I use a Web Service Server in LabVIEW to communicate to other systems. All in all the new Web Service functions in LV2013 work pretty fine and Web Services are easy to implement. In case any Web Service is unknown or parameters (in the URL) are wrong, it returnsto the client a default error message (like: "Access Error: 404 -- Not Found" or "Access Error: 400 -- Bad Request"). Is there a possibility to change this default messages and its format (all answers in my application are in JSON, but errors appear in HTML)? I really need this feature.
I spent a lot of time in the internet for finding an answer - but it seems that I am the first who need this feature. Thank you very much for any ideas.
Attachments:
AnswerOk.PNG 4 KB
BadRequest.PNG 6 KBHi Andy,
I found a workaround: I added some additional resources using a link "http://localhost:8079/"NAME"/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x/:x" for each type (PUT, GET, POST, DELETE) where I handle the error message with the "Set HTTP Response Code VI"
Attachments:
ws_error.PNG 9 KB -
Content-Type is net being set in HTTP header. Server returns 400 Bad Request error.
Hi,
I am trying to access an XML WebService. This service requires the content type of the request to be set to "text/xml". As you can see in the source code, I am setting the req.ContentType property to "text/xml".
However, this content type seems not to be added to the HTTP headers. The server returns a 400 Bad Request error as can be seen in the log.
I've attached a System.Net.trace log and it states:
[Public Key]
Algorithm: RSA
Length: 2048
Key Blob: 30 82 01 0a 02 82 01 01 00 bc 09 30 8a 1e 03 4d 7a ea 16 d3 a8 5e d8 5b 00 c4 8a c5 9f 26 bd 7d d6 cb 8b d0 db bd 93 2d 2b 3b 84 f6 20 79 83 34 67 51 37 21 ea 56 5e 18 d8 a3 db 72 43 0e 14 77 e2 64 cb 07 b6 2a 81 c7 f5 16 dd 19 c7 d9 68 0b 3a 81 5c f0 05 c9 ed 2b 37 00 31 41 37 8b 3a 73 4a 4d ab d7 d8 87 79 35 82 01 97 e3 3c be bb 84 e5 94 bb 87 52 e3 9f b5 fb 3e 33 38 c3 eb 73 42 ee ba 1e c5 4a 33 18 a1 0d 8a d2 10 a8 c5 3....
System.Net Information: 0 : [26780] SecureChannel#31884011 - Remote certificate was verified as valid by the user.
System.Net Information: 0 : [26780] ConnectStream#26966483 - Sending headers
API-VERSION: 1
Host: test.myhost.com
Content-Length: 329
Expect: 100-continue
Connection: Keep-Alive
System.Net Information: 0 : [26780] Connection#3888474 - Received status line: Version=1.1, StatusCode=100, StatusDescription=Continue.
System.Net Information: 0 : [26780] Connection#3888474 - Received headers
System.Net Information: 0 : [26780] Connection#3888474 - Received status line: Version=1.1, StatusCode=400, StatusDescription=Bad Request.
System.Net Information: 0 : [26780] Connection#3888474 - Received headers
0: Content-type
1: text/xml
X-Debug-Token: a810dc
X-Debug-Token-Link: /service/_profiler/a810dc
Connection: keep-alive
Content-Length: 3440
Cache-Control: no-cache
Content-Type: text/html; charset=UTF-8
Date: Tue, 14 Apr 2015 11:07:11 GMT
Server: Apache
...and here's the implementation of the web request:
private void ButtonSend_Click(object sender, EventArgs e)
WebHeaderCollection whCol = new WebHeaderCollection();
whCol.Add("API-VERSION", "1");
//whCol.Add("Content-Type", "text/xml; charset=UTF-8"); <-- That doesn't work in .NET. Content-Type has to be set on the ContentType-Property
string msg = _textBoxReq.Text;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(_textBoxURL.Text);
byte[] data = Encoding.UTF8.GetBytes(msg);
req.Method = "POST";
req.ContentType = "text/xml; charset=UTF-8";
req.ContentLength = data.Length;
req.Headers = whCol;
req.GetRequestStream().Write(data, 0, data.Length);
string xml = "";
try
using (HttpWebResponse resp = (HttpWebResponse)req.GetResponse())
using (System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream()))
xml = sr.ReadToEnd().Trim();
catch (WebException we)
using (System.IO.StreamReader sr = new System.IO.StreamReader(we.Response.GetResponseStream()))
xml = sr.ReadToEnd().Trim();
_textBoxRes.Text = xml;
Can anyone help?
Thanks,
MiRiHi _MiRichter,
Well Done!
Thank you very much for sharing the solution to us.
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Opening a pdf file in a relative link / local
Maybe this sounds simple.
But I get used to AS2 code to open a pdf file like the code below:
getURL("pdfDocuments/pdfname.pdf","_blank")
As I search uncle Google I'm stuck to this as equivalent to getURL in AS2.
btn.addEventListener(MouseEvent.CLICK, btnClick);
function btnClick(e:MouseEvent):void {
navigateToURL( new URLRequest("pdfDocuments/pdfname.pdf"), "_blank");
But still it did'nt work.
Before in AS2 getURL working on mailto, pdf on a relative link and a typical url's.
But as to AS3 navigateToURL function only works on mailto and typical url.
Any tweaks to the code above, to get it to work? will much appreciated.
Thanks,There's numerous examples if you google "call javascript from actionscript".
Here's 1 that sums it up pretty simply, just import flash.external.ExternalInterface; then use it statically via its call() method to call javascript. Then in the javascript simply do what you want.
http://www.hardcode.nl/archives_155/article_334-call-javascript-function-from-as3-and-vice versa.htm
e.g. ACTIONSCRIPT:
import flash.external.ExternalInterface; // call javascript function passing to load relative URL "pdfs/some.pdf"ExternalInterface.call("loadPDF","pdfs/some.pdf");
e.g. HTML
<html><head><script type="text/javascript">// <!-- // function with the called namefunction loadPDF(pdfName){ // open a new window (or tab) to the PDF requested from AS window.open(pdfName,"_blank"); } // --></script><body> </body></html>
Nothing really much to it.
Here's a reference to window.open() if you want to customize the opened window:
http://www.w3schools.com/jsref/met_win_open.asp
Maybe you are looking for
-
Adobe Photoshop CC 2014 Help TAB Photoshop Online Help - LINK IS BROKEN
My Adobe Updater installed Photoshop CC 2014, and all seemed well, until I attempted to get online help via: Help TAB > Photoshop Online Help This LINK is apparently BROKEN! Here is the resulting error on Firefox (version 32.0): XML Parsing Error: un
-
XI generates own IDOC numbers in outbound IDOC
Hello, The scenario we have is R/3 --> XI --> 3'rd party (via IDOC rcvr adapter) AND then SYSTAT back from the 3'rd party to R/3 via XI. Example: R/3 sends an IDOC with IDOC number 100. XI (by default) submits this IDOC to the 3'rd party system with
-
Abap issues....its urgent
can anyone please enlist what are the problems at which abap consultant should enquire when going for a company visit to check the problems over there. Reward points will surely be given on urgent basis. Message was edited by: Ameet Jassani
-
Crystal Reports Running Extremly Slow
Hi All, I'm new here and have been using Crystal reports XI Release 2 for a little while. However this has always run slow for me. The problem is not running the report to get results from the server the problem is editing the report. Amending text b
-
ADF DVT: Stack Bar Graph unable to display all Bar.
Hi Experts, I'm currently having a problem displaying bar graphs in my Use Case. There are unavoidable instance that at some point of the information provided, there may be part that contain a very huge data. Below is my sample code. In the example c