To access the soap headers to return Web service calls

Is it possible to get the headers returned from a Web service?

I tried to access it through the ResultEvent (event.message.headers), but it is unclear how it works.
The debugger did not me any smarter either, nor documentation.


Someone has an idea?


Erik Pettersson

Flexforum.org

They are hidden in WebService.Operations.theMethod.resultHeaders

This makes it a bit complicated to fetch from the result handler, if we do not know the operation he responds too (I'm looking for a way to get this info from the event).

This would fit in the wish list:

resultHeaders in the ResultEvent. Please, I beg you.

Erik Pettersson

Flexforum.org

Tags: Flex

Similar Questions

  • Is it possible to recover all the virtual machines in a cluster in a single web service call?

    I tried to retrieve the list of all virtual machines in a cluster to a single web service call, but to no avail. It seems that there is no direct web service API to achieve this goal. Alternative options must first recover the hosts or data warehouses in the cluster and then recover virtual machines from there. But still, if anyone has an idea how we can do this please let me know. All help information will be greatly appreciated.

    It is possible, if you use the PropertyCollector.

    (It is usually the answer to questions of the form "Is it possible to retrieve the X in a single web service call").

    Call"propertycollector.retrievecontents:

    http://www.VMware.com/support/developer/VC-SDK/visdk41pubs/ApiReference/vmodl.query.PropertyCollector.html#retrieveContents

    allows you to retrieve a whole bunch of stuff in a single call, which you then have to go through and interpret.

    A snippet of code Java VI is not-really-tested to find virtual machines in a ComputeResource (cluster) is attached.

  • To access the SOAP Web Services: running on Acrobat 9, but NOT Adobe Reader 9.

    Hi all

    I use webservice to fill the form control. It works fine in Acrobat 9, but when I open the form in Adobe Reader 9 his WORKS DO not. Its niether give no error or no respone. Adobe Reader need additional code to access/run web services or where I'm wrong? Help, please.

    Thank you.

    -

    Afonso

    Hi Anhinav,

    Because the reader is not 'extended' Web Services will not work on the drive.  They are, however, (as you noted) work in Acrobat, which is "extended".

    Web services to work in Reader, you will need to purchase the LiveCycle Reader Extensions.

    Hope that helps.

    Jay

  • Make a REST Web service call. Error code: 401 Access to the requested resource is not allowed

    Hi all

    I'm having a hard time finding ways to Rest Web service calls.

    I tried this runs directly through the browser and I get an error.

    http:localhost:8080/r EST/bean/atg/userprofiling/ProfileServices/loginUser? [email protected] & arg2 = password

    13:18:20, 613 [RestSecurityServlet] error code: 401

    Access to the requested resource is not allowed: / atg/userprofiling/ProfileServices

    1. atg.rest.RestException: access to the requested resource is not allowed: / atg/userprofiling/ProfileServices

    at atg.rest.processor.RestSecurityProcessor.checkAccess(RestSecurityProcessor.java:546)

    at atg.rest.processor.RestSecurityProcessor.handleGetRequest(RestSecurityProcessor.java:313)

    at atg.rest.processor.RestSecurityProcessor.doRESTGet(RestSecurityProcessor.java:199)

    at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:417)

    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:260)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)

    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:264)

    at atg.rest.servlet.HeadRestServlet.service(HeadRestServlet.java:130)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)

    Documentation, I understand that I need to create a session, the session is needed to access the secure components since this

    method specific 'ProfileServices.loginUser' was declared as non-secure, restSecurityConfiguration.xml

    In addition, there are two different ways in which I can connect

    1. 1. with the help of RestSession.createSession providing the user name and password.
    2. 2. or by using ProfileServices.loginUser or ProfileFormHandler

    Can someone please clarify

    If you call the REST web service from a Java client, you can create a RestSession object using the createSession method. But in your case you seem to be invoking it with an HTTP request, which, by default, would be considered a GET request by application of the REST of the ATG. So either a GET, he would try to get a property "loginUser" of the component/atg/userprofiling/ProfileServices (based on your URL) that would always fail.

    To call the method ProfileServices loginUser() with your argument, you need to tell the system to the REST of the ATG to process your incoming request not GET, but as a demand that you can do to atg-rest-http-method of the parameter control in your application like this

    http:localhost:8080/rEST/bean/atg/userprofiling/ProfileServices/loginUser? [email protected]& arg2 = password & atg-rest-http-method = POST

    It should work in this way, your restSecurityConfiguration.xml is correct.

  • Passing parameters from the request to an external Web Service

    Hi all

    I'm not new to ODI, but today I have to work with Web services, something I've never done before.
    so I need help.

    My new project aims to fill a DB table, but the only way to do it is passing data through a web service.
    The web service already exists and I can't create a new one, so I guess that by using Data Services ODI is not a solution.
    This web service is waiting for the values in the column, and there is an insert in the final table.
    Finally, I want to call this Web Service and pass through the settings from a query of RDBMS.

    Before creating this post, I searched around articles and documentations and the only thing I found was on the documentation of ODI, but was really short:

    Using the mechanism of binding for applications:
    It is possible to use the mechanism of binding when using a web service call in a procedure. With this method, it is possible to call a web service for each row returned by a query by setting the request based on the values of the line

    So it seems to be possible, but if you have some clues on how to do it please let me know...

    Hi Brice...

    How are you my friend?

    It's not that difficult...

    Have you ever used the tool of odiInvokeWebService?

    All you need to do is call this tool in a target tab of proceedings and in the use of the source of the query.

    Don't worry about variables "bind", call the kind of substitution ' # ', it will work better.

    Does this make any sense?

    Cezar Santos
    http://odiexperts.com

  • Results of long-term with the web service call process

    I'm starting a long-lived process that dragged out variables using a .net web service call. I would like to be able to get these output variables. I find all of the features in the JobManager service to do this... y at - it another way to do this? I am not above querying the Livecycle database...

    Thank you

    Mike

    It will work only after that the process is 'complete'.. then you need to check the status... .and when that is complete, then you can check the results.

    Paul

  • ADF Web Service call

    I try to call a Web ADF SOAPUI or browser Service.

    There are two URLS but one of them is accessible and others it does not. We need to put in place something on cloud of Fusion so that we can access the service?

    https://ebxg-test.fs.em2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?WSDL -does not work

    https://ebcy-test.fin.US2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?WSDL -I could call it from SOAPUI

    All directions?

    Kind regards

    SID

    To elaborate a little more on what Jani said, ". end.«» segment in the second URL means that demand will the field of finance, which is the right place for a web service of financial data.  The '.fs.' in the first URL means "Functional Setup" and is another server (domain) that doesn't have the expanded financial services web service, so it won't work.

    Hope this helps,

    Mr Oliver Steinmeier

    Fusion applications Developer Relations

    https://blogs.Oracle.com/fadevrel

  • Web service call - works locally but not on mobile?

    Hello

    I have a web service call (the service is hosted on the cloud is an external area of permamnent) which works fine when I test locally using the Flex Buritto built in emulator or directly by using my browser.

    But when trying a android phone (tried a few of them - link one, nexus s and galaxy tab) the service is called but never returns anything.

    Is there a good way to trace of call / understand the problem?

    Thank you

    NIR

    Export project based on your device...

    If your developling locally you must do in order to get the remote calls to work

    That should solve your problem

  • ODSI web service calls

    Hello

    I want to route the ODSI web service calls to different hosts in different environments. In other words, in my development environment, I don't want to call a quick service to "myosb - dev.mycompany.com:7001", but in production, I don't want to call the same service to the "myosb - prod.mycompany.com:8021".

    I see that I can configure a different port for the Physics Department in the ODSI administration console. However, it is not very practical, since the original WSDL must contain information port for all environments from the get-go. If the service is reinstalled in the production, I need to update the wsdl file and redeploy my data space for moving. This can be a problem due to the cycle of deployment of my app be out of sync with the service that I give the floor.

    My question is: is it possible to configure the addresses to host more dynamically? Is it possible to use a variable to control this information a set of services that are located on the same server?

    Thank you!

    The f

    Go to the Console ODSI. Click your data space. Click the physical Source (at the bottom of the left panel).
    Click on "Web Services" and select the Web service you want to change.

    You will see a place where you can specify a 'new value' for the wsdl file. So if you make a copy of your wsdl and the change of the

    to the other server, you could specify that wsdl.

    It seems you could also copy the "service" element (or just the "port" element) in the original wsdl, and substitute in the ODSI console for the appropriate service or port. I've never tried that. I'm not sure if you also need to copy any elements that refer to the service or port.

    Here's the doc http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/admin/server.html#wp1049919

    Here's a thread about doing this via WLST Dataspace imports with WLST : Full Deployment option?


              
                   
              

         


              
                   
              

         

  • Web Service - Call with URL and SOAP in return?

    Hello

    Is it possible to call a WebService for Coldfusion with a URL like http://site/component.CFC?method=doSomething & parm = 1 and send the response returned as SOAP? Seems that I get a response from wddx when I do it this way. I know that I can create a web service object and call from Coldfusion, which is really nice because we can use the SOAP response as a query object. Is it possible to do this "invocation" from a http call?

    Thank you!

    I used this approach for interacting with SWC to an Ajax call on the client, return JSON or XML of the CFC, but don't think that this approach would be ideal to return a SOAP response.

    Technically, you can use this method to return a SOAP response, however, this means that your method of CFCS should generate and return the XML SOAP itself. CF automatically will do that for you as it does when you call a CFC as a Web Service.

    You can call a web service to CFHTTP, but I think it's a lot more work than using CFINVOKE. There is a post of nice blog on this approach:

    http://www.jamesnetherton.com/blog/2007/01/14/invoking-a-WebService-using-cfhttp/

  • Reading the SOAP headers

    Hi all!

    I was wondering how I used to read the SOAP response headers?

    The trace output that answer... I'm reading the header ServerInfo

    <? XML version = "1.0"? >
    "" < soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/soap/envelope/ '
    "container =" http://www.w3.org/2001/XMLSchema "
    ' xmlns:NS1 =' http://testfede.com/ '
    xmlns:ns2 =" http://soapinterop.org/xsd" > "
    < soapenv:Header >
    < ns2:ServerVersionInfo >
    Fede < param1 > < / param1 >
    fede2 < param2 > < / param2 >
    < / ns2:ServerVersionInfo >
    < / soapenv:Header >
    < soapenv:Body >
    < ns1:sayHiResponse >
    Holaparam < return > 1 < / return >
    < / ns1:sayHiResponse >
    < / soapenv:Body >
    < / soapenv:Envelope >

    Sorry!
    I guess it's Monday!

  • Cannot access the ISE-3395-K9 CISCO Web GUI

    Hello

    I can't access the ISE-3395-K9 web gui interface concert 0 with ip address is 192.168.1.10.  I put the ip address of my labtop to 192.168.1.20 and could ping back but am still not able to access them through a direct connection between my labtop to concert interface 0 using one of the supported web browsers.  Any help would be greatly appreciated.

    It is possible that the GUI was configured to restrict access to only certain IPs / subnets. If 192.168.1.x isn't one of them, then you will have access.

    Are you able to connect to the shell via SSH? If so, you should check and confirm that all associated ISE services run by running the following command:

    show the application status ise

    Thank you for evaluating useful messages!

  • To access the OS browser app reviews web host

    Hello

    I created my vmware Player (X) application using a vmdk disk file.

    There was a single web application deployed in the comments that is accessible in the browser firefox comments. ( http://< localhost/hostname >: 8080)- Tomcat

    My question is - is it possible to access the same web application from my host machine browser by typing the URL. Unfortunately at this time I couldn't able to access.

    For ex: http://< GuestVMIP/hostname >: 8080 (Tomcat)

    Settings of the player hostname & VMware

    (1) add the host ip address and hostname in/etc/hosts

    (2) card WLAN - NAT: used to share the IP address of the host

    SystemOPERATING SYSTEMIPAddressHost nameInternet
    HostWindows 10192.168.x.xPHY:/var/Xen/domains/testwin/disk.img,had,wwork
    CommentsCentOS 6.5127.0.0.1testcentwork

    (3) vmware Ifconfig is included in the image.

    Vmware_IPAddress.jpg

    Any help on this will be highly appreciated.

    Thank you

    Billon

    Hi Wila,

    Thanks for your reply.

    I solved this problem. to be precise, the question is how to establish communication between the host operating system and the guest operating system.

    I never thought that this was much simpler. Broke my head with lots of DHCP/static IP configurations.

    Running order with access root and its given an ip liaison to the guest operating system (CentOS) output. That intellectual property allowing access to the web applications of comments through the host browser.

    dhcpcl - v

  • problems with the XML that is returned when you call a web service with CF11

    Hi, I ran into an unusual behavior when calling web services.

    I call a web service that returns an XML like this:

    < children >

    < child >

    John < firstname > < / name >

    DOE < name > < / lastname >

    < / child >

    < / children >

    during the call to the web service of CF10, it works fine. However, when the CF11, I don't get this:

    < child >

    John < firstname > < / name >

    DOE < name > < / lastname >

    < / child >


    no < child >? for some reason, CF11 ignores / hides the highest level XML. This does not happen on previous versions. Why? the server that hosts the web service's CF11 too.

    Report it as a bug in Coldfusion. In any case, I recommend making sure your web service returns a string, not an XML object.

    This is because a web service must be universal. Appellants to .NET, Java, PHP, ASP and so on, will interpret a chain exactly the same way. Whereas an object XML Coldfusion is a construction that is heard only in CFML.

    Your return string should also start with the XML declaration, like this

    John

    DOE

    So it is clear to the appellant in which brought the cat.

  • Add headers to a Web Service Proxy

    Hi all

    I am trying to use a web service via a web service proxy in a common library of java, as part of a validation method. I use JDev 11.1.1.5.

    The question that I have is that the web service requires two custom headers. I created a CustomSOAPProvider class that extends the internal ADF SOAP class provider to add extra headers, which works when I implement the WS as a data control. I recreated it as a web service proxy, but I'm not sure whether to refer to the current SOAP message and edit it with extra headers in a java class? I call the web service successfully, and I get a response "unauthorized".

    Any help would be appreciated!

    Thanks in advance,
    Aaron

    I got it...

    Card reqCtx =
    ((BindingProvider) iditInterface) .getRequestContext ();
    Card reqHttpHeader =
    ReqCtx.get (MessageContext.HTTP_REQUEST_HEADERS) (map);
    If (null == reqHttpHeader) {}
    reqHttpHeader = new Hashtable ();
    }
    The list header1 = new ArrayList();
    Header1.Add ("[Header1-value]");
    reqHttpHeader.put ("[header1name]" header1);

    Tete2 list = new ArrayList();
    Header2. Add("[header2-value]");
    reqHttpHeader.put ("[header2name]",-tete2).

    reqCtx.put (MessageContext.HTTP_REQUEST_HEADERS, reqHttpHeader);

    I used the code above to add HTTP headers, before calling the Web service interface.

Maybe you are looking for