Authentication between a web service and XI
Hi VC experts,
I'm in a deadline date to show the project clients a proof of concept that show the VC consuming data from XI through a XI generated WSDL file deployed as a web service.
When I test the web service with soapUI or XMLSpy, as there's a place to fill the username and password who has access to XI, the web service works just fine.
But, when I try to access it using a system object created inside SAP Portal, it fails.
I tried it in
two ways:
1. Using the system in a VC model. I can get the web service input/output parameters, select those I need to use (The same used when I test it through soapUI and XMLSpy) and, when I execute the test (Using the "Test Data Service" feature), the VC shows me the message "Portal request failed (Could not execute Web service operation)"
2. Creating a Web Service iView inside the SAP Portal. Informing the same input parameters as the tests described above, and when I preview it, the message "Function execution failed. Exception message: Could not execute Web service operation" is showed inside the iView.
I really appreciate any help. (And I promise I'll reward these helps with points!)
Thanks in advance,
André
Hi André
You can visit the https://wiki.sdn.sap.com/wiki/display/VC/Connectivity page for troubleshooting.
Also it should be great if you let us know the SPS level and the way you register the WebService in the Portal to be reached on the VC Storyboard.
Best Regards,
Luis
Similar Messages
-
Difference between a WEB service and a Enterprise Service?
Can Anybody explain me the difference between a WEB service and a Enterprise Service?
Hi Anilkumar K Naidu ,
Web service
A Web service is a self-contained, modularized functionality, which can be published, discovered, and accessed across a network using open standards and which is supported by SAP NetWeaver. Web services cover services provision for integration within an enterprise as well as cross enterprises on top of any communication technology stack, whether asynchronous or synchronous, in any format.
Web Services in the NetWeaver framework play an important role in facilitating the integration of disparate applications from various departments or trading partners and thus increasing business productivity. This benefit allows small and medium businesses also to integrate their business applications with larger trading partners. The benefit derived from this seamless integration introduces security concerns when all the business logic is now being exposed through a standard interface that is a catalyst for security vulnerabilities. SAP Security Managers must use automated diagnostics tools to ensure that the security vulnerabilities are caught in pre-production and in post-production phase.
Web Services Testing: SAP Netweaver Platform
http://www.crosschecknet.com/web_services_testing_SAP.php
How Web services play a key role on the SAP NetWeaver
http://www.sap.info/public/INT/int/index/Category-28943c61b1e60d84b-int/0/articlesVersions-500244687cbd30ffd
How to develop a Simple Web Service Application Using SAP NetWeaver Developer Studio & SAP XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
How To... Set Up a Web-Service Related Scenario with SAP xi
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
Enhancing Your Web Services with SAP Exchange Infrastructure
http://www.sappro.com/downloads/SAPXI.pdf
Web Services, Part XI: Consuming Multiple Web Services
http://www.webreference.com/js/column106/
Vulneribility assesment of SAP Web Services
http://www.crosschecknet.com/resources/white_papers/sap_va.pdf
Enterprise Service
Enterprise Service-Oriented Architecture (Enterprise SOA)
Enterprise SOA is a blueprint for an adaptable, flexible, and open IT architecture for developing services-based, enterprise-scale business solutions. With SAP NetWeaver as a technical foundation, enterprise SOA moves IT architectures to higher levels of adaptability and moves companies closer to the vision of real-time enterprises by elevating Web services to an enterprise level.
An enterprise service is typically a series of Web services combined with business logic that can be accessed and used repeatedly to support a particular business process. Aggregating Web services into business-level enterprise services provides a more meaningful foundation for the task of automating enterprise-scale business scenarios.
SAP Enterprise Services Architecture
http://en.wikipedia.org/wiki/SAP_Enterprise_Services_Architecture
ENTERPRISE SERVICEORIENTED ARCHITECTURE DESIGN, EVELOPMENT,AND DEPLOYMENT
http://download.sap.com/platform/esoa/brochures/download.epd?context=FB8D5E235B637255604CD1EDB755014400C523BC4E4632245A59C838A212B5F04C71A43F8B38FC591628F4C698D8CAA859405AA974284758
Enabling Enterprise Services
http://help.sap.com/saphelp_nw04s/helpdata/en/80/be7042f1e6d242e10000000a1550b0/content.htm
Enterprise Service-Oriented Architecture
https://www.sdn.sap.com/irj/sdn/enterprisesoa
Define Enterprise Services using the Enterprise Services Community
https://www.sdn.sap.com/irj/sdn/define-es
Enterprise service bus
http://en.wikipedia.org/wiki/Enterprise_service_bus
Enterprise Services Workplace
http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/flddisplay.asp
cheers!
gyanaraj
****Pls reward points if u find this helpful -
Interfacing web services and RT applications
[First, sorry to the NI guys who helped me with this over the phone. It's not that I don't trust your input but in the multitude of counselors there is wisdom.]
If I want to interface my cRIO real-time control loop with the outside world using web services, how do you implement the interface between the web service and the RT app? If the RT app is included as part of the web service, will it start running at target boot time or must it be invoked using the web service?Aaron--
What I have now is a web service only application--I only have one Build Specification and it is for the RESTful web service. I placed what typically would be my RT application code in the web service Source Files section without any URL mappings to go with it. Then I simply call the top level RT executable code from the web service by static reference and have it return without waiting for code execution to complete. At this point, my "RT app" is running on the cRIO and can communicate with the web service via functional globals.
The fact that my "RT app" does not run at boot time is not an issue in this application so I feel like I'm getting by on a special case. If I needed to run the RT application at boot time with headless operation, I think I would still be having a problem. I just find it a bit quirky that NI's web services put the developer in the situation that, in order to communicate with an RT executable, they must use shared variables (yuck) or implement a mini virtual network. Why not put the web service and the RT app into the same application space and be done with it?
Thanks,
kc64 -
Difference between Web Services and RFC (both Advantages & Disadvantage)
Hi All,
will you please explain the difference between Web Services and RFC (both Advantages & Disadvantage)
Thanks,
jyothi.Hi,
If you want have a communications between SAP systems within a network, we can go for an RFC.
If you want have communication between SAP systems through a medium like internet, we can probably go for a webservice.
Please refer the following links:
What is the difference between RFC vs. Web service ?
Webservice
If you want to convert an RFC fuction module to an webservice, you can refer the following link,
Using RFC as WebService in WebDynpro
Hope this will help you.
Regards,
Jithin -
Diff b/w Web service and window service
What is the difference between web service and window service, whether the both are same or not, Give some explain about that each one and give some examples also.
An XML Web service is a component that implements program
logic and provides functionality for diseparate
applications. These applications use standard protocols,
such as HTTP, XML, and SOAP, to access the functionality.
XML Web services use XML-based messaging to send and
receive data, which enables heterogeneous applications to
interoperate with each other. You can use XML Web services
to integrate applications that are written in different
programming languages and deployed on different platforms.
In addition, you can deploy XML Web services within an
intranet as well as on the Internet. While the Internet
brings users closer to organizations, XML Web services
allow organizations to integrate their applications.
A Windows service starts much before any user logs in to
the system (if it has been setup to start at boot up
process). A Windows service can also be setup in such a way
that it requires a user to start it manually ? the ultimate
customization!
Windows services run as background processes. These
applications do not have a user interface, which makes them
ideal for tasks that do not require any user interaction.
You can install a Windows service on any server or computer
that is running Windows 2000, Windows XP, or Windows NT.
You can also specify a Windows service to run in the
security context of a specific user account that is
different from the logged on user account or the default
computer account. For example, you can create a Windows
service to monitor performance counter data and react to
threshold values in a database. -
Encrypt communication between SharePoint Web App and SSRS
Hi
I have SharePoint 2010 in multi server farm. The SharePoint web app has SSL enabled. The Reporting Server (SSRS) is http URL.
So when the Report Viewer web part is used, the communication between SharePoint web server and SharePoint Reporting Server is unsecured. The existing SSL has hard coded hostnames and for business reasons we prefer not to modify it.
Does anyone know how can I make that communication secured? Do I need to apply new SSL for SP Reporting Services? Is there any other option?This should get you off and running on SSL
http://technet.microsoft.com/en-us/library/ms345223(SQL.100).aspx
and if you haven't go SQL on SSL - ->
http://technet.microsoft.com/en-us/library/ms189067(v=sql.100).aspx
Stacy Anothersharepointblog.blogspot.com -
How to control transactions (WS-AT) between two web services in OSB?
Could someone tell me if the OSB can have 2 diferents web services controlled by an unique transaction?
For instance: in the OSB there are two wsdl, each one with its own Business Service and ProxyService respectively. In my vb.net aplication I started a transaction, called the first web service succefully and from the second web service I got an exception. I expected the first web service undo its work because the vb.net aplication excute a rollback command. Is this possible? How can I do? Any sample or tip will be helpfull.
If I was developing without OSB, I would rely on WS-AT as shown in http://www.codeproject.com/Articles/38793/6-Steps-to-Enable-Transactions-in-WCF for two web services dot net, or for one web service dot net and other java, http://www.ibm.com/developerworks/websphere/library/techarticles/0707_lo/0707_lo.html.
My question is basically: Is still possible to keep a single transaction between multiple web services when they are mediated by OSB? If so, is there a example showing how?Hi,
When you create the proxy server, you have to check "Transaction required" box on Message Handling page...
http://docs.oracle.com/cd/E17904_01/doc.1111/e15867/proxy_services.htm#i1316487
Cheers,
Vlad -
Web Service and security....
Hi everyone,
I wanted to know if someone suceeded to call a web service via a Java standalone class using a Deployable Proxy ?
If yes, can someone gives me all the steps ?
Thanks a lot for your help.
NB : I succeeded calling a web service via Standalone Proxy. But I want to securize the call to the web service.
I noticed that I cannot use SSL with Standalone Proxy.
If I am missunderstanding something, please let me know.Hi David,
Yes, you cannot use SSL with standalone proxy.
you can use document security for deployable proxy as i suggested you before in you earlier posts.
Follow these steps:
1. Specify document security as authentication mechanism in web service configuration file.
2. In security tab in this file, choose username+encryption for request and none for response.
2. deploy your web service.
3. Create deployable proxy for this web service.
4. ensure security options for this proxy is also set to document authentication.
5. Deploy this proxy on the server.
6. Go to visual administrator and there check whether XMLEncryption certificate is available under WebserviceSecurity view. If not then create private and public key with name XMLEncryption and XMLEncryption-cert respectively.
7. Assign this certificate to your webservice and proxy in the services, "Web services seurity".
8. write code in Standalone java class to call your pproxy.
Regards,
Bhavik -
Proxy Authentication Error in Web Service with SAAJ on Weblogic 9.2 MP3
Hi,
I have encountered a problem with proxy authentication in SAAJ web service (WS) calls on Weblogic 9.2 MP3.
My WS client (which uses SAAJ's SOAP classes) should use a proxy that requires authentication to call the external web services.
However, it does not perform the authentication and receives HTTP Error 407 - Unauthorized.
The reason seems to be that Weblogic's Http Handler (weblogic.net.http.Handler) ignores the proxy authentication.
I was able to work around it by setting sun's http handler explicitly in the WS endpoint URL. Sun's handler (sun.net.www.protocol.http.Handler) makes use of the Authenticator class I provided.
1. Please see my code below and let me know if this is the only solution or if I'm doing something wrong. While testing on Tomcat I did not have to set the handler.
2. I have seen that there are also System properties for http.proxyUser and http.proxyPasword, however if I use these and ommit setting the SimpleAuthenticator, it also fails (with either handler!). An explanation of that is welcome.
Thanks in advance.
Code:
===========================================================
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "localhost");
System.setProperty("http.proxyPort", "808");
//System.setProperty("http.proxyUser", "myuser");
//System.setProperty("http.proxyPassword", "mypw");
Authenticator.setDefault(new SimpleAuthenticator("myuser", "mypw"));
String urlString = "http://someurl:8080/webservice..";
URL endpoint1 = new URL(urlString);
URL endpoint2 = new URL(null, urlString, new sun.net.www.protocol.http.Handler());
SOAPConnectionFactory soapfactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapfactory.createConnection();
connection.call(message, endpoint1); // Gives Exception with HTTP Error 407
connection.call(message, endpoint2); // Works and uses the proxy
For reference:
===========================================================
public class SimpleAuthenticator extends Authenticator {
private String username, password;
public SimpleAuthenticator(String username, String password) {
this.username = username;
this.password = password;
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password.toCharArray());
}Sorry for the 3 posts.
Administrator, delete this thread please!! -
i have developed a very small web service and which is hosted along with our web site. our webservice url is
http://www.bba-reman.com/Search/SearchDataIndex.asmx
web service code
namespace WebSearchIndex
#region SearchDataIndex
/// <summary>
/// SearchDataIndex is web service which will call function exist in another library for part data indexing
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class SearchDataIndex : System.Web.Services.WebService
//public AuthHeader ServiceAuth=null;
public class AuthHeader : SoapHeader
public string Username;
public string Password;
#region StartIndex
/// <summary>
/// this function will invoke CreateIndex function of SiteSearch module to reindex the data
/// </summary>
[WebMethod]
public string StartIndex(AuthHeader auth)
string strRetVal = "";
if (auth.Username == "Admin" && auth.Password == "Admin")
strRetVal = SiteSearch.CreateIndex(false);
else
SoapException se = new SoapException("Failed : Invalid credentials",
SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
throw se;
return strRetVal;
#endregion
#endregion
when i was calling that web service from my win apps using
HttpWebRequest
class then getting error The remote server returned an error: (500) Internal Server Error
here is code of my win apps from where i am calling web service
string strXml = "";
strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "text/xml";
req.KeepAlive = false;
req.ContentLength = strXml.Length;
StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(strXml);
streamOut.Close();
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = streamIn.ReadToEnd();
streamIn.Close();
i am just not being able to understand when this line execute
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
then getting the error The remote server returned an error: (500) Internal Server Error
not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
help me to fix this issue. thanksHi Mou,
I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
The error message I quoted from Fiddler:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---> System.Exception: Invalid credentials
--- End of inner exception stack trace ---
at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
1.right click the Reference and select Add Service Reference
2.input your service link and click "Go"
And you can use this service as the following:
private async void callService()
ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
Please try it.
Regards,
Will
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. -
Post Author: vpost
CA Forum: Data Connectivity and SQL
I am trying to join information from two related web services within CR XI. I have successfully set up the web services as data sources have been able to get to the point where I get good data back. However, when I try to pull in certain fields, I get an error that says "Failed to retrieve data from the database/invalid argument provided". Here's the scenario:
The web services are structured as follows:Web Service 1 (Artist) has attributes of Artist Name and Date of Birth.Web Service 2 (CD) has attributes of CD Title and Release Date. Underneath each CD are songs, each of which have a Song Title and Artist Name.
I have defined both web services and defined a link between Artist.Artist Name and CD/Song.Artist Name. I am able to run a report with Song Title and Date of Birth that crosses web services. I am able to run another report with Song Title and CD Title that crosses the different levels in the second web service. However, if I add CD Title to the first report or Date of Birth to the second (both of which effectively force CR to employ the link between the two web services AND the CD/Song hierarchical structure in the second web service, I get the aforementioned error.
Any assistance understanding how multiple web services can be linked in this manner would be greatly appreciated.
Thanks in advance.Post Author: Mike Wright
CA Forum: Data Connectivity and SQL
Not sure about your exact situation, but having similar problem with another application and have tracked down to security. Added user to group Domain Admin and it works fine. It appears to be accessing a subdirectory which it does not have permission to use and then times out and returns the "invalid....". Seems that once the query just over a certain size (and I'm not sure what triggers this) it needs to make use of temparory file disk, intead of ram.
I'm still trying to track down which temporary it's trying to uses - so if you have any ques.
cheers -
[jaxrpc] defining web services and WSDL spec
Greetings,
I'm starting in JAXRPC web service's concepts and its WSDL specification. After I tested some samples from the jaxrpc tutorial, I tried to make my custom web service, but, I have problems when I deploy the web service and I tried to see in my browser the endpoint url - I got a internal server exception! I pick up the hello sample, I added to it my custom core sample web service functionality - using the same operations, the same signatures methods - and it worked fine!!
So, what' is wrong? The main difference between them is that I have differents configuration files for xrpcc that will give a wsdl files for each one. Whats changes? The service name? The interface/package name? Is there some kind of limitation in the package name convention with the service names beyound the basic ones in the xrpcc (jaxrpc) specification?
thanks,
Pedro Salazar.I upgraded webservices developer pack to 1.0 version (final) and I solved my problems!
Pedro Salazar -
MDM web services and the MDM BP services
Hi *,
I need to know what is the difference between the standard MDM web services and the MDM BP services. How do I decide which set to use?
- KrisSorry but what are BP services? Do you mean Business package?
If yes the approaches are completely different - you use Web Services when you have to customise the application and build your logic/functionality into the app. CRUD operations are procided by Web Services - you need to form your wrapper application from scratch and develop!
With BP - it involves least development effort bearing in mind that its all standard content and not yet completely customizable. So based on your requirements plan whether to go for Business Package or Web Services or Java API completely... -
My company is exploring the use of JHeadstart and we are very impressed with its capabilities. The enterprise environment into which our system will be deployed requires separation between the View Layer, and the Model Layer, with a SOAP-based messaging agent as the go-between (it's MQ series-based). We have been able to get a prototype plain-old UIX application to work where we deploy the Application Module in the Model project as a web service, and then create a data control from the stub to consume in the UIX ViewController project. We can then simply drag and drop the Web Service call result sets onto the UIX pages. However, when trying to do this with JHeadstart, the Wizard for creating Application Structure Files requests an Application Module on one of the first screens. In our environment, we won't be able to allow the ViewController project to see the Model project. Is there any way to use a web service instead of the Application Module? If not, is there any plan to support this type of activity in a future JHS release?
Thanks in advance,
Dan SchiffDan,
Currently JHeadstart only supports ADF Business Components as the Business Service layer (directly accessed, not through a Web Service wrapper). As you found out, ADF supports other Business Services as well, not only Web Services but also TopLink, EJB, etc.
JHeadstart is primarily intended for data manipulation (select, insert, update, delete) and our philosophy is that that type of functionality (that part of your application) is most efficiently handled directly by ADF Business Components. Also, this is the most productive technique for application developers. Of course, the end result of generating an application with JHeadstart is that you have a "normal" ADF application, to which you can add Web Service functionality with the normal JDeveloper visual editors and drag-and-drop features.
So you could generate efficient data manipulation screens using JHeadstart and direct ADF Business Components, and then add interoperability with other Business Services to your application using Web Services. The latter part is not JHeadstart-generated.
The next JHeadstart release (10.1.3) will be focused on supporting JSF (JavaServer Faces). We are also looking into support for other Business Services like TopLink, but we don't have any schedule for that yet.
kind regards,
Sandra Muller
JHeadstart Team
Oracle Consulting -
Envy 100 410A Web Services and Ipod problems
Hi,
I purchased the Envy 410A and I'm having a few problems. I have two Macbooks and a 4th gen Ipod Touch setup on a wireless network with a Linksys WRT100 router. First, what's working:
I successfully installed the printer on both computers through USB and I can print wirelessly from each without any difficulties. (I set a fixed IP address for the printer to avoid having to 'find' it each time it got a new address by DHCP.)
Here are my problems:
1) On setup, the printer successfully connected to the HP web service and printed out a code for ePrinting. I entered this code and was able to print via email. However, sometime between last night and today (and after I installed 6 updates) the printer reported that it no longer had an email address. I turned off Web Services to troubleshoot, but now when I try to enable it I get the "Problem Connecting to the Web Services Server" error. Powercycling the router and/or printer does not fix this. Nor does turning off the printer's wireless functions for 5 minutes. I've tried restoring factory defaults, but it did not actually restore anything. How can I fix this? Is the server down, or is something screwed up?
2) My iPod Touch is completely updated to iOS 4.2, bluetooth is turned off, and I've verified that it's on the same network as the printer, but I cannot detect the printer on my iPod either through Apple's AirPrint or through the HP iPhoto App 3.0. Both just say "No printers found". This is really frustrating since I bought this with printing from mobile devices in mind. Any advice?
Thanks for your help,
DaveI am glad your first problem is resolved. When it comes to iPod having OS 4.2, the device supports AirPrint which is new from Apple.
For more information on how to use the AirPrint on your iPod refer to below link:
http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=en&cc=us&docname=c02623193
If the iPod still does not find the printer, try unchecking the option "Enable Multicast Streams" in the router EWS page and see if it works or not. Contact your router support for more info.
Say "Thanks" by clicking the Kudos Star in the post that helped you.
Please mark the post that solves your problem as "Accepted Solution"
Maybe you are looking for
-
2 Mac's sharing the same itunes library?
2 Mac's sharing the same itunes library? I would like to use the same existing itunes music folder I have on a external drive, connected to one of my machines? I can share without any problem the drive from my laptop and can share/view the other mach
-
Sending Event reminders to multiple recipients
Hello, I have googled this and searched the forum but have not found a solution. How can I send an event reminders to multiple various people (some have iCal, some do not), with iCal? I have tried adding a group but it still selects only one email ad
-
same as above
-
How do I get photos to display in landscape?
When I want to look at photos in landscape the image is not rotating. I've looked in settings, but can't find anything I can change. Help! :)
-
Cancellation of RETURN delivery made by Quality
Hi All, I want to cancel the return delivery made to a vendor. It was posted in QA11(usage decision) in Quality Mgmt. In MBST, the system doesnot allow to cancel the document. How should i proceed ? pl give me a direction. regards gnk Edited by: gnk