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.

Tags: BlackBerry Developers

Similar Questions

  • Sites Web using php and mysql successfully stopped the week last of sorting drop-down lists. Change something?

    We run a programme of internal timesheet open source called Timesheet Next Gen available on Sourceforge. We have it worked for a few years without any problems. We moved all of our Firefox users because the developer has indicated that there are questions of the sort associated with PHP and MYSQL via Internet Explorer. Dropdown lists using surveyed data did not follow the order of sorting and list have been blurred without order with duplicate entries. We had experienced this on our Windows 7 workstations in Internet Explorer (any version) and everything worked fine in Firefox. For some of us with the MacBook, the sort worked well in Firefox and Safari.

    Departure last week (perhaps Tuesday or Wednesday) all our users to Workstation Windows 7 has started to have the same sorting problems in Firefox with our internal website of timesheet. There is no change for timesheet Web site or the server that is running as much as php and server extensions web apache. I've since updated the server (Ubuntu) and apache, mysql and php are underway. Now sort in Firefox has stop working on our mac workstations. Safari is the only browser that works. We have installed Chrome on mac and Windows 7 and it does not sort either.

    To wrap to the top of this thread, the solution is available here: http://sourceforge.net/p/tsheetx/discussion/779084/thread/02841540/

    The general idea behind that the solution can be applied to other projects where a JavaScript object is created in PHP and you need access to its members in order of addition.

  • The Service WCF and Blackberry Widget does not. See where I am going wrong?

    I'm creating a widget of BB with Visual Studio 2008 and I created a WCF Service hosted in Windows Azure.

    This is one of the methods in the WCF Service:

     public string ClockIn(string emailAddress)
            {
                try
                {
                    using (var dc = new TEI_DataContext(_MyDc))
                    {
                        SecurityLogin sl = dc.SecurityLogins.SingleOrDefault(s => s.EmailAddress == emailAddress);
                        var tc = new TimeClock { ClockIn = DateTime.Now, UserName = sl.UserName };
                        dc.TimeClocks.InsertOnSubmit(tc);
                        dc.SubmitChanges();
                        return "You're Clocked In!";
                    }
                }
                catch (Exception ex)
                {
                    return ex.Message;
                }
    
            }
    

    I tested it with a Console Application like this, and it works GREAT!

    var client = new TEIServiceReference.Service1Client();
    string result = client.ClockIn("[email protected]");
    Console.WriteLine(result);
    Console.Read();
    

    Here is the address of public WCF Service: http://a1e17152bcf647aaa300ccb5a8a2a2c5.cloudapp.net/Service1.svc

    Here is my HTML code for the widget:

    
    
    
    
    TEI Time Clock
    
    
    
    
    
    

    And here's my JavaScript code:

    var xmlHttp = new XMLHttpRequest();
    
    function ClockIn()
    {
    var url = "http://a1e17152bcf647aaa300ccb5a8a2a2c5.cloudapp.net/Service1.svc/ClockIn/[email protected]";
    xmlHttp.open('GET', url, true);
    xmlHttp.onreadystatechange = callbackFunctionClockIn;
    xmlHttp.send(null);
    }
    
    function callbackFunctionClockIn()
    {
    
    if (xmlHttp.readyState == 4)
    {
    var result = xmlHttp.responseText;
    //result = result.getElementsByTagName("string")0].childNodes[0].nodeValue;
    alert(result);
    }
    }
    

    When I run the widget, an EMPTY popup appears and it NOT me clock. Can you see what I'm missing?

    Thanks a lot for your help and your time!

    Brenda

    The? did not help either. Bad luck!

    I just hired a Blackberry app developer, and he thought of it in Java.

    Thanks for trying to help out well!

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

  • Implementation of the Web Service on Blackberry

    Hello

    I am new to web services so now I want to know how you can hit the web services via the blackberry app?

    Y at - there no web service sample I can use to test the object.

    In fact, I want to know the implementation of the web service on blackberry.

    Please provice me useful links and resources.

    What is KSOAP2 in blackberry?

    I think there are 2 ways to use web services

    1 http

    2 SOAP

    I want to know the two tests.

    Please help me.

    Sorry for non trivial stuff like this there is nothing like "sample code" of my side - I work in a business environment, not as a developer open source.

  • read Web service and display it in a gridview

    Hi, I am using widgets with plugin .net. I have a wan to make a grid and fill it with the Web service data. A few examples? How can I do?

    Thank you, Oscar

    Here are some of the threads I found by doing a search on the forums for "web service":

    http://supportforums.BlackBerry.com/T5/Web-development/Web-service-parameter/m-p/421999

    http://supportforums.BlackBerry.com/T5/Web-development/using-Web-services-in-widgets/Ta-p/503194

    http://supportforums.BlackBerry.com/T5/Web-development/NET-Web-service-help-in-BlackBerry-widget/m-p...

    http://supportforums.BlackBerry.com/T5/Web-development/SOAP-Web-services-with-BlackBerry-widgets/m-p...

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

  • Exception during consumption of huge data from a web service.

    Hello

    I m developing an application to receive data from a Web Service and retain the data received on the device.

    App is developed for OS 4.3.0

    The Web Service call is made using Ksoap. The Code receives the data from the web service, analyzes the data and stores it in an object. This object is then persisted on the device. The data are essentially the coordinates. It takes the number of contacts required as input and passes it to the Web Service. The Web Service then returns the requested number of records

    The code works if I ask data of up to ~ 600 cases. If I specify more than 600 cases, it throws the following exception

    Chain rg.xmlpull.v1.XmlPullParserException:unexpected type (position: TEXT entity request in T...@1:24 in java.io.InputStreamReader@1f87d1b4)

    When I debugged using Eclipse, this exception is thrown on this statement ht.call (soapAction, envelope);

    Would it be because of a time-out? OT is because the Analyzer is not able to analyze huge data?

    Given that this exception occurs on the declaration of ht.call, I guess the problem is with the web service call and not with the code for persistent storage.

    I have included the code here... Is could someone please show me what the problem is?

    C ode to call Web Services

    public Vector getWebData(String count)
        {
    
       Vector personsVectorto = new Vector();
        try
        {
        StringBuffer receivedContent = new StringBuffer();
        String serviceUrl = "........";
        String serviceNamespace = ".....";
        String soapAction = ".........";
    
       SoapObject rpc = new SoapObject(serviceNamespace, "GetContactsList");
            //rpc.addProperty("listSize", "5");
            rpc.addProperty("listSize", count);
         SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    
            envelope.bodyOut = rpc;
    
            envelope.dotNet = true;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
    
            ht.call(soapAction, envelope); // This is where thexmlpullparser exception occurs
    
     Object obj = envelope.getResponse();
            SoapObject soapResult = (SoapObject)obj;
    
                for(int i=0; i < soapResult.getPropertyCount(); i++)
    
                {
                  PersonDTO personto = new PersonDTO();
               SoapObject choice = (SoapObject)soapResult.getProperty(i);
                if( choice!=null)
                {
                    for(int j = 0; j < choice.getPropertyCount(); j++)
                    {
                      receivedContent.append(" Reading Property Number" + String.valueOf(j) + " Value = " + choice.getProperty(j).toString());
    
         if (j==0) personto.setElement(1,choice.getProperty(j).toString());
        if (j==1) personto.setElement(2,choice.getProperty(j).toString());
        if (j==2) personto.setElement(3,choice.getProperty(j).toString());
        if (j==3) personto.setElement(4,choice.getProperty(j).toString());
        if (j==4) personto.setElement(5,choice.getProperty(j).toString());
         if (j==5) personto.setElement(6,choice.getProperty(j).toString());
         if (j==6) personto.setElement(7,choice.getProperty(j).toString());
          if (j==7) personto.setElement(8,choice.getProperty(j).toString());
         if (j==8) personto.setElement(9,choice.getProperty(j).toString());
       if (j==9) personto.setElement(10,choice.getProperty(j).toString());
                    }
                }                 
    
                personsVectorto.addElement(personto);
                //storepersistentobject(personsVectorto);
            }
    
            }catch(org.xmlpull.v1.XmlPullParserException ex2)
            {
                String bah1 = ex2.toString();
                Dialog.alert("String: " + bah1);
                String bah2 = ex2.getMessage();
                Dialog.alert("Message: " + bah2); 
    
            }       
    
            catch(Exception ex){
                String bah = ex.toString();
                Dialog.alert("Response: " + bah);
    
                }
    
                return personsVectorto;
        }
    

    Thank you

    Hi Philippe,.

    First Question: Print server response

    Yes - I think for you too in fact just print the answer you'll have to do a regular HTTP call to the server and print it like this:

    StringBuffer sb = new StringBuffer();

    int thumb;

    HttpConnection httpConn = (HttpConnection) Connector.open (url);

    httpConn.setRequestMethod (HttpConnection.GET); or by POST depending on your needs

    in = httpConn.openInputStream ();

    While ((thumb = in.read ())! = - 1).

    {

    SB. Append ((Char) inCh);

    }

    System.out.println ("server response:" + sb.toString ());

    Try and see if you get a request too large entity. Note: you should probably put your SOAP request in GET or POST http request.

    Second Question: Is zipping required?

    This is how I chose to do for my particular needs that transfer me a large amount of data and the compression algorithm seems to keep all my data well below 40 k. However, it is not the only way, you could actually make several requests and get data piece by piece, but I don't know if it works well with SOAP responses. Depending on the type of Network Setup Blackberry you have, you can also set this limit to be higher (I think a maximum of 1 024 Ko for BES).

    Third Question: Timeout Logging

    For wait times, usually the exception you get should indicate that there was a timeout, but if you are suspicious that it's a timeout check your web service and see.

    Hope that helps!

    R

  • the Web service parameter

    Hi all

    Here are my (vb) web services. I am able to call one of my widget, Hello everyone without input parameters.

    But how do I use the second web service? How can I set the name of my widget?

    Public Function HelloWorld() As String

    Return "Hello World".

    End Function

    Public Function HelloWorldNome (ByVal name As String) As String

    Return "Hello World" & name

    End Function

    Thank you

    Hi tangen,.

    To call a web service from your BlackBerry Widget, you can use the XmlHttpRequest object to perform an HTTP request to your web service URL.  To pass parameters, you must use the type of the 'Post' method in your web application.

    Here is a snippet of code on the procedure to follow:

    var params = 'nome=tagen';
    req = new XMLHttpRequest();
    req.open('POST', 'http://yourUrlHere.com/service.asmx', true);
    req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    req.setRequestHeader('Content-length', params.length);
    req.setRequestHeader('Connection', 'close');
    req.onreadystatechange = yourCallBackMethod();
    req.send(params);
    

    Note the three request header parameters and their values, which must be defined when a POST using XHR request is sent.

    For more information on the use of XmlHttpReuquest in your web content, see the article DB-00765knowledge base.

    Sincerely,

    Adam

  • HP photosmart 7525: hp 7525 unable to connect to web services

    I recently bought an Imac, and now I can't get my hp 7525 to analyze correctly. It says unable to connect to web services. I tried to uninstall wirless and re-login.  Help, please!

    Hello

    My apologies for jumping.

    To add more, the latest firmware MUST be installed to maintain connectivity of the web services.

    Click on the configuration icon and select Tools, then print a printer status report.

    Locate the firmware listed, if it is a value lower than ELM1CN1607AR (see "BOLD" kinds) you will be required to update the firmware.

    Unfortunately, a Mac OS firmware update utility is not currently available, so you must use a Windows PC to update the printer:

    http://support.HP.com/us-en/drivers/selfservice/swdetails/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5286642/swItemId/OJ-113641-5

    Once obtained the latest firmware, try to use Web Services again and check for the difference.

    Kind regards

    Shlomi

  • jumble of text in the web interface after Web Services update / firmware

    I received a message on the screen of my Officejet 6700:

    Update recommended

    An update is available for Web Services (ePrint and Apps).

    Do you want?

    I chose to update now and it installed fine, or so I thought.

    I checked the web interface of the printer, and there is a bunch of text confused, as the code is messed up for the web server.

    I had just finished to check the status of your ink cartridges (and subsequently replaced a), so I have the fully functional Web page fortunately still open on another machine, so I can tell exactly what is forward - after on this page.

    On the tools > gauge of ink page, on the right page (old) the said table (title, first line, first column):

    Cartridges installed

    Color | Magenta | Cyan | Yellow | Black

    Part number

    Type

    End of warranty date (A-M-J)

    First Installation Date (A-M-J)

    Area of ink

    USE

    HP

    But after the software update, it says this:

    Print the self-test Page

    L@S#0456 | Number of recorded events. L@S#0462 | L@S#0552 | L@S#0450

    Use of the accumulated media

    Date

    L@S#0477

    L@S#0561

    L@S#3345

    In addition, the order "supplies" link, with a contextual text of "print order supply."

    now, says "Cartridge", with a contextual text ' block unwanted faxes '

    And "Print Printer Status Report" now says "L@S#2567".

    I went to the support section and found an update firmware, but during download and execution, after you find the printer, he says that he is already up to date and leaves me not choosing to try and reapply the update of the firmware (as is obviously what is happening through the touchscreen menu has already done).

    Should I just restore to factory settings? I think that firmware would not be changed by doing this. It is not an older version of the firmware available on the product support page, to return to an earlier version.

    Via the screen menu touch printer, a Printer Status Report print indicates the firmware version is MPM3CN1322DR.

    How to force a reinstallation of the firmware, or let them difficulty firmware which was released on 25-06 - 2013?

    I've been using Google Chrome and even had 2 tabs open in the same window, one from before the update and the second I opened after the update, so this was not a factor.

    I had not revisited the web interface of the printer to date, and currently, I see that the problem has disappeared!
    The version of the firmware has not changed, and I did no manipulation of the printer. I also highly doubt that the main user has nothing, because it is not tech savvy. So, the problem seems to have corrected itself.

    The only thing I see now, that I did not notice before, is that there is a version of firmware fix, but it currently says 0. I don't know what it was before, but I guess zero means that there is a patch, so the firmware didn't automatically update in order to make the problem disappears.

    Problem disappeared, but I don't know how or why. I haven't decided if I will update the second printer that is the same model.

  • Web services with customer LV

    A typical approach to web services to access the host (a cRIO incorporated, for example) by using a client running in a browser with JavaScript.  All those put in place a LabVIEW client that calls the web services on the host computer?  How this could be done?

    I have a cRIO with a RESTful web service work and I can access it with my browser.  It works very well.  Now, I want to access the same service using a LabVIEW client... Or I could write my own customer by BT if I new how to register the service with .NET, which I did not.  So, it's a fact that LV can be used to create a web service client.  I'm looking to better understand how it can be done.

    The native TCP VIs can perform HTTP requests and call the methods of Service Web LabVIEW (http://zone.ni.com/devzone/cda/epd/p/id/3153 or http://decibel.ni.com/content/docs/DOC-2230).  Using these screws, you can create a customer of LabVIEW.

    Alternatively, you can use an ActiveX control to the browser with the Navigate2 method to call Web Services:

    WSDL files are generally used for Web Services using the SOAP Protocol (Developer Zone Tutorial: LabVIEW using SOAP Web Services call).  I know that it is possible to do the same for a RESTful Web Service (LabVIEW deploy services RESTful web), but I don't have any information on how this is done with a simple Google search in addition, it seems that most of the other public forums has rejected the idea, because you just need to build an HTTP request to call a web method.

  • expire in getting web services to the application code

    "Following the instructions to get the claim code of ' to 'Add' my p1606dn to my eprint account, when I select the web services tab and click 'ACTIVATE' for my configuration report, I get the message"connection time, internet connection Check ".

    My laptop xp3 is connected wireless and network printer I am 'Add' to East cable.

    I suspect that being connected to the built-in web server printer lie my wireless connection to internet and results in the time-out period.

    Do I have to hard wire the two devices?  (Not an easy task, here)

    Best regards, Billl39

    The fixed!

    All we needed was an update of 20120814 to 20130703.

    I change the printer to a static IP 10.0.0.40 (out of range dhcp)

    Gateway was of course, the router IP - 10.0.0.1 and

    Primary DNS returned to 10.0.0.1 with

    Secondary to 8.8.8.8 from Google

    and all is well

    A Note, however, when updating the firmware, the utility has shown the original 10.0.0.16

    dhcp had taken, and I had to reconfigure to this address to get a success

    firmware update, after which I returned to the 40 statice.

    Silent IP addresses are the result of my duty to replace my Netgear router after

    a bolt of lightning with a Westell 7500 that change addresses.

    I'm glad it's on... billl39

Maybe you are looking for

  • Safari freezes for vertical scrolling

    OSX Safari 9.1.2 10.11.6. iMac is often planted so that pages web vertical scrolling (often on Facebook or Yahoo). Must restart to recover. Is there a way to clean cookie or other files that could contribute to this event?

  • Equium A110-280 - where to find them on the Toshiba site?

    I'm trying to find support for a satellite A110-280, but the message that appears is; "We do not find the product. The same thing happens when I search with the serial number. Anyone who knows what to do to find support for a seemingly non-existent l

  • Suggestion for connecting NetGear switch for network home

    Hi all Recently, I bought NetGear ProSafe 8 - Port Gigabit Ethernet Switch GS108E. I would like to ask your help/suggestions to connect to my home network. The other components I have is Motorala SurfBoard SB6121 Cabel Modem and Cisco Valet M10 Wirel

  • Stream Mini 200-010: upgrade BCM43142 on HP Mini 200-010 Stream wireless

    I have upgraded to Windows 10 and because of the location of my residential gateway (RG), I'm limited to wireless. I want to upgrade the card to an AC class with bluetooth wireless. I have updated the drivers, but still have a dropout.  Someone at -

  • LV2014 64-bit missing Word Excel reporting

    I realized that LV2014 Professional 64-bit version does not include the specific word and the generation of a specific report Excel live I open the 32-bit version and whalla Word and Excel are in the range of report generation. Just copy the library