Call the web service with Digest authentication

Hello

I JDevelper 12.2.4, I need build the java class to call the web service with Digest authentication.

Any suggestion?

Refer to:

http://StackOverflow.com/questions/14896324/consuming-WCF-service-with-Digest-authentication-from-Java

Tags: Java

Similar Questions

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server

    Hello

    Try to call the Web service to oralce pl/sql function

    created a function

    Unable to invoke the web service from the server of the SOA.

    CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as

    Server sys.utl_dbws. SERVICE;

    APPEL_ sys.utl_dbws. CALL;

    service_qname sys.utl_dbws. QNAME;

    port_qname sys.utl_dbws. QNAME;

    response sys. XMLTYPE;

    application sys. XMLTYPE;

    BEGIN

    sys.utl_dbws.set_http_proxy ("hostname: Port'");

    service_qname: = sys.utl_dbws.to_qname ("ns1", "process");

    Server: = sys.utl_dbws.create_service (service_qname);

    APPEL_: = sys.utl_dbws.create_call (server);

    sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');

    sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');

    asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '"); 

    answer: = sys.utl_dbws.invoke (APPEL_, request);

    return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval(); 

    DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");

    -Of return ';

    END;

    Run - the code below:

    Select HelloWorld_WebServices ('Hi') to double;

    Error:

    ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError

    ORA-06512: at "SYS." UTL_DBWS', line 403

    ORA-06512: at "SYS." UTL_DBWS', line 400

    ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74

    29532 00000 - "Java call terminated by eception Java exception: %s."

    * Cause: A mistake or a Java exception has been reported and could not be

    solved by Java code.

    * Action: Modify Java code, if this behavior is not expected.

    Hello

    Fixed the error

    After loading once again of DBA and network provided access files JAR/JVM firewall

    and the correction on the threshold

    Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();

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

  • Matter of business for OSB 10.3.1 when to call the web service from SAP ECC 710

    Hello

    1. I was a unit test for a business service that calls a web service from SAP ECC 710 (this service is published directly to a RFC function via SOA Manager module);

    2. the problem is when I use the OSB test console, which generates the request below message:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    the response message is:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header >
    < n0:MessageID = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:n0 >
    UUID:4cbe5b84 - 474 c-9abe-e100-00000ad00164
    < / n0:MessageID >
    < n1:Action SOAP - env:mustUnderstand = "1" xmlns:n1 = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope" / >
    < / soap - env:Header >
    < SOAP - env:Body / >
    < / soap - env:Envelope >


    Above the response indicates that the BS called SAP Web server successfully, but seems that the service did not get the request message.

    3. the Web service can be called successfully through SoapUI. and I checked the soapUI request message; and it can work if I just change the request:

    < soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    < soapenv:Body >
    < xmlns:urn urn: Zmmjf503 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    string of < ContractInfo > < / ContractInfo >
    < / urn: Zmmjf503 >
    < / soapenv:Body >
    < / soapenv:Envelope >

    and I got the right answer:
    < SOAP - env:Envelope xmlns:soap - env = "http://schemas.xmlsoap.org/soap/envelope/" >
    < SOAP - env:Header / >
    < SOAP - env:Body >
    < n0:Zmmjf503Response xmlns:n0 = "urn: sap - com:document:sap:soap:functions:mc - style" >
    < Recmsg > <! [CDATA [<? xml version = "1.0" encoding = "utf-8"? > < DocumentResponse > < CONDITION > 0 < / STATE > < HTBH > < / HTBH > < MESSAGE > < / MESSAGE > < / DocumentResponse >]] > < / Recmsg >
    < / n0:Zmmjf503Response >
    < / soap - env:Body >
    < / soap - env:Envelope >

    4 it bother me, because the only difference between the above two request messages is the header (one contains a "newline"):
    ------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/' > *.
    * < / soap: Header > *.
    -------------------------------------------------------------------------------------------------------------------------------
    VS
    --------------------------------------------------------------------------------------------------------------------------------------
    * < soap: Header = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap > < / soap: Header > *.
    ----------------------------------------------------------------------------------------------------------------------------------------

    5 I thought that the SOAP engine should ignore "carriage returns", seems this is a problem of SAP ECC710.

    Do you have someone having this problem? Thank you


    Concerning
    Wen

    Hello Wen,

    I tried to use exactly the same request (carriage return) to call the service through soapUI, and it does not work... just like BS OSB
    should I assume that it is a matter of SAP ECC?

    That same demand also doesn't SOAPUI so certainly it's an issue with SAP ECC. I doubt that SAP ECC is the treatment the carriage return as an end of file marker. Check with support.

    Kind regards
    Anuj

  • How to create a generic method that calls the Web Service

    Hi I have a question how to create the Web Service client. In design mode, I can't specify static URLs? WSDL and process.

    I found the briliant method in library of apache cxf.

    for example

    DCF JaxWsDynamicClientFactory = JaxWsDynamicClientFactory.newInstance ();
    Customer customer = dcf.createClient ("http://soabpm-vm:8001 / soa-infra/services/default/MailSender/mailsender_client_ep?") WSDL");

    Object [] results;
    try {}
    Results = clientA.invoke (QName new ("http://xmlns.oracle.com/SynchDSBpel20/MailSender/MailSender", "process"), '@', 'body', 'subject');
    } catch (Exception e) {}


    In my case, I should create a method with params (URL? WSDL, URI, name of operation, param1, praram2, param3)


    Y at - it something like CXF in the ADF library?

    If your question has been answered, can you please mark as answer?
    THX
    Antonis

  • How to call a Web service with more than 1 parameter value?

    I have a Web service with a query as an array of String parameter.
    In an invoing xml, it should looks like:

    < GetPersonsData_Request >
    < application >
    < PersonIdList >
    < string 111 > < / string >
    < string > 222 < / string >
    < string > 333 < / string >
    ...
    < / PersonIdList >

    A problem I have:
    How can I assign a different value to this list?

    I posted the first element directly and then tried to add a new with append:
    < bpelx: Add >
    < bpelx: a > '12345' < / bpelx: go >
    < bpelx: to > $GetPersonsData_Request.parameters/ns2:request/ns5:PersonIdList < / bpelx: to >
    < / bpelx: Add >

    I get:
    < GetPersonsData_Request >
    < application >
    < PersonIdList >
    < string 111 > < / string >
    "12345".
    < / PersonIdList >
    < / request >

    Added as a single string, not as a structural element.

    What did I miss?

    I think that now your faced with a problem of namespaces because the element added is not the namespace of the element of the 'old' chain
    you don't have an element definition in your xsd that represents the element in your payoad?

    http://download.Oracle.com/docs/CD/E12483_01/integrate.1013/b28981/manipdoc.htm#CIHDGBGA
    http://oraclebpelindepth.blogspot.com/2008/09/arrays-in-bpel_21.html (search for bpelx: Add)

  • Fail to create the web service with the type of data defined by the user using the jwsc Ant task!

    Hello everyone!

    I used JAXWS to create WSDL from a file of Jehovah's witnesses.

    It's my TJ:
    -----------------------------------------------------------------------------------
    package ws;

    Import javax.jws.WebService;
    Import javax.jws.WebMethod;
    ws import. MyDataType;

    *@WebService*
    * public class MyWebService {*}
    public MyWebService()
    *{*
    *}*
    *@WebMethod*
    public MyDataType MyWebMethod (MyDataType mdt)
    *{*
    * / / mdt.setS ("I got it!"); *
    return mdt;
    *}*
    *}*
    -----------------------------------------------------------------------------------


    and this is my type of data:
    -----------------------------------------------------------------------------------
    package ws;

    * public class MyDataType {*}


    String ^ s;
    public MyDataType()
    *{*

    *}*
    * public String getS() {*}
    return s;
    *}*

    * Sets public Sub (String s) {*}
    This.s = s;
    *}*
    *}*
    -----------------------------------------------------------------------------------



    and that's my Ant build.xml
    -----------------------------------------------------------------------------------
    * < by default of the project = "all" > *.
    * < property name = "weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/ > * "
    * < taskdef name = "jwsc" classname = "weblogic.wsee.tools.anttasks.JwscTask" > *.
    * < classpath > *.
    * < path id = "weblogic.classpath" > * "
    * < pathelement path = "WEBLOGIC_HOME" / >. *
    * < fileset dir = "${weblogic.jar.classpath}" > *.
    * < include name = "weblogic.jar" / > *.
    * < / fileset > *.
    * < / path > *.
    * < / classpath > *.
    * < / taskdef > *.
    * < target name = "all" depends = "clean, build-service" / > *.
    * < name target 'clean' = > *.
    * < delete dir = "output" / > *.
    * < / target > *.
    * < name target = 'build-service' > *.
    * <!-add jwsc and related tasks here - > *.
    * < jwsc srcdir = "" destdir = "wsoutput" > * "
    * < jws file = "MyWebService.java" type = "JAXWS" / > * "
    * < / jwsc > *.
    * < / target > *.
    * <!-< target name = "deploy" > - > <! - add wldeploy task here - > <!-< / target >-> *.
    * < / project > *.
    -----------------------------------------------------------------------------------

    I have run the Ant task, but I get this error:
    -----------------------------------------------------------------------------------
    BuildFile: build.xml

    clean:

    build service:
    [jwsc] TJ: processing module /MyWebService
    [jwsc] The analysis of source files
    [jwsc] The analysis of source files
    [jwsc] 1 TJS files processing for the module /MyWebService
    * [jwsc] [JAM] WARNING: could not resolve class MyDataType *.
    [jwsc] TJ: C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\MyWebService.java valid.
    [jwsc] Treatment of the web services JAX - WS 1...
    * [jwsc] error: couldn't get TypeDeclaration for: MyDataType apt tour: 1 *...
    ...................
    BUILD FAILED
    C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\build.xml:
    19: weblogic.wsee.tools.WsBuildException: JAX - WS web services processing error
    -----------------------------------------------------------------------------------

    Please help me solve this problem.
    Thank you
    Mojir

    I tried to compile your source code and received the same exception.
    However after compiling the MyDataType.java before running the jwsc task, I was successfully able to build the service.

    Please try the ant script below and let me know the result:

    **
    *     *
    *
    *



    <>
    srcdir = "${source.dir}" "

    DESTDIR = "${Build.dir} '"
    keepGenerated = 'true '.
    classpath = "${Class.Path} '"
    Debug = 'true '.
    verbose = "false" >

         


              

    Thank you
    Sandeep

  • Changing the settings of data control for the Web Service with the company Manager

    We have different environments for the development, test, acceptance and Production. In the environment, we use different instances of the BSSV server so we have several points of endpoints for Web Services. When we move at the request of the ADF from one environment to another, we do not want to change the source code, but we want to change endpoints using configuration. We have seen that store them in Enterprise Manager, we can change endpoints and that this configuration will be saved in a MDS. But what precisely needs to be configured on the application to get this working? Now, we can change endpoints, but they are not saved.

    I found the information in this blog but it doesn´t work: http://blogs.oracle.com/adf/2011/02/changing_endpoint_url_for_a_web_service_data_control.html

    Joost

    Hello

    If you want to configure deployment position of connections, it is necessary for your application to be configured with a Repository.As of MDS in writing I'd mentioned in the blog too, for that you need an entry in the adf - config.xml and that your server must have a registered MDS store. Unless you are going to do this, the connection endpoint changes you make will not be saved.
    For example, at the end of the application, adf-config.xml file, you need an entry like this:
    .










    .
    When you deploy this application a server with a registered MDS, the deployment repository will bring up a dialog box where you can set(select/create) a partition for this app in the mds repository. Once your deployment is done, now if you change the endpoint using EM, it will save your changes.

    Vishal-

  • Call the Web service method

    Hello
    I use a webservice in my Flex 2 project:
    "" < mx:WebService id = "WStest" wsdl = " http://192.xxx.x.xx/Service.asmx?WSDL" showBusyCursor = "true".
    < mx:operation name = "Test_me" result = "test ()" >
    < mx:request >
    < int > 0 < / int >
    < / mx:request >
    < / mx:operation >
    < mx:operation name = "OperatorExists" fault = "faultHandler (event)" resultFormat = "xml" > "
    < mx:request >
    < name > aaa < / name >
    <>aaa password < / password >
    < / mx:request >
    < / mx:operation >
    < / mx:WebService >
    "Test_me()' method works if I write" WStest.Test_me.send (0). I would like to know how can I call 'OperatorExists' method with 2 parameters? I tried with WStest.OperatorExists.send('aa',aaa'), WStest.OperatorExists.send(aaa,aaa) and WStest.OperatorExists.send(name:"aaa",password:'aaa'), but still no results. This method should return 'true' if the user name and password are good and "false" if not.
    Pleas help me if you can.
    Thank you
    Tudor

    I use:

    http://somewhere.in.Holland:50100/WSDL/mios_GetDataForView_Request_V6_1.wsdl ".
    ID = "myWebservice".
    result = "handleResult (Event)" "
    showBusyCursor = "true".
    Fault = "handleFault (Event)" "
    >



    {aanvraagproces_id}
    1
    120



    and then:

    private void DoInitialization (): void {}
    aanvraagproces_id = parameters.id;
    Model.aanvraagprocess_id = parameters.id;
    myWebservice.mios_GetDataForView_Request ();
    }

  • Client application to consume the web service with security

    I need to write a simple client to access a WS.

    I can't do things

    1. Change the server
    2. Add external jars

    The customer will be part of a command line call and will work as a stand alone.

    I searched all day and have found hundreds of examples of wave, too complex, based mainly on SOAPHandler (who tells me that I need to install the server components that I can't do)

    I grasp the General requirements but finds it difficult to know how to add security features to the header.

    What should I do to add the chips of user name and password in the header?

    It is where I am so far.

    package findingLetter;
    
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    
    public class getPOC {
        public getPOC() {
            super();
        }
        public List<String> lookup(String lenderid, String url, String user, String pw) throws SOAPException {
            List<String> contactInfo = new ArrayList<String>();
            SOAPMessage message = MessageFactory.newInstance().createMessage();
            SOAPHeader header = message.getSOAPHeader();
            header.detachNode();
             
            SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
            envelope.setAttribute("namespace","http://www.siebel.com/xml/FHA%20Lender%20Summary%20Request%20IO");
             
            SOAPBody body = message.getSOAPBody();
            QName bodyName = new QName("LenderSummaryRequestIo");
            SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
            SOAPElement symbol = bodyElement.addChildElement("Institution");
            symbol.addTextNode(lenderid);
             
            SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
            SOAPMessage response = connection.call(message, url);
            connection.close();
             
                    SOAPBody responseBody = response.getSOAPBody();
                    SOAPBodyElement responseElement = (SOAPBodyElement)responseBody.getChildElements().next();
                    SOAPElement returnElement = (SOAPElement)responseElement.getChildElements().next();
                    if(responseBody.getFault()!=null){
                        System.out.println(returnElement.getValue()+" "+responseBody.getFault().getFaultString());
                    } else {
                        System.out.println(returnElement.getValue());
                    }
             
                    try {
                        System.out.println(getXmlFromSOAPMessage(message));
                        System.out.println(getXmlFromSOAPMessage(response));
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
            return contactInfo;
        }
        private static String getXmlFromSOAPMessage(SOAPMessage msg) throws SOAPException, IOException {
            ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();
            msg.writeTo(byteArrayOS);
            return new String(byteArrayOS.toByteArray());
        }
    }
    

    Here's the code to add the security header.

    public List lookup (user string lenderid, String url, String, String pw) throws SOAPException {

    ............

    SOAPHeader header = message.getSOAPHeader ();

    If (header == null) {}

    Header = envelope.addHeader ();

    }

    SOAPElement headerElement = createSecurityHeader (uName, pWord);

    soapHeader.addChildElement (headerElement);...

    ........................

    }

    Private Shared { SOAPElement createSecurityHeader (uName, pWord String String) throws SOAPException

    SOAPElement UsernameToken = null;

    SOAPFactory SFactory = SOAPFactory.newInstance ();

    UsernameToken = sFactory.createElement ("wsse: UsernameToken", "", WS);

    SOAPElement Username = sFactory.createElement ("wsse:Username", "", WS);

    Username.setValue (uName);

    UsernameToken.addChildElement (Username);

    SOAPElement Password = sFactory.createElement("wsse:Password","",WS);

    Password.setValue (pWord);

    QName qname = new QName("","Type");

    Password.addAttribute (qname,"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" ");

    UsernameToken.addChildElement (Password);

    SOAPElement wsseSecurity = sFactory.createElement("wsse:Security","",WS);

    wsseSecurity.addChildElement (UsernameToken);

    Return wsseSecurity;

    }

  • How to call the web service in blackberry sdk 3.6 using eclipse


    Hello

    I said it

    His work very well when I run as html in the browser IE.

    while I try to run in webworks, it gives the error.

    Thank you

    Barro

  • Problem with the web service call

    I use ajax with json to call webservice but its not working with the localhost url in the emulator of the ripple. If I use an ip address or external url does not call the webservice.

    I also tried with BlackBerry, webservice does not.

    can someone guide me how to call the Web service?

    Thank you

    Sundaram

    Your file config.xml needs the ip address or the url in the "whitelist".  Use the access for that tag.  for example:

    
    

    The piece above is not secure because it whitelists ALL------* areas.  You can put your url in the uri.

  • ADF page call Web Service with several params the right way

    Hello

    I use JDev 11.1.1.4.0.

    I have a web of e-mail notification service which takes 4 parameters, to, subject and body. What I need to do, it's at the end of each "commit", calling this web service to send a notification to a group of viewers telling them a new record has been created. Here are the steps of my work to make it work:

    1. creates a data control of web service using WSDL email notification.
    2 drag - move the control of data on page jspx as a parameter in the ADF.
    3 set the Visible of the presentation of the Panel shape to "False" so that the control does not appear.
    4. in a backingbean where is the 'onSave()' method, I put the code to call the web service.
    // in onSave() method after successful commit
          ValueExpression veFrom =
              efactory.createValueExpression(elctx, "#{bindings.from.inputValue}", Object.class);
          veFrom.setValue(elctx, "[email protected]");
    
          ValueExpression veTo =
              efactory.createValueExpression(elctx, "#{bindings.to.inputValue}", Object.class);
          veTo.setValue(elctx, "[email protected]");
    
    // omitted rest of the params for brevity
    
          OperationBinding method = bindings.getOperationBinding("process");
          method.execute();
    This code works, but I don't know if I'm doing things. For some reason, there is a better way to achieve what I need.

    Thank you very much in advance for your comments francs and suggestions.

    Bones Jones

    Published by: Bones Jones on April 29, 2011 06:44

    Check out this blog of Shay - which describes exactly the same scenario:
    http://blogs.Oracle.com/Shay/2009/07/java_class_data_control_and_ad.html

    Instead of setting the visible property of panelFormLayout to false, the author removes the user interface components unwanted on the page in step 7)

    7. deletion of a component of a page JSF without deleting is mandatory

    Thank you
    Nini

  • My native BB app, how to connect to the remote URL and call a Web service method to retrieve the XML base result using Eclipse Version 3.7.2

    Hello

    I am new to the development of native applications from BB using JDE. I'm testing Simulator. From my native BB app, I connect a remote URL and call a Web service method to extract some basic result XML.

    I need to write a login code remote URL to achieve? If so, how?

    So, how can I use this connection object to call the Web service from this URL remotely.

    Please help me out of it...

    Many thanks in advance...

    What i am doing is, On clicking the "Login" button i want to call the webservice method like below mentioned code...
    Here WaveServices is a class and getAllCinemas() is a static method inside which a webservice method call is made..
    
    loginButtonField.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field paramField, int paramInt) {
                    WaveServices.getAllCinemas();
                }
            });
    

    Indeed, the question was raised and answered here:

    http://supportforums.BlackBerry.com/T5/Java-development/from-my-native-BB-application-how-to-connect...

Maybe you are looking for