Accessing KM Global Services through KM API
Hello all
I am currently trying to access KM Global Services from KM Java API, And I have not any way to access this service to handle Property Groups in KM (Configuration -> Content Management -> Global Services -> Property Structures -> Property Groups), if anyone can give me some help or any documentation on this topic which can lead me to the solutions, that would be great..!
Thanks in advance
Jonathan
Hi,
Refer following thread
http://scn.sap.com/thread/777954
http://scn.sap.com/thread/776486
Regards,
P.Manivannan
Similar Messages
-
How to use Axis to access a web service through Authentication proxy
Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
please help me ,thank you!!!
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
//this is my access webservice faliure codes
public class TestClient
public static void main(String [] args) {
try {
System.getProperties().setProperty("http.proxySet", "true");
System.getProperties().setProperty("http.proxyHost","proxy.com");
System.getProperties().setProperty("http.proxyPort", "8080");
System.getProperties().setProperty("http.proxyUser", "username");
System.getProperties().setProperty("http.proxyPassword","password");
String endpoint =
"http://nagoya.apache.org:5049/axis/services/echo";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
String ret = (String) call.invoke( new Object[] { "Hello!" } );
System.out.println("Sent 'Hello!', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
}I get an "(407)Proxy authorization required" error?I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
Thanks in advance! -
How to use Properties Metadata global service using KM API's
Hi,
I have a requirement where I need to get the list of property Namespaces configured in the KM Portal and also all property Names associated with each Namespace.
I was able to see the list of Namespaces in KM portal at "ContentManagement --> Global Services --> Property Metadata --> Namespaces"
Is there any way to access the Property Metadata service and get the list of Namespaces?
I have seen few posts using the IPropertyConfigurationService as below:
IPropertyConfigurationService configService;
try {
configService =
(IPropertyConfigurationService) ResourceFactory
.getInstance()
.getServiceFactory()
.getService("PropertyConfigurationService");
} catch (PropertyConfigurationServiceException e) {
e.printStackTrace();
I am not sure if IPropertyConfigurationService has API's to give the list of Namespaces as I was not able to figure out the jar file in which API's related to IPropertyConfigurationService exists.
Will the IPropertyConfigurationService be useful to fetch all the configured Namespaces? If so, which jar file should I place in my build and class path?
Also, Can I get the property names associated with each namespace?
Any help or hint is greatly appreciated.
Thanks,
Suresh.Hi Praveen,
Thanks for the information on km.shared.service.propertyconfig_api.jar file. I have located the file in the mentioned location and was using it sucessfully.
I was able to use IPropertyConfigurationService and fetch the MetaData properties in the Portal application.
But, when I place the same code on WebDynpro application it doesn't work.
I have placed the km.shared.service.propertyconfig_api.jar in lib folder of the WebDynpro project, but on runtime I get ClassNotFound exceptions of various classes.
I was wondering if there is any configuration that need to be mentioned for accessing KM Portal applications in WebDynpro.
I have found one post related to this which was talking about using IPropertyConfigurationService in WebDynpro, but not directly, using EJB
Link:[https://www.sdn.sap.com/irj/sdn/thread?threadID=338383]
Can you throw some hints on how to go about this issue.
Thanks,
Suresh. -
Trying to access crx.default repository through jcr api
Hi,
I am not able to login to the crx.default workspace using following code:
Repository rep = JcrUtils.getRepository();
SimpleCredentials creds = new SimpleCredentials(userid, pwd.toCharArray());
javax.jcr.Session sess = rep.login(creds,"crx.default");
It is giving me following exception:
javax.jcr.NoSuchWorkspaceException: crx.default
at org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:778)
at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1482)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:360)
at DayDataProvider.createJCRNodeSecurity(DayDataProvider.java:682)
at DayDataProvider.main(DayDataProvider.java:136)
Thanks in advance!
Regards,
sug1981Hi Sugeet,
The JCR API is just that, an API. It needs an implementation to work. If you are connecting to CRX from an external webapp, DavEx is the most performant way to do so. RMI is also an option, but may not be supported depending upon the CRX/CQ version you are using.
That said, I don't know if Access Control Management works via remote access: https://issues.apache.org/jira/browse/JCR-2113
One option would be to install the Sling Jackrabbit AccessManager bundle: http://sling.apache.org/site/managing-permissions-jackrabbitaccessmanager.html
Regards,
Justin -
Exception while accessing web service through code
I have a web service developed using AXIS deployed on Weblogic 8.1
Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
When the code tries to invoke web service I am getting following error.
(401)Unauthorized xxx
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:1753)
at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
The web service URL is as follows:
http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
However
When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
public String invokeAx
String xmlMessage,
String webServiceURL,
String webServiceOperation,
String username,
String password)
String xmlResponse = null;
Call webServiceCall = null;
InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
Service service = new Service();
try
webServiceCall = (Call) service.createCall();
SOAPEnvelope env = new SOAPEnvelope(input);
SOAPEnvelope resEnv = null;
webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
webServiceCall.setOperationName(new QName(webServiceOperation));
webServiceCall.setUsername(username);
webServiceCall.setPassword(password);
try
resEnv = webServiceCall.invoke(env);
catch (AxisFault e)
e.printStackTrace();
Message responseMessage = webServiceCall.getResponseMessage();
SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);
if (xmlResponse == null)
xmlResponse = resEnv.toString();
catch (Exception e1)
e1.printStackTrace();
return xmlResponse;
Both the weblogic server reside on two different AIX machines.
Can anybody tell what's the problem while invoking web service through code?time to look into the gateway logs as stated by the fault ..
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
looks like the cipher step might have failed -
Exposing Azure Search Service through API Management
Hi everyone,
I've just setup the API Management and customised the portal for the APIs i'd like to manage. One of the APIs is actually an Azure Search instance. The only problem i can see is that the JSON response from the Azure Search contains a couple of URLs that
tie back to the Search, I've tried to add a policy to mask the URLs in the response, but it doesn't quite get it right and the resulting URLs don't work.
So, is it possible to properly expose the Search service through the API Management service with properly masked URLs?
thanks,
AndrewHi Miao,
thanks for your quick response.
Although I don't need to know a specific date - i'd be interested if there is a target for when this functionality may be added? e.g. 2 months, 6 months?
I'm evaluating the technology at the moment for a deliverable required in a couple of months and will need to decide whether to wait or develop a wrapper around the search service that removes the data we don't want exposed.
thanks,
Andrew -
Java web services through SAML
I have a clint application lets take swing. i need to access a web service through SAML single sign on. for that i will use another server as a mediator which will authenticate the web service.
please respon with example.
thanks in advance.The link: Developer Survey
on that page, doesn't work. :)
-G -
Functional overlap between WebCenter Services and Beehive API
Hi,
I'm evaluating Beehive and have also just begun working with TP3 and WebCenter - and am curious about the rather substantial overlap between the new WebCenter Services and the Beehive API. Would anyone know if Beehive is utilizing the WebCenter Services internally, and just bundling them into that product and exposing them as Web Services through their API? Or are they just seperate and parallel efforts?
Thanks.Hi,
I suggest to post this on the Webcenter forum WebCenter Portal
Frank -
Bought Global Pkg - In Paris - can't access int'l service. How?
Before I left for Paris, I added on a Global Service Package. I'm in PAris and can't make int'l calls, accept them, or access voice mail/email. How do I activate the service? I've tried to access LIVE CHAT but evidently they dont chat with overseas travelers. Can someone walk me through the process of doing-whater to my iphone 5 to activate/get/receive/turn on the global service I bought? (It even had a start date). Thanks!
I would love to provide the toll free number that is available to you 24/7 as you are traveling abroad http://vz.to/1e394dc. I am so sorry for the inconvenience and want you to enjoy your trip.
(You can call that number from any phone)
TamaraH_VZW
Follow us on Twitter @VZWSupport -
Want to access RESTful Services through Java Program
We are trying to access RESTful Services exposed by Oracle database cloud through our Java code, with authentication enabled for a particular user.
Till now, we have completed below steps:
1) We have a working account with Oracle database cloud (Username – xxx.xxx)
2) We log in using the credentials for above account, and navigate to Oracle Apex ? SQL Workshop ? RESTful Services
3) We create a new “RESTful Service Module” by filling out the details as below:
Name: SampleTest
URI Prefix: test
URI Template: /getallemp
Pagination Size: 25 (kept to default)
Required Privilege: TestGroupPrivilege
Resource Handler Details:
Method: GET
Source Type: Query
Format: JSON
Source: select * from emp
After creating the above module and testing it, it works fine and the data is retrieved in JSON successfully.
The resulting URL for above RESTful Service Module is: https://<HOST_URL>/apex/test/getallemp
Note that “TestGroupPrivilege” is a privilege assigned to the user group “RESTful Services” and the user “xxx.xxx” is a member of “RESTful Services” user group.
4) We are unable to call the RESTful services from Java program. We are passing username and password in request header as basic authentication. But, we are getting: Error 500--Internal Server Error
5) If we change the “Required Privilege” to default i.e. no privileges present on the module, we can get the response through Java code and everything works perfectly fine.
Please suggest us in: How to access RESTful Services through Java code by passing user credentials in HTTP header for authentication. Also let us know if we have to do any settings through Apex, in case we are missing any.
Message was edited by: NeerajGirolkar
- When we are logging in to Oracle cloud on browser and execute the Oracle cloud RESTful service in another tab of same browser, we are able to get the result. But when executed the same RESTful service from a different browser or java program we get internal server error.
- After investigation, we found that when user logs in to oracle database cloud, a cookie is set in browser with name s “OAMAuthnCookie_cstest-domo.db.us1.oraclecloudapps.com:443” and value as some random token. This cookie is passed in the subsequent requests to the RESTful Service calls when using same browser and as a result, we are able to get the results
- In the Java program, we copied the same cookie with random token in the HTTP Request header and we got the proper response from REST APIs.
- It seems that this cookie is created by an Oracle Middleware tool/server called as OAM – Oracle Accounts Manager, which sends the authentication token after successful authentication and creates the cookie.
- We found that the cookie that OAM creates on authentication is exactly in the same format i.e. ‘OAMAuthnCookie_cstest-domo.db.us1.oraclecloudapps.com:443’. So, we are guessing that Oracle cloud uses OAM for authentication. Please refer to following link for same : http://docs.oracle.com/cd/E14571_01/doc.1111/e15478/sso.htm
Can anyone please suggest:
1. How to provide authentication to Oracle Cloud REST APIs from java program?
2. How to pass the username and password in Java code to OAM (or how to communicate with OAM using Java) so that we can receive the unique token from OAM. We can use the token in the further requests? 3. Also in Oracle cloud white papers , it is mentioned that they support OAuth2.0. But we didn’t find any URLs for same. Can anyone please confirm?
Thanks
~ Neeraj GirolkarHi Nilesh,
We tried to connect to Oracle Cloud Database using the way you suggested above, but unfortunately it is not working as well.
Can you let us know the authentication process with Oracle Cloud Database? We found in documentation that it uses OAM (Oracle Access Manager) for authentication. Can you tell us a bit about that? That will be extremely helpful.
Thanks,
- Neeraj -
Unable to Change Withholding Tax Base Amount while creating Service AP Invoice through DI API?
Dear All,
I am trying to create Service AP Invoice through DI API.
If I post the document without changing SAPPurchaseInvoice.WithholdingTaxData.TaxableAmount the dount ocument is created in SAP without any problem.
But if I change amount in above field then DI API throws error Unbalanced Transaction.
If I post same document in SAP with changed base amount it got posted in SAP without any Issue.
Where I am doing wrong?
please guide.
Using:
SAP B1 version 9 Patch Level 11
Location : India.
Thanks.Hi ,
maybe you can find solution to these note 1812344
1846344 - Overview Note for SAP Business One 8.82 PL12
Symptom
This SAP Note contains collective information related to upgrades to SAP Business One 8.82 Patch Level 12 (B1 8.82 PL12) from previous SAP Business One releases.
In order to receive information about delivered patches via email or RSS, please use the upper right subscription options on http://service.sap.com/~sapidp/011000358700001458732008E
Solution
Patch installation options:
SAP Business One 8.82 PL12 can be installed directly on previous patches of SAP Business One 8.82
You can upgrade your SAP Business One to 8.82PL12 from all patches of the following versions:8.81; 8.8; 2007 A SP01; 2007 A SP00; 2007 B SP00; 2005 A SP01; 2005 B
Patch content:
SAP Business One 8.82 PL12 includes all corrections from previous patches for releases 8.82, 8.81, 8.8, 2007, and 2005.
For details about the contained corrections, please see the SAP Notes listed in the References section.
Notes: SAP Business One 8.82 PL12 contains B1if version 1.17.5
Patch download:
Open http://service.sap.com/sbo-swcenter -> SAP Business One Products -> Updates -> SAP Business One 8.8 -> SAP BUSINESS ONE 8.82 -> Comprised Software Component Versions -> SAP BUSINESS ONE 8.82 -> Win32 -> Downloads tab
Header Data
Released On
02.05.2013 02:34:18
Release Status
Released for Customer
Component
SBO-BC-UPG Upgrade
Priority
Recommendations/additional info
Category
Upgrade information
References
This document refers to:
SAP Business One Notes
1482452
IN_Wrong tax amount was created for some items in the invoice with Excisable BOM item involves
1650289
Printing Inventory Posting List for huge amount of data
1678528
Withholding amount in the first row is zeroed.
1754529
Error Message When Running Pick and Pack Manager
1756263
Open Items List shuts down on out of memory
1757641
Year-end closing
1757690
SEPA File Formats - New Pain Versions
1757898
Incoming Bank File Format
1757904
Outgoing Bank File Format
1762860
Incorrect weight calculation when Automatic Availability Check is on
1770690
Pro Forma Invoice
1776948
Calendar columns are wrong when working with Group View
1780460
OINM column description is not translated
1780486
UI_System crash when you set extreme value of double type to DataTable column
1788256
Incorrect User-Defined Field displayed in a Stock Transfer Request
1788372
ZH: 'Unacceptable Field' when export document to word
1788818
RU loc: No freight in the Tax Invoice layout
1790404
Cash Flow Inconsistency when Canceling Payment
1791295
B1info property of UI API AddonsInstaller object returns NULL value
1791416
Adding a new item to BoM is slow
1794111
Text is overlapping in specific localization
1795595
Change log for item group shows current system date in all the "Created" fields
1797292
Queries in alerts should support more query results
1800055
B1if_ Line break issue in inbound retrieval using JDBC
1802580
Add Journal Voucher to General Ledger report
1803586
Not realized payment is exported via Payment Engine using 'SAPBPDEOPBT_DTAUS' file format
1803751
Period indicator of document series can be changed although it has been used
1804340
LOC_BR_Cannot update Nota Fiscal Model
1805554
G/L Account displayed in a wrong position when unticking the checkbox "Account with Balance of Zero"
1806576
Payment Cannot Be Reconciled Internally
1807611
Cannot update UDF in Distribution Rule used in transactions
1807654
Serial No./Batch inconsistency by canceled Inventory Transfer
1808694
BR: Business Partner Code cannot be updated with CNPJ CPF error
1809398
CR_Cannot Display Related Multi-Value Parameters
1809758
Arrow key not work for Batch/Serial Number Transactions Report
1810099
Tax Amount is Recalculated Even if Tax Code Is Not Changed
1811270
Upgrade fails on Serial And Batches object with error code -10
1811846
Cannot run Exchange Rate Differences when multi branch is activated
1812344
Withholding Tax Amount Is Not Updated in Payment Once Witholding Tax Code Is Changed in Document through DI API
1812740
DI:"Operation Code" show wrong value when add "A/P Tax Invoice" based on "A/P Invoice"
1813029
US_Vendor address on 1099 Summary by Form/Box Report is not updated according to the latest Invoice
1813835
Wrong amounts of Goods Return in Open Item List
1814207
Preliminary page prints setting does not keep after upgrade
1814860
Value "Zero" cannot be imported to "Minimum Inventory Level" field via Excel file
1815535
RFQ: Web front end not displayed in supplier language
1815810
GT: Adding Incoming Payment for Some Cash Flow Relevant Accounts Fails
1816191
BR:System Crashes While Working with Tax Code Determination Window
1816611
CR_Crystal Report Displayed Incorrectly Afte -
I am using Adobe Reader with paid up service through May 2015. When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service". What do I need to do to get access to the service I have paid for?
Hi DeaconTomColorado,
Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
Best,
Sara -
Getting an error while accessing the Datasource tab through Endeca workbench "CAS Console must be accessed through Workbench". Verified both ws-extensions.xml and casconsole.properties files which exists under %ENDECA_TOOLS_CONF%/conf, both files shares the same sharedSecret. Do anybody knows how to resolve this issue.
I did tried to reinstall CAS component multiple time , all the time the same error throwing.
Endeca CAS service is also not able to start through microsoft console (services.msc) throwing an error " Windows could not start the Endeca CAS Service service on Local Computer"This can occur if CAS is reinstalled. Check your ws-extensions.xml and casconsole.properties files, and ensure that they agree on the same shared-secret.
Best
Brett -
Accessing Iteration Dates through REST API
How should I go about getting the start and end dates for an iteration through the API?
If I attempt to access the iteration directly (using the URL retrieved by /_apis/wit/classificationnodes/iterations/{parent}&$depth=2) I receive a 'Node ID is not recognized' error:
"$id": "1",
"innerException": null,
"message": "TF51541: The Node ID is not recognized.",
"typeName": "Microsoft.TeamFoundation.WorkItemTracking.Server.Metadata.WorkItemTrackingTreeNodeNotFoundException, Microsoft.TeamFoundation.WorkItemTracking.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"typeKey": "WorkItemTrackingTreeNodeNotFoundException",
"errorCode": 0,
"eventId": 3200
Is there another mechanism for getting this data?Hi Steve,
Thanks for your post.
We can get the Iteration using general TFS API, it also works with VSO, please refer to the replies in this post:https://social.msdn.microsoft.com/Forums/en-US/6e6a8c5a-bb2a-4b51-9a43-df3c06448f1b/get-sprint-details-from-tfs?forum=tfsgeneral
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can i remove an Service Contract through DI API ????
Hi everybody,
when i try to delete an service contract through DI API (2007 PL 47), with method Remove, i receive the following error: "The object does not support this method, or method not implemented yet".
Somebody know the right way for delete an service contract?Hello,
This is not possible. If you read the help, this describes: Not Supported.
What you can do:
Set the Ending to Today or at least the same as Staring Date, or change the status to terminated or On Hold.
Best Regards,
János
Maybe you are looking for
-
Missing songs from iphone but not itunes?
Sorry if this has been answered elsewhere but I wasn't able to find it. Sometimes when I connect my iphone to my Win7 desktop and manually drag new songs onto the iphone, I wait until the Sync process disappears off the screen before disconnecting my
-
Officejet Pro X576dw slow scanner
I have recently installed 2 Officejet Pro X576dw machines. I like all of the features. The only problem I have is the SCAN TO NETWORK feature. I set this up with a few folders on the server to scan to. The scans work fine. The only problem I have
-
Is there a way to export Network Monitor information?
We have some users reporting intermediate latency issues that clear up before we can log into their systems. I was wondering if there was a way to export Network Monitor information to help troubleshoot the issue.
-
Hi Everybody, I am using a delta mechanism and would like to check the actual value of the field used for the delta. Where can I find this value? Thanks in advance FedeX
-
Hi all, I have some questions on the use of super keyword. 1, Why super cannot be used to assign the super object to an instance in current object. I tried this Class a Class b extends a in b a var = super; 2, Is it possible to access the super class