Calling Webservice from SAP ME
Hi
I have searched the forum unfortunately I am not able to find an answer to my question.
Basically, I would like to call an external System from SAP ME via web service. I am thinking to use Collaboration Link for this purpose. For example COLLABORATION_SHOPORDER_RELEASE, I would like to trigger the Web service.
What should I do? Where Can I get the documentation about this (edit: I have found it in SDK) ? Do I need SDK for it (writting own code)?
This is not SAPMEINT or any ERP integration, it is just custom systtem integration. I appreciate any recomendation.
Thanks
Edited by: Seng Kiang Hoe on Jul 21, 2011 11:19 AM
what I have done are
1. Created a collaborative directive maintenance with just simple HTTP transport (synchronized set to true)
2. In the HTTP transport parameter I inserted the
url=http://xxx:50000/XMII/Runner?Transaction=EquipmentIntegration/trx_CreateOrder
3. In Collaboration Link, I linked COLLABORATION_SHOPORDER_RELEASE to the Directive maintenance I have created.
4. When I releases shop order Internal error occur
Any idea? The url above works. I just want to trigger the MII transaction without input.
Edited by: Seng Kiang Hoe on Jul 21, 2011 2:01 PM
Hi Ivan
Thank you for answering, but I think you misunderstood what I am looking for.
The plug-ins are already there in ME. For example Transport, I am using Simple HTTP Transport to call an Outbound HTTP. In this case this HTTP is an MII's transaction.
I want to call this WebService each time when I release shop therefore in COllaboration Link Maintenace I have the Trigger Action Collaboration_Shop_Order_Create link to the Collaboration I have created.
I do not want to call MII's transaction with SoapUI but with SAP ME.
Any Idea how I could do it? If you still do not understand what I mean, please let me know. I will try my best to explain it again.
The error that i got from trace
javax.ejb.EJBException: (Failed in component: sap.com/meear) Exception raised from invocation of public void com.sap.me.collaboration.CollaborationDirectiveMsgBean.onMessage(javax.jms.Message) method on bean instance com.sap.me.collaboration.CollaborationDirectiveMsgBean@17d8a085 for bean sap.com/meearxml|me.integration.collaboration.ejb-5.2.4.8-Base.jarxml|CollaborationDirectiveMsgBean in application sap.com/meear.; nested exception is: javax.ejb.TransactionRolledbackLocalException: (Failed in component: sap.com/meear) Exception raised from invocation of public com.sap.me.frame.Data com.sap.me.collaboration.CollaborationHandlerSOBean.processMessage(com.sap.me.collaboration.CollaborationMessage) throws com.sap.me.collaboration.CollaborationException method on bean instance com.sap.me.collaboration.CollaborationHandlerSOBean@4d4b93a7 for bean sap.com/meearxml|me.integration.collaboration.ejb-5.2.4.8-Base.jarxml|CollaborationHandlerSO in application sap.com/meear.; nested exception is: com.sap.me.collaboration.CollaborationConfigurationException: Invalid collaboration configuration: Invalid collaboration configuration: Plug-in not defined. When processing CollaborationMessage: site = 101841, action = COLLABORATION_SHOPORDER_MODIFIED messageID: ID:0067D2B600000072-00000000000185c268202:1314ed962dc:-7fee directive = TRANSPORT_ACTIVITY_BO[java.lang.String]=ActivityBO:SIMPLE HTTP TRANSP
ENABLE_SYNCH_PROCESSING[java.lang.String]=false
MODIFIED_DATE_TIME[com.visiprise.globalization.impl.IcuDateTime]=2011-07-22T11:46:33.000Z
HANDLE[java.lang.String]=CollaborationDirectiveBO:101841,TEST_SHOP_ORDER_RELEASE
TRANSPORT_PARAMETERS[java.lang.String]=url=http://server:50000/XMII/Runner?Transaction=EquipmentIntegration/Auftrag_Process/trx_CreateOrder&IllumLoginName=test&IllumLoginPassword=test&session=false
T_PLUG_INFO[com.sap.me.frame.Data]= ENABLED[java.lang.String]=true
ACTIVITY[java.lang.String]=SIMPLE HTTP TRANSP
CLASS_OR_PROGRAM[java.lang.String]=com.sap.me.collaboration.SimpleHTTPTransport
Edited by: Seng Kiang Hoe on Jul 22, 2011 1:53 PM
Edited by: Seng Kiang Hoe on Jul 22, 2011 1:56 PM
Similar Messages
-
Calling webservice in SAP XI from Servlet
I have requirment of Calling webservice in SAP XI from Servlet.
COuld you provide information of caling simple webservice from servletHello Venkat,
Getting Started with Web Services
Web Services Infrastructure
Getting Started with Web Services [original link is broken]
Thanks,
Satya -
Related documents or links on how to call webservices from WDJ
Hi all
i need documents & links on how to call webservices from Webdynpro for Java.
if anybody send the documents on sample scenarios on the same then it is the great help to me...
Thanks
SunilHi Sunil,
May these links help you.
http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
and the below thread to call weservices in java.
Re: How to call a web service from Java
Regards,
Supraja -
Is it possible to call Webservice from VB 6.0?
Is it possible to call Webservice from VB 6.0?
Regards,
Krishanu rayHi
Please check following links.
Calling Web Services from Visual Basic 6, the Easy Way
SAP PI integration with VB 6.0
Thanks,
Dipak Patil -
Calling webservices from ABAP via https/ssl with p12 certificates.
Hi all,
I have a problem with calling an external webservice via HTTPS.
I configured my system as indicate in the blog /people/jens.gleichmann/blog/2008/10/31/calling-webservices-from-abap-via-httpsssl-with-pfx-certificates but when I check the RFC connection the result is: ICM_HTTP_SSL_ERROR.
I check the ICM monitor and this is the result:
[Thr 11] Thu May 26 16:02:57 2011
[Thr 11] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_SSL
[Thr 11] session uses PSE file "/usr/sap/SV5/DVEBMGS10/sec/SAPSSLHTTPS1.pse"
[Thr 11] SecudeSSL_SessionStart: SSL_connect() failed
secude_error 536875072 (0x20001040) = "received a fatal SSLv3 handshake failure alert message from the peer"
[Thr 11] >> Begin of Secude-SSL Errorstack >>
[Thr 11] WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer
WARNING in ssl3_output_cert_chain: (12354/0x3042) No hierarchy certificate in FCPath
WARNING in reduce_FCPath_by_Issuer: (12354/0x3042) No hierarchy certificate in FCPath
[Thr 11] << End of Secude-SSL Errorstack
[Thr 11] SSL_get_state() returned 0x000021d0 "SSLv3 read finished A"
[Thr 11] Server's List of trusted CA DNames (from cert-request message):
[Thr 11] #1 " certificate 1
[Thr 11] #2 " certificate 2
[Thr 11] SSL NI-sock: local=ip peer=ip2
[Thr 11] <<- ERROR: SapSSLSessionStart(sssl_hdl=6000000000652010)==SSSLERR_SSL_CONNECT
[Thr 11] *** ERROR => IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT [icxxconn_mt.c 2012]
SAP_ABA 700 0012 SAPKA70012 Componenti validi per tutte le applicazioni
SAP_BASIS 700 0012 SAPKB70012 Componenti di base SAP
PI_BASIS 2005_1_700 0012 SAPKIPYJ7C PI_BASIS 2005_1_700
ST-PI 2008_1_700 0001 SAPKITLRD1 SAP Solution Tools Plug-In
SAP_BW 700 0013 SAPKW70013 SAP NetWeaver BI 7.0
SAP_AP 700 0010 SAPKNA7010 Piatt. d'applicazione SAP
CCM 200_700 0010 SAPK-27010INCCM CCM 200_700 : Add-On Supplement
SRM_PLUS 550 0010 SAPKIBK010 SRM_PLUS per mySAP SRM
SRM_SERVER 550 0010 SAPKIBKT10 SRM_SERVER
BI_CONT 703 0001 SAPKIBIIP1 Contenuto Business Intelligence
ST-A/PI 01L_BCO700 0000 - Servicetools for other App./Netweaver 04
What do you think about it?
Best regards,
Norberto.Don´t forget to set your proxy settings! Be sure that the application server could establish a connection to the external server.
From the BLog.
Thr 11 WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer
From the Error.
Have you looked into the above details?
Thanks
SM -
XML Error while calling webservice from oracle function.
I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "H4" does not match start-element tag "P"
Error at line 9
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call
-
Call webservice from PJC over https protocol
Hello!
I have problem calling webservice from PJC.
The webservice is on https server so I must declare the keystore and truststore...
I have generated java classes from wsdl file with SOPAUI and axis 1.0...
Then I have made a code which integrate axis library, jsee ...
On the client side all works fine (with jdk 1.3 compiler)
When I deploy it on oracle forms server and call it from oracle form I get the error:
java.net.MalformedURLException: unknown protocol: https
in this way I register the certificate..
private void registrirajCertifikat(String direktorij, String password,
String keyStore, String trustStore) {
System.out.println("keystore: " + direktorij + keyStore);
System.out.println("trust: " + direktorij + trustStore);
System.out.println("========================================");
System.setProperty("javax.net.ssl.keyStore", direktorij + keyStore);
System.setProperty("javax.net.ssl.keyStorePassword", password);
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.trustStore", direktorij + trustStore);
System.setProperty("javax.net.ssl.trustStorePassword", password);
System.setProperty("javax.net.ssl.trustStoreType", "jks");
System.out.println("========================================");
System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
}I have my kestore and truststore located on http server..
Every time the bean is initializzed I download the keystore and truststore to my java.tmp.dir
The same code in Jdeveloper works fine.. also in cmd prompt.. but in oracle forms I can't get it to run..
anybody can help me?
this is my console output when running a form:
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\peterv.IN2SLO
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\peterv.IN2SLO\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://dekani:7777/forms/java/frmall_jinit.jar from JAR cache
Loading http://dekani:7777/forms/java/images.jar from JAR cache
Cached copy of http://dekani:7777/forms/java/in2kartica.jar
** DOKUMENTNI SISTEM **
** PJC bean **
zacetek
http://10.1.2.235/in2/asarh.pfx
Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
3794 byte(s) copied
http://10.1.2.235/in2/arhaskeystore.jks
Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
3800 byte(s) copied
Registriramo nastavitve za SSL
keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
========================================
po registraciji nastavitev za SSL
========================================
https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
--> napaka: *java.net.MalformedURLException: unknown protocol: https*
java.net.MalformedURLException: unknown protocol: https
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at in2.mikrocop.Test.dokumenti(Test.java:94)
at in2.mikrocop.Test.testiranje(Test.java:66)
at in2.mikrocop.Test.<init>(Test.java:49)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at oracle.forms.ui.VBean.instantiateBean(Unknown Source)
at oracle.forms.ui.VBean.setProperty(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)I have tryed tu run my example with Jinitiator "java" like
c:\java -jar c:\in2kartica.jar
and all works fine..
I don't know why the same example won't run inside oracle form as javabean?!?
this is my cmd console
C:\jdk\bin>java -jar c:\in2kartica.jar
** DOKUMENTNI SISTEM **
** PJC bean **
keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
========================================
po registraciji nastavitev za SSL
========================================
https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
unknown attr1.3.6.1.4.1.311.17.1
Dolzina: 91 <------------ this is the result from webservice located on address above -
Hi
I need to create a palette in bridge which will interact with webservice and create a treeview. I do not know how to call webservice from adobe bridge. Can anybody help me?Hi
I need to create a palette in bridge which will interact with webservice and create a treeview. I do not know how to call webservice from adobe bridge. Can anybody help me? -
Call widgets from SAP EP(WebDynpro)
hi,
Can anyone please tell me how to call widgets from SAP EP (WebDynpro).
Eg. i have created a webdynpro project and i have a button called "SEE WEATHER FORECAST". When i click on it, i should get the widget opened.what does this have to do with XI?
Regards,
Robin -
How to call webservices from ADF page
Hi,
I am using ADFBC.
I want to call webservices from ADF page.please give examples of sample program on how to call a web service from the ADF pages.please give examples.
please help me.
Thanks,http://marianne-horsch-adf.blogspot.com/2011/03/how-to-create-web-service-based-adf.html
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/70-dependent-listboxes-using-ws-286107.pdf
http://www.oracleimg.com/technetwork/developer-tools/jdev/adfcomplexwstypes-101013.html
http://technology.amis.nl/blog/9726/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components
http://oracamp.com/passing-parameters-between-web-services-and-jsf-pages -
Calling webservice from Flex?
Hi,
I get the error when I call webservice from Flex.Can you tell
me why this happen?
Thanks
Mark
[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at DirectHTTPMessageResponder/securityErrorHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()I think this means that the source of the web service does
not have a crossdomain.xml file on it allowing access from your
site. Try adding one to the root of the server and see if that
fixes the problem.
hth,
matt horn
flex docs -
Can we call bapi from SAP or ABAP How? Pls Step by step
Can we call bapi from SAP How? Pls Step by step
thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
Do you mean you want to access BAPI in ABAP report?
If yes, then YES we can call,
1.Create a report -> In pattern write your BAPI name.
2. It is like your FM , Read correspoding BAPI documentation
3. Fill required parametes.
4. Test run and if successful , final run it.
And from Outside,
You have to establish a connection and create a wrapper and access using avaialble APIs.
Reward if useful! -
Send data to ECC table through RFC Call function from SAP B1 via b1if
Hi,
I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
ThanksSolved by my own.
-
Is posible call WebServices from Forms???
Hi.
My cuestion is simple. I don´t found information about this.
Can I call webservices from a Forms???. If it´s possible how it is??.
I don´t find anything document.
Thanks and sorry for my english.Hi!. thnaks for response.
The version is Forms 11g.
FormsEleven thaks!! !!
The webService are in .Net C# in a IIS. There is some problem???.
Edited by: Adama on 30-ago-2010 14:33 -
How to consume a webservice from sap crm
Hi All,
How to consume and access an external webservice from sap crm?
Suggest me.
Regards,
Sanjani
Edited by: Sanjani on Dec 6, 2010 3:09 PM
Edited by: Sanjani on Dec 10, 2010 1:08 PMPlease check the wiki link mentioned below. It will help you to an extent.
http://wiki.sdn.sap.com/wiki/display/CRM/CreatingWebServiceinSAP+CRM
Rg,
Harshit
Maybe you are looking for
-
Passing a table to a subrutine
Hi, I have an internal table itab[]. i want to pass this internal table to a subroutine using field-symbol. Can any one tell how to pass the field symbol of the table to the subroutine and subsequently process it. Thanks.
-
Our project is currently faced with having to build an automation testing framework for our flash games. We are currently using Flash 8, flex, and ActionScript 2, but we are wrapping everything for easy transition into Flash 9 and AS 3 as soon as it
-
500 Internal Server Error oracle.apps.fnd.cache.CacheException
I have been trying to access a new instance using JDEV, but i have been getting this error: Can anyone help me ? 500 Internal Server Error oracle.apps.fnd.cache.CacheException at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228) at oracle.apps.
-
Excel option is displaying blank Excel in Report output
Hi All, We have created the ALV report and everything is working fine except the Excel icon in the report output screen. When we are clicking on the excel icon it is displaying the blank excel. In our systems MS Office 2007 has been installed. Is the
-
Stock determnation for sales order stock
Hi all, for our SAP retail solution - we have requirements for moving Consignment stock to Sales order stock for home delivery . Then Sales order stock needs to be withdrawn for inter company 643 movement . The stock determination is maintained as K