Http Requsest Methods ... in JEditorPane?
How would I alter the http request method that JEditor(and consequently JText)Pane uses in its setPage() method?
I cannot override setPage() to accomplish this, because setPage uses several variables with private access in JEditorPane and no get/set methods.
I cannot override getStream (Which JEditorPane uses in SetPage), because it uses a variable which has private access in JEditorPane (pageProperties) and for which there are not getting/setting methods.
I cannot extend URL and override openConnection; URL is final.
Any ideas?
Message was edited by:
Gengar003
This was a part of the old package.
Similar Messages
-
How to call HTTP Post Method URL in SOA 10g
Hi,
I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how ?
Thanks Always
NYou will need to write the WSDL by yourself. Just make sure you have the end point detail, operation name(if required) and the schema available to write the WSDL.
-
How to call HTTP POST method in SOA 10g
Hi,
I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how. ?
Thanks Always
NLook at 10g samples under tutorials/702.bindings.
-
Retrieving image using HTTP GET method?
I want to send a image to a client browser. My servlet's HTML response to the client browser contains the <img src="..."> tag. The client browser uses the HTTP GET method to call my servlet's DoGet method, and I must transfer the desired image to the client browser in this DoGet method at servlet. Now, the problem is that, what should be the source URL in the image(img) tag that is present in my servlet response to client?
For eg: the img tag should be like this
<img src="http://<hostname>:<portname>/<servletname>/...?[var1=value1]">
Now at the ellipsis that you see in the above source URI, I want to write the type of image file (something.jpg) ,so the browser knows what kind of image file it is.
To sum it up...how to get the image using DoGet method and <img src="...">
Regards,
AmitTo give you a better idea on what's happening, read the RFC:
(HTTP/1.0) http://ftp.ics.uci.edu/pub/ietf/http/rfc1945.html
(HTTP/1.1 - compressed data)
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
If you for example execute the command by telnetting to port 80 on a server:
GET http://somewhere.com/some.jpg HTTP/1.0<cr>
<cr>You will get this header:
Trying 217.22.64.73...
Connected to xxx.xxx.xxx
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Fri, 01 Aug 2003 12:36:30 GMT
Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2510
Last-Modified: Tue, 15 Jul 2003 03:11:52 GMT
ETag: "268de8-2fc4-3f1370f8"
Accept-Ranges: bytes
Content-Length: 12228
Connection: close
Content-Type: image/jpegWatch the last part, that's what the setContentType does, normally the content-type defaults to text/html in a webserver.
A webserver usually maintains a list of file extensions by which it will determine the correct MIME type to emit, when a resource is retrieved.
The browser reads the header, and decides what to do with it, in combination with (X)HTML markup.
Greets. -
HTTP Connection - ADAPTER.HTTP_EXCEPTION - HTTP 405 Method not allowed
Hello,
we are trying to connect to a server using http. However so far the connection does not work.
I tried both the SOAP receiver (without SOAP envelope) and the plain HTTP receiver.
1. SOAP Receiver: ADAPTER.HTTP`_EXCEPTION - HTTP 405 Method Not Allowed
2. HTTP Receiver: HTTP Client code 400 reason ICM_HTTP_CONNECTION_FAILED
Does anyone has an idea what the problem possibliy could be?`
Thank you!Hello Folk,
Check it once this blog this will be similar to your requirment
HTTP 404 not found
Regards,
Ravi. -
Missing option to change HTTP request method on iView level
Dear all,
I am trying to implement an iView using the ApplicationIntegrator. Unfortunately I am getting the error message "Request Method POST is not allowed". I found this nice weblog where you have the option on the iView level to change the HTTP request method to "GET". Unfortunately I do not have this parameter.
I am on EP6.0 SP 9.
I really appreciate your help and will reward points.
Thanks,
JensI'm not sure I fully follow what the problem is, or I'm misreading the issue.
Just to be clear, you are in Active Directory Domains & Trusts console, you did a click on "Active Directory Domains and Trusts," and then you are saying on the left pane you are not seeing the "Raise Forest Functional Level"
option, such as the following screenshot shows?
I assume there is currently only one domain in the forest.
Was there at any time another domain that was removed, such as a child domain or an additional domain tree, there was removed?
What's the Schema version? To find it, run this without the quotes:
"dsquery * cn=schema,cn=configuration,dc=domainname,dc=local -scope base -attr objectVersion"
Schema Version Matrix:
============================
Version 13 = Windows Server 2000
Version 30 = Windows Server 2003 RTM, Windows Server 2003 with Service Pack 1, Windows Server 2003 with Service Pack 2
Version 31 = Windows Server 2003 R2
Version 44 = Windows Server 2008
Version 47 = Windows Server 2008 R2
Version 56 = Windows Server 2012 RTM
Version 69 = Windows Server 2012 R2
Late Edit:
See the following link for a similar discussion:
Unable to raise forest functional level
https://social.technet.microsoft.com/Forums/windowsserver/en-US/1d777261-ea53-4301-9541-3ea037245986/unable-to-raise-forest-functional-level?forum=winserverDS
Ace Fekay
MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services
Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
This posting is provided AS-IS with no warranties or guarantees and confers no rights. -
JAX-WS -- Force a wsimport generated ws client to use http POST method
I've used wsimport to generate a JAX-WS client for a wsdl and xsd bindings that were provided to me.
The basic implementation goes something like this.
URL serviceUrl = ...url to the live web service's wsdl (this will change often and needs to be data driven)
QName qname = new QName("thenamespace", "MyService")
MyService myService = new MyService(serviceUrl, qname);
At this point a http GET request is sent to the server which promptly spits back a "405: method not allowed" because it is only configured to accept the http POST method.
Unfortunately i cannot change this behavior and need a way to get the web service client to generate http POST requests.
Setting the following seemed to have no effect.
System.setProperty("javax.xml.ws.http.request.method", "POST");
Thanks!so, keep the wsdl as a local resource and use a url for the local resource. then the service will not request the remote wsdl.
-
Business Service with multiple HTTP Request Methods
hi all -
I'm new to OSB and trying to prototype a solution. I have a service provider that exposes a number of HTTP operations (GET/PUT/POST/DELETE). It's a JAX-RS implementation.
I was looking to create 1 proxy service and 1 business service for that service provider. But, within my business service, I must chose a 'HTTP Request Method' and it allows only 1 type (either GET, PUT, POST, DELETE). So, I have something working, but only for a single type (POST in my prototype). I figure I could create more proxy and business services for the other HTTP Request Methods, but I'm not sure if this is the correct approach (design/architecture).
My other thought was to create a proxy service to front the service provider, but looking at the documentation, it looks like there should be a business service for each proxy service. If it's possible to use a proxy service without a business service to mediate the service provider, where would I add my URLs for the service provider in the proxy service.
My apologies on the 2 part architecture/design question. I thought the group would help with getting me started.
thanks jimHi,
Frankly I dont know too much on this topic but following links may help you:
http://help.sap.com/saphelp_nw04/helpdata/en/25/dda73e5b7a424de10000000a114084/frameset.htm
Troubleshooting ICF: http://help.sap.com/saphelp_nw04/helpdata/en/80/b2dd3a6dac703be10000000a11405a/content.htm
Possibly experts in this forum will be able to help you: Application Server->Internet Transaction Server (ITS)
Regards,
Gourav -
Can i call a HTTP Post method in ABAP or XI?
Hi All,
Can you please let me know how to call a HTTP Post method in ABAP or XI?
my HTTP Post is looks like (HTML form)
<form action="http://111.111.111.1:8080/sample_url" method="POST">
<table>
<tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>
<tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>
<tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>
<!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->
<tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>
<tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>
<tr><td colspan="2"><input type="submit" name="send" value="send"></td></tr>
</table>
</form>
I have a requirement to send a message to the above mention URL using the POST method.
Please let me know the possibility of sending it from ABAP or XI adaptor.
Thanks & Regards,
ChamindaHi Prateek,
shoul we send the below code as the payload?
<tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>
<tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>
<tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>
<!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->
<tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>
<tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>
Thanks.
Chaminda -
Posting from one jsp to another gives HTTP 405 "method not allowed"
I have a servlet filter that authenticates all requests for resources in my web app. This works fine when HTTP GET requests are being used, but I notice I get a HTTP 405 "Method not allowed" when a HTTP POST is issued. Even a simple JSP page that posts to another JSP page fails with this error. If I remove the filter, everything works OK.
The filter doesn't do anything exceptional (that I can see), other than do a redirect to use SSL if the request isn't being called on that.
Thanks for any help.If you've got access to the filter code - check that it doesn't contain any conditional checking on HttpServletRequest.getMethod() or alike.
If the only thing you need to do is to ensure the use of SSL, why don't you declare a security-constraint in you web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>Ensure encryption</web-resource-name>
<url-pattern>/</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
- J�rgen L�kke - -
ICM_HTTP_CONNECTION_FAILED error on http receive method
Hi,
I am trying to read a XML via http. I have developed a code referencing this blog:
/people/rashid.javed/blog/2007/03/11/cricket-world-cup-http-client-and-simple-transformations
When http receive method is executed it gives me an error.
On executiong of: CALL METHOD client->receive it gives error:
code: 400 message: ICM_HTTP_CONNECTION_FAILED
I treid changing host and buf in code below both to http://www.google.com to rule out the possibility of bad url. Also tried setting time out to 500 in send method. Still no luck.
ICM trace shows following:
Thr 4864] *** WARNING => Connection request from (16/6462/1) to host: http://www.google.com/, service: 80 failed (NIEHOST_UNKNO
How do I solve this error, please give me some tips.
I was looking forum for this issue but was not able to find a solution.
Here is complete code:
DATA: client TYPE REF TO if_http_client.
DATA: host TYPE string.
* DATA: proxyh TYPE string VALUE 'IfYouHave.Proxy.com',
* proxyp TYPE string VALUE '8080'.
DATA: buff TYPE string,
respd TYPE string.
DATA: subrc TYPE sysubrc.
CALL METHOD cl_http_client=>create
EXPORTING
host = 'http://www.google.com/ig/api'
* SERVICE =
* proxy_host = proxyh
* proxy_service = proxyp
* SCHEME = SCHEMETYPE_HTTP
* SSL_ID =
* SAP_USERNAME =
* SAP_CLIENT =
IMPORTING
client = client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4
IF sy-subrc <> 0.
WRITE:/ ' cl_http_client=>create, subrc = ', sy-subrc.
EXIT.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
buff = 'GET'.
CALL METHOD client->request->set_header_field
EXPORTING
name = '~request_method'
value = buff.
buff = 'http://www.google.com/ig/api?weather=21218&hl=en'.
cl_http_utility=>set_request_uri( request = client->request
uri = buff ).
subrc = cl_http_utility=>get_last_error( ).
IF subrc <> 0.
WRITE: / 'Wrong URI format'.
EXIT.
ENDIF.
ENDIF.
CALL METHOD client->send
* EXPORTING
* TIMEOUT = CO_TIMEOUT_DEFAULT
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
http_invalid_timeout = 4
OTHERS = 5
IF sy-subrc <> 0.
CALL METHOD client->get_last_error
IMPORTING
code = subrc
MESSAGE = buff.
WRITE: / 'communication_error( send )',
/ 'code: ', subrc, 'message: ', buff.
EXIT.
ENDIF.
CALL METHOD client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL METHOD client->get_last_error
IMPORTING
code = subrc
MESSAGE = buff.
FORMAT COLOR COL_BACKGROUND.
WRITE: / 'communication_error( receive )',
/ 'code: ', subrc, 'message: ', buff.
WRITE: / 'communication_error'.
EXIT.
ENDIF.
respd = client->response->get_cdata( ).
WRITE:/ respd.
Thanks in advance,
CD
Edited by: CD on Feb 19, 2009 1:46 PMCheck this link..
[HTTP client code 400 reason ICM_HTTP_CONNECTION_FAILED; -
How to use read() method in JEditorPane
Hai,
I not quite understand how to use the "read(InputStream in, Object desc)" method in JEditorPane, especially the "Object desc" argument. What should I put there? Can anyone give me an examples?
Thank you and sorry for the trouble.The second parameter could be an HTMLDocument. If you
just pass null, then it takes the default as Text
document.
Cheers~ Thank idreesmd :) -
What type of data we can send using http POST method apart from text(string) ? Is it possible to send some video or file or image through http POST method ?
Consider the way you upload a file as an email attachment. Or when using a web-interface to upload a file to a web host. The only restriction you might encounter is a size limit.
-
Flash Archive HTTP retrieval method
Hello, could anybody explain me why size restriction is there for HTTP flash method for flar archives? HTTP method can be used only for archives < 2GB. I would like to know why and how to split an archive > 2 GB. Thanks a lot for every reply.
What does the
"layered flash" mean, Andrew? cpio? it means standard flash archives, but splitted into parts
let me explain
for example:
1st flash archive - solaris os
2nd archive - some applications
3rd archive - oracle db
when you make archive, you include there only some directories and files you need, so in this case we have more flexibility -
Hi
Can anyone tell me how I can disable the HTTP OPTIONS method in Sun One Web Server 6.0 SP4.
Thanks1) Why would TRACE and OPTION request specifying HTTP 1.0 vs. 1.1 yield such different results?
Web Server 6.0 only implements the TRACE and OPTIONS methods for HTTP/1.1, not HTTP/1.0. This is reasonable as TRACE and OPTIONS are part of the HTTP/1.1 protocol and not the HTTP/1.0 protocol.
In other words, TRACE is always disabled for HTTP/1.0 requests, even if you don't use the set-variable work around.
2) Is the OPTIONS command a legitimate test of whether this fix works? If it is, has anyone managed to have the command return an "Allow:" line MINUS the TRACE?
Nope, not in Web Server 6.0. OPTIONS will always list TRACE. (Note that in Web Server 6.1, TRACE is not as tightly integrated into the server core. As a result, OPTIONS will conditionally list TRACE in 6.1.)
3) Has anyone managed to generate a 501 error message after specifying TRACE / HTTP/1.1 instead of 1.0?
Nope, not in Web Server 6.0.
4) Does this fix really work?
I wouldn't call it a fix; it's a work around. However, it does effectively disable TRACE. The work around is a bit of a kludge, resulting in the odd 413 status code.
The real "fix" appears in Web Server 6.1 where you can disable TRACE simply by commenting out the Service method="TRACE" fn="service-trace" line in obj.conf.
Maybe you are looking for
-
Value not populated for new field - in RSA7 for PI interface in BW
Hello Experts - We have 3.5 bw and PI 7.x. we have a PI interface in bw working in production and now we enhanced the interface with a new added field. I mapped the new field in transfer rule/ modified update rules/ods and regenerated the soap dataso
-
Sometimes it is even enough to go outside to the waste bin to let my smartphone forget the settings for the wireless lan. When I return I have to enter the - not so short - code from my wlan router again. After that the internet connection is running
-
How do I get my Powerbook G4 to stop looking for a PPPoE server?
I was given an old PowerBook G4 and while I am using it, a message keeps popping up. The message says, "Internet Connect. Could not find a PPPoE server." I don't know how to get this to stop. Please help me. Thanks.
-
How to create hierarchy on bi7 by using dtp
how to create hierarchy on bi7 by using dtp
-
AIR 3.0 bug with native menu?
Hi I'm working on HTML/JS AIR application. App loads native menu from XML, which is accessed from application using nativeWindow.menu. It worked OK in 2.7 and earlier, but recently AIR runtime was updated to 3.0 version and now nativeWindow.menu==n