Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 21, 2008 at 04:46 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Oct 21, 2008 at 07:32 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Oct 22, 2008 at 06:49 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Oct 24, 2008 at 01:28 PM

    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.

    blackberry-integration-with-mobile-infraestructure

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

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

    steps-to-show-data-on-actual-blackberry-urgent-ple

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

    Regards,

    Vandana.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.