Consume Web services - XMLAttributes and XMLChildren

I consume a webservice that items contain values to XMLAttributes, XMLChildren, but not both at the same time. It is a rule, or is it possible that he could potentially return the two sets of values?

There is no reason that a given element could not have attributes and children.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Tags: ColdFusion

Similar Questions

  • How to consume web services REST in ADF - JDeveloper 11.1.1.6

    I have an ADF application deployed on Java cloud and I'm trying everything to try to get the data into it. I could not set up a connection to the Oracle Cloud server, to remedy this I created my db cloud instance RESTful web services. Now, I need to consume web services in my ADF application.

    Is there a way to link the ADF business components to RESTful web services in version 11.1.1.6?

    If not, then how is it possible to get data in your ADF application deployed on Java cloud? You cannot connect to the DB, you can not link to REST web services, how are you supposed to use your data?

    Thank you.

    Check out hands-on experience on Oracle products: deploy Oracle Cloud database objects using JDeveloper for the part of the database and hands-on experience on Oracle products: deployment of Applications in the cloud to Oracle using JDeveloper ADF on how to deploy an application in the cloud.

    Timo

  • How to fire a manager class when consuming web service in java - weblogic

    With the help of Axis 1.4 I created client application that consumes the external server services.

    The response of the application server with the soap message that include tags header as well as the body tag.

    My problem with the header tag, I'm trying to find away to get the header element.

    What happened so far:

    I found that I need to use a handler that extends BasicHandler using this class, I can get the header tag. source: dealing with SOAP in the axis headers

    But how this handler to operate during the use of web services? I mean how to call this handler whenever I received the response from the server to get his header .

    Some articles suggest I should use .wsdd file. I use 11.1.1.7 with weblogic 10.3.6 Jdeveloper environment where I don't know web.xml configuration file.

    Question: How to bind this information (Manager class, .wsdd file and web.xml ) to collect and the Manager works for the heading tags?

    The best start was to check the Axis guide on: Apache-Axis reference Guide where you will have an overview of the workflow. (Thanks to Timo)

    To configure the handlers be trigger on the client side you need to do the following:

    1- Create class Manager basically something similar to the following:

    package mypackge; 
     import javax.xml.soap.SOAPException;
     import org.apache.axis.AxisFault;
     import org.apache.axis.MessageContext;
     import org.apache.axis.handlers.BasicHandler;
     import org.apache.axis.message.SOAPHeader;
     import org.apache.axis.message.SOAPHeaderElement; 
    
     public class SoapHeaderConsumerHandler extends BasicHandler
     { 
         public void invoke(MessageContext messageContext) throws AxisFault 
         { // Your logic for request or response handling goes here. 
          // Basically you need to make use of the parameter 
         // messageContext where you can access the soap header and body tags. 
         } 
    }
    

    2- Create the client-config.wsdd file. It will look like the following:

    http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      
           
               
          
      
     
    
    
    

    You can see that I only use handlers for incoming response side server. So whenever the client application receives a response from the server the class Manager SoapHeaderConsumerHandler is triggered and the method invoke will be called by default.

    Note: if you want to access the outgoing request before sending to the server you need to add an additional label for to add the request handler.

    Check the Reference Deployment (WSDD) of the guide of the axis:

    3- Where to place the client-config.wsdd file?

    You will need to place the .wsdd file in the working directory. You can easily find the location of the working directory using:

    System.out.println("Working Directory = " + System.getProperty("user.dir"));
    

    Source: Get the Current Working Directory in Java

    You just place the .wsdd file here.

    Useful links:

    Where to place the file client - config.wsdd in Railo

    Handler axis V It is an example to managers of the side server.

    Dealing with SOAP headers in the axis

  • Consume Web service REST to 8.52 PT with JSON body

    We are on tools 8.52 and try to consume a web service from REST to the external address.  I have successfully built a document and I am able to use the GET operation (where no body is necessary), but for the POST, I need to be able to provide the body in JSON format.  8.52 tools is not supported with native support for JSON, but it should always be possible generate the JSON string manually, it should not?

    Has anyone else done this?

    I thought you said you were on PeopleTools 8.52. Support JSON for Documents has not been added up to 8.53. Add an element with the attribute psnonxml to your load XML and put your JSON in this element. Integration Broker will remove XML Integration Broker exit. You can see an example here: http://jjmpsj.blogspot.com/2011/10/rest-like-peoplesoft-services.html.

  • consume web service example

    HY,

    I try to consume a web service from the w3c: http://www.w3schools.com/webservices/tempconvert.asmx

    I also found an example on: Re: problem with apex_web_service.make_request after upgrade to 4.1.1.00.23

    But when I run the code I got the following XML:

    <?xml version="1.0" encoding="utf-8"?>
    <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>
            <soap:Fault>
                <faultcode>soap:Client</faultcode>
                <faultstring>Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/FahrenheitToCelsius.</faultstring>
                <detail />
            </soap:Fault>
        </soap:Body>
    </soap:Envelope>
    

    My code is:

    declare

    l_envelope CLOB.

    l_xml XMLTYPE.

    l_temp varchar2 (4000);

    BEGIN

    " l_envelope: = ' < soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:tem =" " http://tempuri.org/ ">

    < soapenv:Header / >

    < soapenv:Body >

    < tem:FahrenheitToCelsius >

    < tem:Fahrenheit > 71 < / tem:Fahrenheit >

    < / tem:FahrenheitToCelsius >

    < / soapenv:Body >

    < / soapenv:Envelope > ';

    l_xml: = apex_web_service.make_request)

                    p_url               => ' http://www.w3schools.com/webservices/TempConvert.asmx ',

                    p_action            => ' http://tempuri.org/FahrenheitToCelsius ',

    p_envelope = > l_envelope

    );

    l_temp: = apex_web_service.parse_xml (l_xml, "/ / FahrenheitToCelsiusResponse/FahrenheitToCelsiusResult/text () ' ','xmlns ="http://tempuri.org/"'");

    apex_debug.message ("Test:" | ") l_temp);

    l_temp: = l_xml.getStringVal ();

    : P1_XOUTPUT: = l_temp;

    END;

    I think that the line "p_action" is false, because http://tempuri.org doesn't work anymore.

    But what url should I use instead?

    with sincere friendships.

    ILB

    I had a few problems of namespace. now it works...

    declare

    l_envelope CLOB.

    l_xml XMLTYPE.

    l_temp varchar2 (4000);

    BEGIN

    "" l_envelope: = 'http://schemas.xmlsoap.org/soap/envelope/ "xmlns:tem ="http://www.w3schools.com/webservices/">."

    3

    ';

    l_xml: = apex_web_service.make_request)

    p_url-online "http://www.w3schools.com/webservices/tempconvert.asmx."

    p_action-online "http://www.w3schools.com/webservices/FahrenheitToCelsius."

    p_envelope-online l_envelope

    );

    l_temp: = apex_web_service.parse_xml (l_xml, "/ / FahrenheitToCelsiusResult/text () ' ','xmlns ="http://www.w3schools.com/webservices/"'");

    -l_temp: = l_xml.getStringVal ();

    : P1_XOUTPUT: = l_temp;

    END;

  • can I use flex to consume web services?

    I'm not a Flex developer and before diving in, I want to be sure that it meets the requirements of my project. Especially, the consumption of web services. the other part of this project are a bunch of buttons and graphics that are all GUI. so I think that Flex can handle this part as Flash.
    Currently, I use flash, but my current client insists on the use of flex. so my question is: can I develop everything in Flex that I can develop in flash? or are there limits?

    If you are developing applications in Flash, then you will love Flex. Flex will make you much more productive than the Flash to produce applications of any complexity. You can do it at least 'most' of what you can do in Flash and more. There could be a few things you can do in Flash, or more easily in Flex, but your client has that right. They want to Flex and they should want it. See the help of FB3 for WebService and HTTPService, RemoteObject components.

  • Web services, PHP, and Blackberry...

    Hi all... I'm developing a webservice. I have PHP server-side and client-side is the smart phone BlackBerry (java). I´d wants to know what kind of technology using the you´re... I ve been trying with Nusoap but it s give me a lot of problems... any other suggestions? I´d like to keep PHP code on the server... Thank you!

    You can search this forum also in google, there are a few tutorials present for example.

  • Server error in application when consuming a web service

    We are working on 33 REGS3/Bundle in PeopleTools 8.52.10 for Campus Solutions 9.0. A web service that we have been since 2008 consumption no longer works. Actually, yesterday she also did not work in our QA environment, but today it is and it works in our environments to TEST and DV.

    I have a test page that allows me to test the Web Service only, and what happens is that I put all the fields and then I submit the call of service and after 30 seconds or if I am expelled from PIA.

    The error I get is:

    PSPAL: Abort: received fatal exception

    PSAPPSRV.1872 (370) [20/05/14 16:16:49 [email protected] (FIREFOX 29,0;] [Win7) ICPanel] (0) aborted process.

    PSAPPSRV.768 (0) [20/05/14 16:17:10] (0) PeopleTools release 8.52.10 (WinX86) from. Tuxedo server is APPSRV 99/3

    PSAPPSRV.768 (0) [20/05/14 16:17:10] (0) used Cache Directory: f:\SES9_CFG_8.52\appserv\s9fix\CACHE\PSAPPSRV_3\

    PSAPPSRV.768 (0) [16: 17:14] (0) 20/05/14 server started

    I don't see anything in the Service monitor and I don't see anything in the msgLog.html or the errorLog.html. I have Google had the error PSPAL and he said this:

    ---

    "We managed to solve this problem. After all a lot of digging, we determined that the load balancing session timeout has been set to less then the timeout in PIA. Whenever users has expired because of this problem this type of error would be generated in the application log. »

    ----

    Sysadmin says that we do not have an on this server load balancer


    I'm at a loss what to try next, or how I can fix this problem.


    Tamara Foster

    Northwestern University

    This problem has been resolved by a SR. The solution is that when I re-consumed service there is a checkbox named "Build Document Messages" which must be unchecked.

    Once I unchecked it and re - consume the service once again, it worked.

    Thanks to Hazim Al-Azawi, who provided the solution for me.

    Tamara Foster

    Northwestern University

  • Adapter of Jena and SPARQL web service end point

    If I understand correctly, with the Jena java map interface, the client can connect to Oracle RDF data directly. Why is it always the web service SPARQL endpoint point? Demand for adapter request Jena on the client side has to go through SPARQL Web service first and then road to Oracle Server? Or query with SPARQL should go through webservice and not SPARQL query directly go to the Oracle Server?

    Thank you.

    Hello

    You are right that a client can connect to Oracle RDF directly through the adapter of Jena. The reason to provide a SPARQL web service end point is to give the flexibility and additional interoperability. With the SPARQL web service endpoints, you didn't even need to write code to interact with the underlying database Java. It also facilitates the SPARQL Federation much.

    It will be useful,

    Zhe Wu

  • ADF Mobile access protected web service with the user name and password

    With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).

    In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.

    I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm

    Is there a way to do this, or if I'm missing the entire image?

    Thank you very much.

    Christos

    Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

    or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html

    Timo

  • 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/

  • Web Services connection permission

    I developed an application for my 8300 with software v 4.5

    It consumes web services as a customer.

    Every time that the application tries to consume the web service presents a new screen asking user permission to connect to the destination IP address.

    How can I avoid this application for my application runs continuously?

    Thank you

    Antonio

    Otherwise, this could be the standard BlackBerry screen "Firewall/Permissions" checking connection.

    There is a checkbox "ask once" at the bottom of the dialog box asking the question?  Try to check that.

    If it is the Application of permissions, then you have a range of options including:

    (a) that the user addresses and use the option "ask once"

    option (b) use the "Set Permissions" to download time during the installation of Over The Air

    (c) set the permissions of Applications via the BES for this application (assuming that you are pushing it the BES)

    (d) set the permissions on the device - Options--> Advanced--> Applications--> change permissions

    (e) programmatically in your Application

    Look around here this forum for other users who have asked similar questions.

  • Using the web services via VBScript

    Hello

    I'm very big thing back to the VMware infrastructure.

    (1) in my application, I want to write a VBScript (preferebly) that can consume web services provided by ESX to clone the exsisting images and do some basic operations on, snapshot etc. as powern. Is this feasible?

    (2) according to my understanding, the services web of ESX and vSphere services are the same. Am I wrong?

    (3) services of vSphere web must vSphere is available in fact?

    Please forgive me if any of the issues makes no sense. Kindly guide me further.

    Hi Chaitanya,

    vSphere API provides a way to interface with VMware infrastructure, and these are exposed as services web servers ESX and virtual Center.

    (1) vSphere Web Services SDK facilitates the development of client applications that target the vSphere API. It allows to build SOAP-based applications to control the ESX Servers / vCenter servers and virtual machines running on them.

    You can write client applications in Java or c#. vSphere web services SDK includes files WSDL, examples of code in Java and c#, various libraries and all the necessary components required to work with the vSphere API.

    You can also use vSphere SDK for Perl which provides a script Perl to easy-to-use interface to the vSphere API. SDK comes with utilities and documentation for the creation of vSphere management applications

    (2) are you reason ESX web services are actually vSphere web services. vSphere is bascially the name given for the latest versions of 4.0. Earlier he was VI SDK 2.5/2.0 and now it's vSphere web services SDK.

    (3) vSphere web services are exposed in the ESX servers, so ultimately you need vSphere infrastructure on your side. What is it ask you?

    I hope this information helps!

    -Angela

  • Integration of Web services in Oracle e-Business 11g1.1.14 JDev

    Hello

    Could someone please help me out with the technique suitable in this regard...

    I created a JDeveloper ADF application which deploys currently use / consume web services from one of my instances of Oracle e-Business. I have outlined some by the filing of the integration of the API and you can see in JDEV.

    To create the web service (via the Wizard), I entered an address for the WSDL file. However, this address is specific to the instance of the application.

    When I migrate / deploy my application in other environments, for example from Dev to Test, I'm sure that the Web Service will always be to 'point' to my instance of development about 99.9%.

    Is the best practice for editing each WebService as I migrate through environments? Or is this now touch on the field of areas outside the scope of this forumn?

    Once again, looking for tips / directions not a complete solution... happy to do my own research it myself.

    Thanks in advance if anyone can help.

    See you soon,.

    Simon

    Read this:
    http://blogs.Oracle.com/ADF/2011/02/changing_endpoint_url_for_a_web_service_data_control.html

    And you can also use a deployment plan:
    http://kingsfleet.blogspot.com/2008/12/controlling-what-service-proxy-uses-at.html

  • Does support Flash Web services hosted on https?

    Hello..
    I am new to web services using flash.
    I need to consume web services hosted on https://webservices.netsuite.com/wsdl/v2008_2_0/netsuite.wsdl
    When I add this URL in the Control Panel window-others-WebServices, it throws the error
    Please enter a valid: URL / / WSDL...
    I'm using flash professional 8.
    Other http WSDL files works fine...
    Does flash support https?
    guide me to the rest...
    Thanks and greetings
    Ravi

    Delighted, he must consult with this Web hosting company. I visited your site and it contains style information. You must also check the code with http://, either it works with it or not.

Maybe you are looking for

  • Satellite C55: microphone does not work with the connected headphones

    Hey everybody, I have a Toshiba Satellite C55. I've seen other forums posted on this topic, but none of the solutions seem to work for me. I tried to uninstall the drivers and restart the computer, and configure the microphone when the headphones are

  • Program Word refreshed and lost on my Acer Aspire E1 - 532P

    I have 'refreshed' my Acer laptop a few days ago because he acted a little funky lately. Well, my Microsoft Word program has been completely erased. Now I can't access/open my saved documents. I received a prompt asking you to buy me a Word program f

  • QuickVPN - could not do a ping the remote VPN router!

    Hello I have a RV042 (VPN router) and I have some problems to run properly using the QuickVPN client. Here is the Log of the QuickVPN client. 2008-10-15 20:14:38 [STATUS] a network interface detected with 192.168.0.104 IP address2008-10-15 20:14:38 [

  • Studio XPS 8000 (end 2009) + EVGA GTX 750 Ti, wake-up service by default/black screen saver (S3)

    My Studio XPS 8000 (end of 2009) has no problem with sleep (S3) and wake up before I upgraded the Dell OEM Geforce GTX 260 arrives with the EVGA Geforce GTX 750 Ti system. At present, the system has no question to go to sleep mode, however, when I tr

  • Problems with Windows Live Mail 2011

    It should be clear to everyone by now that Windows Live Essencials 2011 is full of bugs and doesn't work as well as the previous version. My problem has to do with the Live ID Signin Assistant. Conflicts of this program to be able to view the network