Returns to web dealers
rma,d a ram dimm to http://www.overclocker.co.uk
got an email they had it on 19 th
whats a fair time period
sent them an email and got told we are busy
funny how first time they can pack and deliver over night
I estimate anything over 3 buisness days is too long to be held up.......If I were you Wonk........I would start giving them a piece of your mind.....Tell them how many people you talk to everyday....and you will start giving them bad press unless they get off their cans and get you order processed.
Similar Messages
-
Carriage returns in web galleries?
Has anyone succeeded in putting carriage returns in web galleries? The most important place is in the caption option where you can string together a bunch of metadata fields. Surely people want a carriage return between their caption field and, for example, their shutter speed or aperature or whatever... Personally, I want to put the location fields in. I can't put commas in between because I don't always have all of the location fields and there is no logic possibility (like, no content in field, don't put in comma).
I am interested in HTML galleries, not flash.
Thanks!
JudyJudith,
I've just had a go and I see what you mean. I've tried it by adding a <BR> tag into the caption, but LR outsmarts me and no combination of quotes or backslashes seems to escape it successfully. I can enter it in the dialogue box with alt-enter but it doesn't appear in the HTML.
However, if you put something like XBRX into the caption and then did a global find & replace on the resulting file(s) to change it to <BR> then it will work.
If you're on a Mac it's easy to knock up a little shell script that will do it, but on a PC I have no idea.
Damian -
Attempting to to download bank statement from bank web site. Statement is acrobat, when attempt to save statement, message flash that "zeon" had clash! Asked to attempt again, try 3 times same message. Exit web site, attempted again, same problem. disable firefox, returned to explorer return to web site download statement, no problem.
Appreciate the response regarding my immediate problem, but I have no idea, how to disable the Zeon PDF Plugin for Mozilla! I am a user and this is my first dealings with Firefox.
-
Can objects returned from web services be cast to strongly typed objects?
Can objects returned from web services be cast to strongly
typed objects?
Last I tried this was with one of the beta of Flex2 and it
did not work. You had to use ObjectProxy or something like that...
ThanksPlease post this question in the CRM On Demand Integration Development forum.
-
Empty report returned from WEBI and Crystal report when using external hier
Hi,
WEBI and Crystal report build from BEX query returned empty report when we used external hierarchy 0PROFIT_CTR. In BEX we don't have any problems with it.
No authority check is perfomed on the hierarchy when we start the report in WEBI/Crystal. Only check on the hierarchy is performed when the root authorization is assigned to the userWe using BO4 SP12
-
The format of XML file returned from web service
Hi everyone,
My web service (build in asp.net 2.0 with C#) returns the
following xml file which is not what I want.
<Root>
<Root2>
<Person> .... </Person>
<Person> .... </Person>
<Person> .... </Person>
</Root2>
</Root>
But I want my web service to return the following xml file.
How can I get the following xml file instead of the above xml file
? Thanks.
<Root>
<Person> .... </Person>
<Person> .... </Person>
<Person> .... </Person>
</Root>Thanks for everyone's reply!
Sorry, I don't know where to set resultFormat="e4x". Below is
my code. And LINE 111 gives error. And the error message is below.
And the xml returned from the web service is below.
Error: Error #2093: The Proxy class does not implement
getDescendants. It must be overridden by a subclass.
at Error$/throwError()
at flash.utils::Proxy/
http://www.adobe.com/2006/actionscript/flash/proxy::getDescendants()
at
LogIn/loginHandler()[P:\JIMMY-FLEX\Flex_LogIn\LogIn.mxml:58]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractService/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\A bstractService.as:232]
at mx.rpc::AbstractOperation/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractOperation.as:193
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projec ts\rpc\src\mx\rpc\AbstractInvoker.as:191
at
mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:4 1]
at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]
at
DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:381]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%" height="100%" xmlns:ns1="*">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
namespace FaciNS = "
http://FaciNet.com/";
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.soap.WebService;
//public var __xmlResult:XML;
public var ws:WebService;
public function Log_In(UN:String, PW:String):void
ws.Login(UN, PW);
public function getLoginData():void {
loadWSDL();
Log_In(UN.text, PW.text);
public function loadWSDL():void
ws = new mx.rpc.soap.WebService();
ws.wsdl = "
http://localhost:50779/VS2008_LogIn/Service.asmx?wsdl"
ws.useProxy = false;
ws.addEventListener("fault", faultHandler);
ws.addEventListener("result", loginHandler);
ws.loadWSDL();
public function loginHandler(e:ResultEvent):void {
var wkSouID:String = e.result[0]..SouID; // LINE 111
trace(wkSouID);
public function faultHandler(event:FaultEvent):void
dispatchEvent(new Event("Error"));
public function checkUser(UName:String, PWord:String):void {
getLoginData();
]]>
</mx:Script>
<mx:Panel id="loginPanel" horizontalScrollPolicy="off"
verticalScrollPolicy="off" width="400" height="200" x="97"
y="66">
<mx:Form id="loginForm" width="100%" height="100%">
<mx:FormItem label="Username:" color="red">
<mx:TextInput id="UN" />
</mx:FormItem>
<mx:FormItem label="Password:" color="red">
<mx:TextInput id="PW"/>
</mx:FormItem>
</mx:Form>
<mx:ControlBar>
<mx:Spacer width="100%" id="spacer1"/>
<mx:Button label="Login" id="loginButton"
click="checkUser(UN.text, PW.text)" />
</mx:ControlBar>
</mx:Panel>
</mx:Canvas>
<?xml version="1.0" encoding="utf-8" ?>
- <ArrayOfLogIn xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns="
http://tempuri.org/">
- <LogIn>
<SouID>2</SouID>
<LogInUserID>3</LogInUserID>
<LogInUserName>samlam</LogInUserName>
<Password>abc123</Password>
<DialectID>4</DialectID>
<CreatedByUserID>5</CreatedByUserID>
<UpdatedByUserID>5</UpdatedByUserID>
</LogIn>
- <LogIn>
<SouID>3</SouID>
<LogInUserID>4</LogInUserID>
<LogInUserName>samlam</LogInUserName>
<Password>abc123</Password>
<DialectID>4</DialectID>
<CreatedByUserID>5</CreatedByUserID>
<UpdatedByUserID>5</UpdatedByUserID>
</LogIn>
</ArrayOfLogIn> -
Hello,
I have a web service created in Java:
@WebMethod
public Vector<Data> getData();
This is how I am connecting to the web service:
public function connectWS():void{
var cr:CallResponder = new CallResponder();
cr.addEventListener(ResultEvent.RESULT, connectWSResult);
cr.token = myWebService.getData();
My vect variable above does not provide me with the correct Data object. vect is assigned null. How ever if I have:
public function connectWSResult(event:ResultEvent);void{
var arrCollect:ArrayCollection = event.result as ArrayCollection;
arrCollection gives me correct value of Data object.
I want the webService to return me a Vector. How can I go about that?
-HIf I understand you correctly (do not see a 'vect' variable anywhere), the web service is working perfectly. The getData() function is non-blocking and does not "wait" for the response from the web service. This is why you need to add an event listener, to listen for the "result" event. When the reply comes in, the listener triggers the handler (connectWsResult) which you appear to have defined correctly.
So I'm not sure what the problem is if you say the handler is returning the correct data. Am I missing something? -
Complex types returned from web services
I'm having problems getting values from a complex type from a
CFC web service. Are there any tutorials that show you how this is
done? The only tutorials I've seen have been returning simple
types.
I have tried everything I know, which is not a lot I must
admit, I'm just a beginner! *L*
Thanks in advance.I'm having problems getting values from a complex type from a
CFC web service. Are there any tutorials that show you how this is
done? The only tutorials I've seen have been returning simple
types.
I have tried everything I know, which is not a lot I must
admit, I'm just a beginner! *L*
Thanks in advance. -
Print label image in GIF format returned by Web Service XML string.
Hi All
I have extremely interesting situations and have been struggling with this for a past week. I have been looking everywhere but nobody seems to have an answer. This is my last resort.
Detail -
I am consuming UPS web service from my ABAP program. Everything works fine until I have to print UPS label. The label image is returned to my ABAP program via XML by the UPS reply transaction as a GIF image.
When I download this image to my PC I can see it and print it, but for the love of god I cannot print this image from my ABAP program. The GIF image is passed to me as a binary data string it looks like bunch on numbers - (2133FFDGFGFGFHHu2026..) very long string about 89800 bites. I cannot use smart forms since smart form requires to have graphic stored in SAP before smart form print, so this is not possible. I need help figuring out how print GIF image form ABAP or any other SAP method dynamically. Any ideas are extremely appreciated. I am just puzzled that I cannot find any info on something like this. I cannot be the first one who needs to print GIF image in SAP.Hi all,
I understand this thread was started long back. But wanted to share this solution since I see the same question in many forums without any particular conclusive answer. So the steps I am explaining here, if it helps in some way, I will be really happy. I won't say this is the perfect solution. But it definitely helps us to print the images. This solution is infact implemented successfully in my client place & works fine.
And please note there may be better solutions definitely available in ECC6 or other higher releases. This solution is mainly for lesser versions, for people don't have ADOBE forms or other special classes.
Important thing here is binary string is converted to postscript here. So you need to make sure your printer supports postscripts. (Ofcourse, if anybody is interested, they can do their R&D on PCL conversion in the same way...and pls let me know). Once the binary data is converted to postscript, we are going to write it in the binary spool. so you will still see junk characters (or numberssss) in spool. But when you print it in postscript printer , it should work.
First step, assuming you have your binary data ready from tiff or pdf based on your requirement.
Basically below compress/decompress function modules convert the binary data from lt_bin (structure TBL1024) to target_tab (structure SOLIX). From Raw 1024 to Raw 255
DATA: aux_tab LIKE soli OCCURS 10. - temp table
Compress table
CALL FUNCTION 'TABLE_COMPRESS'
TABLES
in = lt_bin
out = aux_tab
EXCEPTIONS
compress_error = 1
OTHERS = 2.
Decompress table
CALL FUNCTION 'TABLE_DECOMPRESS'
TABLES
in = aux_tab
out = target_tab
EXCEPTIONS
compress_error = 1
table_not_compressed = 2
OTHERS = 3.
In my case, since I have to get it from archived data using function module, ARCHIV_GET_TABLE which gives RAW 1024, above conversion was necessary.
Second step: Application server temporary files for tif/postscript files.
We need two file names here for tif file & for converted postscript file. Please keep in mind, if you are running it in background, user should have authorization to read/write/delete this file.
Logical file name just to make sure the file name is maintainable. Hard code the file name if you don't want to use logical file name.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
logical_filename = 'ABCD'
parameter_1 = l_title
parameter_2 = sy-datum
parameter_3 = sy-uzeit
IMPORTING
file_name = lv_file_name_init
EXCEPTIONS
file_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Now concatenate with the different extensions to get two different files.
CONCATENATE lv_file_name_init '.tif' INTO lv_file_name_tif.
CONCATENATE lv_file_name_init '.ps' INTO lv_file_name_ps.
Third step: Write the target_tab to tif file.
Open dataset for writing the tif file.
OPEN DATASET lv_file_name_tif FOR OUTPUT IN BINARY MODE.
IF NOT sy-subrc IS INITIAL.
RAISE open_failed.
ELSE.
LOOP AT target_tab INTO w_target_tab.
CATCH SYSTEM-EXCEPTIONS dataset_write_error = 1
OTHERS = 4.
TRANSFER w_target_tab TO lv_file_name_tif.
ENDCATCH.
IF NOT sy-subrc IS INITIAL.
RAISE write_failed.
ENDIF.
ENDLOOP.
CATCH SYSTEM-EXCEPTIONS dataset_cant_close = 1
OTHERS = 4.
CLOSE DATASET lv_file_name_tif.
ENDCATCH.
ENDIF.
Fourth Step: Convert the tiff file to postscript file.
This is the critical step. Create an external command (SM49/SM69) for this conversion. In this example, Z_TIFF2PS is created. Infact, I did get help from our office basis gurus in this. so I don't have the exact code of this unix script. You can refer the below link or may get some help from unix gurus.
http://linux.about.com/library/cmd/blcmdl1_tiff2ps.htm
Since my external command needs .ps file name and .tif file name as input, concatenate it & pass it as additional parameter. Command will take care of the conversion & will generate the .ps file.
CONCATENATE lv_file_name_ps lv_file_name_tif INTO lw_add SEPARATED BY space.
Call the external command with the file paths.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'Command name'
additional_parameters = lw_add
TABLES
exec_protocol = t_comtab.
Fifth step: Read the converted ps file and convert it to RAW 255.
DATA:lw_content TYPE xstring.
Open dataset for reading the postscript (ps) file
OPEN DATASET lv_file_name_ps FOR INPUT IN BINARY MODE.
Check whether the file is opened successfully
IF NOT sy-subrc IS INITIAL.
RAISE open_failed.
ELSE.
READ DATASET lv_file_name_ps INTO lw_content.
ENDIF.
Close the dataset
CATCH SYSTEM-EXCEPTIONS dataset_cant_close = 1
OTHERS = 4.
CLOSE DATASET lv_file_name_ps.
ENDCATCH.
Make sure you delete the temporary files so that you can reuse the same names again & again for next conversions.
DELETE DATASET lv_file_name_tif.
DELETE DATASET lv_file_name_ps.
Convert the postscript file to RAW 255
REFRESH target_tab.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lw_content
TABLES
binary_tab = target_tab.
Sixth step: Write the postscript data to binary spool by passing the correct print parameters.
IF NOT target_tab[] IS INITIAL.
PERFORM spo_job_open_cust USING l_device
l_title
l_handle
l_spoolid
lw_nast.
LOOP AT target_tab INTO w_target_tab.
PERFORM spo_job_write(saplstxw) USING l_handle
w_target_tab
l_linewidth.
ENDLOOP.
PERFORM spo_job_close(saplstxw) USING l_handle
l_pages.
IF sy-subrc EQ 0.
MESSAGE i014 WITH
'Spools for'(019) lw_final-vbeln
'created successfully.Check transaction SP01'(020).
ENDIF.
ENDIF.
Please note the parameters when calling function module RSPO_SR_OPEN. Change the print parameters according to your requirement. This is very important.
FORM spo_job_open_cust USING value(device) LIKE tsp03-padest
value(title) LIKE tsp01-rqtitle
handle LIKE sy-tabix
spoolid LIKE tsp01-rqident
lw_nast TYPE nast.
DATA: layout LIKE tsp01-rqpaper,
doctype LIKE tsp01-rqdoctype.
doctype = 'BIN'.
layout = 'G_RAW'.
CALL FUNCTION 'RSPO_SR_OPEN'
EXPORTING
dest = device "Printer name
LDEST =
layout = layout
NAME =
suffix1 = 'PDF'
SUFFIX2 =
COPIES =
prio = '5'
immediate_print = 'X'
immediate_print = lw_nast-dimme
auto_delete = ' '
titleline = title
RECEIVER =
DIVISION =
AUTHORITY =
POSNAME =
ACTTIME =
LIFETIME = '8'
append = ' '
coverpage = ' '
CODEPAGE =
doctype = doctype
ARCHMODE =
ARCHPARAMS =
TELELAND =
TELENUM =
TELENUME =
IMPORTING
handle = handle
spoolid = spoolid
EXCEPTIONS
device_missing = 1
name_twice = 2
no_such_device = 3
operation_failed = 4.
CASE sy-subrc.
WHEN 0.
PERFORM msg_v1(saplstxw) USING 'S'
'RSPO_SR_OPEN o.k., Spoolauftrag $'(128)
spoolid.
sy-subrc = 0.
WHEN 1.
PERFORM msg_v1(saplstxw) USING 'E'
'RSPO_SR_OPEN Fehler: Gerät fehlt'(129)
space.
sy-subrc = 1.
WHEN 2.
PERFORM msg_v1(saplstxw) USING 'E'
'RSPO_SR_OPEN Fehler: Ungültiges Gerät $'(130)
device.
sy-subrc = 1.
WHEN OTHERS.
PERFORM msg_v1(saplstxw) USING 'E'
'RSPO_SR_OPEN Fehler: $'(131)
sy-subrc.
sy-subrc = 1.
ENDCASE.
ENDFORM. "spo_job_open_cust
Thats it. We are done. If you open the spool, still you will see numbers/junk characters. if you print it in postscript printer, it will be printed correctly. If you try to print it PCL, you will get lot of pages wasted since it will print all junk characters. So please make sure you use postscript printer for this.
Extra step for mails (if interested):
Mails should work fine without any extra conversion/external command since it will be opened again using windows. So after the first step (compress & decompress)
Create attachment notification for each attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = lv_num + 1.
DESCRIBE TABLE lt_target_tab LINES objpack-body_num.
objpack-doc_size = objpack-body_num * 255.
objpack-body_num = lv_num + objpack-body_num.
lv_num = objpack-body_num.
objpack-doc_type = 'TIF'.
CONCATENATE 'Attachment_' l_object_id INTO objpack-obj_descr.
reclist-receiver = l_email.
reclist-rec_type = 'U'.
reclist-express = 'X'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
contents_txt = objtxt
contents_hex = target_tab
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
RAISE email_not_sent.
ENDIF.
COMMIT WORK.
Hope this helps. I am sure this (print/email both) can be improved further by removing some conversions/by using some other methods.Please check & let me know if you have any such suggestions or any other comments.
Regards,
Gokul
Edited by: Gokul R Nair on Nov 16, 2011 2:59 AM</pre>
Edited by: Gokul R Nair on Nov 16, 2011 3:01 AM
Edited by: Gokul R Nair on Nov 16, 2011 3:15 AM -
Unable to retreive the fault message returned by web service
Hi,
We are working on Proxy to SOAP synchronous scenario. The WSDL provided by the third party has 3 messages - 1. for request structure, 2. response structure and 3. Error message to track the exceptions, if any. The interface working fine for positive test cases but we are facing issues when trying to capture the error message returned by the web service.
We have configured the error message(provided in WSDL) as fault message in our Inbound interface. In the outbound interface, we have configured standard Fault message type provided by XI. we have mapped the two structure.
Now when error is returned by the web service, we are able to see the blank response structure in the payload in MONI in XI. Also the SOAP Error Message structure is there in XI.
But when we trying to retrieve the same in our proxy, it is giving the blank structure.
Please help how to get the error message returned by the web service in proxy....
Please help..
Thanks in advance.>>>I am getting the error message as the fault message, in the response from the web service.
>>>Now I want to forward the same message to SAP R/3 system. For this I have configured the standard fault message in the >>>outbound interface and have mapped the same with the web service error message. So if I am not wrong, the transformed >>>>structure according to the rules in message mapping should be sent to SAP R/3 system. But I am unable to see the result >>>>of this mapping in XI MONI. Neither is this passed to Client proxy.
You are consuming the third party webservice. Third party webservice WSDL has request, response and fault message. if the third party application logic capture the exception and pass the response as fault mesg, then the above specified target fault mesg mapping with your Standard fault message mapping will be sent to sender or client proxy.
Suggestions:
Having fault message in WSDL does not mean that target system sends fault message during application exception. Check in the SXMB_MONI whether your response during exception is occuring in the fault message structure publised as WSDL. If not then doing mapping will not help. It gives only blank.
If you notice response in fault message structure from third party in SXMB_MONI, then you need to check that at the client proxy side, are you handling/done coding for fault message methods similar to response strucutre for capturing data.
Hope that helps. -
How to return a web service response as XML
Sorry if this is stupid question, but I wrote a web service that returns a string (which is really XML). I was wondering if there is a better way to do this. I would like to return it as an XML structure. Is there anyway I can do this?
Just looking for the correct way to do this - don't think returning strings all the time is correct.
I am using javaEE 5, axis2 (1.5), Tomcat 6.0
Thanks for the help!osubb wrote:
I don't see any benefit from sending byte[] vrs. String.It will prevent to have unwanted XML tags embedded in the XML of the SOAP envelope, a situation that may confuse some XML parsers.
Arrays of bytes are translated into readable characters to fit the XML conventions; there's an inconvenient : it will double the size of the original string in the SOAP message. Therefore, if your XML string is very large, the solution proposed by Tolls is preferable.
osubb wrote:
The WebService will be consumed by a non Java platformIt makes no difference; arrays of bytes are supported by non Java platforms
osubb wrote:
so would sending back a POJO work? Or would it make it a little harder.There's no need of a POJO if you opt for an array of bytes
osubb wrote:
I was wondering if I should use an attachment? Any ideas??It's not possible to attach a file to a SOAP message
osubb wrote:
Thanks for the help!!!!You're welcome !
Joe -
WebRequest not returning correct web page
Hello,
This is very strange, and I was hoping someone might have an answer/solution. If you try the link below using a Chrome browser, you will get the correct web page returned, however any other browser (and my vb.net app's WebRequest) returns a redirected
web page. I need to make my WebRequest behave the same as the Chrome browser. I changed the UserAgent to match Chrome, but that did not help. Any ideas?
http://www.ticketsnow.com/NBA/InventoryBrowse/Washington-Wizards-Tickets-at-Verizon-Center-in-Washington-1-31-2015?PID=1607397Hello,
This is very strange, and I was hoping someone might have an answer/solution. If you try the link below using a Chrome browser, you will get the correct web page returned, however any other browser (and my vb.net app's WebRequest) returns a redirected
web page. I need to make my WebRequest behave the same as the Chrome browser. I changed the UserAgent to match Chrome, but that did not help. Any ideas?
http://www.ticketsnow.com/NBA/InventoryBrowse/Washington-Wizards-Tickets-at-Verizon-Center-in-Washington-1-31-2015?PID=1607397
I have no idea about what you mean.
I used both Chrome and Internet Explorer with that link.
Chrome redirected to -
http://www.ticketmaster.com/event/15004D1386FC189F?tnw=TN_Direct___1420612218_B_1607397_NBA&c=TE_TMPlus_NBA_B_1607397&brand=NBA&landing=c
IE redirected to -
http://www.ticketmaster.com/event/15004D1386FC189F?tnw=TN_Direct___1420612218_B_1607397_NBA&c=TE_TMPlus_NBA_B_1607397&brand=NBA&landing=c
So whatch you talkin bout Willis?
La vida loca -
Parsing xml returned by web service
I am calling a web service from flash and the web service
returns xml. The xml gets urlencoded when it's put inside the soap
wrapping xml and I'm not sure how to get rid of the soap wrapping
and unencode the returned xml. Thanks.Hi vtxr1300,
I'm not sure if you meant to say "urlencoding" because that
looks more
like this:
?title=This is a test title&description=This is a test
description of item 1
What you're looking at here is pure XML (with namespaces but
you can
ignore them for the most part...we know this is SOAP!).
Since you posted this in the ActionScript 3 forum, I'll
assume you'll
want AS3 code to deal with this. Luckily, AS 3 has made it
incredibly easy
to extract whetever you need out of this.
First, you just need to get this data into a standard XML
object is it's
not already. So..something like this:
//xString is your XML data...SOAP return data, string, or
whatever
var myXML:XML=new XML(xString.toString());
The XML object retains its nesting properties so that, for
example, to
access the first '<desc>' node, you must access
'<module>' before it,
'<modules>' before that, and so on. This is
accomplished using the "child"
method associated with the XML object which uses the node
name as a
parameter. For the '<desc>' node, for example, this
would look like:
myXML.child("Body").child("GetTrainingResponse").child("GetTrainingResult").child("traini ng").child("modules").child("modile").child("desc");
A bit lengthy, but it gets the job done. Typically I would
store s
reference to each of the resulting "child" calls. this has
two benefits and
uses: It's easier to organize and easier to read than one
long instruction,
and it allows you to parse through multiple nodes. Each
"child" call returns
an XMLList object, not necessarily a single node. If there
are multiple
sibling nodes with the same name, for example, calling the
"child" method
will return an XMLList with two object nodes, not just one.
An XMLList can
be used much like an array so you can simply loop through the
results to see
all of the nodes.
The notation for ActionScript 3 has changed a bit for node
attributes.
An attribute name is now referenced via an '@' symbol. For
example, to get
the 'xmlns' attribute of the '<GetTrainingResponse>'
node, you would use:
myXML.child("Body").child("GetTrainingResponse").@xmlns;
Finally, it's worthwhile noting that the XML container
obejct reference
has changed. In ActionScript 2.0, an XML object would point
to the XML
document. The "firstChild" property of the XML object would
point to the
first node ('<soap>' in this instance). In ActionScript
3.0, the XML object
point to the first node so that the first child of the object
in this
instance would be the '<soap:Body>' node.
As mentioned, you can usually ignore namespaces for objects
you're
familiar with. The "soap" namespace, for example, can be
assumed since we
know this is a SOAP response.
Hope this helps.
Regards,
Patrick Bay
BAY NEW MEDIA
"vtxr1300" <[email protected]> wrote in
message
news:[email protected]...
> Here's what the web service is returning. If I create a
local version of
> the
> xml without the soap wrapping and urlencoding I can get
all the data I
> need...
> I just can't figure out how to urldecode it and get rid
of the soap xml.
> Can
> anyone please offer some ideas? Thanks.
>
> <soap:Envelope 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">
> <soap:Body>
> <GetTrainingResponse xmlns="
http://www.trainingondemand.com/">
>
<GetTrainingResult><training><modules><module><title>Item
> 1</title><desc>This is a test description of
the
> item.</desc><purchaseurl>
http://www.yahoo.com</purchaseurl><imageurl>http://www.
>
testsite.com/header.gif</imageurl></module><module><title>Item
> 1</title><desc>This is a test description of
the
> item.</desc><purchaseurl>
http://www.yahoo.com</purchaseurl><imageurl>http://www.
>
testsite.com/header.gif</imageurl></module><module><title>Item
> 1</title><desc>This is a test description of
the
> item.</desc><purchaseurl>
http://www.yahoo.com</purchaseurl><imageurl>http://www.
>
testsite.com/header.gif</imageurl></module><module><title>Item
> 1</title><desc>This is a test description of
the
> item.</desc><purchaseurl>
http://www.yahoo.com</purchaseurl><imageurl>http://www.
>
testsite.com/header.gif</imageurl></module></modules><colors><darkcolor>8396b0</
>
darkcolor><btngradientstart>2d6dc4<btngradientstart><btngradientend>17498f<btngr
>
adientend><btn2gradientstart>a5b5ca</btn2gradientstart><btn2gradientend>c4d0e0</
>
btn2gradientend></colors></training></GetTrainingResult>
> </GetTrainingResponse>
> </soap:Body>
> </soap:Envelope>
> -
How to show all data returned from web service in a dashboard
Hi I need create a dashboard with conection with a web service and whitout establish a range in excel, so be displayed on the dashboard n rows returned by the web service.
how can I do this?Hi Ezequiel,
I agree with Alan.
You might find it useful to read the Xcelsius 2008 Best Practices whitepaper: [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a084a11c-6564-2b10-79ac-cc1eb3f017ac]
Regards,
Matt -
Using Table returned by Web service in Adobe Form
Hi Experts,
I am working on a scenario wherein i am supposed to have a table as a response parameter in a RFC based webservice.
When this web service is stand alone executed it gives back the records in the table.
Now this web service is required to be integrated into the Adobe Interactive Form, On execution of this webservice from the Form, it does not return any result in the table.
Am i missing something?? or is it related to some tricky binding or something??
Please help!!
Any help would be appreciated.
Thanks
Amitahi ,
i have this problem .
how can i solve this problem.
Web Services Return table only see first row.
Thanks.
Maybe you are looking for
-
I Need oracle Application r12.0.6 install and prerequstics document
Hi, In my prod instance is R12.0.6 and database version 10.2.0.4.0 runing on rhel 5update1 32bit os Now We are plan to move another server the server is rhel 5 update6 64bit os if it possible to move the database as well as applications if it possbil
-
Multiple Selection not working on List Box Properties/Option Screen
When I select multiple selection on the List Box Properties/Options tab, I get no difference from the single selection default. It still highlights only the last of the multiple entries (like a single selection) and displays only the last entry. Is t
-
Abap code with relevant capital lettres and small letters
Hi all, i wrote my code in capital letters and i want to change tables and data objects and other stuff into small letters .Is there any option in abap editor to change the code as per the SAP standards. Thanks, Madhu
-
Nugget: How to create interface to DLL easily
Colleagues, Here is a very small tip, which is useful for me. I using my own DLLs in my code pretty often (because in some cases its more convinient to develop some parts of the code in C instead of LabVIEW). So, sometimes compilcated structures shou
-
Where can I find Lexmark Print Drivers v 2.3.1?
Does anyone know here I can find Lexmark Print Driver V 2.3.1. Since I upgraded to 10.6.8 can't print wireless.