Getting xml file from web for iPhone App
Im having an app get an xml file from the web and process it. Ive got the processing part down, ive even got the downloading part done. Problem is so far ive only downloaded a generic xml file hardcoded into the app. I need the user to input a value of the file to get. As a matter of fact, ive been thinking that i may even use the UniqueIdentifier for the iphone to make the file unique enough without the hassle of having to search thru user/pass combinations. So i have the webform to have users enter the values and then their iphones unique ID. But i need to have the user get the unique ID from their phone. Unfortunately ive been able to find this:
UIDevice *device = [UIDevice currentDevice];
NSString *uniqueIdentifier = [device uniqueIdentifier];
[device release];
NSLog(@"Device GUID:%@", uniqueIdentifier);
but this number does not show up on the iPhone UserInterface, so my user would have no way of knowing what his/her uniqueIdentifier is
So my question is 2-fold:
1. If UniqueIdentifier is the best way to go, how do i have my users visualize their UniqueIdentifier in order to give their xml file that name?
2. If the user/pass is the best way to go, id have to store user, pass and file name in a database online and have the user create an account which would generate a unique idFilename for him/her and that way fetch the file.
Hi Marcio -
I suspect I don't understand your requirements, so if my reply is irrelevant, please tell us a little more about what you're trying to do.
Marcio Valenzuela wrote:
1. If UniqueIdentifier is the best way to go, how do i have my users visualize their UniqueIdentifier in order to give their xml file that name?
I'm not sure what you mean by visualize. If you want the user to see the device id, why not populate a label or text field with it? Otherwise, why not just insert the id into the request yourself? E.g.:
UIDevice *device = [UIDevice currentDevice];
NSString *uniqueIdentifier = [device uniqueIdentifier];
// [device release]; <-- do not release object you don't own
NSLog(@"Device GUID:%@", uniqueIdentifier);
textField1.text = uniqueIdentifier; // if we think the user wants to see this
[self addIdToRequest:uniqueIdentifier]; // implementation is an exercise for the student
2. If the user/pass is the best way to go, id have to store user, pass and file name in a database online and have the user create an account which would generate a unique idFilename for him/her and that way fetch the file.
This is up to you. If the download isn't confidential info, it might be ok to rely on the device id. Otherwise you clearly put the owner's info at risk in case someone else operates the device.
Im having an app get an xml file from the web and process it.
I'm not sure why you included this info about the downloaded data format, and that's one reason I'm not sure I understand the problem. But I hope the above will help you see what needs to be clarified.
- Ray
Similar Messages
-
How to create a proxy to retrieve the xml file from web services
Hi Every one,
We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml file from web services by initiating call through middleware tool i used earlier.
these are the steps i intend to follow to accomlish the requirement.
1) middleware tool has to initiate the call to kenexa web services to receive the xml file when it is available.
2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
Can any one guide me how i can create a proxy to retrieve the xml file from web services by initiating call through other middlewre (its not PI).
Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.Thank for reply.
The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
Do you know some place where i can get some info about JS and acrobat? -
Is there any way to get my reminders (from the new iPhone app) to sync with something on my laptop (Mail, iCal, some other desktop app)?
Yes, if you have iCloud set up on your phone and computer, then reminders will be synced through iCal.
-
Download a XML file from Web Services Using Flex
Hi All...
I am new for flex, im developing a windows application using Flex/Air, i have connected the web services with user authentication, now I want to download a xml file using web services in flex,
how can i do this?? please reply...
Thanks in advance
VasanthHi All....
I have done this myself using sample tutorials...
here is the code for your reference guys
plyLoginName = txtEmailIdDownload.text;
var urlpath:String = new String("your url p?LoginName=");
urlpath = new String(urlpath.concat(plyLoginName));
urlpath = new String(urlpath.concat("&PlayerType="));
urlpath = new String(urlpath.concat(chkseasonvalue));
Alert.show(urlpath);
var request:URLRequest = new URLRequest(urlpath)
var fileRef:FileReference = new FileReference();
fileRef.download(request,"yourfilename.xml");
Alert.show('File downloaded Successfully');
txtEmailIdDownload.text = "";
txtPWDownload.text = "";
thanks
Vasanth -
Hi How to get XML file from servlet that XI sent to my J2EE appl?
Hi All!
I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
Please help me its urgent, Any code help is highly appreciated.
My xml file will be like this:
<ns0:Http_Message_Type_Demo
xmlns:ns0="http://abcdemo.com">
<Name>ABC</Name>
<RollNo>123</RollNo>
<Address>a-4</Address>
</ns0:Http_Message_Type_Demo>
somebody should help me!please
ThanksHi,
You can use HTTPServletRequest object to get the XML payload.
BufferedReader reader = request.getReader(); //gets XML payload
String line = reader.readLine(); // to read the XML payload line by line
(request is the HTTPServletRequest object)
Regards,
Uma -
Problem in Flex to get XML result from web services
Hi all
I am struggling a proplem for a whole day, i hope somebody can help.
I am trying to get the list file of files located on the server, so i use flex to access a ASP.NET ASMX web services, that returns all the file names in a folder.
I can see that web servicese worked perfectly, however when i try to get the result from flex, i could not figure out how to get the real data i wantted
public function LoadImage(e:ResultEvent):void{
imageList.dataProvider = e.result;
the e.result has some addtional tags, such as
<GetImageFileListResponse xmlns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetImageFileListResult>
<images>
<image>01417_ccurve_1280x1024.jpg</image>
<image>1915619295407381096.png</image>
<image>21051802471898733113.png</image>
where GetImageFileList is the operation name used in web service
I am only interested in the data starting from <images> . I don't know why the addtioanl tag has been added.
here is the code i have used in flex.
<mx:WebService
wsdl="http://localhost/Flex/GetImageFiles.asmx?WSDL" id="imageWs">
<mx:operation name="GetImageFileList" result="LoadImage(event)" fault="mx.controls.Alert.show(event.fault.faultString)" resultFormat="
e4x">
</mx:operation>
</mx:WebService>
Thanks in advance!!!Hi,
Just replace the below line in your code and check...
imageList.dataProvider = e.result.GetImageFileListResult.images;
If this post answers your question or helps, please mark it as such.
Thanks,
Bhasker Chari -
How do i get my itunes from iPad and iPhone apps to iPod??
I stay in the UAE and i dont get Albums or anything from iTunes all i get it the apps for iPhone and iPad, but when i try to use the USA version it tells me i cant so please i need help for many things on the internet are infected by viruses
You cannot install apps or media from the US to a device with an Apple ID linked to another country's iTunes store.
-
Want to get xml file from external webservice
hello experts,
I have to call a webservice only by call a url and get back a xml file as response. I´ll create the complete url with a mapping and tried to call the webservice with http and soap adapter but it doesn´t work. The url is correct and works with my browser.
https://sh.de.xxxxxxxx.net:443/extranet/levels/?group=Administrator&user=esco&pass=e2999a4f79804301f1134fadb6e0fc2d&salt=1222877335158
What should I do?
many thanks for help
UlfHi,
Try following steps:
1) Ensure that you are having the correct Webservice with you.
2) Create your IR objects depending on the Webservice that you have (the one which you need to call).
3) If you are using a HTTP Test Client to send the request then you need not mention any URL there...you just need to give the Sender namespace and Sender Message Interface Name....since you want the response back use QoS as BE...also ensure that other requierd details are correct.
4) Now since you are using SOAP communication channel at your Receiver side you need to enter a Target URl in the SOAP Channel......now open the Webservice (the one which you need to call)....in this Webservice there will be a field
<soap:address location="http://xyz......"/>
copy the contents (http://xyz......) from here and paste it in the Target URL field of your SOAP Channel.
Now you are ready to test your scenario.
Regarding your other Qs:
is the soap receiver adapter correct for this scenario? <<Yes>>
I only have the response xml structure but not as file and no request structure.<<You said that you have created the necessary mappings, so you can enter the required data in the Test Tab of your Message mapping....copy the data into your HTTP client and do the testing>>
how do I get the url from my mapping as url for a request? <<no need for a URL....where will you use it??>>
do I have to create a new wsdl for this? <<no>>
revert back if you have any queries.
Regards,
Abhishek. -
I can not share file from Jabber for Iphone and Android
Hi guys.
I have:
CUCM9.1/Publisher y Subscriber
System version: 9.1.1.41900-1
Presence/Publisher
System version: 9.1.1.41900-1
Expressway x8.1.1
Cisco Cisco Expressway-E
Expressway x8.1.1
Cisco Expressway-C
Jabber for Android and Iphone 10.6
I do not have "file transfer" and my Iphone an Android.
I don not have "share desktop" from internet on my windows jabber.
The calls and chat is working fine, but when I wante send a file, the option on my iphone is disable.
Why?Hi dennisalpizar07,
check this:
Jabber for Android officially supports receive BFCP video sharing on TAB devices (normally used for Android Tablets without native calling capability).
The Jabber for Android 10.6 release enters a beta trial on receiving BFCP video sharing on BOT devices (normally used for Android smartphones and phablets)
page 2 of the Cisco Jabber for Android 10.6.x Release Notes.
Hope this helps. -
Help! I just moved my itunes library from a Win 7 computer to a new Win 8.1 computer following the instructions on the itunes website. Everything is good except I'm getting an error message on the Win 8 computer if I try to play a CD or get an audio file off of the internet. I get an error message that says "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly. I don't know where to look for or fix the audio configuration on the win 8 computer. As far as I can tell the iTunes configuration looks the same as on the other computers in the house. At this point I don't dare plug my ipod touch into the Win 8 computer for fear it will get messed up.
I have the same problem and I know that it is due to my PCI Audio driver not being compatible with WIndows 8.1.
iTunes isn't the only program that can't direct sound to the built-in speakers anymore. The obvious solution would be to update the drivers, but unfortunately Dell does not provide an updated driver for my model, so I am stuck with that.
However, saying that, only my laptop speakers are affected by this. I can use sound fine on applications where I can choose the output device and direct sound to the head phones, but for some reason iTunes does not let you choose the audio device manually.
To listen to music I imported the iTunes Library in Windows Media Player and changed the audio output using the following instructions: http://windows.microsoft.com/en-us/windows7/c00d11ba
However, I would also like to rent movie's from iTunes,
Would be great if iTunes would let you choose the output device, too, like most other applications using sound from Skype to Windows Media Player,... -
Hi All,
pls can you help me
i need how will i get xml file from idoc
can you give me the steps to get it
thanks
marsreport zexternalfile .
tables : zzpublisher,
sscrfields.
data: it_publisher like standard table of zzpublisher,
wa_publisher like zzpublisher.
select * from zzpublisher into table it_publisher.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'C:externalfileskamal.XLS'
FILETYPE = 'ASC'
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_publisher
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Pls go thru the following websites :
A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Introduction to IDoc-XI-File scenario and complete walk through for starters.
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
Reward points if found helpful.... -
I have placed my jar file in c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jar
But, after restarting tomcat6, when i try to import the class file contained in the myjarfile.jar in a servlet, it says
ProcessFileUpload.java:4: package test.test1 does not exist
import test.test1.*;
^It clearly tomcat's class loading problem.
As i unzipped my jar and placed the packagefolder structure to
c:\tomcat6\webapps\my-application\WEB-INF\classes\testand it works perfectly.
Anyone knows its workaround? please suggest if any configuration changes is required in tomcat or so.
Thanks.
---SujoyThank you gimbal2 . There was error in creating the jar file myjarfile.jar.
But, now I have created it again and placed it in place
c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jarand tried to use one on the Class file included within the jar to compile my servlet. But, still I am getting error at servlet compilation time. I want to place executable jar files in
c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jar and compile my servlet and execute the servlet.
I DO NOT WANT TO unzip the jar, placing all unzipped files to
c:\tomcat6\webapps\my-application\WEB-INF\classes\ folder and comiple my servlet and execute the servlet. But, I am failing to user WEB-INF\lib\ folder facility....please help me why i am not getting class files from WEB-INF\lib\ folder.
If you please see the small code bit and tell me any possible error that would be very helpful.
Step 1: my library java file MyClass.java
package test.test1;
public class MyClass {
String myName = "Default return string value";
public void setMyName(String varName) {
this.myName = varName;
public String getMyName() {
return this.myName;
}Step2 : Creating jar file of my library class files
C:\jdk1.6\bin>jar cvf myjarfile.jar test
added manifest
adding: test/(in = 0) (out= 0)(stored 0%)
adding: test/test1/(in = 0) (out= 0)(stored 0%)
adding: test/test1/MyClass.class(in = 452) (out= 296)(deflated 34%)
adding: test/test1/MyClass.java(in = 230) (out= 140)(deflated 39%)
C:\jdk1.6\bin>Step3 : Double checking the created jar file content by listing its content
C:\jdk1.6\bin>jar tf myjarfile.jar
META-INF/
META-INF/MANIFEST.MF
test/
test/test1/
test/test1/MyClass.class
test/test1/MyClass.java
C:\jdk1.6\bin>Step4 : Placed myjarfile.jar to
c:\tomcat6\webapps\my-application\WEB-INF\lib\Step5 : Restarted standalone Tomcat6 in my Windows XP SP2.
Step6 : Created a simple servlet LibFolderTest.java within my-application\WEB-INF\classes\ folder with code
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import test.test1.*;
public class LibFolderTest extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
MyClass mc = new MyClass();
out.println(mc.getMyName());
}Step7 : Tried to compile my servlet LibFolderTest.java and got the following error
LibFolderTest.java:4: package test.test1 does not exist
import test.test1.*;
^
LibFolderTest.java:11: cannot find symbol
symbol : class MyClass
location: class LibFolderTest
MyClass mc = new MyClass();
^
LibFolderTest.java:11: cannot find symbol
symbol : class MyClass
location: class LibFolderTest
MyClass mc = new MyClass();
^
3 errorsThe above servlet compilation error on Step7 is telling me that myjarfile.jar is not loaded by Tomcat6 or not available for use when compiling servlet. I want to use myjarfile.jar from within WEB-INF\lib\ folder but I can not. please help.
---Sujoy -
Is it possible to recover deleted files from the Microsoft Word app for iPhone? I am desperate.
From the Microsoft Word app they say "Access Word documents from OneDrive, Dropbox, iCloud, OneDrive for Business, or SharePoint" so it sounds like you can specify where they are saved. However, my guess would be that the default will be OneDrive.
To the OP: Have you tried logging into onedrive.live.com to see if you can see your letter there? -
My iPHone is connected to my iMac, and I want to transfer files from iMace to IPhone. Instructions say to go to iTunes, look under Devices for my Device. I do so, and no devices are listed. How do I get iTunes to recognize my iPhone?
Make sure your iMac is on 10.6.8 or higher and your iTunes is up to date. If it is, then restart your computer, open iTunes, then plug in your device. If it still is not showing up, follow the steps listed here: iOS: Device not recognized in iTunes for Mac OS X
-
What's the difference between PNG and JPG for exporting .idea files from the Adobe Ideas app?
What situations are better to export to to .PNG or .JPG?
JiPad apps are designed specifically for the iPad and will not run on the iPhone or iPod Touch. iPhone/iPod apps will run on the iPad, but will only take up an iPhone sized portion of the iPad screen (though you get a 2x button which effectively doubles each pixel in both directions so may appear pixelated). There are also 'universal' apps (which have a '+' symbol against them in the store) which have processing in them to recognise the device that they are on and will tailor the display accordingly (so will make use of the iPad's larger screen).
Maybe you are looking for
-
Digital Signatures - Enterprise
Hello, My company owns 55 licenses of Adobe Acrobat Standard for Windows version 9.4.5. I want to be able to have all of my employees digitally sign documents. I figured out the process thanks to online documentation. The cert is self-signed so it co
-
Editing .AVI files in Final Cut Pro 5
I am trying to edit .AVI files on Final Cut Pro 5 on a volunteer basis. I have converted the files to .MOV files with Quicktime Player. I am able to import one of these files into Final Cut Pro 5, and can even watch it in the viewer. But when I place
-
Oracle Forms in Fusion application
Hi all I am new to fusion apps I just wanted to know whether Fusion does support Oracle forms. As per my knowledge Fusion does not have any oracle forms. Please let me know if there is any document related to the above information Thanks Mandar
-
Hi, I'm working on MDM-XI-R/3 integration. The integration between R/3 and MDM has been done. First XI posts Idoc ADRMAS and then posts Idoc DEBMAS. We tried sending the data thrice. the first two times ADRMAS was getting posted to the application su
-
Runtime error when executing smarforms.
Dear All, I am getting the runtime error while executing a smartfrom which I have prepared for payslip display. After the completion of smartform, I have tested by using print program, it was working fine. But, when I got the print of the same and I