Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
MerryNaf
Posts: 10
Registered: ‎09-25-2008
My Device: Not Specified

consuming a sap web service via jde 4.5.7

Hi all,

 

I have a question here, if u could help me, i have to call a sap webeservice via jde , but before i test a jde example by calling a public web service which is not a sap web service , i used to  give  url  as:

connThread.get("http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?CountryName="Morocco;deviceside=tru...");

i was not obliged to set the apn parameters and it does work

here as it's mentioned , there is the access point, getcities ...  the method  name and the parameter name and the parameter value

"Morocco", but i m asking how did we precise the methods  of an rfc sap, and the name parmeter and his value.

 have u any idea to help me understand how we call sap rfc, method name, parmaeter name, cz i m a newbie to sap and bb.

 

but now when i try to call an rfc sap , i give the link

  connThread.get("http://hca-ecc.hca.group:8000/sap/bc/srt/wsdl/sdef_Z_WS/wsdl11/ws_policy/document?sap-client=800;dev..." );
   ");

but it's always giving me transmission failed without any error that may help me when debugger run.

 

Thakx in advance. 
       
    

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: consuming a sap web service via jde 4.5.7

hca-ecc.hca.group:8000 does not appear to be a public server.  Is this server internal to your environment?  If so, you should connect through your BlackBerry Enterprise Server by specifying deviceside=false.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
MerryNaf
Posts: 10
Registered: ‎09-25-2008
My Device: Not Specified

Re: consuming a sap web service via jde 4.5.7

yeh, it 's an internal address, plz could u tell me if jde has SOAP API or not ?
Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: consuming a sap web service via jde 4.5.7

Version 4.3.0 of the BlackBerry API set supports JSR 172 Web Services, which can be used to communicate with a web service.  Note that this requires BlackBerry handheld software version 4.3.0 or higher.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
MerryNaf
Posts: 10
Registered: ‎09-25-2008
My Device: Not Specified

Re: consuming a sap web service via jde 4.5.7

thanx MSHOM,

 

yeh , i m using jde 4.5.7 so it will be for hadware equal or greater than the version of my jde, so could u tell me plz how can i do to call a web service via soap request ?? 

Please use plain text.
Developer
simon_hain
Posts: 15,806
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: consuming a sap web service via jde 4.5.7

just as a tip: if you want to write soap-bindings for sap webservices write yourself a generator. or be prepared for a few thousand lines of xml
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
MerryNaf
Posts: 10
Registered: ‎09-25-2008
My Device: Not Specified

Re: consuming a sap web service via jde 4.5.7

why is it so simple via MDS, ?? how they do it via MDS ?? 
Please use plain text.
Developer
simon_hain
Posts: 15,806
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: consuming a sap web service via jde 4.5.7

RIM has developed its own integration of webservices into MDS. doing it in j2me is a bit more complex i would guess.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.