Call a web service in ABAP - how to do LPCONFIG?
I have searched through OSS, SAP help and SDN - and I see the answer if I call a web service from Java - but I cannot find the answer if I call a web service through normal ABAP in R/3.
I apologize if I am asking the same question again or if it is already there and I am just overlooking it.
I am creating a client proxy in R/3 to call an outside web service through ABAP.
I create the client proxy in our test system using SE80.
I create a logical port using LPCONFIG to point at the test web service on the other system.
I code the ABAP program - and everything works great.
I transport the client proxy - and I transport the LPCONFIG information.
Now I get into production - when I do transaction LPCONFIG to change the URL of the web service to be their production web service URL instead of their test web service URL - it asks for the system to be opened.
Like it wants to create a transport. The basis people would have to open the system to be modified. Which at least in our shop is not something we do.
Here is the error:
Message no. TK430
The system administrator has set your logon client to the 'not modifiable' status.
Client-specific objects can not be changed in this client.
Contact the system administrator.
For more information, see the SAP Library under Change and Transport System.
For an ABAP program in R/3 using a client proxy - how do I call a test service in our test r/3 system and a production web service in production R/3 system without changing my ABAP code?
Should this be done through LPCONFIG?
Or what am I missing?
Thanks for your help.
Scott Overmeyer
Hi Scott,
Please refer to following URL
http://help.sap.com/saphelp_nw04/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/content.htm
I think you are using the second of the following 3 approaches mentioned in above documentation and so credential configuration is not available at run-time.
Please check if this is helpful to you. If you have already looked at this then please ignore this message.
There are three ways of configuring the call address of the Web service:
● As HTTP destination: Select an RFC destination of type G (HTTP connection to an external server) or type H (HTTP connection to the SAP System) from transaction SM59. The HTTP destination approves the configuration of the logon procedure, encryption, and state management. This is the preferred access procedure.
● As URL: The URL of the Web service is written to the corresponding input field when you create the logical port. The disadvantage of this procedure is that, with the exception of the URL, no other parameters for logging on, encryption, or state management can be configured. This is possible only for Web services that do not require a logon procedure, encryption, or state management.
● As local path prefix: This access procedure is only intended for accessing your own system. Here you call the default RFC destination NONE to address your own server. The specified local path prefix is used to identify the called Web service.
Regards,
Vandana.
Similar Messages
-
Hello Experts!
After I am assuming the SOAP Experts at the SOAP Forum
are being already on christmas vacation
I saw no other possiblitiy to post my question right here.
I have created a web service through:
Open the affected function Module .
Choose Utilities -> More Utilities -> Creating a Web Service -> From Function Module.
Later you can test it with SOAMANAGER etc.
The goal is now (requirement)
Calling a web service in ABAP.
How can I generally call a (eg .above created by me ) webservice with abap which is existing on the sap system (Web Services which are generated from Function Modules)
Has really nobody such a problem ever before ?
Regards
ertas ilhanMichael thank you very much.
You are saying:
The easiest way to do it is with the WSDL file that you'll get from the existing Web Service. In your proxy class it will generate a method which you can then call within your program to consume that web service.
I understand the first part with the WSDL file but the second part it is unclear to me with
In your proxy class it will generate a method which you can then call within your program to consume that web service
Can you please explain me this more detailed.
Thanks
ertas -
Error when calling Java Web Services from ABAP.
Hello experts:
In my project, I will call Java Web Services with ABAP coding. With WSDL, I generated a proxy class and created a HTTP connection (t-code: SM59) and a logical port (t-code:lpconfig) for this proxy class. But when running, I would receive the folllowing errors:
SOAP:1.023 SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: HTTP COMMUNICATION FAILURE")
If I used HTTPS, there is no problem.
Regards
BobHi Bob,
It might be the possibility that your java web server is configured to listen only on HTTPS.
If your HTTPS is working fine, then first check with your JAVA server for HTTP connectivity, then try it calling through ABAP.
Regards,
Piyush -
Calling external web service from ABAP Program
Hi All,
Can somebody point me to the documentation where how to call an external (3rd party) web service from ABAP program is explained?
Thanks & Regards,
-Smitawhich version of R/3 you are using. if you are on was 6.40 its very simple, there are delivered tools to generate client proxy for consuming webservice. if you are on wa 6.20 you can use cl_http_client to achieve the same. check out the following weblogs.
/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap
/people/thomas.jung3/blog/2005/05/13/calling-webservices-from-abap-via-https
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
Regards
Raja -
Call a Web Service in ABAP 7.0
Hi Experts,
I have to write a ABAP program (in ABAP 7.0) to call a CAF Web Service. I could do it successfully. However the scenario is to call the CAF web service and forget about the response i.e. Asynchronous call is required. The call which I am making is synchronous and ABAP program is waiting for CAF service to return after processing of thousands of records which is taking few minutes. I do not want the program to wait till that much of time.
I changed the wsdl, used to create the Proxy Class in ABAP, not to contain any output message so that there is no exporting parameters generated for the method to be called asynchronously. The CAF method is also having the return type as void. Still the program waits for CAF to complete the processing.
Can you please guide me to accomplish this asynchronous call to the webservice?
Thanks in advance.
Regards,
Vaishali Shinde.hi
verify the following link
http://help.sap.com/saphelp_nw04/helpdata/en/f9/55e641fb6e3f5de10000000a1550b0/frameset.htm
regards
sreelatha gullapalli -
Calling a web service from abap
Hi all,
I want to call a webservice from ABAP.
In my report i use the below code .
web_rul =' http://test.asmx'.
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = WEB_URL
IMPORTING
CLIENT = CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4.
CLIENT->REQUEST->SET_HEADER_FIELD( NAME = '~REQUEST_METHOD' VALUE = 'GET' ).
CLIENT->SEND( ).
CALL METHOD CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3
OTHERS = 4.
RET_DATA = CLIENT->RESPONSE->GET_CDATA( ).
REPLACE ALL OCCURRENCES OF '<' IN RET_DATA WITH '<' .
REPLACE ALL OCCURRENCES OF '>' IN RET_DATA WITH '>' .
Please correct me if my approach is wrong. when i execute the report the value in ret_Data is
####<html>#### <head><link rel="alternate" type="text/xml" href="test.asmx?disco" />#### <style type="text/css">## ####BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px
what is the mistake in this. how should i call the webservice from abap.
Regards,
SubasreeHi,
Here is a sample code I've been using for CL_HTTP_CLIENT.
PARAMETERS pa_symbl TYPE string.
CONSTANTS:
cv_host TYPE string VALUE 'www.webservicex.net',
cv_host1 TYPE string VALUE 'http://www.webservicex.net:80',
cv_service TYPE string VALUE '80',
cv_soapaction TYPE string VALUE 'http://www.webserviceX.NET/GetQuote'.
DATA: li_client TYPE REF TO if_http_client,
lv_path TYPE string VALUE '/stockquote.asmx/GetQuote?symbol=',
lv_tmp TYPE string.
CL_HTTP_CLIENT=>CREATE(
EXPORTING
HOST = cv_host
SERVICE = cv_service
SCHEME = '1'
IMPORTING
CLIENT = li_client
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
INTERNAL_ERROR = 2
PLUGIN_NOT_ACTIVE = 3
OTHERS = 4 ).
*CL_HTTP_CLIENT=>CREATE_BY_URL(
* EXPORTING
* URL = cv_host1
* IMPORTING
* CLIENT = li_client
* EXCEPTIONS
* ARGUMENT_NOT_FOUND = 1
* INTERNAL_ERROR = 2
* PLUGIN_NOT_ACTIVE = 3
* OTHERS = 4 ).
CONDENSE pa_symbl.
CONCATENATE lv_path pa_symbl INTO lv_path.
li_client->REQUEST->SET_HEADER_FIELD(
EXPORTING
NAME = '`~request_method'
VALUE = 'GET' ).
li_client->REQUEST->SET_HEADER_FIELD(
EXPORTING
NAME = '~server_protocol'
VALUE = 'HTTP/1.1' ).
li_client->REQUEST->SET_HEADER_FIELD(
EXPORTING
NAME = '~request_uri'
VALUE = lv_path ).
li_client->SEND( "sends the HTTP REQUEST
EXPORTING
TIMEOUT = 300
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3
OTHERS = 4 ).
li_client->RECEIVE( "receives the HTTP RESPONSE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3
OTHERS = 4 ).
lv_tmp = li_client->RESPONSE->GET_CDATA( ).
The code will allow you to call the stockquote webservice using GET
http://www.webservicex.net/stockquote.asmx?op=GetQuote
Your code is missing the request uri which is needed in a GET call.
Hope this helps,
Mark -
Call to web service from abap proram
Hi,
How i can call to WS from abap program ?
There is other way except of BSP ?
Regards
Michael
Edited by: Michael A on Apr 27, 2009 3:00 PMcheck the below piece of code.
REPORT zvalidate_email.PARAMETERS: p_mail(100) LOWER CASE. " E-Mail id to be verifiedDATA: http_client TYPE REF TO if_http_client .DATA: w_string TYPE string ,
w_result TYPE string ,
r_str TYPE string .DATA: result_tab TYPE TABLE OF string.START-OF-SELECTION .
CLEAR w_string .
CONCATENATE
'http://www.webservicex.net/ValidateEmail.asmx/IsValidEmail?Email=' p_mail
INTO
w_string . CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = w_string
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4. CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2. CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR w_result .
w_result = http_client->response->get_cdata( ). REFRESH result_tab .
SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab . READ TABLE result_tab INTO r_str INDEX 2.
IF r_str+44(1) = 't'.
WRITE:/ 'Valid email address'.
ELSE.
WRITE:/ 'Invalid email address'.
ENDIF. -
Calling web service from ABAP - version 4.6C
Hi,
I would like to know how to call a web service from ABAP. Version is 4.6C. Any help would be greatly appreciated.
Thank you,
RekhaHi Rekha,
Please go through these..
call web service using ABAP
http://help.sap.com/saphelp_nw04/helpdata/en/a0/da0710b6560a4e80fb94f3f712dfc0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/frameset.htm
Hope these help you!
cheers,
Prashanth -
Call webdynpro java Web Service from ABAP
Hello,
This is regarding calling portal web service from ABAP.
1. created web service in NWDS and deployed it to portal server
2. created abap proxy to call this web service from abap SE80 transaction
3. created logical portal for the above proxy LPCONFIG transaction
this is working perfectly. the web service is getting called from abap and funcitonality is working
but my doubt is we have no where given the login password for portal server in the abap system
then how come it works without login password
if i run this web service directly from portal in wsnavigator, then portal login is required.
If we want to incorporate authentication then how to do that ?
thankyou,
BWhen you are testing the application in SE80.
Is it ot asking for the user id password.
I created a similar service and for me its asking for user id and password.
Go to SM59 and there look for a RFC destination of type HTTP Connection to External Serv. usually will be named as
SAP_PROXY_ESR.
for this connection check the logon and security tab.
may be some user id and password is given there. means hardcoded.
thanks
sarbjeet singh -
Create an SAP Web Service Consumer (calling External Sharepoint Web Service from ABAP)
hi all,
i am trying to
Create an SAP Web Service Consumer (calling sharepoint Web Service from ABAP) using blog given on following link
Create an SAP Web Service Consumer (calling External Web Service from ABAP)
but when i am using my url at the end of step 3, i am getting error as follows:
i dont want to use local file option. Can anyone help me in this??
thanks in advance
regards,
SDSHi SDS,
you recieved a http 404 error when trying to access the Sharepoint Web service. Http 404 indicates that the resource is not reachable (cf. HTTP 404 - Wikipedia, the free encyclopedia). There could be different reasons for that. I'd suggest rubble checking the URL of the Web service first. Try to access it from a browser on you desktop. If the URL is correc. Most likely the SAP system is not able to connect to the URL. This could, for example, be due to some firewall restrictions. You should ask a SAP Basis colleague if they are able to access the URL of the Web service from the server on which the SAP system is running.
Christian -
Is it possible to call web service from ABAP SAP 4.6 c..If yes how
Hi Friends,
Is it possible to call web service from ABAP-SAP 4.6 c..If yes Could you please let me know how.
Thanks in Advance.
Murali Krishna K
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:09 PM
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:11 PMOlivier CHRETIEN wrote:>
> Hi Terry,
>
> So these function modules must use the SAPHTTPA RFC destination which uses the exe saphttp.exe ?
>
> How much abap code lines do you have for a web service call ?
> Do you have to code the call specifically for each different web service ?
> Are you able to use the WSDL ?
>
> Nice job if you have coded your own private SOAP runtime !
>
> But I don't think this is an easy solution for everybody...
>
> Regards,
>
> Olivier
Yes, SAPHTTPA (runs on application server) and/or SAPHTTP (runs on front-end pc), one of which, is required for HTTP communication. So far, nothing too elaborate as far as SOAP goes, but the logic is simplistic. Here's some sample code:
DEST = 'SAPHTTPA'.
TRANSLATE HOST TO LOWER CASE.
MYURL = 'wssrvTest/Service.asmx/GetByOrderItem'.
CONCATENATE HOST MYURL INTO MYURL.
REQUEST_HEADERS-DATA =
'Content-type: application/x-www-form-urlencoded'.
APPEND REQUEST_HEADERS.
CLEAR REQUEST_HEADERS.
*........Convert Order Number to External Format........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ORDER
IMPORTING
OUTPUT = ORDER.
*........Convert Item Number to External Format.........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ITEM
IMPORTING
OUTPUT = ITEM.
*........Convert Material Number to External Format.....................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = MATERIAL
IMPORTING
OUTPUT = MATERIAL.
CONCATENATE 'sOrder=' ORDER
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sItem=' ITEM
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sMaterial=' MATERIAL
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CALL FUNCTION 'HTTP_POST'
EXPORTING
ABSOLUTE_URI = MYURL
RFC_DESTINATION = DEST
BLANKSTOCRLF = 'X'
TABLES
RESPONSE_ENTITY_BODY = RESPONSE_BODY
REQUEST_ENTITY_BODY = REQUEST_BODY
RESPONSE_HEADERS = RESPONSE_HEADERS
REQUEST_HEADERS = REQUEST_HEADERS
EXCEPTIONS
CONNECT_FAILED = 1
TIMEOUT = 2
INTERNAL_ERROR = 3
TCPIP_ERROR = 4
DATA_ERROR = 5
SYSTEM_FAILURE = 6
COMMUNICATION_FAILURE = 7
OTHERS = 8.
CHECK SY-SUBRC = 0. "more appropriate msg goes here
LOOP AT RESPONSE_BODY.
IF RESPONSE_BODY+0(7) <> '<string' AND
RESPONSE_BODY+0(8) <> '</string' AND
RESPONSE_BODY+0(5) <> '<?xml'.
SPLIT RESPONSE_BODY-DATA AT '=' INTO FIELD_NAME FIELD_VALUE.
TRANSLATE FIELD_NAME TO UPPER CASE.
CASE FIELD_NAME.
WHEN 'HEIGHT'.
HEIGHT = FIELD_VALUE.
WHEN 'WIDTH'.
WIDTH = FIELD_VALUE.
WHEN 'LENGTH'.
LENGTH = FIELD_VALUE.
WHEN 'WEIGHT'.
WEIGHT = FIELD_VALUE.
WHEN 'QTY'.
QTY = FIELD_VALUE.
ENDCASE.
ENDIF.
ENDLOOP.
Hope this helps...
Terry
Edited by: Terry West on Feb 4, 2008 3:08 PM -
Hi all,
I want to create a call to a Web Service of XI from another R/3 server.
I've created client proxy in system as said
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
But when I try I get the following error:
<i><CODE>INTERNAL.SYSTEM_NOT_CONFIGURED_AS_XMB</CODE>
<ERRORTEXT>System not configured as XI Integration Engine</ERRORTEXT></i>
I know I've left some configuration, I've to say to XI that R/3 server is going to use call to XI as application server, but how I do this conf?
If I try from XI I get:
<i>INTERNAL.PROXY_NOT_ALLOWED_ON_IS</i>
Is possible to call a web service from the XI server?
Thanks in advance.
UrtziHI,
Also see the below links
error:INTERNAL.SYSTEM_NOT_CONFIGURED_AS_XMB
DESTINATION_NOT_FOUND
HTTP destination IED_100 does not exist (system , transaction SM59)
CCM2.0 Config in NW2004s (PI7.0) u0096 XI Error
CCM2.0 Config in NW2004s (PI7.0) u0096 XI Error
Regards
Chilla -
How to consume WEB SERVICES from ABAP ??
Q: How to consume WEB SERVICES from ABAP program??
the point here is i am using SAP release 620 and the creation of proxy is out of scenario
and also no XI. Its only through ABAP program i need to consume one web service (its a HTTPS one ),
Using cl_http_client... i tried it but i am totally confused of whats happening ???
Req some senior ppl advice on the same/approach.
any hints will suffice my way of approach...!!!
Please do put in your valuable advices..!!
Thanks in advance..!!!!Hello Srinivas,
Following is the code for calling web service:
data: client type ref to if_http_client,
host type string value 'server url',
service type string value '8080',
path type string value '/sap/public/ping',
errortext type string,
proxy_service type string,
scheme type i value 1.
call method cl_http_client=>create
exporting host = host
service = service
proxy_host = host
proxy_service = service
scheme = scheme
importing client = client
exceptions
argument_not_found = 1
internal_error = 2
plugin_not_active = 3
others = 4.
case sy-subrc.
when 0.
write 'Server reached successfully'.
when others.
write: 'sy-subrc =', sy-subrc.
endcase.
Once you got the client object you can call following methods:
"Set the requrie URL for the web service you want to call. This is not WSDL anyway!!
cl_http_utility=>set_request_uri( request = client->request
uri =' url 2 be called ').
*Then you can call send method with proper inputs for sending request to WS
CALL METHOD client->send
Then you can use receive method for getting the response
CALL METHOD client->receive
*You can get last error in case of exceptions
CALL METHOD cl_http_client=>get_last_error
*Close the client object
CALL METHOD client->close
For more information on full code refer my link in previous replay.
Thanks,
Augustin.
Edited by: Augustarian on Aug 18, 2009 1:49 PM -
How to call COPY web service from sharepoint in SAP
Hello Experts,
I want to call COPY web service from SharePoint in SAP web dynpro / JAVA application.
However, when I try to connect to web service and download wsdl using http:// <hostname:port>/_vti_bin/copy.asmx?wsdl
it results in Unauthorized error and doesnt complete the setup. Detail error is :
Error occurred while downloading WSIL file. Error message: Deserializing xml stream http:// <hostname:port>/_vti_bin/copy.asmx?wsdl
failed.com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (401) Unauthorized. The requested URL was:"Connect to
http:// <hostname:port>/_vti_bin/copy.asmx?wsdl , used user to connect: userid"
I am trying to connect with server user account. Any idea on what authorizations might be required or any help on the scenario .
-AbhijeetHere's an example on how to delete a list item, hopefully this helps
package com.jw.sharepoint.examples;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.microsoft.sharepoint.webservices.CopySoap;
import com.microsoft.sharepoint.webservices.GetListItems;
import com.microsoft.sharepoint.webservices.GetListItemsResponse;
import com.microsoft.sharepoint.webservices.ListsSoap;
import com.microsoft.sharepoint.webservices.UpdateListItems.Updates;
import com.microsoft.sharepoint.webservices.UpdateListItemsResponse.UpdateListItemsResult;
public class SharePointDeleteListItemExample extends SharePointBaseExample {
private String delete = null;
private String deleteListItemQuery = null;
private String queryOptions = null;
private static final Log logger = LogFactory.getLog(SharePointUploadDocumentExample.class);
private static Properties properties = new Properties();
public Properties getProperties() {
return properties;
* @param args
public static void main(String[] args) {
logger.debug("main...");
SharePointDeleteListItemExample example = new SharePointDeleteListItemExample();
try {
example.initialize();
CopySoap cp = example.getCopySoap();
example.uploadDocument(cp, properties.getProperty("copy.sourceFile"));
ListsSoap ls = example.getListsSoap();
example.executeQueryAndDelete(ls);
} catch (Exception ex) {
logger.error("Error caught in main: ", ex);
public void executeQueryAndDelete(ListsSoap ls) throws Exception {
Date today = Calendar.getInstance().getTime();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
String formattedDate = simpleDateFormat.format(today);
String queryFormatted = String.format(deleteListItemQuery,formattedDate);
GetListItems.QueryOptions msQueryOptions = new GetListItems.QueryOptions();
GetListItems.Query msQuery = new GetListItems.Query();
msQuery.getContent().add(createSharePointCAMLNode(queryFormatted));
msQueryOptions.getContent().add(createSharePointCAMLNode(this.queryOptions));
GetListItemsResponse.GetListItemsResult result = ls.getListItems(
properties.getProperty("folder"), "", msQuery, null, "",
msQueryOptions, "");
writeResult(result.getContent().get(0), System.out);
Element element = (Element) result.getContent().get(0);
NodeList nl = element.getElementsByTagName("z:row");
for (int i = 0; i < nl.getLength(); i++) {
Node node = nl.item(i);
String id = node.getAttributes().getNamedItem("ows_ID").getNodeValue();
String fileRefRelativePath = node.getAttributes().getNamedItem("ows_FileRef").getNodeValue();
logger.debug("id: " + id);
logger.debug("fileRefRelativePath: " + fileRefRelativePath);
String fileRef = properties.getProperty("delete.FileRef.base") + fileRefRelativePath.split("#")[1];
logger.debug("fileRef: " + fileRef);
deleteListItem(ls, properties.getProperty("folder"), id, fileRef);
public void deleteListItem(ListsSoap ls, String listName, String listId, String fileRef) throws Exception {
String deleteFormatted = String.format(delete, listId, fileRef);
Updates u = new Updates();
u.getContent().add(createSharePointCAMLNode(deleteFormatted));
UpdateListItemsResult ret = ls.updateListItems(listName, u);
writeResult(ret.getContent().get(0), System.out);
public void initialize() throws Exception {
logger.info("initialize()...");
properties.load(getClass().getResourceAsStream("/SharePointDeleteListItemExample.properties"));
super.initialize();
this.delete = new String(readAll(new File(this.getClass().getResource("/Delete.xml").toURI())));
this.deleteListItemQuery = new String(readAll(new File(this.getClass().getResource("/DeleteListItemQuery.xml").toURI())));
this.queryOptions = new String(readAll(new File(this.getClass().getResource("/QueryOptions.xml").toURI())));
Brandon James SharePoint Developer/Administrator -
How to call a web service that is managed by web services manager from omni
Ok gurus... here is an interesting one for you.
We have a set of web services that are deployed to our server. We have Oracle Web Services Manager deployed to another server and is acting as a gateway to our web services.
We would like to call our web service and pass it the username and password that were specified in the omniportlet connection information screen. How do we go about doing this?
PS. We are using the latest version of portal (10.1.4).
Thanks for your help.
Cheers,
CoryJust a follow up. What I would like to do is to have omni portlet add standard header information for security such as the following:
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Username>theusername</wsse:Username>
<wsse:Password>thepassword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
Any ideas on how to get omniportlet do this? Any ideas on where to look for the answer? Oracle dudes: Any plans to add this to future releases?
Thanks again folks :-)
Cory
Maybe you are looking for
-
My iPhone keep telling me that my iCloud storage is full
Yesterday I got a notification on my iPhone, explaining me that my iCloud storage (basic 5GB) is full. So today I sat down and transfered all my photos to my computer, so nothing was left neither in the Photo Stream nor the Camera Roll. Yet, in the i
-
Material Document not getting posted.
Hi Guys: Material document is not getting created when i try post the inventory difference using transaction LI21 ( Clearing of differences in Inventory Management ). we are using WM , so physical inventory is carried out at Bin Level. Did I miss any
-
Urgent!! Run applicatio​n without installati​on of runtime
I need to run a LV 7.1.1 application on another computer. I could not install the application or the LV runtime engine because my user account on that computer does not have sufficient right. Does anyone know a way to include all necessary runtime co
-
Hi can anyone help with this ? My daughter's ipod mini has folder with !mark. My computer doesn't recognise it in normal mode, when I set to disc mode and try to restore the software I get a message to say 'can't mount ipod'. It's fully charged. I am
-
Hdv pixelating image with blue screen
I am rendering interview footage with two people in front of two keyed images. I shot all the footage 30fps on my Sony v1u. When rendering one of the keyed interview images is pixelating for one frame at seemingly random locations. The latest time it