consume WebService

I want to consume a Web created with SAP XI service.

When I call this Web service I get the message: could not generate objects stub for the call to the web service.

I tested the webservice consume in order to investigate the message you:
When I call a Web service to a "annonimous' he's fine

When I call a webservice even at a virtual card "authetication integrated windows" it won't with the same message

When I enter the username and password that nothing has changed

I can't save this a webservice in the coldfusion administrator: error service error creating web. Please ensure that you have entered a Web Service name or the correct URL.

CF does not support integrated Windows authentication. Thus, CFINVOKE cannot make HTTP connection.

Tags: ColdFusion

Similar Questions

  • Consume Webservice - java.io.IOException: General socket error

    Hey,.

    I'm trying to consume a webservice ( www.webservicex.net, but also tried other forecasts) with a smart blackberry phone, but I still have a java.io.IOException.

    I generated stubs with the Java Wireless Toolkit 2.5.2. Now, I call the heel of the Java application.

    My MDS is running and are configured for use with my proxy. I can view each page with the built-in browser.

    The call of the stub works like this:

    public class BB_WeatherStart extends MainScreen {
    
       public BB_WeatherStart() throws RemoteException {
        com.weather.WeatherForecasts weather = null;
        WeatherForecastSoap_Stub stub = new WeatherForecastSoap_Stub();
        weather = stub.getWeatherByZipCode("10024");
    
        LabelField longi = new LabelField();
        longi.setText("Longitüde" + weather.getLongitude());
        add(longi);
    
        LabelField status = new LabelField();
        status.setText("Status" + weather.getStatus());
        add(status);
       }
    
    }
    

    The instantiation of the stub works, but the call of the method getWeatherByZipCode returns this exception.

    This is the code for the method:

    public com.weather.WeatherForecasts getWeatherByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException {
    
       Object[] inputObject = new Object[1];
       inputObject[0] = zipCode;
    
       Operation op = Operation.newInstance(_qname_GetWeatherByZipCode, _type_GetWeatherByZipCode, _type_GetWeatherByZipCodeResponse);
       _prepOperation(op);
       op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://209.162.186.60/GetWeatherByZipCode;deviceSide=true");
    
       Object resultObj;
       try {
          resultObj = op.invoke(inputObject);
       } catch (JAXRPCException e) {
        throw e;
       }
    
    //Snip.. the Rest of the method is never reached ;)
    
    }
    

    The Exception is thrown in the call to op.invoke (inputObject);

    I also tried the hostname instead of IP address, but then I get a j "" ava.io.IOException: bad DNS address "and if I try without the"; " deviceSide = true' I get the message "Local port: 19780 APN:"rim.net.gprs"APN username: password 'null' AFN: there is no connection"null"

    Thanks for your help

    Tina

    After watching a little I don't think that the original problem was with the connection I think it is related to a null value returned by the web service.  I generated a set of stubs from the web service, you were using and tried with the same result as you.  I got a version of 4.5 and made some settings (I don't specifically know who he was) and the error has become ' java.rmi.MarshalException: nillable not element of array in response type is not met. ".  Went up to version 4.7 and here it works very well.  If you run this with a test tool web service call, you see a null of WeatherData to the bottom element which is the likely culprit.  I read somewhere that BB do not have NULL values in some earlier versions.

    hope that helps.

    T

  • Consuming webservice with widget Blackberry - Visual Studio dotnet

    Hi team,

    I have developed a webservice in ASP.NET and consumed it in using the Blackberry application

    HTML/JAVASCRIPT with XML HTTP REQUEST. It works very well and gives the O/P expected only when the

    Web service runs in LOCALHOST. When it's hosted Web service on a different server, I have m

    access with browser.but through the application of BLACKBERRY, unable to get the answer.

    Hearing from friends that JAVASCRIPT cant directly consume not on Web services

    LOCALHOST and the fact using WEBSERVICE behaviors (downloaded webservice. HTC) and

    After writing all the code, and then the debug gives the error to the so-called CALLSERVICE method

    undefined function , I guess that BB doesnot support webservice behavior option.

    Thus, even tried with the approach by JQUERY. It gives an error: external resources error requested resource and doesnot even run with LOCALHOST as well.

    Please help me the way out...

    Kind regards

    GOUSSARD

    Hey! I thought I did, but no jajaja

    I added the http://192.168.1.114:90 address to areas in the config.xml file an it worked!

    Yeiiii! I am so happy

    Thanks for your reply.

  • Consuming webservice WSDL

    Hello

    Using jdeveloper 11.2.3.0.

    I consumed the webservice using the "Webservice WSDL Java" option. He created SampleMethodImpl.java which has 2 methods add (int a, int b) and sub (int a, int b).

    I call Add (int a, int b) in my EOImpl.java class.

    Kind regards

    Prasad K T,.

    Here are some tips on how to do

    https://blogs.Oracle.com/middleware/entry/calling_web_services_using_adf_11g

    Antonis Antoniou blog: integration of Web Services in your ADF Application Part 1

    and the doc http://docs.oracle.com/cd/E17904_01/web.1111/b31974/web_services.htm#ADFFD5340

    Timo

  • ADF 12 c - create and consume WebService using SOAP and business components

    Hi all!

    I am trying to create two separate projects. One who creates Web services using the components of the company and another to consume these services.

    For now, I created the basic operations of VO (search, update, Get,...) and even a find with use of criteria.

    I can easily use the Get functions (by id), nor on the criteria to get a customer by one of his name.

    The problem is that I need a function to retrieve all customers (without any criteria) in a table, and then modify the selected customer, perhaps with the update function. I tried this but, there is no collection on the data control to do so.

    On the last days, in that I wanted a resolution to my problem but the tutorials I've seen, none seems to be exactly what I need. At least none that I could clearly understand it is being implemented.

    Can someone give me a hint or two on how to make this implementation using BC/SOAP?

    Off-topic question: is there an advantage over the use of SOAP on REST, since the REST seems to be faster due to the possibility of using JSON?

    Thank you!

    You can create the custom method in your AppModuleImpl class that presents the signature.

    Something like:

    public List getAllRecords(){
        List result = new ArrayList<>();
    
        ViewObject vo = getYourVO();
        vo.executeQuery();
        while(vo.hasNext()){
            ViewRowImpl row = (ViewRowImpl)vo.next();
            result.add(row);
        }
    
        return result;
    }
    

    And in the AM editor expose this method as part of your web service.

    Then in the other project to create this ws-based Web Service data control, call the getAllRecords() method (as method activity in some task flow, or drop it on the page as a button) and in the end, expand getAllRecords() day in data controls pane and drag and drop 'result' to your af:table page

    Dario

  • A link in an e-mail message to consume webservice database

    OK, that's what I want to achieve.
    I want to have a letter to be sent to customers with 2 buttons inside: YES/No.
    By clicking on these buttons, the answer must be stored in the database and the user should find themselves on a page that told him we recorded his response.

    What I have:
    I have a stored procedure that records the feedback from users.
    I exposed this procedure as a Web service (follow this procedure: http://www.oracle-base.com/articles/11g/native-oracle-xml-db-web-services-11gr1.php)
    I can see my WSDL successfully.

    Now, I have some questions on how to continue on this point on:
    (1) is there a good thread/blog/article that explains what security measures, I must take to protect this webservice and avoid SQL injection or other malicious software. Suggestions appreciated.
    (2) when I wanted to test the Web service by accessing using a URL I get ORA-1011 (similar to [this metric | https://forums.oracle.com/forums/thread.jspa?messageID=10282165] I found this thread, but it really does not give a solution to the problem)
    (3) at this point, I have absolutely no idea on how to achieve the user will end up on a confirmation page during his speech is recorded.

    Thanks for your advice!

    You need an Apache (httpd Oracle Server) server with Oracle's Apache module called mod_plsql. Or you need to set up http access to Oracle directly to the database by using a feature called EPG.

    Are you familiar with?

    As for the part of the web-enabled procedure. PL/SQL procedure, but can read the presentation of web browser (CGI variables, cookies read) and interact with the web browser (writing a cookie, send an HTML page, image, XML or or whatever).

    The simplest of the Internet procedure is something like this:

    // let's pretend the proc is created in the SCOTT schema
    create or replace procedure HelloWorld( name varchar2 default null ) is
    begin
      if name is null then
        htp.prn( 'Hello World' );
      else
        htp.prn( 'Hello '||InitCap(name) );
      end;
    end;
    
    // web (Apache mod_plsql) access to Oracle is via the
    // ANONYMOUS schema for example - so we need to
    // allow that schema to execute our proc
    grant execute on HelloWorld to ANONYMOUS;
    

    The name argument is optional. Then the web browser can refer to the procedure of extension web as follows:

    http://my-web-server.mydomain.com:8080/orcl/scott.helloworld
    

    This request will display an HTML page that contains the sentence "+ Hello World" +.

    The name argument can be used by the web browser. For example

    http://my-web-server.mydomain.com:8080/orcl/scott.helloworld?name=john
    

    This request will display an HTML page that contains the sentence "+ Hello John." + "

    So the call interface ito arguments and parameters available, works exactly as when you call a stored procedure from another client such as SQL * more.

    The only downside is that the browser passes name-values as string parameters, to the query string, it supports with the URL at Apache. This means mod_plsql gets only the values of string as parameter values - and these must be implicitly converted into date or number data types if your procedure parameters using these data types.

    It is advisable to rather to set all the parameters as the string and in your procedure, data type conversion and control, and exception management.

    Bottom line. A web procedure activated differs very little from a normal procedure and can do everything a normal procedure can do (treatment ito). The only real limitation is above mentioned client-passing-all-parameter-values-as-strings question. And the only difference is that a compatible web can actually write the output (any payload valid Mime support in HTML) in the client - which means that your process can generate dynamic web pages, dynamic content such as CSV and XML and so on.

  • Axis2 services does not not on weblogic

    I wrote a java code (Axis2) to consume webservice share point. If I run using a normal java main method I am able to run it successfully.

    If I run the same method using a servlet throws the exception as

    org. Apache.Axis2.AxisFault: the input for an incoming message stream is null.

    at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)

    at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)

    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)

    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)

    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

    Here's the code.

    public DocumentInfo getDocInfo (String targetDocName) {}
    If (targetDocName == null) return null;
    targetDocName = "Employee Handbook 2.0.pdf worm";
    Lists of ListsStub = null;
    try {}
    Initialize();
    list = new ListsStub (SharePointConstant.SHAREPOINT_LIST_SERVICE_URL);
    Lists._getServiceClient () .getOptions () .setProperty (HTTPConstants.AUTHENTICATE,
    authenticator);
    Lists._getServiceClient (). GetOptions () .setSoapVersionURI (constant. URI_SOAP11_ENV);
    ListsStub.GetListItems req = new ListsStub.GetListItems ();
    req.setListName (SharePointConstant.DOC_LIBRARY_NAME);
    ListsStub.GetListItemsResponse res = lists.getListItems (req);
    }
    } catch (Exception e) {}
    TODO: Add catch code
    e.printStackTrace ();
    } {Finally
    try {}
    OperationContext operationContext = lists._getServiceClient () .getLastOperationContext ();
    If (operationContext! = null) {}
    MessageContext outMessageContext = operationContext.getMessageContext ("Out");
    If (outMessageContext! = null) {}
    System.out.println ("OUT SOAP:" + outMessageContext.getEnvelope () m:System.NET.SocketAddress.ToString ());
    }
    MessageContext inMessageContext = operationContext.getMessageContext ("In");
    If (inMessageContext! = null) {}
    System.out.println ("SOAP:" + inMessageContext.getEnvelope () m:System.NET.SocketAddress.ToString ());
    }
    }
    } catch (Throwable e) {}
    e.printStackTrace ();
    System.out.println ("Cannot log soap messages:" + e.getMessage ());
    }
    }
    Returns a null value.
    }

    The SOAP message generated during execution of the main method is

    SOAP: <? XML version = "1.0" encoding = "utf - 8"? >

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

    < soapenv:Body >

    " < = xmlns:ns1 ns1:GetListItems ' http://schemas.Microsoft.com/SharePoint/SOAP/ "> "

    < ns1:listName > Policy and procedures< / ns1:listName >

    < / ns1:GetListItems >

    < / soapenv:Body >

    < / soapenv:Envelope >

    The meesage SOAP generated when running a servlet is somewhat different

    <? XML version = "1.0" encoding = "utf - 8"? >

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

    < soapenv:Body >

    " < = xmlns:ns1 ns1:GetListItems ' http://schemas.Microsoft.com/SharePoint/SOAP/ "> "

    < ns1: http://schemas.Microsoft.com/SharePoint/SOAP/ > Policy and procedures< / ns1:http://schemas.microsoft.com/sharepoint/soap/>

    < / ns1:GetListItems >

    < / soapenv:Body > < / soapenv:Envelope >

    If we see a first is passing the parameter with their name as (list name), a second is not able to pass the parameter correctly.

    Any suggestions?

    Thank you

    Sanjeev.

    BrainWave Buzz: Implementation of StAX of Weblogic is not supported, and some features of the axiom will work as expected!

    blog has solved the problem.

    I think that Apache Axis2 - Configuration Guide specific Application Server can also be called. In any case, my problem is solved by putting

    System.setProperty ("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory");

    System.setProperty ("javax.xml.stream.XMLOutputFactory", "com.ctc.wstx.stax.WstxOutputFactory");

    System.setProperty ("javax.xml.stream.XMLEventFactory", "com.ctc.wstx.stax.WstxEventFactory");

    Thank you

    Sanjeev

  • What is the best way for foglight consume a webservice

    I hope that this is has not been replied that a bazillion times and if it is please send me the link I'm open to that.  What is the best way for foglight consume a Web service and respond with an alarm if the response from the Web service is not what is expexted.

    for example, calls Foglight webservice to acme.com/areuup and he responds with correct status in json format process.  If it does agree return, then foglight must send alerts to correct individuals.

    Thank you

    Kaleb

    in the end, we have used a perl script to capture the webservice and treat it and tables configuration.  Here is what has been written and created an agent custom.

    I apologize to all those who find the bulky comments, but it's my edition of journal of the script. I removed the comments once the script has been published and used.

    ===

    #! / usr/bin/perl

    #############################################################

    # Author: Kaleb J. Albee

    # Depandancies: SOA webservice

    # Engineers: Marc and Manu

    # Date: 28/02/2013 perl: (v5.14.2) built for x86_64-linux-gnu-thread-multi

    # Operating system: Linux 3.2.0 - 29-generic eam-ops-test #46 - Ubuntu SMP Wed Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    #############################################################

    use strict;

    use warnings;

    use Try::Tiny;

    use SOAP::Lite;

    use SOAP::WSDL;

    Use Time::Local;

    My = @soaenvs ('BSE - dev', 'BSE test', 'BSE-scene', 'BSE');

    # parameters: $_ [0] receives a call of SOAP client object.

    #

    void toStr {return $_ [0] == 1?} 'up': 'down' ;}

    void getBusResults {}

    # $_ [0] will be the $client spent

    # create a different buses SOAP connection.

    my $result = $_ [0]-> (getMessagingEngineHealth)

    # arg0 is used to set the setting for what is expected on the soa web service.

    SOAP::Data-> name (arg0 => $_ [1]));

    # $_ [1] will be the bus happened in

    return (Lk ($result) "started" eq? 1: 0);

    #return $result;

    }

    # Start sampling.

    My $curTimeStamp = "";

    my $count = 0;

    Print "LdsEsbBusHealth5\nSTART_SAMPLE_PERIOD\n TABLE";

    foreach my {$soae (@soaenvs)

    my $client is SOAP::Lite-> service ("put the url of the webservice here.");.

    $count ++;

    # create an object to inspect objects. My $insp = Data new::Inspect->; Download the time stamp for this.

    my ($sec, $min, $hr, $day, $mon, $year) = localtime;

    # format the year correctly for useage.

    My $curyear = 1900 + $year;

    # the hand to the fglam agent fields at the tables.

    My $soacei = getBusResults ($client, "messaging.000 - CEI.esb.BUS");

    My $soaapp = getBusResults ($client, "messaging.000 - SCA.APPLICATION.esb.Bus");

    My $soasys = getBusResults ($client, "messaging.000 - SCA.SYSTEM.esb.Bus");

    $curTimeStamp = ' $curyear$ MON$ day$ hr$ min$ s ";

    Print "SoaEnv.String.id=$soae\n";

    Print "CeiBusNum = $soacei\n";

    Print "AppBusNum = $soaapp\n";

    Print "SysBusNum = $soasys\n";

    Print "CeiBusStr.StringObservation.obs =". toStr ($soacei). "\n";

    Print "AppBusStr.StringObservation.obs =". toStr ($soaapp). "\n";

    Print "SysBusStr.StringObservation.obs =". toStr ($soasys). "\n";

    Print "Daterun.StringObservation.obs=$curTimeStamp\n";

    If ($count<=>

    Print ("NEXT_SAMPLE\n");

    }

    } {$soae foreach (@soaenvs) #.

    Print "END_TABLE\n";

    Exit 0;

    ===

    I hope this helps someone out there!

    Bravo!

  • How can I consume a webservice

    Hi everyone, I use the plugin for blackberry for eclipse 3.4.1 with blackberry JDE 4.7. I'm trying to consume a Web service with WSDL url, but I don't know how. can someone explain to me how I can do it with a code example. the application is for a "" blackberry bold 9000".

    Thank you.

    Search the forum for KSOAP and/or JSR172.

    BTW, if your target is the 9000, then 4.7 is the wrong compiler to use. You will need to compile on 4.6 or lower.

  • EJB WebService to consume a data source

    Hello

    I use JDeveloper 12.1.3.0.

    I have to develop a Web of EJB Service that uses a data source in the WebLogic.

    I googled and looked, but I found no examples / tutorials that explains how it works and how to do it.

    The only examples that I found was by using a direct connection to the database, like this one http://waslleysouza.com.br/en/2014/10/restful-web-service-in-jdeveloper-12c/

    Can you help me?

    Thank you

    Even with respect to MySQL. Add the class name to the following.

    1. in WebLogic Server to set a data source with the name JNDI (jdbc/OracleDS)

    2. in persistence.xml specify the data source as a JTA data source.

    http://www.w3.org/2001/XMLSchema-instance '.

    xsi: schemaLocation =

    'http://java.sun.com/xml/ns/persistence '.

    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd".

    xmlns ="http://java.sun.com/xml/ns/persistence" version = "1.0" > "

    org.eclipse.persistence.jpa.PersistenceProvider

    JDBC/OracleDS

      name of the class

    />

    value = "create tables" / >

  • Create a background thread to consume a webervice and invalidate Manager to refresh the screen

    Hello

    I create an application that uses Web services to place objects on a VerticalFieldManager with the received information. What I'm trying to do is first tap on the screen and then consuming the Web service on the merits in order to refresh the screen while he receives the info. Right now my app uses the webservice from the preview screen, but it doesn't push the following until he finished consuming the WS.

    I read that you can create a background thread, and then syinchronize with the user interface refresh (invalidate()) screen, but I don't have all the tracks of where to start. Can someone help me please? Including creating a background thread?

    Thank you very much!

    The best way for your background screw to change your user interface within the constraints of the

    UiApplication.getUiApplication().invokeLater(new Runnable()
    {
        public void run()
        {
                     //your UI modifying code here
            }
    });
    
  • Consume a Web service using javax.microedition.xml.rpc.Operation

    Requirement. Consume a Web Service using native libraries of Blackberry.

    Target WebService: http://ws.cdyne.com/WeatherWS/Weather.asmx

    WebService of the operation: http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

    Environment: Eclipse JDE 1.3.0 with BB SDK Enterprise Server BB 5.0.0

    First Guide of: http://blog.bayestech.com/?tag=blackberry

    1 Java Stub

    public interface IWeatherServiceZip
    {
        public String getWeatherServiceByZip(String zipCode) throws java.rmi.RemoteException;
    
    }
    

    2. Service Java class

    import java.rmi.RemoteException;
    import javax.microedition.xml.rpc.ComplexType;
    import javax.microedition.xml.rpc.Element;
    import javax.microedition.xml.rpc.Operation;
    import javax.microedition.xml.rpc.Type;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    
    import com.lm.bb.ws.interfaces.IWeatherServiceZip;
    
    /**
     * @author lmo0
     *
     */
    public class WeatherServiceZip implements IWeatherServiceZip, javax.xml.rpc.Stub
    {
        protected static final QName _qname_operation_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final QName _qname_GetCityWeatherByZIPResponse = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIPResponse");
        protected static final QName _qname_GetCityWeatherByZIP = new QName("http://ws.cdyne.com/WeatherWS", "GetCityWeatherByZIP");
        protected static final Element _type_GetCityWeatherByZIP;
        protected static final Element _type_GetCityWeatherByZIPResponse;
    
        private String[] _propertyNames;
        private Object[] _propertyValues;
    
        public WeatherServiceZip()
        {
            _propertyNames = new String[]
            { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[]
            { "http://ws.cdyne.com/WeatherWS/Weather.asmx" };
        }
    
        public void _setProperty(String name, Object value)
        {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    _propertyValues[i] = value;
                    return;
                }
            }
            String[] newPropNames = new String[size + 1];
            System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
            _propertyNames = newPropNames;
            Object[] newPropValues = new Object[size + 1];
            System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
            _propertyValues = newPropValues;
    
            _propertyNames[size] = name;
            _propertyValues[size] = value;
        }
    
        public Object _getProperty(String name)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                if (_propertyNames[i].equals(name))
                {
                    return _propertyValues[i];
                }
            }
            if (ENDPOINT_ADDRESS_PROPERTY.equals(name)
                    || USERNAME_PROPERTY.equals(name)
                    || PASSWORD_PROPERTY.equals(name))
            {
                return null;
            }
            if (SESSION_MAINTAIN_PROPERTY.equals(name))
            {
                return new Boolean(false);
            }
            throw new JAXRPCException("Stub does not recognize property: " + name);
        }
    
        protected void _prepOperation(Operation op)
        {
            for (int i = 0; i < _propertyNames.length; ++i)
            {
                op.setProperty(_propertyNames[i], _propertyValues[i].toString());
            }
        }
    
        public String getWeatherServiceByZip(String zipCode) throws RemoteException
        {
            Object inputObject[] = new Object[]
            { zipCode };
    
            Operation op = Operation.newInstance(_qname_operation_GetCityWeatherByZIP,    _type_GetCityWeatherByZIP, _type_GetCityWeatherByZIPResponse);
            _prepOperation(op);
            op.setProperty(Operation.SOAPACTION_URI_PROPERTY,"http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");//SOAP Action
            Object resultObj;
            try
            {
            resultObj = op.invoke(inputObject);
            System.out.print(resultObj.toString());
            } catch (JAXRPCException e)
            {
            e.printStackTrace();
            Throwable cause = e.getLinkedCause();
            if (cause instanceof java.rmi.RemoteException)
            {
            throw (java.rmi.RemoteException) cause;
            }
            throw e;
            }
            return (String) ((Object[]) resultObj)[0];
        }
    
        static
        {
            _type_GetCityWeatherByZIPResponse = new Element(_qname_GetCityWeatherByZIPResponse,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","GetCityWeatherByZIPResult"), Type.STRING, 0, 1, false) }), 1, 1,false);
            _type_GetCityWeatherByZIP = new Element(_qname_GetCityWeatherByZIP,_complexType(new Element[]
                    { new Element(new QName("http://ws.cdyne.com/WeatherWS","ZIP"), Type.STRING, 0, 1, false) }), 1, 1, false);
            }
    
        private static ComplexType _complexType(Element[] elements)
        {
            ComplexType result = new ComplexType();
            result.elements = elements;
            return result;
        }
    }
    

    3 problem

    There is no information about the exception that occurs when I try to debug my Application actually when you call the Web Service to:

    resultObj = op.invoke (inputObject);

    Any help.  If you have any other suggestions on how to consume a web service using BB. I don't want to use KSOAP2 because the source code is not updated more and prefer the native BB mode without using the 3rd party jars.

    Thank you

    How do you generate the stub class? Have you used Sun's Wireless Toolkit?

  • Click on MenuItem and consume

    is it possible to consume a click from a menu item?

    I use ListField to view the records that can be edited by clicking on a particular record, which displays an edit form. The problem arises when I want to extract fresh data from a webservice and redisplay the ListField, the user clicks on a menu item that initiates a Web service extraction, but the edit form click event triggers, which isn't what I want.

    So I would like to know if there is a way to consume a click from a menu item?

    Thank you

    Steve

    I managed to solve this problem by killing the FieldChangerLister then re-enabling it after the clicked menu on... Here is the code:

    _filterByPriority private MenuItem = new MenuItem ("priority", 100, 3)
    {
           
    public void run()
    {
    FCL FieldChangeListener = customObjListField.getChangeListener ();
    customObjListField.setChangeListener (null);
    customObjListField.refresh (tableRows);
    customObjListField.setChangeListener (fcl);
    }
    };

    Thank you Simon for putting me on the right track,

    Steve

  • Translation of webservices

    Hello everyone

    I m trying to follow this tutorial

    https://technology.AMIS.nl/2012/08/10/implement-resource-bundles-for-ADF-applications-in-a-database-table/#comment-8365

    but adapt to my application providing Web services (I was already succesfull making another application ADF BC following the tutorial, but not with the webservices).

    I came across a problem in my class that is exposed as a Web service where I have all methods of AppMod I can´t get to the "getResourceBundle (local String)" method defined in AppModImpl and exposed in the Client Interface.

    private static final String amTranslationDef= "model.am.TranslationAM";
        private static final String translationAMConfig = "TranslationAMLocal";
       
        @GET
        @Produces(value = { "application/json", "application/xml" })
        @Path("/getTranslation")
        public ResourceBundle getTranslation(@QueryParam("ParamLocale") String varLocale){
            ApplicationModule am = Configuration.createRootApplicationModule(amTranslationDef, translationAMConfig);
            AppModuleImpl amImpl = (AppModuleImpl) ADFUtils.resolvElDC("TranslationAMImpl");
            AppModuleImpl amDC = (AppModuleImpl) ADFUtils.resolvElDC("TranslationAMDataControl");
            ResourceBundle translation = new ResourceBundle();
               
            try {
                am.
                amImpl.
                amDC.
                   
    
                Configuration.releaseRootApplicationModule(am, true);
            } catch (Exception ex) {
                System.out.println("\n\nERROR: " + ex);
                Configuration.releaseRootApplicationModule(am, true);
            }
    
            return translation;
           
        }
       
        //ADFUtils
       
            public static Object resolvElDC(String data) {
            FacesContext fc = FacesContext.getCurrentInstance();
            Application app = fc.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = fc.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, "#{data." + data +
                                                ".dataProvider}", Object.class);
            return valueExp.getValue(elContext);
        }
    
    

    Or amImpl/CDMA bodies shows me the method available.

    AOS shows all other methods of VO´s except the one I want to Impl.

    Test of the AppMod it works and the method is showned in DataControls Palette

    Any help would be apprecciated,

    My version of Jdev is 12.1.3.0.0

    Thank you

    Carlos

    Yes, right you´re, on the name, it s: TranslationAMImpl, sorry.

    So if you launch your AM to TranslationAMImpl, the getResourceBundle() method must be accessible (i.e. standard java).

    If it is not accessible, then try to restart jdeveloper.

    Where do you want to say: 'in the end '? Didn t understand where you want I change card card. Can you explain better, please.

    AM exposed as Interface Client should not use Java generic methods in their signature (it usually does not).

    But in your case, you consume Customer Interface(because you don't have binding layer) so it is not serious.

    BTW, in the source code of the original question, the lines:

    AppModuleImpl amImpl is ADFUtils.resolvElDC ("TranslationAMImpl") (AppModuleImpl);.

    AppModuleImpl CDMA = ADFUtils.resolvElDC ("TranslationAMDataControl") (AppModuleImpl);

    are not necessary.

    You can just write something like: TranslationAMImpl am = (TranslationAMImpl) Configuration.createRootApplicationModule (amTranslationDef, translationAMConfig);

    Dario

  • EJB + REST WebServices

    Hi all

    I am developing an EJB application and REST to display Web services for client application.

    What I tried and founded:

    Oracle JDeveloper 12 c (12.1.3) tutorials - building and consuming a RESTful Web Service from related database

    Oracle JDeveloper 12 c (12.1.2) tutorials - creating a Web Application using EJB and JPA JavaServer Faces

    http://waslleysouza.com.br/2014/10/RESTful-Web-service-no-JDeveloper-12C/

    Re: The best way to implement Web service in the existing EJB application

    Oracle JDeveloper 12 c (12.1.3) tutorials - web services REST-JSON consuming in Mobile Applications with Oracle Mobile Ap...

    Annotation EJB REST/JSON session...?

    Re: Need DataControl customer who accepts JSON of Service Rest

    These are not quite what I need. There are parts that I use all of them, but at the end, when I test the webService with analizer http it doesn´t work.

    Anyone know a good tutorial, from the beginning (create EJB´s, creation of the webservice_REST) to the end (customer consuming the webservice_REST) without problems?

    Thanks in advance

    https://blogs.Oracle.com/IMC/entry/building_simple_java_ee_rest

Maybe you are looking for

  • Encoder MPEG2 HW on Qosmio G20?

    Hi all I have a "feeling" that in the Qosmio G20 there is a shortcut (for example) MPEG2 HW encoder to convert a VHS on DVD directly (with the grouped Intervideo WinDVD Recorder 2!) Does anyone have any details about it? Thank you

  • Re: Skype on BlackBerry 9800

    I have download skpe

  • I have several problems with my computer Please HELP

    Hi Megan, While the path that you have installed Vista out of the ordinary, he has obviously worked for you. It may be that some Dell installation media is linked to the Dell motherboards, but my experience is that this is certainly not true for all

  • How can I restart your printer spooler?

    I can not download all of the printers on my machine, because it tells me that the printer spooler does not work, please help

  • Is there an applocale for 64-bit application?

    Will there be an equivalent applocale for 64-bit on Windows 7 application?  I installed and it works fine on the 32-bit application, but not 64-bit application. Thank you