Problem with Creating HTTP Request
I have this code.when I comment CFHTTPMessageSetBody(myRequest, bodyData); it works fine otherwise the program crashes.Any suggestions will be appreciated
CFStringRef bodyData = CFSTR(""); // Usually used for POST data
CFStringRef headerFieldName = CFSTR("X-My-Favorite-Field");
CFStringRef headerFieldValue = CFSTR("Dreams");
CFStringRef url = CFSTR("http://www.apple.com");
CFURLRef myURL = CFURLCreateWithString(kCFAllocatorDefault, url, NULL);
// requestMethod = CFSTR("GET");
CFHTTPMessageRef myRequest =CFHTTPMessageCreateRequest(kCFAllocatorDefault, CFSTR("GET"), myURL,kCFHTTPVersion1_1);
CFHTTPMessageSetBody(myRequest, bodyData);
CFHTTPMessageSetHeaderFieldValue(myRequest, headerFieldName, headerFieldValue);
CFDataRef mySerializedRequest = CFHTTPMessageCopySerializedMessage(myRequest);
NSLog(@" %@",mySerializedRequest);
I found out that i could enter agency and scheme for inbound and outbound but which scheme do i need ? Can you give me an example,too ?
Regards,
Gordon
Similar Messages
-
Problem with "Create Transport Request"
Hi all,
Iu2019m working with Solution Manager and Charm. I have a problem when I create a transport request.
After that I put regular correction into status u201CIn developmentu201D I choose u201CCreate Transport Requestu201D from the menu but the system display the message u201CThe last action triggered is locked in the task listu201D . Is it a problem of authorization in satellite system? The user that I use to create a transport request have sap_all profile in the satellite system. What settings do I have to use in satellite system and in solution manager?
Thank in advance
giovanniMake sure that the profile S_TMW_IMPORT and S_TMW_CREATE has the correction authorizations assigned and that it is assigned to the user TMSADM of client 000 of your satellite system.
Note 807228 can be useful.
Hope this helps,
Roel -
ICF service with Multiple HTTP request handlers.
Hi ,
I have created a ICF service with "One HTTP request handler" using SICF transaction.
it's working fine.
After that i have added anther "HTTP request handler".
i have put two External Break Points in two HTTP request handler classes.
and i have debugged it.
My problem is:
The request is cached by first HTTP request handler.
at the end it returns the response.
it does not reached the second HTTP request handler.
how can i forward my request to second HTTP request handler.
please help me.
lakshmanHi,
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 -
I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?
Apple ID FAQ http://support.apple.com/kb/HE37
-
Problem in sending HTTP request to the server.
Hi,
i dveloped an ant script for sar deployment.
i deployed a sar to my local soa server with ant script. it got deployed succesfully..
but when i try to deploy to a remote server, getting the below error..
"Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404"
but the server is up and runnig and i am able to ping it from my machine and also access the console...
below is my script
build.properties
wn.bea.home=C:/Oracle/Middleware
all.needed.jars.path=D:/SourceCode/neededJAR
oracle.soa.home=C:/Oracle/Middleware/Oracle_SOA1
java.passed.home=C:/Oracle/Middleware/jdk160_24
#Deployment environment
deployment.plan.environment=DEV
#Deploy Action
deployAction =redeploy
#credentials
user=weblogic
password=welcome1
#For Composite deployment
serverURL=http://10.177.154.6:7001
forceDefault=true
server=10.177.154.6
port=7001
sarLocation=D:/SourceCode/JAR
build.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="soaDeployAll" default="deployAll">
<echo>basedir ${basedir}</echo>
<property environment="env"/>
<echo>current folder ${basedir}</echo>
<property file="${basedir}/build.properties"/>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${all.needed.jars.path}/ant-contrib.jar"/>
</classpath>
</taskdef>
<target name="init">
<tstamp>
<format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss"/>
</tstamp>
<property name="build.log.dir" location="${basedir}/buildlogs"/>
<mkdir dir="${build.log.dir}"/> <property name="build.log.filename" value="build_${timestamp}.log"/>
<record name="${build.log.dir}/${build.log.filename}" loglevel="verbose" append="false"/>
<echo message="Build logged to ${build.log.filename}"/>
</target>
<target name="deployAll" depends="init">
<echo>Deploy for environment ${deployment.plan.environment}</echo>
<antcall target="deployAllComposites"/>
</target>
<!-- Following Actions are performed for Composite files in Managed Server - Deploy,Redeploy -->
<target name="deployAllComposites" depends="init">
<foreach target="deployComposites" param="Files">
<fileset dir="${sarLocation}" casesensitive="no" includes="*.jar"/>
</foreach>
</target>
<target name="deployComposites" depends="init">
<basename file="${Files}" property="basename"/>
<echo>Deploy Project ${basename} for environment ${deployment.plan.environment}</echo>
<if>
<equals arg1="${deployAction}" arg2="deploy" />
<then>
<echo message="Deploying composites in Managed server........." />
<ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
<property name="serverURL" value="${serverURL}"/>
<property name="user" value="${user}"/>
<property name="password" value="${password}"/>
<property name="overwrite" value="false"/>
<property name="forceDefault" value="${forceDefault}"/>
<property name="sarLocation" value="${sarLocation}/${basename}"/>
</ant>
</then>
<else>
<echo message="ReDeploying composites in Managed server........." />
<ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
<property name="serverURL" value="${serverURL}"/>
<property name="user" value="${user}"/>
<property name="password" value="${password}"/>
<property name="overwrite" value="true"/>
<property name="forceDefault" value="${forceDefault}"/>
<property name="sarLocation" value="${sarLocation}/${basename}"/>
</ant>
</else>
</if>
</target>
</project>
please help....Hi,
Give the serverURL as http://<host>:<managed.server.port>/soa-infra/deployer and try.
e.g . http://10.177.154.6:8001/soa-infra/deployer
Regards,
Neeraj Sehgal -
Problem with create universe on Business Objects XI 3.1 base on SAP Query
Hello,
I have a problem with create universe on Business Objects XI 3.1 base on SAP Query.
The problem is hierarchy. Massage on Busines Objects is :
OWBS_ELEMT__ISTKOSZT(cube ICPC01/BEX_ICOC01):Exception condition "HIERARCHY NOT FOUND" raised.(WIS 10901)
Query in BEX run OK.
Best regards.
Ela.Hello,
Thanks for response.
When I run BEX QUERY, all works OK.
All hierarchies was created and activated on system BW.
This situation appears after upgrade BW to SAP NetWeaver 7.3.
Before upgrade I created universe without any problems.
Regards Ela -
Problem with creating new user in portal = portlet is not visible
Hi,
I've got a problem with creating new users in portal. In the Administer tab of the builder is the user portlet not visible.
How can I make this portlet visible?
Please Help
thank you...
GilbertHi..my problem slightly similar.
I created one new user, and didn't select anything from "Public Groups Assignment" and "Privilege Assignment" for him.
I expect the user will be a public user.
But, when he try to logged in the portal,
He cannot see all the PORTLETS related to database values..
All he can see just LINKS -that all in my portal right now beside the report from database that the user cannot see :)
So, what did i do wrong?
Plz Advise, and thanks. -
Problem with creating site from another computer!
Hi
I have WebDB 2.2 and Oracle8i instaled on the same computer. I have a problem to create site from another computer. There is not any process when I try to create site. There is always 0%.
But I have no problem with creating site on the origin computer.
Does anybody know something about it?I am just not clear what to do once I have made changes and have published the new information.
You shouldn't have to do anything. iWeb will save the information in the Domain.sites file. You can keep this file in a folder, or even on your desktop and iWeb will launch from a double-click on the file. -
Problem with creating email account on E72
I have bought E72 and want to use mine company email - but there is a problem with creating email account in mail program.
Restoring to fabric settings doesn't works.
When I'm creating Gmail account it's OK, but phone doesnt want to cooperate with other accouns:/Try again without using WLAN. I had same problem, but solved it using GPRS.
-
Problem with creating chapter-markers
Hi everyone,
as the title already says it, I've got a problem with creating chapter markers in Quicktime Pro 7.6.4. There's something wrong with the font, displayed in Quicktime. The problem first appeared a few days ago. Before this, everything went fine and I don't have a clue what causes the problem.
Please click HERE to see a screen-recording of the steps I do to create chapters:
- convert the chapters into unformatted text and save it as Unicode (UTF-16) text file.
- open it in Quicktime and everything (including the german umlauts) is displayed correct.
- export it into a Text-file with description
when I open the new text file in Quicktime, the fonts are displayed in asian letters, but when I view it in the Texteditor, the text is almost correct, BUT the umlauts are not ok. So I go on with...
- correct the umlauts and save a new file as Unicode (UTF-16) again.
After I open the new file in Quicktime, the text is completely gone. As the text file seems to be ok in the Texteditor, I guess there must be something wrong with Quicktime. I tried to reinstall Quicktime 7 from the "Mac OS X 10.6 Snow Leopard" Installation-Disc, but the problem persists.
I' would appreciate any help...
Thanks in advance and best regards,
MichaelI'm having the exact same issue. I have created my movie in IMovie 09 then under the "share " menu I sent the movie to iDVD. Everything looks fine on screen, but all I get on the final product is the movie.
After digging deeper into the tutorials all they show is dragging a movie into the idvd shell, not sharing via imovie.
Thus I'm currently attempting to create a quicktime movie then drag it into the IDVD shell. I think that way the chapter markers and everything should show up and burnt into the final project. I'm guessing the "share" option with the IDVD from iMovie doesn't work properly??? -
Problem with creating order through order template
Hi experts,
We have problem with creating order by order template. Extensions data available in order template is not sent to order. Extension data are showing upto order submission form. But after sucessful creation of order extension data are no longer available in CRM-ORDEr.
We are using ISA 4.0 with CRM 4.0.
We recently applied patches on CRM server. Before patching it was working fine.
Can you please suggest us to solve this issue?
Thanks in Advance.
Regards,
Murugan Arumugam.closed.
-
Problem with Creating Info Record
Hello Gurus,
I've problem with Creating Info Record
i tried to create info record for Plant Specific/Purchase Org
The first Screen General Data is OK
i entered all the data in the next screen ie
Purchase Organization Data screen but i'm getting error
<b>Make an entry in all required fields</b>
but there is Mandatory Textbox ie "VALID TO" which im unable to select Bcos its Disabled
pls help me regarding this
thanks in advanceHi
Have u given the net price. <b>VALID TO</b> is the date until which the price shown in the info record is valid.
If there is no price that is valid on the current date, the last-valid price is displayed and the date field contains the day before the start of the next validity period (this may be 12.31.9999 if there is no further validity date). If all validit periods lie beyond the current date, the price of the next period is displayed. The date field then contains the end date of this period.
These validity periods we will maintain Purchse data CONDITIONS while creating info record. Check the validity period for the conditions.
Hope this will helps u
Ravi
Ravikumar Bolla -
Problem with creating virtual column
Hello,
We've got problem with creating virtual column.
There is table R_T that contain columns R_ID and L_ID, we would like to create virtual column RL_ID that contains sth like 'R_ID-L_ID' (R_ID, L_ID and RL_ID are varchars).
According documentation we've tried:
alter table R_T add column (RL_ID varchar2(60) generated always as (R_ID||'-'||L_ID) VIRTUAL)
but getting
ORA-00904: : invalid identifier
00904.00000 - "%s: invalid identifier"
Have no idea where is the problem.
Table, columns names are little different but contains only capital letters A - Z and underscore "_".
Has anyone idea?
Thanks a lot.Strange...
This does work for me :
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Connected as dev
SQL>
SQL> create table r_t (
2 r_id varchar2(25),
3 l_id varchar2(25)
4 );
Table created
SQL> insert into r_t (r_id, l_id) values('R','L');
1 row inserted
SQL> alter table r_t add (rl_id varchar2(60) generated always as (r_id||'-'||l_id) virtual);
Table altered
SQL> select * from r_t;
R_ID L_ID RL_ID
R L R-L
SQL> -
I have problems with creating new projects in iMovie.
I have problems with creating new projects. When i try, the mac says the following "Make sure there is enough disk space and that you have permission to write the projects to the drive." I have 8GB available, so its not that.
thanks for your support
lol -
Problems by getting info out of XML file with a HTTP request
Hi,
I have a litte question. I'm working on an application that works together with google maps. In my java code, I get general information about address out of one database table, and I want to add some geographic information like coordinates that I want to retrieve from Google Maps through HTTP:
Right now my code is like:
while (resultSet.next())
title = resultSet.getString("title").replaceAll("'","''").toUpperCase();
author = resultSet.getString("author").replaceAll("'","''").toUpperCase();
location = resultSet.getString("location").replaceAll("'","''").toUpperCase();
straatnaam = resultSet.getString("straatnaam").replaceAll("'","''").toUpperCase();
nummer = resultSet.getString("nummer");
landcode = resultSet.getString("landcode").replaceAll("'","''").toUpperCase();
address = straatnaam + " " + nummer + " , " + location + " " + landcode;
url = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=+key+";
String query = "INSERT INTO data2 VALUES ('" + i + "','" + title + "','" + author + "','" + resultSet.getString("date1") + "','" + resultSet.getString("date2") + "','" + location + "','" + resultSet.getString("postcode") + "','" + straatnaam + "','" + resultSet.getString("nummer") + "','" + landcode + "','+something like url.getCoordX+','something like url.getCoordY')";
success = sql2.executeUpdate(query);
i++;
Now I don't know how I can handle that. Is it possible to do an HTTP request in Java without using Java Script of servlets? I just want to get the X and Y coordinates out of the XML file.
The XML file will be something like:
<kml xmlns="http://earth.google.com/kml/2.0">
<Response>
<name>1600 amphitheatre mountain view ca</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark>
<address>
1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
</address>
<AddressDetails Accuracy="8">
<Country>
<CountryNameCode>US</CountryNameCode>
<AdministrativeArea>
<AdministrativeAreaName>CA</AdministrativeAreaName>
<SubAdministrativeArea>
<SubAdministrativeAreaName>Santa Clara</SubAdministrativeAreaName>
<Locality>
<LocalityName>Mountain View</LocalityName>
<Thoroughfare>
<ThoroughfareName>1600 Amphitheatre Pkwy</ThoroughfareName>
</Thoroughfare>
<PostalCode>
<PostalCodeNumber>94043</PostalCodeNumber>
</PostalCode>
</Locality>
</SubAdministrativeArea>
</AdministrativeArea>
</Country>
</AddressDetails>
<Point>
<coordinates>-122.083739,37.423021,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>
many greetings and thanks in advance
MathiasHi, sorry for being not so clear. My question was actually if it is possible to do a HTTP request in Java without using servlets or being in Java Script. Actually my question was more specific for Google maps, because it didn't seem to work. It was my mistake, and already solved, to forget to make the webservice-call "URL-encoded". Because of that, I always received a HTTP 400 error, and that's why I thought it wouldn't be possible.
But now I have another, perhaps for you guys stupid question. The result I get from the webservice URL is of the form:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Response>
<name>nieuwelaan 38, Hamme</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark id="p1">
<address>Nieuwelaan 38, 9220 Hamme, Hamme, Belgium</address>
<AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
<Country>
<CountryNameCode>BE</CountryNameCode>
<AdministrativeArea>
<AdministrativeAreaName>Vlaams Gewest</AdministrativeAreaName>
<SubAdministrativeArea>
<SubAdministrativeAreaName>Oost-Vlaanderen</SubAdministrativeAreaName>
<Locality>
<LocalityName>Hamme</LocalityName>
<DependentLocality>
<DependentLocalityName>Hamme</DependentLocalityName>
<Thoroughfare>
<ThoroughfareName>Nieuwelaan 38</ThoroughfareName>
</Thoroughfare>
<PostalCode>
<PostalCodeNumber>9220</PostalCodeNumber>
</PostalCode>
</DependentLocality>
</Locality>
</SubAdministrativeArea>
</AdministrativeArea>
</Country>
</AddressDetails>
<Point>
<coordinates>4.126295,51.097724,0</coordinates>
</Point>
</Placemark>
</Response>
</kml> Now I want to get the value of the coordinates field.
This is my code:
address = URLEncoder.encode(address, "UTF-8");
urlString = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=ABQIAAAA9fEXNK-q6vKpPU0JCmPPkxQjbVBpjtblJJYkDfbMo0e51afwehRmujfvBtJqx1Qehg6e6QgCRY8poA";
url = new URL(urlString);
XPath xPath = XPathFactory.newInstance().newXPath();
Document domDoc = processData(url);
path = "/kml/Response/Placemark/Point/coordinates";
coord = xPath.evaluate(path, domDoc);
System.out.println("coord : " + coord);Now, in the last line, by writing out the value of coord to my screen, I get the value "1", instead of "4.126295,51.097724,0" I would expect, anyone knows what I'm doing wrong?
greetings
Mathias
Maybe you are looking for
-
Follow up on previous question
I am in a hurry as I have to show my slideshow/dvd project at a party tonight and can't figure out how to play it full screen. Please help! When hooked up to a projector will it automatically convery to full screen? Can't try it until the party. Scar
-
I have never had this problem before using iMovie Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred (-108)
-
Connect to sql server 2008R2 64bit from oracle 10g (10.2.0.4)
Hi My requirement is to connect SQL server 2008 R2 64bit to oracle 10.2.0.4.0. and get the data from the SQL database. The SQL server database is located in a remote server. Please let me know the most suitable method to connect. Oracle database is r
-
Hello! Can anyone help me. How can I API in Java Technology for files to find ?
-
AcroRd32.exe stopping the adobe reader XI files
While viewing the files adobe reader XI files, actions are slow and sometimes getting hang up. when viewed the Task manager process find the above AcroRd32.exe in action and I suspect this is stopping the opening the files. Can any body suggest me wh