Consuming a Web service thru XI with Web Dynpro for ABAP
Hi all,
Does anyone know how to call a web service thru XI from Web Dynpro ABAP. The web service will call an RFC and bring back some data.
Some guidelines on how to achieve this will be very much appreciated.
Thanks
KG.
Hi Kunal,
Do you want to use XI at the runtime of the service ? Usually for a synchronous call, XI is used only at the design time to design the message interface. Using this message interface the proxy class in ur ABAP system can be generated. In the interface method of your proxy class you can call your RFC. Finally generate a webservice out of this proxy class via SPROXY tsn.
Get the WSDL url of this webservice in tsn WSADMIN . Using this url you can call the service (peer-to-peer, no XI involved at runtime) with Webdynpro.
I hope this answers your question.
Regards,Girish
Similar Messages
-
Web service proxy client with client cert cause SSLSessionNotFoundErr
Hi,
I tried to run web service proxy client with certification from JDeveloper 10.1.3.0.4 to call PKI enabled web service got folllowing error:
WARNING: Unable to connect to URL: due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
Web service deployed on OASHi,
i am trying to invoke from JDeveloper (10.1.3) a CRM On Demand's Web Service and I hava the same problem:
ADVERTENCIA: Unable to connect to URL: https://secure-ausomxgfa.crmondemand.com/Services/Integration due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
java.rmi.RemoteException: ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:96)
at testerlast.ContactClient.contactInsert(ContactClient.java:88)
at testerlast.ContactClient.main(ContactClient.java:69)
Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:80)
... 2 more
To do the invocation I have done a proxy to consume this Web Service, with the follow main:
public static void main(String[] args) {
try {
testerlast.ContactClient myPort = new testerlast.ContactClient();
System.out.println("calling " + myPort.getEndpoint());
myPort.setUsername(nameUser);
myPort.setPassword(password);
ListOfContactData llista = new ListOfContactData();
ContactData[] contacts=new ContactData[2];
ContactData contact=new ContactData();
ContactInsert_Input input=new ContactInsert_Input();
// Login WS HTTPS
String idSesion=connexioWS_CRM.logon(URL,nameUser,password);
// Add contact
for (int i = 0; i < contacts.length; i++) {
contact.setId("ProvaWSCRM"+i);
contact.setContactFirstName("JDeveloper"+i);
contact.setContactLastName("prove"+i);
contact.setCellularPhone("77777777"+i);
contact.setDescription("Add contact with Id:"+contact.getId());
contacts=contact;
System.out.println("Id:"+contacts[i].getId()+" firstName:"+contacts[i].getContactFirstName()+" lastName:"+contacts[i].getContactLastName());
llista.setContact(contacts);
input.setListOfContact(llista);
input.setEcho("off");
System.out.println("Pwd:"+myPort.getPassword()+" Port:"+myPort._port+" endpoint:"+myPort.getEndpoint()+" user:"+myPort.getUsername());
myPort.contactInsert(llista,"LIC","Broadset","OFF");
// Logout en WS (HTTPS)
connexioWS_CRM.logoff(URL, idSesion);
} catch (Exception ex) {
ex.printStackTrace();
What's wrong? Any idea?
Thank you
Edited by: user12085357 on 31-oct-2009 10:39 -
How to Create web service using JMS with PUB/SUB pattern.
Hi All,
I need to expose web service using JMS with PUB/SUB pattern.
if you have any source for this.
I tried to use @WLJmsTransport annotation but unable to get it done.
I have configured all JMS server, topic, and connection factory.
Thanks.Hi, I am having web sample web service program which is simple one.
But I need to Modify this to JMS enable.
Can any one help me?
Thanks. -
Is it possible to connect to a web Service(JAX-RPC) with a middlet?
Is it possible to connect to a web Service(JAX-RPC) with a middlet?
Hi
Check this article: http://developers.sun.com/sw/building/codesamples/j2me-client/index.html
Mihai -
Web service XML use with Schema
Hi!
I have a Webservice working ok and a can see the xml, but, the after process for read this data(I do it trought pbl) take too time, then i go to try use of schema, as follow structure:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="nombres" type="xsd:string"/>
<xsd:simpleType name="paterno" type="xsd:string"/>
<xsd:simpleType name="materno" type="xsd:string"/>
<xsd:simpleType name="email" type="xsd:string"/>
<xsd:simpleType name="codigo" type="xsd:string"/>
<xsd:simpleType name="vigencia" type="xsd:string"/>
<xsd:simpleType name="fecIni" type="xsd:string"/>
<xsd:simpleType name="fecTer" type="xsd:string"/>
<xsd:simpleType name="codCargo" type="xsd:string"/>
<xsd:simpleType name="codGrado" type="xsd:string"/>
<xsd:simpleType name="codPuesto" type="xsd:string"/>
<xsd:simpleType name="codRepart" type="xsd:string"/>
<xsd:simpleType name="codOrganismo" type="xsd:string"/>
<xsd:simpleType name="descCargo" type="xsd:string"/>
<xsd:simpleType name="descEscalafon" type="xsd:string"/>
<xsd:simpleType name="descReparticion" type="xsd:string"/>
<xsd:simpleType name="descEstamento" type="xsd:string"/>
<xsd:simpleType name="descJerarquia" type="xsd:string"/>
<xsd:group name="nombramientos">
<xsd:sequence>
<xsd:element name="codigo" type="codigo"/>
<xsd:element name="vigencia" type="vigencia"/>
<xsd:element name="fecIni" type="fecIni"/>
<xsd:element name="fecTer" type="fecTer"/>
<xsd:element name="codCargo" type="codCargo"/>
<xsd:element name="codGrado" type="codGrado"/>
<xsd:element name="codPuesto" type="codPuesto"/>
<xsd:element name="codRepart" type="codRepart"/>
<xsd:element name="codOrganismo" type="codOrganismo"/>
<xsd:element name="descCargo" type="descCargo"/>
<xsd:element name="descEscalafon" type="descEscalafon"/>
<xsd:element name="descReparticion" type="descReparticion"/>
<xsd:element name="descEstamento" type="descEstamento"/>
<xsd:element name="descJerarquia" type="descJerarquia"/>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="Usuario">
<xsd:sequence>
<xsd:choice>
<xsd:element name="nombres" type="nombres"/>
<xsd:element name="paterno" type="paterno"/>
<xsd:element name="materno" type="materno"/>
<xsd:element name="email" type="email"/>
<xsd:group ref="nombramientos"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="usuario" type="Usuario"/>
</xsd:schema>
... and the xml i using as the next:
<usuario>
<nombres>Oscar Hernan</nombres>
<paterno>Pozo</paterno>
<materno>Ortiz</materno>
<email>[email protected]</email>
<nombramientos class="list">
<nombramiento>
<codigo>A110401412002</codigo>
<vigencia>1</vigencia>
<fecIni>2002-01-01 00:00:00.0</fecIni>
<fecTer>2002-12-31 00:00:00.0</fecTer>
<codCargo>N3A075</codCargo>
<codGrado>13</codGrado>
<codPuesto>A22004</codPuesto>
<codRepart>11040501</codRepart>
<codOrganismo>11040000</codOrganismo>
<descCargo>ANALISTA COMPUTACIONAL</descCargo>
<descEscalafon>N3A</descEscalafon>
<descReparticion>Dirección de Servicios de Tecnologías de Información</descReparticion>
<descEstamento>A</descEstamento>
<descJerarquia>Técnica</descJerarquia>
</nombramiento>
<nombramiento>
<codigo>A120200011978</codigo>
<vigencia>1</vigencia>
<fecIni>1978-09-15 00:00:00.0</fecIni>
<fecTer>2099-12-31 00:00:00.0</fecTer>
<codCargo>A2A001</codCargo>
<codGrado>05</codGrado>
<codPuesto>001767</codPuesto>
<codRepart>19012061</codRepart>
<codOrganismo>12060000</codOrganismo>
<descCargo>Académico Prof. Asociado</descCargo>
<descEscalafon>A2A</descEscalafon>
<descReparticion>Aporte Institucional Ciencias Físicas </descReparticion>
<descEstamento>A</descEstamento>
<descJerarquia>Prof. Asociado - Categ. Academica Ord.</descJerarquia>
</nombramiento>
</nombramientos>
</usuario>
As you see, i'm try retrieve data "nombramientos" in a group, but que schema is not charging in albpm with this structure.
A need let "nombramientos" tag in a group to use it as correct.
Please.. if any body can help me.
Nathan BernalI'm new to web services, but we are currently
implementing a number of Web Services that all take
as arguments a single parameter which is an XMLBean,
which has been generated by a XML Schema.
What I find surprising is that when I submit a SOAP
message to the Web Service (through the http Web
Service Tester inside eclipse), I can send any valid
XML without getting a SOAP fault. Is there a way on
the Web Service that I want the XML submitted to be
validated against the XML Schema for that parameter?
Bit surprised I have to implement my own input
argument validation, and there doesn't appear to be a
standard way to do this. I must be missing soemthing
surely? Why else would the Schema be in the WSDL?
Cheers
JohnHas anyone found an answer to this, we have the same issue? -
How to make a PDF form call Web service and return a static pdf for user to print?
Hi all,
Can anyone help me regarding the feasibility of using PDF forms for my following case?
I would like to create a Dynamic pdf form. User only have the Acrobat reader. they can enter some information. Then have a submit button. when user click the submit button, it can call the web service with data. then Web service returns a Static PDF document based on data and the user can print it out. (and maybe save as separate pdf file)
1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
2. As I understand I need to have Live Cycle Designer to create a pdf and make it Reader Enabled. So user can user reader to call webservice? am I correct?
3. What minimum reader that user need to have? PDF reader 7 or above?
4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
Thanks a lotWe have done a similar approach in the past and yes, it can be doable.
1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
Srini: We have developed a Servlet to talk to Webservice. Based on the Webservice response, the Servlet, prepares the Byte stream and sends it to Webbrowser to display as a PDF. The PDF data was submitted to Servlet in XML format.
But if you do not want to use the above approach, then you have to use the Workbench Process.
Submit the PDF data to a Workbench process and the inside process, execute Webservice Service with the data. Once the response is received, prepare the data XML and render a PDF with it.
To do this, you need LiveCycle Server and Reader Extensions server component.
2. As I understand I need to have Live Cycle Designer to create a pdf and make it Reader Enabled. So user can user reader to call webservice? am I correct?
Srini: If you want to use the Servlet, you can Reader extend the PDF with Acrobat.. But if you want to submit the data directly to Webservice, then you need Reader Extensions server component.
3. What minimum reader that user need to have? PDF reader 7 or above?
Srini: Not sure but Reader 8 and above should work.
4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
Srini: If you use the Servlet approach, then you can re-use the same webservice. But if you want to submit directly to the same webservice, you may need to change it to suit your data XML.
5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
Srini: If you use the Servlet approach, you do not need any server component but other approach, you need Livecycle Server and Reader Extensions server component.
Thanks
Srini -
Issues with portal integration of Web dynpro for ABAP application
Hi,
I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
2. the iview loads properly, but there is an error in the status bar that says "Access denied"
3. is it possible to do absolute navigation from
role1->folder1->iview1 to role1->folder2->iview2?
when i fire this navigation from the webdynpro
application, the navigation does not happen in the
portal.
thanks,
Kavitha>
sridhar vadaga wrote:
> Hi Experts,
>
>
> CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
> EXPORTING
> text = url
> IMPORTING
> BUFFER = content .
>
>
> Thanks & Regards
> Sridhar
I think you are overestimating the power of the SCM_STRING_TO_XSTRING function module. By supplying a URL as the value of the input text, it isn't going to magically go read the content from the remote location and convert that to a binary string. It is going to take whatever value you supply in th importing TEXT parameter convert that to binary. In other words it is literally converting the string http://xxx/test.xls to binary. You will need some other mechanism to read the content from the remote location into ABAP memory before you can process it. You will need to use the CL_HTTP_CLIENT class or call some sort of web service to retrive the content. -
Labview Web Services: How to 'undeploy' web services
I have created the example web services:
Address Book project in labview\examples\comm\webservices\address book for an example of a Web service that handles post data, streaming output, static content, and HTML forms.
Weather Monitor project in labview\examples\comm\webservices\weather monitor
for an example of a Web service that publishes simulated weather statistics.
Using Web UI Builder, they are always included in the list of available web services when I Import Web Service.
How do I get rid of them?
Solved!
Go to Solution.Hello,
To remove them from the list, you need to undeploy the web service. There are two ways to do this: you can turn off Web Services in Distributed System Manager or you can delete the Web Service file.
To enable the ability to control Web Services in Distributed System Manager follow the steps in KnowledgeBase 5BLESQW5.
To remove an actively running web service go to C:\ProgramData\National Instruments\WebServices\aws (Windows 7) and remove the directory that has your web service name. Because we also cashe the LVWS files in another location on disk we will also have to remove that to ensure the Web service is not redeployed by the system web server at some other time. Go to C:\Windows\System32\config\systemprofile\Documents\LabVIEW Data\WebServices\Standalone and remove the LVWS file associated with you web service.
Hope this helps!
Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments -
Is it possible to invoke an external REST web-service hosted in WebLogic web application from an Adobe LiveCycle Process (ES-4) with parameters as input and manipulating the response depending on the type of parameters it gets back. Then invoking an Adobe Form and prepopulating the Form based on the response parameters? Do you have sample projects that do this invocation. The part highlighted in red is what I need examples.
You can simply use "Execute Script" operation in Workbench and make use of java.net.URL. Below links should help :
http://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/
http://www.adobe.com/devnet/livecycle/articles/building-xml.html
http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=000581.html
Hope this helps.
-Wasil -
Upload a file in KM repository with Web dynpro for abap
Hi gurus, i´m trying to create a KM repository and then upload a file into this repository with Web dynpro for abap , but i can´t find any info. Can anyone help me with this problem, i have to solve it ASAP...
Thanks for all....
Regards,
Diego.Please referr to the ideas on this thread.
Install Problems withe the NW04s ABAP Trial verssion
You have installed the loopback adapter and made the propriate entries in the hosts file, right?
Regards,
Rich Heilman -
Full ABAP Edition-Trial (with Web Dynpro for ABAP) Max DB data volume
I recently installed Full ABAP Edition-Trial (with Web Dynpro for ABAP)- SPS08.
http://static.flickr.com/89/243544270_91e713e3a3_o.jpg
as you can see, it's already 92% acquired ( just after installation)
Is it correct?
or it's better to add another volume?
The other question is
according to the license installation guide,
it sounds like we can delete the temp licese with SAP*.
so I did like that but i got the following message
http://static.flickr.com/81/243546622_bc99d1af2b_o.jpg
Well, I could delete the old license with BCUSER.
Thanks,
DavidHello,
to your first question.
The MaxDB database has a feature which can
increase the database automatically.
This ( auto_extend ) is turned on for the SDN Preview
installation.
That means the database should extend a further datavolume
automatically when the filling level gets over 90%.
In your case the database already added two more datavolumes. The installation only creates one.
Best regards, Stefan -
Web service not visible in web service navigator
Hi,
Whenever i deploy my web service application ear, i am not been able to see the corresponding web service in web service navigator or in web service perspective. For any other project its working fine. but for this specific project its not at all working.
I am not getting any warnings or errors while deploying. The deployment is successful. previously it was working fine but now suddenly stopped working after doing some changes in entity bean. I tried recreating the web service and also tried changing the server. Also i deleted and recreated ear file. but no help.
Any idea what exactly is wrong?Hi Abhijeet,
I did got same error some time back. Go to visual Administrator and start the application if that does not work undeploy that application using Visual Administrator undeploy the deployed the Application, and then again deploy the application -
Stub(Proxy) generation for external Web Service in SAP NW WebAS 6.40
Hi,
Can anyone tell me what tool is used to generate the proxy files for accessing any external web services in SAP NetWeaver WebAS 6.40 for JAVA (SAP DevStudio 2.0.5).
Do i have to install any components or configuration for using external web services?
Thanks,
Mital.Hi Peter,
Thanks for the reply.
I have already gone through the Email Web Service tutorial. And implemented the tutorila.But no where they have mentioned about the toolkit they are using to generate stub files and SOAP request.(for eg Axis tool for WSDL to java generation).
Also I am facing problems while I am trying to use an external webservice. I have posted the problem at Re: WebDynpro External Web Service Model.
It would be nice if uyou can go through the problem and help me in solving the problem.
Also can you please tell me the link for the mentioned documents on importing web service model.
Thanks,
Mital. -
Part II: Adobe Print Forms with Web Dynpro for ABAP. -Practice issue
Hi,
I am practicing Thomas jung Tutorial on Adobe forms [Part II: Adobe Print Forms with Web Dynpro for ABAP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97].
I am trying to complete this and looks like this tutorial in not complete.Anybody can help me in completing this until we get a preview of adobe form?
FYI.. Ic ompleted evevrything in tutorial and I am waiting to complete and test.
Rgds
VaraThomas,
Here is where I am stuck.
Wrote this code in ONACTIONSEARCH.I am getting my entries in internal table ISFLIGHT.
but unable to bind it to adobe form and show in the form.
* SELECT statement
clear isflight. refresh isflight.
select * into corresponding fields of table isflight from sflight
where carrid = ls_data_selections.
* navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
* navigate from <ADOBE_DATA> to <SFLIGHT> via lead selection
lo_nd_sflight = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_sflight ).
lo_nd_sflight->bind_table( new_items = isflight set_initial_elements = abap_true ).
Error is Access via 'NULL' object reference not possible.
FYI.. I just dragged and dropped 2 elements from DATA to Adobe form.what are the other changes do i need to do in form gui elements so that it shows the internal table contents?
this would really help me..
Rgds
vara
Edited by: Vara K on Jan 21, 2009 5:51 PM -
Im am trying to set up my printer for web services and it is asking me for a proxy address
im am trying to set up my printer for web services and it is asking me for a proxy address
Have you downloaded and installed an App Store app that you downloaded free from some website instead of from the App Store? If so, that's a stolen app, and you need to delete it.
Maybe you are looking for
-
I have the original install.wim -file (11.5 Gb) on an external drive. Can i use that to reset my laptop back to factory defaults and how can i do that? I DO NOT have recovery partition OR recovery manager in my laptop hard drive at the moment, but as
-
Is there a way I can put text onto a photo ?
I have tons of photos that I share on Facebook, but folks don't seem to understand that I hold the copyright to my images, whether they are the subject or not. I'd like to put my name on them so that they can't be used without the credit going to me
-
Copying data from Plus to Excel
Hi, We are having a problem with the Plus version (10.1.2.48.18). When copying some data from a Plus workbook the headers that standabove columns aren't being copied. This is different then in the full version where headers are being copied. Is there
-
How do I print duplex via AppleScript?
Hello - I am new to applescript and having a bit of difficulty trying to get started. My initial goal is fairly straightforward: each day (via an iCal action) download a specific URL and print it. Specifically, it's my daily newspaper and I'd like it
-
DocNum vs. DocEntry in Prod Order
Hi, quick question: In the production order, the end users will see the DocNum field on their screen and in most other areas. However, the DocEntry is the primary key and the field by which I can do the "GetByKey" function from the DI-API. I'm jus