on 10-20-2008 6:04 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
>
> 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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.