HTTP library - SOAP action

Discussion in 'Questions (Windows Mobile)' started by zdenkot, Jul 31, 2008.

  1. zdenkot

    zdenkot Member Licensed User

    Hi,
    In my program I have to use SOAP web service request.
    First I studied Erel's GET example (Curreny.sbp) and POST example and both of them were working on www.webservicex.org . I also tried SOAP request using example given on www.webservicex.org site (HTTP-POST method as it was suggested). However I have no success and the problem was not in building SOAP message because I used one from web site. It seems me that HTTP library is missing something like SOAPaction property.
    Please see CurrencyConvertor Web Service .

    I hope that Erel has comment on that and/or that someone has working example of SOAP web request.


    Thanks in advance.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You will need to use the Door library to add the SOAPAction header.
    See the attached example (CurrencyConverter using Soap messages).

    Edit: File was updated to support Basic4ppc V6.50.
     

    Attached Files:

  3. zdenkot

    zdenkot Member Licensed User

    Erel, thank you very very much!

    This is the best support I ever had!

    Regards

    :sign0188:
     
  4. JOTHA

    JOTHA Well-Known Member Licensed User

    Hello Erel,

    I tried out ...
    ... but there was the following message:
    I tried it on the Desktop (with active internetconnection) ans also on the PPC (also with active internetconnection), it´s always the same.

    Could it be, that it doesn´t work with Basic4PPC in the Version 6.5?

    Thanks for your support.
     
  5. agraham

    agraham Expert Licensed User

    You need the latest Door library that came with version 6.50 and to add the module name to the Request object at line 60.
    Code:
    obj.FromLibrary("Main.Request","req",B4PObject(2))
    It now runs (but the site times out for me!).

    The "Communication Error" is a catch-all message in the Errorlabel handling as Basic4ppc doesn't let you see the reason for the error. To do so you need my Exceptions library http://www.basic4ppc.com/forum/additional-libraries/2305-exceptions-handling-library.html which gives you access to the Exception error message.
     
  6. klaus

    klaus Expert Licensed User

    Thank's Andrew now it works.

    Best regards.
     
  7. JOTHA

    JOTHA Well-Known Member Licensed User

    @agraham:

    THANK YOU!
    Code:
    obj.FromLibrary("Main.Request","req",B4PObject(2))
    It works now. :)
     
  8. sanoy

    sanoy Member Licensed User

    the soap sample works on my device but doesn't work on my desktop.
    but my other http apps are working though.

    can anybody tell me what's is wrong with my desktop?

    this is the error message:
    soap error.JPG
     
    Last edited: Oct 30, 2008
  9. TARQ

    TARQ Member Licensed User

    It runs on windows???? :SHOCKED:
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Yes, it should run fine on the desktop.
     
  11. joew

    joew New Member

    More help / comments

    :sign0163:

    I am willing to purchase an hour of someone's time if they can comment and/or walk me through a detailed explaination of this code. Perhaps even helping me make it a bit more "Generic" so we can make a quick and easy "soap" starter application.

    I am willing to post the results to the group as well... Let me know if interested.

    /joe - joewichowski@gmail.com
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice