cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming a sap web service via jde 4.5.7 (ecc 6.0)

Former Member
0 Kudos

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=true";

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;deviceside=true;apn=hca-ecc.hca.group;tunnelauthusername=forma02;tunnelauthpassword=hcaforma" );

";

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

Thakx in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Merry

I never worked on JDE.

Looking at the very small code snippet printed by you here, I wonder if you are using HTTP GET method instead of any web service client side toolkit.

In Java various webservice tool kits provide mechanism of constructing SOAP requests without cumbersome xml processing.

Hope this helps.

Regards,

Vandana.

Former Member
0 Kudos

Thankx both of u,

@vandana,

For the webservicex, it does work for me the call, via my code, i ve got copied wrong way that's all, but for the second , i just didn't got how to call this rfc , because i can't call it really a web service cz i didn't use the uddi registry, so if any body can tell me how could i call this sap z_RFC as i did for webservicex.

Yeh, you are right, but have any link which can explain me more this, this is exactly, what i can't understand, the difference between the two calls.?

i m a newbie to soap request, i will search and see but any link would be appreciated.

i m also asking about the other way in java that u suugest , do u m generating a stub from the server, in fact i test the method of stub genrating with axis apache, but as i m a biginner also in sap and jde, i don't know how genrate a stub from web service (rfc) sap, have u ever try it with eclipse jde??

@anton,

could u give me any interesting link for understanding the soap call.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Merry,

Have you tried searching 'blackberry' in SDN. I found following and many more links. It gives me impression that you may have to use MDS and also may be SAP Webdynpro technology for UI rendering.

There seems to be special site from blackberry for SAP integration (free registration).

https://www.blackberry.com/CorpDevZone/download/SAP/sap.shtml

Hope this will give you some headway in resolving your issues.

Regards,

Vandana.

Former Member
0 Kudos

thank u vandana for ur help and answers,

in fact , u r right but my colleagues are already do this with mds, and i have to do it with jde cz jde give more possiblities, but the problem is that they r in vaccation , i m alone here to struggle, i m ganna try with ksoap.

Former Member
0 Kudos

Hi Merry,

You may find these links helpful.

http://www.soapclient.com/SourceCode.html

Apache SOAP, SOAP4J, WSDL Toolkit or EasySOAP are some of the things you can look at.

http://ws.apache.org/axis2/1_4/jaxws-guide.html#DevelopClient

Regards,

Vandana.

Former Member
0 Kudos

thank u andana,

but i don't know if u get my problem, i should call this sap rfc from a java developpement environnement of blackberry device so it's not just java , apache and other i should use api compatible with that environnement or with bb (blackberry) plugin for eclipse, i m really lost, i don't know how http post work neither soap request

Former Member
0 Kudos

hi,

first, the syntax you show is somehow broken. the first call probably has a quotation mark to much and a closing bracket is missing.

second, the weather service offered at webservicex comes in three flavours:

  • a SOAP call (aka webservice call)

  • a HTTP GET call (URL with URL parameters)

  • a HTTP POST call (URL with HTTP body)

these are more or less three different implementations to allow the consumption of that service.

now, you try to invoke the service on your WAS ABAP in a HTTP GET style like you did at webservicex. BUT, this HTTP GET kind of access is simply not implemented on your WAS and doesn't need to be.

so, in your JDE you got to find a SOAP API rather than a HTTP get API.

anton

Former Member
0 Kudos

HI anton, u seem to understand very well the sap web sevrice , these entreprise service of abap , couldn't i call them via http get? i don't need it why, soap request are more complex? could u help more plz.

plz i have a problem here, the Sap distant system will be shutdown for 3 days, i need to test soap request on other web service that can be called via soap , webservicex does it give this option ?

i guess yes, but i need ur answer cz u seem to be more experimented in the field.

thx again.

Former Member
0 Kudos

could u tell me plz the difference between, rpc call and document call, i mean (rpc style and document style )?

Former Member
0 Kudos

>

> HI anton, u seem to understand very well the sap web sevrice , these entreprise service of abap , couldn't i call them via http get? i don't need it why, soap request are more complex? could u help more plz.

no you can't call the service via HTTP GET simply because SAP doesn't implement such a so called [REST webservice|http://en.wikipedia.org/wiki/REST] call.

SOAP requests are not complicated as long as you have a useful api to do so.

since a gazillion resources on the difference between RPC and document style can be found by a simple google search I do not explain it here.

anton

Former Member
0 Kudos

do u have any idea abt jde blackberry jde or how could i call this sap web service via eclipse ??

Former Member
0 Kudos

could u tell me if i use uddi registry , doesn't the call to this webservice change ??

Former Member
0 Kudos

hi again, i read that http soap , i can do it via http post, i m yrying to test this on webservicex site, but do u think that sap , ganna acept it idem ??

any body who can help me.