HTTP Questions
We have a scenario where an external system is going to communicate with us by sending an XMl message via HTTPS.
Now my question is... if we use the HTTP Adapter then what do we need to do to enable HTTPS. Do we just need to create a HTTPS port on the ICM?
The reason I ask is because the HTTP is on the abap stack correct so there is no adapter or sender agreement.
Also is there anything that needs to be done with regards to STRUCT, cryptographic libraby etc.
Finally is it better to go for a SOAP sendr in this case and if so what is required from this side.
Hi Mendez,
on the following sit you'll find many interesting How-To-Guides:
For XI:
Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 [original link is broken]
For PI:
End-to-End Process Integration How-to Guides for SAP NetWeaver 7.0 [original link is broken]
SAP Help Link regarding Adapters:
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
Regards
Dominic
Edited by: Dominic Ludolph on Jan 15, 2008 1:48 PM
Similar Messages
-
Signature post to HTTP Question
I have a form that I am using to post to HTTP using PHP Script. It works great, however I would like to be able to have a field that a customer signs with stylus on tablet pc and I can upload that as a jpg or whatever and also lock the form so it cannot be modified after customer signs off on order. Anyone out there have an idea of how I can get a client to do that using Adobe Livecycle?
Let me know if I need to provide more info?Thanks,
That is really helpful!
I downloaded CIC Signit for Adobe and was able to sign. I need to figure out how to make it skip some of the questions and just give the sig box?
Also need to fig out how to have it lock it all down once it is signed so the order cannot be modifed after it is signed.
Also Any tutorials out there on how to use HTTP Submit to a php script and upload the signature image? -
Https question(using NSStream)
Greetings everyone,
I have a question about https requests on the iPhone.
I started developing on the iPhone about two days ago so my code isn't that pretty (yet) and I still have a lot to learn. I am trying to learn by creating all sorts of small applications as test-projects.(Yesterday: Mandelbrot drawing and Twitter client.) But, I have ran into a problem with one of the projects. I need to send a HTTPS request to a server, but I want to format the request header myself.(It is even a necessity) So I started using NSStream to handle the connecting with and requesting of the server. And it works, until I tried to connect using a secure connection(HTTPS).
This is the code I use:
NSHost *host = [NSHost hostWithName:@"hostname"];
NSInputStream * iStream = [[NSInputStream alloc] init];
NSOutputStream * oStream = [[NSOutputStream alloc] init];
NSStream getStreamsToHost:host port:443 inputStream:&iStream outputStream:&oStream;<br/> <br/><br/> //[iStream setProperty:NSStreamSocketSecurityLevelTLSv1 forKey:NSStreamSocketSecurityLevelKey];<br/> //[oStream setProperty:NSStreamSocketSecurityLevelTLSv1 forKey:NSStreamSocketSecurityLevelKey];<br/> iStream setProperty: NSStreamSocketSecurityLevelSSLv3 forKey:NSStreamSocketSecurityLevelKey;<br/> oStream setProperty: NSStreamSocketSecurityLevelSSLv3 forKey:NSStreamSocketSecurityLevelKey;<br/> <br/> ;<br/> ;<br/><br/> NSString * request = @"GET /index.php HTTP/1.0
";<br/> [oStream write:((const uint8_t *)[request UTF8String]) maxLength:[request length]];<br/> <br/> NSMutableString *result = [[NSMutableString alloc] init];<br/> char buffer[16];<br/> int bytesRead = iStream read:buffer maxLength:16;<br/> while(bytesRead==16){<br/> [result appendString:[NSString stringWithCString:buffer encoding: NSASCIIStringEncoding]];<br/> bytesRead = iStream read:buffer maxLength:16;<br/> }<br/> buffer[bytesRead] = 'I tried that, but it doesn't seem to help.
The server I am testing with is sadly enough not under my control.
I tried using the +NSURLConnection sendSynchronousRequest+ today and it seems to give a logical response. But the response isn't what I expect it to be and I fear that the problem might lie in the header that is send to the server.(It is really picky about the request.) I tried using NSMutableURLRequest, but it doesn't allow me to take complete control of the header.
(Note: The page seems to load in Safari on OSX and the iPhone, but again because of the request I do not get the response I am looking for.)
I do not know if this is possible, but would I be able to subclass the NSMutableURLRequest and override the method that supplies the request text?(Or is there somethings else I can do, so I can use the +NSURLConnection sendSynchronousRequest+, which seems to handle everything correctly, but control the request that is send letter for letter?) -
Hi,
After enabling https for Tomcat and generating a encryption key for tomcat I tried to access my Webservice via HTTPS. I recieved the message
...Couldn't find trusted certificat.
So I used keytool to export the tomcat.cert and imported it to <JRE>/lib/security/cacerts.
Now I'am getting another message:
java.rmi.RemoteException: HTTP transport error: java.io.IOException: HTTPS hostname wrong: should be <localhost>
Anybody out there who knows what's I've done wrong this time?
Thanx, MischaMischa,
1- try adding your host name to Tomcat host aliases
2- check that the CN field in your server certificate contains your host name
HTH,
Pedro -
I have developed a log in system with ASP and SQL Server, but want to
make it secure.
I have no experience with HTTPS, SSL or anything similar and was
wondering if anyone could point me in the right direction?Yes, RMI can use HTTP via port 80. I believe you have
to have a web server, cuz I don't think that the
rmiregistry itself runs one. Further, as far as I
know, you need Perl because the RMI stuff works thru a
special CGI script. I forget all the details, it's
been a while since I've used any of that. But if you
can find a tutorial that really goes into it (the Java
Tutorial one on this site doesn't seem to mention the
HTTP stuff), it should have examples of setting that
up. All news to me. Thanks for cluing me in, bsampieri. I've never done RMI that way. - MOD -
Http question & servlet ?
hi,
can anyone explain me how a browser know the end of a requested ressource send by a server, if the
content-length http header wasn't included inside the response (http response i mean) ? is there a blank line at end or somethingelse ??
thanks for your helphi,
can anyone explain me how a browser know the end of a
requested ressource send by a server, if the
content-length http header wasn't included inside the
response (http response i mean) ? is there a blank
line at end or somethingelse ??
thanks for your help The content length header is mandatory (if the message contains an entity body), so the server should send it. You can set it manually in the servlet, but if you dont, the server should do it for you.
Blank lines are perfectly valid in the message body, and cant terminate the response.
Br - Johan -
Aim is to acces database using other methods than via the http
I have a database located in say
http://www.mydomain.com/aa/bb/mydatabase.txt (I do not want to use application.getRealPath("/aa/bb/mydatabase.txt")
if i copy my mydatabase.txt to say
web-inf/classes/database/
how can I for example access the database if i place my text databse in the web inf journey because it is not accessible via http?
(e.g accessing from a bean class)
Any ideas pleasemaybe this?
InputStream in = getClass().getResourseAsStream("database/mydatabase.txt");
Although, you can still do this:
File f = new File(new FIle(application.getRealPath("/")), "/WEB-INF/database/mydatabase.txt");
You can still access the file on the JSP/servlet side that way. But you can't access that file from the browser no matter what if it's under WEB-INF, if that's what you are trying to do. -
Hello,
I've developed a website using Web Application Builder for which the url is accessed by clients <b>internal</b> to the company via <b>HTTP</b>... no issues here.
However, there is now a requirement for users <b>external</b> to the company to be able to access this url via <b>HTTPS</b> (secure, SSL). I was told something about using <b>LDAP</b> with <b>HTTPS</b>... what do I need to do here???
Thanks,
TimothyHi Timothy,
I guess these are two issues. The first one is about securing retrieval of portal pages using HTTPS, which is probably what you want to provide to your external users. That makes sense especially for external users, because data is transferred over the internet, and that's probably what you need.
The second one, which should probably not be called "LDAP with HTTPS", but "LDAP over SSL/TLS", is about securing the portal's access to an LDAP server (used as user database). This is not related at all to HTTP traffic and the data that your users' browsers process. It's only related to the data being transferred in your company's internal network (hopefully) between the portal server and the LDAP server.
Best regards
Heiko -
I have the following test, see code below.
I'm trying to write a test client which connects to a URL, asks for a certatin byte range, write the bytes to a file, within the same connection make another request for some more bytes and write it to a file.
Problem is I get the following exception(See Below),.
Any ideas?
Already connected
java.lang.IllegalStateException: Already connected
at java.net.URLConnection.setDoOutput(URLConnection.java:739)
at com.bitfone.server.ClientDeviceTest.testByteChunked(ClientDeviceTest.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
public void testByteChunked() {
HttpURLConnection connection = null;
try {
URL firstUrl = new URL(upURL);
connection = (HttpURLConnection)firstUrl.openConnection();
connection.setRequestMethod("GET");
connection.setDoInput(true);
connection.setRequestProperty("Range", "bytes=100-200");
connection.setRequestProperty("Connection", "keep-alive");
connection.connect();
InputStream is = new BufferedInputStream(connection.getInputStream());
InputStreamReader input = new InputStreamReader(is);
BufferedReader inStrm = new BufferedReader(input);
String inputLine;
FileWriter fw = new FileWriter(filename3);
while ((inputLine = inStrm.readLine()) != null) {
fw.write(inputLine);
connection.setDoOutput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("Range", "bytes=301-300");
inStrm.close();
input.close();
is.close();
fw.flush();
fw.close();
connection.disconnect();
logger.debug("~~ Leaving testByteChunked ~~");
} catch (MalformedURLException mue) {
logger.error(" MalformedURLException " + mue.getMessage());
fail("A MalformedURLException occured, please make sure the URL is valid.");
} catch (ProtocolException pe) {
logger.error(" ProtocolException " + pe.getMessage());
fail("A ProtocolException occured, please make sure the method, (e.g POST), is valid.");
} catch (IOException ioe) {
logger.error(" IOException " + ioe.getMessage());
fail("An IOException occured.");
}Like this?
public void testByteRange() {
logger.debug("~~ Entering testByteRange ~~");
HttpURLConnection connection = null;
HttpURLConnection reconnection = null;
try {
URL firstUrl = new URL(upURL);
connection = (HttpURLConnection)firstUrl.openConnection();
connection.setRequestMethod("GET");
connection.setDoInput(true);
connection.setRequestProperty("Range", "bytes=1-10");
connection.setRequestProperty("Connection", "keep-alive");
connection.connect();
InputStream is = new BufferedInputStream(connection.getInputStream());
InputStreamReader input = new InputStreamReader(is);
BufferedReader inStrm = new BufferedReader(input);
String inputLine;
FileWriter fw = new FileWriter(filename);
while ((inputLine = inStrm.readLine()) != null) {
fw.write(inputLine);
inStrm.close();
input.close();
is.close();
fw.flush();
fw.close();
connection.disconnect();
URL secondUrl = new URL(upURL);
reconnection = (HttpURLConnection)secondUrl.openConnection();
reconnection.setRequestMethod("GET");
reconnection.setDoInput(true);
reconnection.setRequestProperty("Range", "bytes=11-20");
reconnection.setRequestProperty("Connection", "keep-alive");
reconnection.connect();
InputStream is1 = new BufferedInputStream(reconnection.getInputStream());
InputStreamReader input1 = new InputStreamReader(is1);
BufferedReader inStrm1 = new BufferedReader(input1);
String inputLine1;
FileWriter fw1 = new FileWriter(filename2);
while ((inputLine1 = inStrm1.readLine()) != null) {
fw1.write(inputLine1);
inStrm1.close();
input1.close();
is1.close();
fw1.flush();
fw1.close();
reconnection.disconnect();
logger.debug("~~ Leaving testByteRange ~~");
} catch (MalformedURLException mue) {
logger.error(" MalformedURLException " + mue.getMessage());
fail("A MalformedURLException occured, please make sure the URL is valid.");
} catch (ProtocolException pe) {
logger.error(" ProtocolException " + pe.getMessage());
fail("A ProtocolException occured, please make sure the method, (e.g POST), is valid.");
} catch (IOException ioe) {
logger.error(" IOException " + ioe.getMessage());
fail("An IOException occured.");
} -
Urgent - help question on sending http instead of https
I'm trying to dump out my http wrapper: I'm trying to set send http instead of https so I can dump the wrapper.
currently my code does the following for https determination. i read from a configuratioin file to see if i should set https or http
question) Do i need an else section to cover non https?
If so, what do i need to set for http properties.
// check if https is wanted
// yes - send https
String useHttps = cf.get("useHttps", "true");
if (useHttps.equals("true")) {
logger.debug(classMethod + "https mode=" + useHttps);
System.setProperty(
"java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
// make provider and/or protocol configurable?
Security.addProvider(
new com.sun.net.ssl.internal.ssl.Provider());
}resolved - don't need help anymore on it
-
Hi all,
I have some questions, could you plz clarify me on that.
1. HTTP is a stateless protocol - how do app servers typically create and manage HTTP sessions?
2. Disadvantages of using EJBs
3. When/why would we should make a class static?
4. Where are tile attributes stored
regards
MartinAre you even remotely serious?
Question #1: HTTP
Question #2: J2EE
Question #3: Java
Question #4: Struts
The fact you are not able to answer #3 makes me seriously doubt you will be able to answer #2. The fact you cannot answer #1 makes me seriously doubt you will be able to answer #4.
Rather than trying to get a hodge-podge of questions answered, start some research yourself. There are dozens of J2EE tutorials on the web, even more about the Java language itself. At some point, look into HTTP. Most books on this are less than 30 pages. Finally, when you are ready in a few weeks, start looking at Struts.
I'll throw you a bone: yes, HTTP is stateless. J2EE containers implement session state by generating a random UID and associating that (in a Map) with session data. The client is instructed, normally, to set a cookie with the UID and send it back on subsequent requests. The server can then associate a given client with his/her session data.
- Saish -
I have a new iphone and went into Itunes and it said my new iphone needed a software update. I let it do this and now the apps that I put on won't work and when pressed just flash on then off the screen. I paid £20 for one of them so any help would be appreciated.
Memory Map: http://www.memory-map.co.uk/iphone/
0870: http://www.simonmaddox.com/
Viber: http://support.viber.com/home
VoucherCloud: http://questions.vouchercloud.com/ -
NEW TO FLASH...Any help appreciated
I mostly know about Photoshop and I seen this cool animation
on
http://www.slide.com/pic_arrange
that has a fireflies theme that would go perfect for a design I did
for this girl. Instead of just using that site I would like to
learn how to make it MYSELF, not through a site.
Like I said I have NO flash experience and have been watching
vid tuts since this morning and have learned the basic Turn A
Square Into A Circle thing...Lets just say I thought that was the
coolest thing ever lol.
Ok I have a psd file of a a frog on a beach during the day
that I would like to fade to night, have fireflies come out and fly
around for a minute, then frog blinks twice, sticks his tongue out,
eats one and it glow in his stomach, while the other fireflies are
still flying around but end up going to the top area and spell the
girls name out...make sense?
Heres what Ive learned ..just cant figure out exactly how do
it...
1) make a firefly into a movie clip of it just flying in
place..maybe with a slight up & down motion
2) insert it and have it fade in and tween (think thats the
right word in this case) from point A to B and finally fade off.
Im hoping the rest should fall into place since I should just
make them follow a guided line and do whatever...BUT I just cant
figure out how to make the first image fade to the next then on to
the next one. If anyone could help I would really appreciate it. Or
even suggest places that will. Everyone has to start somewhere when
learning something new.
If yall would like yall could email me at
[email protected] if its not too much trouble. Oh and didnt
mean to write a novel, just tried being as detailed as I could lol.
Thanks againMemory Map: http://www.memory-map.co.uk/iphone/
0870: http://www.simonmaddox.com/
Viber: http://support.viber.com/home
VoucherCloud: http://questions.vouchercloud.com/ -
Hi,
I've been looking at various APIs for sending HTTP POST functions, in particular I'm interested in the different uses between the above 2 methods. The typical line is "if you're sending a file - use multipart".
Why, do POST methods have a certain maximum size?
Or, what's the point when I should use POST or multipart-POST?
Is it typical to just use multipart-POST everywhere?
Is the trade-off just more overhead?
Any help on this would be appreciated.This is really an HTTP question, not a Java question.
-
My requirements are quite straightforward.
1. I want to store XML documents in the database as unstructured/LOB. I want to store other information about the documents so I am thinking of having a traditional relational data model, that contains an XMLType column all created manually.
2. I want to be able to browse the documents in the database (contained in the XMLType column of the manually created table) using HTTP (via web browser)
3. I want to be able to access the documents programmatically using HTTP
Questions
1. Given this scenario, do I need to register a schema? ( I think not)
2. How does one go about tying an XML DB Repository resource to the XMLType column in the relational data model?if you want to use the XML DB HTTP server to acccess the content of the XML documents then
1. Fundamentally only content in an XMLType table or XMLType view can be associated with a resource. The reason for this is that a REF XMLType is used internally to track which document goes with which resource and a REF can only point at an object table.
Documents stored in an XMLType column in a relational table cannot (easily) be associated with a resource. You can get around this to some extent by having an XMLType view that exposes the each XMLType column in the relational table as an row in an XMLType view but this is messy.
2. If you want to insert or update via FTP / WebDAV you will need an XML Schema. The repository uses the SchemaLocation information to determine which underlying table should be updated when operations take place on the repository.
If the HTTP access is read only you will not need an XML Schema but you will have to use DBMS_XDB.CREATERESOUCE to create the resources in the repository. You will need to supply a REF XMLType that points to the correct row in the underlying table or view when creating the resource.
3. Have you considered using the Schema Based Metadata feature to the additional information about the documents you are managing. This basically allows the other information to be tracked as additional metadata associated with the resource. Basically you can define one (or more) XML Schemas that define the metadata you need to track and then you can associate content in the metadata tables with the documents in the repository. This has the nice side effect (from your perspective if you are still thinking of using SLIDE) that the metadata should be available via PROPFIND operatiions.
1. The documents will need to be accessable via the XML DB repository unless you want to restrict yourself to using the DBURI Servlet.
Maybe you are looking for
-
COPA Planning-Upload via KE13N
Hi Experts , I am doing COPA planning , but stuck with the excel upload via T code KE13N. -I have defined the planning level on the basis of the sales organisation -Planning packages on basis of years. -Paramater set has also been defined. Integrated
-
CFP-DIO-550 open multiple input and output at the same time
I am trying to read and write at different times with the cFP-DIO-550. I cant figure out how to read all the inputs at the same time. In the Create Tag.vi, I cant figure what to wire to the Item Name input. I have tried Input 0, and that works, but
-
Will there ever be the opportunity to use the touchpad as a touchscreen equivalent?
I would like the ability to select my touchpad as a touchscreen equivalent. In normal mode I drag my fingers to emulate mouse movement. In touchscreen mode, WHERE I touch my touchpad equates to a spot on the screen instead. It's a bigger touch surfac
-
Changing titles on pages assigned to templates
The title field on pages assigned to templates is grayed out in the code. I have searched help and it says the field is editable on the page after the template is assigned. Not happening. Help said these could be changed from Modify>Page Propertie
-
What do i do next re flash update on mac / firefox
what do i do next re flash update on mac / firefox i get the following message - If a dialog box appears with the option to run or save, click run. but then i get this - open with ( choose ) save file please tell me what i should do ,