How To: External Webservice -- XI
Hi Experts,
I've finished the HowToGuide "How To... Integrate XI an BI in SAP NetWeaver 2004s" and it works.
Now I need a HowToGuide for the other side of XI.
<b>Webservice (3rd Party) --> XI</b> --> BI
XI --> BI works now and I need some explanations for the other side of this szenario.
Can anybody help me please, a HowToGuide would be appreciated.
Thanks and regards,
<i>Ayse</i>
Also go thru this documents....
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0">Webservice Related Scenario in XI</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555">Developing WEB Service Using NWDS</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555">Webservice Creation</a>
Regards
Santhosh
Similar Messages
-
How To : Call External Webservice from BPEL and pass SOAP Message to the WS
Hello All-
Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
<strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
<strong>2. Transform the message</strong>
<strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
I am new to Webservice integration using BPEL and would really appreciate your help.
Thanks In Advance
Regards,
DibyaHi Dharmendra,
I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
This is what I see in the TCP monitor, please note the double SOAP env:Body:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<env:Header>
<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
<wsa:Metadata>
<device xmlns:hl7="urn:hl7-org:v3">
</device>
</wsa:Metadata>
</env:Header>
<env:Body>
<RCMR_IN000002NR01>
</RCMR_IN000002NR01>
</env:Body>
</RCMR_IN000002NR01>
</env:Body>
</env:Envelope>
Any help is appreciated.
Regards,
Aagaard
Edited by: Aagaard on Oct 30, 2008 8:59 PM
Should have mentioned. I am using BPEL 10.1.3.4
Edited by: Aagaard on Oct 31, 2008 8:43 AM
I have opened a new thread for this question so as to not confuse the issue more than necessary.
How many SOAP envelopes do you really need? -
How to connect external webservice from ABAP
Hi,
Please see code pasted below and tell me what is wrong.
We try to connect external webservice via https. Should I install certificate is SAP for this connection? (if YES, how can I do this?)
Should I configure something else in SAP to connect external webservice via https?
DATA: client type ref to if_http_client,
lv_content type String,
lv_xml_string type string,
lv_length type I,
lv_response type I,
lv_node type ref to IF_IXML_NODE,
lv_xml_doc type ref to cl_xml_document.
****Create the HTTP client
call method cl_http_client=>create_by_url
EXPORTING
url = 'http://services-demo.krd.pl/raina/1.0/KrdAPI.asmx'
IMPORTING
client = client
EXCEPTIONS
others = 1.
CALL METHOD CL_HTTP_CLIENT=>CREATE
EXPORTING
HOST = 'services-demo.krd.pl'
SERVICE = '443'
SCHEME = '2'
PROXY_HOST =
PROXY_SERVICE =
SCHEME = SCHEMETYPE_HTTP
SSL_ID =
SAP_USERNAME =
SAP_CLIENT =
IMPORTING
CLIENT = client.
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
others = 4
CONCATENATE
'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
' xmlns:xsd="http://www.w3.org/2001/XMLSchema" '
'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rain="http://raina.krd.pl">'
'<soapenv:Header/>'
'<soapenv:Body>'
'<rain:Login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
'<id xsi:type="xsd:string">B03EB34F02</id>'
'<password xsi:type="xsd:string">Akquinet99</password>'
'<appId xsi:type="xsd:string">test</appId>'
'<appInstId xsi:type="xsd:string">test</appInstId>'
'<custom xsi:type="xsd:string">test</custom>'
'</rain:Login>'
'</soapenv:Body>'
'</soapenv:Envelope>'
INTO lv_content.
CALL METHOD client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'POST'.
CALL METHOD client->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = '~request_uri'
VALUE = '/raina/1.0/KrdAPI.asmx?'.
CALL METHOD client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
call method client->request->set_header_field
EXPORTING
name = 'SOAPAction'
value = 'Login'.
lv_length = STRLEN( lv_content ).
call method client->request->set_cdata
EXPORTING
data = lv_content
offset = 0
length = lv_length.
****Make the call
client->send( ).
****Receive the Response Object
call method client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
*****Get the response content
client->response->GET_STATUS( IMPORTING CODE = lv_response ).
lv_xml_string = client->response->get_cdata( ).
Regards,
MichalHI ,
Error in accessing External Web Service
Calling a secured external web service from ABAP
Edited by: A kumar on Aug 21, 2008 11:58 AM -
How I can wire an extern WebService to BPEL?
I have started to work with BPEL PM (2.0.10) bbpelz 0.0.95. Now I would
understand how I can wire an extern WebService (like a PLSQL WebService
created in JDeveloper from a package) to BPEL.
Therefore I look for Examples from BPEL - AmazonFlow or GoogleFlow. Then I set the ProxySettings in the orabpel\bin\obsetenv.bat. I've got the error:
BPEL validation failed.
[bpelc] BPEL source validation failed, the errors are:
[bpelc]
[bpelc] [Error]: CompilationError
[bpelc] [Description]: in line 0 of "bpel.xml", Failed to read wsdl.
[bpelc] Error happened when reading wsdl at "C:\Programme\oracle_sw\orabpel\samples\demos\GoogleFlow\GoogleSearchRef.wsdl", because "WSDLException: faultCode=PARSER_ERROR: Error reading file: No route to host: connect".
[bpelc] Make sure wsdl exists at that URL and is valid.
[bpelc] .
[bpelc] [Potential fix]: .
[bpelc] .
BUILD FAILED: C:\Programme\oracle_sw\orabpel\samples\demos\GoogleFlow\build.xml:29: Validation error
On my Laptop - there is'nt a Proxy, and the versions are: bpel pm 2.1.1
bpelz 0.9.10
I've got the error, when built the AmazonFlow:
[bpelc] [Error] AmazonWebServices.wsdl:9:45: src-resolve.4.2: Error resolvin
g component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespac
e 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespac
e are not referenceable from schema document 'http://soap.amazon.com/schemas3/Am
azonWebServices.wsdl'. If this is the incorrect namespace, perhaps the prefix of
'soapenc:Array' needs to be changed. If this is the correct namespace, then an
appropriate 'import' tag should be added to 'http://soap.amazon.com/schemas3/Ama
zonWebServices.wsdl'.
Who can help me, make run the samples AmazonFlow and GoogleFlow?
Where can I find more informtions about the Problem, how I can wire a WebService created in JDeveloper to BPEL? I can deploy the WebService from JDeveloper on the BPEL-OC4J-Server- but what have I to do or to integrate in order to see my WS in BPEL console and have access to it in bpel designer?
Regards SabineHi,
I followed your suggestion and linked my BPEL service to a WebService through the WSDL that is remotely accessible as in "{color:#0000ff}http://localhost:8988/scratch/kibailey/view_storage/kibailey_SOA/.jdev_user_home/mywork/OptyEventsService/Model/classes/EventsAMService?wsdl{color}" instead of directly accessing the WSDL file. This Webservice is of course deployed at the above mentioned server and location and the server is up.
But when I run my BPEL process, I still get this message "{color:#ff0000}Reference EventsAMService does not exist as wire target{color}". I have cross checked other WSDL dependencies and they are fine.
I am currently using JDev 11g drop 6 through ADE (linux). I have exposed a BC4J component (Application Module) as a WebService.
Please let me know of any resolution.
With regards,
Kishan -
How can we call a external webservice from sandboxed webpart?
Hi,
I need to call an external webservice from sandboxed visual webpart in 2013. And that webpart would be used in office-365 site. Please let me whether it is possible or not.
Thanks,
ArindamSandboxed solution server code can't call an external web service. There are ways to write a sandboxed solution that calls a web service using client side code. Here's a sample of a silverlight application deployed via the sandbox that can call
an external web service.
http://msdn.microsoft.com/en-us/library/gg615590(v=office.14).aspx
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Consuming external webservice in SAP
Hi All,
Wjile Consuming external webservice that is .NET webservice in SAP I am getting the error "Proxy generation terminated: WSDL
(<extension> not supported)". Please can anyoone tell me what would be the issue and how should I resolve it.
Thanks in Advance,
Meenu.The SAP version that we are using is ECC 5.0. And the URL that they have given me to consume has some .svc extension.
http://ctnhgesappdev.corp.timken.com/GES_EDISService/EDISService.svc?wsdl
So when I am trying to consume this in SAP I am getting the error "Proxy generation Terminated : WSDL error : (<extension> not supported)". -
Hi all,
I hav a scenario where i need to call a third party webservice. its not the standard webservice scenario as given in the blogs. There is a webservice that I need to call from XI .
Need your inputs in how to do this..
Regards,
VinithraHi,
Please elaborate on your requirement as you have mentioned that it is not a standard webservice requirement.
If you need to call a third party webservice then following are the steps to be performed:
a) Get the external webservice wsdl, import it in IR.
b) Create a inbound service interface and select the message type from the imported wsdl.
c) Use the endpoint details from the wsdl and configure accordingly in the receiver type soap channel.
Regards,
Pravesh. -
BPEL or OSB consume external webservices
Hello all ,
After I look over documentation and - Getting Started With Oracle SOA Suite 11g R1: A Hands-On Tutorial: Fast-Track Your SOA Adoption: Build a Service-Oriented Composite Application in Just Hours - still is not clear how can I consume a web-service hosted on other system - for example Websphere or SharePoint .
I had a example one web service register
<service name="DonateBeanService">
<port binding="tns:DonateBeanPortBinding" name="DonateBeanPort">
<soap:address location="http://localhost:8888/TestTopDown/services/DonateBeanPort"/>
</port>
</service>
on my WAS CEE server .
When I tried to made a business service in OSB - I imported the wsdl - create a new business service -add monitor capabilities but the call is not made to the service endpoint .
Also inside BPEL how can I invoke a external webservice .
Can anyone help me please with some points or advices ? What is wrong in the approach ? In the end OSB capabilities should allow me to integrate with other systems very easy .
Many thanks in advance for all .
And a HAPPY NEW YEAR .
Best regards,
Stefanhow can invoke from inside a BPEL the same service ? or in the BPEL is better to have only local web-services BPEL can also invoke the same service. To know more about BPEL, please refer -
http://www.oracle.com/technetwork/middleware/bpel/overview/index-088867.html
Post BPEL related questions in BPEL forum -
BPEL
And the last one - if I need to read information from a file and send parameters to this webservice - how I will do it on the OSB ?Create a messaging type/Any XML proxy service in OSB with FILE/FTP transport (as per your requirement). In message flow of proxy service you may use XQuery/XSLT/MFL to transform the content of the pulled file into the XML required for calling web-service. Use communication actions to call business service from proxy service message flow. You may like to refer -
http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15866/toc.htm
Regards,
Anuj -
Call more external webservice from apex
How can call more external webservice from apex - consecutively one after another - one execute, than next used as a parameter of the previous webservice results
Sandboxed solution server code can't call an external web service. There are ways to write a sandboxed solution that calls a web service using client side code. Here's a sample of a silverlight application deployed via the sandbox that can call
an external web service.
http://msdn.microsoft.com/en-us/library/gg615590(v=office.14).aspx
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Consume external WebService inside BW
Hi,
does anybody know how to consume an external webservice inside BW ?
Thanks,
MaxYou have two options:
1. Make use of XI.
2. Use the XML interface in BW.
refer:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0
this document shows u to transfer XML data to BW.
If you are on BI7 then create a RDA XML datasource and integrate your web service to that:
/people/kamaljeet.kharbanda/blog/2006/11/13/real-time-data-acquisition-bi2004s -
SchedulerTask and external webservice problems
Hi,
I need to build an application that fetches some report from an external webservice (Axis) on the net and stores some data in a portal database.
However, I picked the KM-residing SchedulerTask to solve this issue because you can run it just like cron-jobs and the like.
In my SchedulerTasks code - it has been tested standalone and does a great job fetching data from webservice - the calls fails due to a "connection refused", see stacktrace way below.
My portal is a development machine and is therefore talking to and with everyone, fully open, un-proxied and should not hinder me from accessing such a webservice, I think.
I checked the webservice URL (wsdl-ended) is accessible from within my SchedulerTask by opening a simple java.net.URL on it which worked really nice.
My questions are:
- Did someone experience a similar behaviour and if so how did you solve this?
- Is there any additional configuration needed to make portal/KM speak with external webservices?
- Any other thoughts?
Thanks for your help!
regards,
Christian
The essential lines from the stacktrace:
{0}#1#AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection refused
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)For iSight help, consider http://support.apple.com/kb/HT2090
In addition to testing with iMovie, you can also test video recording with QuickTime Pro if you have it.
Because you have similar problems with Photo Booth when using another camera, you may be rushing Photo Booth. Consider the suggestions offered here:
http://discussions.apple.com/thread.jspa?messageID=7018319�
If apps other than Photo Booth record properly but you do not want to use one of those that work properly, it is possible that a corrupted Photo Booth Preferences file is causing your problem. Quit Photo Booth (and all other applications) and throw away the Photo Booth Preferences file (com.apple.photobooth.plist) from your Home / Library / Preferences folder. A new preferences folder will be generated when you restart Photo Booth to test whether it works now.
If resetting preferences did not help but you still want to use Photo Booth, reinstalling the Photo Booth app might help.
If no app works properly, see your Apple Authorized Service Provider for professional help.
EZ Jim
G5 DP 1.8GHz w/Mac OS X (10.5.7) PowerBook 1.67GHz (10.4.11) iBookSE 366MHz (10.3.9) External iSight -
Error at creating Client Proxy of external webservice (WSDL)
Hi Experts,
I try to create a Client Proxy Object out of an external webservice. Here is the WSDL URL:
[http://www.webservicex.net/CurrencyConvertor.asmx?wsdl]
I try to create it with this URL and then I get the error message
Not implemented
Exception of class CX_SIDL_INTERNAL_ERROR
I found two other threads with a similar problem:
cunsuming external webservice in ABAP
Problem while consuming external webservice
But there is no solution that worked for me. In the first thread it is mentioned, that the code between
<wsdl:binding name="XXXXHttpGet" type="tns:XXXHttpGet">
and it's closing brackets should be removed in a local file. I tried that and was able to create a client proxy object out of this local wsdl-file. But then I called the webservice with the folling coding for testing:
report z_currency_converter.
data: convert type ref to zzzco_currency_convertor_soap.
try.
create object convert
exporting
logical_port_name = 'Z_LP'
catch cx_ai_system_fault .
endtry.
data: output type zzzconversion_rate_soap_out .
data: input type zzzconversion_rate_soap_in .
input-from_currency = 'EUR'.
input-to_currency = 'USD'.
try.
call method convert->conversion_rate
exporting
input = input
importing
output = output
catch cx_ai_system_fault .
catch cx_ai_application_fault .
endtry.
write output-conversion_rate_result.
The same code worked fine in another system. In this "older" system could also create a client proxy, I think because it has a newer Support Pack version.
SAP says the following:
The problem is that this WSDL uses two bindings different from SOAP
binding which is not in conformance with Basic Profile 1.1 -
http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLBINDINGS .
I looked in the document, but I do not know where the problem in the WSDL file exactly is. What have I to change? Or can somebody give me the URL of a free webservice, that you used for creating a client proxy with a new support pack standing? In the "old" system there is not yet the SOAMANAGER but in the one where it doesn't work.
I hope you have an idea.
Thanks a lot in advance!
Best Regards,
IngmarI think it is the problem of version.U need to ask SAP to release some patch levels to correct it.
Regards
Snehasish -
Error while using External Webservice in CAF
Hi All,
I am trying to use an external webservice in my CAF project. The webservice is working fine when tested using WebService Navigator but when I m testing in CAF Administrator UI it is giving the following error.
ERROR. Problem in server response: Bad Request.:
Please provide the appropriate solution its very urgent.Hi Vijay,
Did you check if you are using full correct UURL. That happens with incorrect URL.
Thanks,
Ravi -
Error after import external webservice(RFC) wsdl url to Process Composer
Hi all,
I try to use RFC webservice in my BPM as below:
1. Expose RFC as webservice using CAF (import external service RFC and then create application service use this external service)
2. Define Destination in NWA.
3. Create a Process Composer project, and import the external webservice(RFC) wsdl file as service interface in the project.
After importing, i get error : the port type specified for the ...binding is undefined. Check port type name and ensure it is defined.
If i import another external service, not RFC (such as business object), there is no error.
My system is NWCE 7.11
Thanks in advance,
Sinh.
Edited by: Sinh Nguyen Van on Jul 20, 2009 8:29 AMHi Bharath,
Below is content of wsdl url and error message, thanks
Error message:
The 'zfm_rfc_caf_as' port type specified for the 'zfm_rfc_caf_asBinding' binding is undefined. Check the 'zfm_rfc_caf_as' port type name and ensure it is defined.
wsdl url :
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" xmlns:b0="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as">
<import namespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl?wsdl=binding&mode=ws_policy" />
- <service name="zfm_rfc_caf_as">
- <port name="zfm_rfc_caf_asBindingPort" binding="b0:zfm_rfc_caf_asBinding">
<address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl" />
</port>
</service>
</definitions>
Edited by: Sinh Nguyen Van on Jul 22, 2009 4:18 AM -
Adding authentication in header while consuming external webservice
Hi,
I am using oracle soa suite 11g, while consuming an external webservice i have to add authentication in header before sending request.
I want my header in request to look like this:
<soapenv:Header>
<urn:Authentication>
<urn:username>user1</urn:username>
<urn:password>pass1</urn:password>
</urn:Authentication>
</soapenv:Header>
if anyone has any idea then please share.
Regardsplease look at this and see whether that helps you..
Re: Creating a partnerlink from a secure webservice
Maybe you are looking for
-
Multiple email address with one server account
Why can't Mail have multiple email addresses on one email account? Like Thunderbird calls them Identities. As I remember, Outlook also supports this. I like Mail but it seems rather dated and clunky in this respect. I am using mainly IMAP so maybe I
-
OSX 10.4.9 and Illustrator CS2
Has anyone heard of the 10.4.9 update creating similar problems with the pathfinder tools in Illustrator CS2 as 10.4.8 did? I'd like to update but only if it's safe. Last time I had to revert to 10.4.7 and don't want to go through that again! Grrr!
-
How to read particular Sector and Block in Mifare 1k through Java?
Hi Friends.. Do you know how to read particular Sector and Block in Mifare 1K through Java?.. I've created the simple application that read data from Mifare 1K, but i've problem when i want to read the other sectors and blocks.. i tried to read the b
-
I am running Mac OS X 10.5.8 and I downloaded the system update for Safari 5.0. When I try to open Safari nothing happens, no window, nothing.
-
Hi Experts, I have one requirement from my client as follows.Can anyone guide us how to capture this. Base price : Rs 1000.000 Discount 2% : Rs 20.000 Net Price :Rs 980.000 Pack & forwarding 1%