Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

HTTP library - SOAP action

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2008, 03:32 PM
Junior Member
 
Join Date: Jan 2008
Posts: 11
Default HTTP library - SOAP action

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.
Reply With Quote
  #2 (permalink)  
Old 08-01-2008, 01:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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
File Type: zip SOAPExample.zip (4.8 KB, 179 views)
Reply With Quote
  #3 (permalink)  
Old 08-01-2008, 03:15 PM
Junior Member
 
Join Date: Jan 2008
Posts: 11
Default

Erel, thank you very very much!

This is the best support I ever had!

Regards

Reply With Quote
  #4 (permalink)  
Old 10-29-2008, 04:30 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Default

Hello Erel,

I tried out ...
Quote:
Originally Posted by Erel View Post
... See the attached example (CurrencyConverter using Soap messages).
... but there was the following message:
Quote:
"Communication error."
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.
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #5 (permalink)  
Old 10-29-2008, 05:52 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

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/addit...g-library.html which gives you access to the Exception error message.
Reply With Quote
  #6 (permalink)  
Old 10-29-2008, 09:08 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank's Andrew now it works.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #7 (permalink)  
Old 10-30-2008, 03:17 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Thumbs up

@agraham:

THANK YOU!
Code:
obj.FromLibrary("Main.Request","req",B4PObject(2))
It works now.
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #8 (permalink)  
Old 10-30-2008, 03:49 PM
Newbie
 
Join Date: Jun 2007
Posts: 6
Default

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 by sanoy : 10-30-2008 at 03:56 PM. Reason: insert error message screenshot
Reply With Quote
  #9 (permalink)  
Old 11-25-2008, 02:01 PM
Newbie
 
Join Date: Mar 2008
Posts: 9
Default

Quote:
Originally Posted by sanoy View Post
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:
Attachment 2418
It runs on windows????
Reply With Quote
  #10 (permalink)  
Old 11-25-2008, 06:02 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Yes, it should run fine on the desktop.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP library v1.4 Erel Official Updates 2 10-29-2008 09:11 PM
HTTP Library bish0p Questions (Windows Mobile) 4 09-12-2008 01:24 PM
SOAP Web Services seraphax Questions (Windows Mobile) 6 07-14-2008 08:56 PM
HTTP library v1.3 Erel Official Updates 1 03-15-2008 10:57 AM
HTTP library help agraham Bug Reports 1 01-07-2008 10:15 AM


All times are GMT. The time now is 07:32 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0