To use Siebel web service with C# ASP.NET applications(Web Services) - c#

Since I am a newbie to Siebel web services,Could anyone please give me information about how to invoke a Siebel web service(inbound and Outbound) in C# .NET application and using them with web service or windows services?

Simple steps are:
Select the mode (inbound or outbound)
Configure the business logic in Workflow or Business Service
Configure the Web service in application (go to site map > web services)
In application, make sure configure the port url correctly
From the application, generate the WSDL
From .Net or Java or any consumer call the WS using the WSDL contract.
For details please refer the Bookshelf.
Remember if logic is ready then consuming or exposing a business logic is required 10 minutes configuration. :)

The idea about web services is that it's not vendor specific. Thus, a Siebel Web Service (inbound) is just like any other web service. There are millions of examples on calling web services in C#.
But, there are some helpful stuff in the official documentation ;) I this doc, specifically you can use a Mobile Web Client to respond to WS calls. Like this there is no need for a Siebel Server install and jumping through the loops to setup an inbound web service and enabling the EAI Object Manager(s).

Related

How to consume a WPF Service in Wordpress

i am very new to web service and WCF. I want to know that is it possible to consume an WCF Service in WordPress website.
if yes then where to host the service.
or what technology (i.e Web Service, asp.net API or WCF service) is better to use for making service, if need to consume the service in WordPress site.
Please give any reference link in this regard.
Thanks in advance
You can create a RESTful WCF service if you so desire, even though I will recommend using ASP.NET WebAPI for this purpose as it suits more.
Please take a look at this question I've asked, where I've created a simple HTTP based WCF service. The purpose of the question is different but you can easily refer the code to create a simple RESTful service in WCF.

Web Forms and Web API Deployment

Good old Microsoft documentation at it's finest. Does anyone know of any resources that explains how to deploy Web Api with Asp.net Web Forms application. I have the web api in a separate class library and I call using jquery. I don't want anonymous users to be able to access this service only the application. Do I want to use self hosted? How do I lock the service down? Awesome examples showing how to use, tons of videos but nothing on deployment.
You don't have the right architecture for what you are describing, but what you have is right.
If you are calling web services from the client side (using jquery) then your web service must be public facing.
What you are describing is a web or WCF service in a service oriented architecture. That service would most likely live on a different server and be on an internal network, etc. Even if it's on the same server your requirement is that it is not publicly accessible - thus none of your jquery would work since that request is being initiated by the user and users can only make requests to public facing services.
The comments about using forms authentication to protect your service calls are right. jQuery will include the forms authentication cookie for you when it makes AJAX calls so you shouldn't have to change much on the client side.

Accessing WCF webservice using browser

How to access WCF webservice using browser?
Currently its just implemented as normal webservice.
Please let me know how to set webConfig settings as well.
In order to access and test your WCF service from within your browser, you will need to make it RESTFUL webservice.
here are a couple of resources that will help:
http://msdn.microsoft.com/en-us/library/dd203052.aspx
http://www.codeproject.com/Articles/344512/Building-and-Testing-WCF-RESTful-services
also checkout this nice article that sums the needs and various aspects of building RESTFUL web services
http://predic8.com/rest-webservices.htm

How do I call a SOAP based Web Service from within a .asmx page?

I am trying to create a sort of "bootstrap" web service using a classic .net C# .asmx page and not WCF. (The business requirements for this project are specific and do not want a WCF service).
Basically, I am trying to do this:
Create a new web service (I have no problem doing this)
That service needs to make a SOAP based call to a Sharepoint Web Service
I need to consume that service
I need to add additional pieces of information for my web service to the SOAP result (No problem here either)
The issue I have having is with point #2 and #3. I have found plenty of articles using WCF to consume SOAP based Web Services or using "Linq" to connect to sharepoint etc., but that's not what I'm looking for.
What I am looking for is simply a step by step process of what I need to do to push me in the right direction.
Example:
add a web service reference??
add this line(s) of code to create a new SOAP request??
add this line(s) of code to parse and consume the service??
Thank you very much in advance!!!
Sample code would be greatly appreciated as well!
There's nothing magical about the fact that it's a web service. Just use "Add Service Reference" and then treat it like any other piece of code referencing a web service.
Also, are those who wrote the requirements aware that a WCF service can expose a basicHttpBinding endpoint that looks exactly like an ASMX web service endpoint? It would also have the benefit of all of the features of WCF, in addition to not using what Microsoft considers a "legacy technology".
The SharePoint Developer Center at MSDN would be a good place to refer to for general information, tutorials, etc. Server and Site Architecture: Object Model Overview in the Windows SharePoint Services 3 SDK would be a good place to start learning about the SharePoint object model, as the terms (SPSite, SPWeb, etc.) that you'll come across in examples can be confusing.
Basically you will want to add your web reference to the SharePoint web service that you intend to use. The specific reference that you use will depend on what you're trying to accomplish, there's a whole list of available Windows SharePoint Services Web Services. Those are for general SharePoint tasks such as interacting with lists and sites; there's also a whole separate set of web services for SharePoint Server which is what you would use for interacting with the Business Data Catalog, Enterprise Search, and any of the other features that come with SharePoint Server, not Windows SharePoint Services.
When you add the web reference in visual studio, it will automatically generate the proxy in your project against the remote web service and you use the generated proxy to do what you want to do. However, working directly against the web services, pretty much everything will return a generic XmlNode that you'll have to deal with, so if you're working in .NET, a much better alternative to using the web services directly would be to download the SharePoint SDK and program against the server object model.
If you do end up using the object model, make sure you read both of these thoroughly:
Best Practices: Common Coding Issues When Using the SharePoint Object Model
Best Practices: Using Disposable Windows SharePoint Services Objects
Here is small tutorial on what you're trying to do:
http://www.xefteri.com/articles/show.cfm?id=15

Implementing web service with WCF 4.0 with authentification

I am starting development of the new project and since I am new in the WCF world I want to ask your advice.
I am going to implement web-service which will provide data for WPF client and for ASP.NET site. Web site and web service should be hosted in the Windows share hosting (not didicated server) and this fact is bothering me. WPF client and web site will provide almost the same functionality for the user, so I want to implement all logic inside web service not to duplicate it in the client and web site.
Not sure what is the best way to implement such web-service - REST, SOAP or something else? Please, help me with selecting technology for web-service creation, I just want to get direction for optimal solution. 10x.
Update: Sorry I did not wrote details. Service will be something like on-line shop with admin panel, so web service will be used for getting products and for adding new product to the system. It does not support tons of customers, it's just solution for small web-shops.
since you are developing a Web based solution and a WPF client, i would recommend the following options for your WCF services:
REST Option - This option is good if you have some complex Ajax architecture on the client using Json and stuff, or if you want to expose your services publicly. In this case the option is to expose an HTTP endpoint using webHttpBinding on your service. Since your deployment will be on a shared web server, you can host your service inside IIS. I would recommend considering a SSL option for security.
Soap Option - This options is the easy one, and should be more familiar to most developers, since it acts like a usual web service. In this case i would use an HTTP endpoint with wsHttpBinding on the service for enhanced security. Since your deployment will be on a shared web server, you can host your service inside IIS. I would recommend considering a SSL option for security.
Whatever solution you choose you will be able to accomplish your goal to have simple SOA architecture in place and will have centralized services for your CRUD operations.
I hope this answered your question.

Categories