Hosting WCF services on OSB 11G
Hi there,
I have been reading online to see if web services created through WCF can be hosted side by side in OSB 11G with Java services. I have found posts on how you can allow java web services hosted on OSB 11G to call wcf services, but i have found nothing on hosting WCF services.
Is this possible? If so, what are the advantages /disadvantages?
Thanks very much.
Rita
Oracle Service bus is all Java environment and I do not think you can host WCF web services(based on .NET) on Oracle Service Bus, however it may be possible for oracle service bus to inter operate with the WCF web services.
jayesh@yagna
Similar Messages
-
Cross Domain error for Silverlight + MVC application with self hosted WCF service on azure
Hi,
We are migrating existing Silverlight application to MVC; existing Silverlight application is hosted on
Azure which is consuming self-hosted WCF service. For authentication we have implemented
ADFS with WIF (passive). The cloud service (<myWebSite>.cloudapp.net) is C Name to (<myWebSite>.<myDomain>.com) and we
are consuming WCF service at <myWebSite>.cloudapp.net/<myService>.svc, as we were getting “Cross Domain” error so we have added “clientaccesspolicy.xml” at the root of “WEB ROLE”.
Existing Silverlight application works fine but the problem occurred when we deploy our migrated application to the same cloud service. We are getting a “Cross Domain” error.
The same migrated application works fine on UAT environment, the only difference is UAT environment is
without ADFS WIF implementation.
Migrated application is half Silverlight and half MVC with initial landing page is Silverlight. MVC web role is used to host the service i.e. .SVC . To go to SL landing page , redirected from home controller. Following is being observed in fiddler for this
application
Existing Silverlight application -
After authentication with ADFS it redirect to Silverlight landing page.
Before calling service method it looks for “clientaccesspolicy.xml”
In response header we are getting the content of “clientaccesspolicy.xml”
And after this everything works fine
Migrated Silverlight-MVC application –
After authentication with ADFS it redirects to “HomeController” and from there we are redirecting to Silverlight landing page.
Before calling service method it looks for “clientaccesspolicy.xml”
In response header we are getting following content - “https://federation-sts.<myDomain>.com/adfs/ls/?wa=wsignin1.0&
wtrealm=https%3a%2f%2f<myWebSite>.<myDomain>.com&
wctx=rm%3d0%26id%3dpassive%26ru%3d%252fclientaccesspolicy.xml&wct=2014-03-17T10%3a36%3a04Z”
4.Throw “Cross Domain” error.
Also we have added filter in
RouteConfig
for .xml file
routes.IgnoreRoute("{*allxml}",
new { allxml = @".*\.xml(/.*)?" });
NOTE: There is no configuration change apart from MVC configuration.
We have done RDP to web role and found that “clientaccesspiolicy.xml” is present at “E:\approot” location and it is also accessible at “https://<myWebSite>.<myDomain>.com/clientaccesspolicy.xml”.
Please help
Thanks,
Rahul PHi,
Please try to configure the cross domain policy file to allow public read access (that is, access it without federation requirement), make sure you can access the address
http://something/clientaccesspiolicy.xml directly in a browser
without redirecting to check whether the cross domain policy file could be anonymous accessed (Please start a new browser session and make sure you're
not logged in. Then test the cross domain policy file.).
Best Regards,
Ming Xu
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. -
Invoke External HTTPS Web Service from OSB 11G
Hi,
We have a requirement to invoke a HTTPS web service hosted by third-party and we have to send HTTP basic authentication detials also.
Third party given us the HTTP basic authentication details and only certificate nothing else.
After some research service account can be used for basic authentication and service key provider for https requirement.
But before service key provider creation there are steps to import the certificate into weblogic server and do some config steps (PKI cred mapping and all )I have gone through the forums but i am new to OSB and SSL i could not understand.
Can some one help with detailed steps.
Thanks in Advance
SrikanthYou can simply use "Execute Script" operation in Workbench and make use of java.net.URL. Below links should help :
http://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/
http://www.adobe.com/devnet/livecycle/articles/building-xml.html
http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=000581.html
Hope this helps.
-Wasil -
How to configure Security services in OSB 11g..
We are integration OSB with BANK application, we will be using SSL certificate for the same.
Please help how to configure security policy in OSB.
I checked below link policy defination
http://tim.blackamber.org.uk/?p=825
but in OSB proxy service we are not able see Policy button.
Please help.
Thanks,
MihirPlease post your query in SOA Suite forum -
SOA Suite
Regards,
Anuj -
Directory not found error occurs while hosting WCF Service in SharePoint 2010
Hi,
I have created a sample in share point 2010 along with WCF and while hosting am getting "name of the directory is missing", please find the created sample and error details in below link. could you help me ?
https://onedrive.live.com/redir?resid=FE78C65B6E3DB51C%212485
Thanks,
Felix MHi Ajay,
for custom WCF, actually its part of .net and will be deployed to sharepoint.
when you deployed, it should change the web.config, and add your endpoint.
to try perhaps you can open your endpoint from the web front end server.
i see from the link that you add, the article already add the example to check this:
http://ranaictiu-technicalblog.blogspot.in/2011/03/sharepoint-2010-create-custom-wcf.html
if should from the web front end is not available, then you need to change the web.config manually and add your endpoint.
http://msdn.microsoft.com/en-us/library/office/ee535060(v=office.14).aspx
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
REST (HTTP POST) Proxy Service in OSB 11g
Hi everyone,
I am pretty new to Oracle OSB, but I was searching through the forum but could not find any "guide", "tutorial" on how to implement a REST - HTTP Post for a Proxy Service. If anyone know of any disccussions prior, please send me the links!
I have created a SOAP business service based on a WSDL, I have it working with a SOAP proxy service, but I want to implement a REST - HTTP Post proxy service to talk to the same SOAP business service. Can this be done? And if so, can someone guide me on how to create the HTTP Post Proxy service? I have tried implementing a proxy with the relative uri, http, but just could not get it to work, any help would be appreciated!
THANKS!
-MLHi!
A few links to help you on your way :
http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
http://blogs.oracle.com/christomkins/2008/10/a_look_at_oracle_service_bus_1.html
http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
http://www.oracle.com/technology/sample_code/products/osb/index.html (REST-2-REST Routing )
http://wiki.oracle.com/page/Chapter+13+-TheOracle+Service+Bus
http://biemond.blogspot.com/2009/05/osb-rest-service-with-xml-json-output.html -
How to create asynchronous web services in OSB 11g?
Hi,
Using the workbench, when I try to create a web service from an existing WSDL, the workbench automatically uses JAX-WS.
JAX-WS does not offer support for asynchronous web services, since it supports only HTTP ports (@WLJmsTransport does not work).
Request your help in resolving this issue. One way is to use JAX-RPC but I do not know how to configure the workbench to use JAX-RPC instead of JAX-WS.
Thanking you in advance.
Regards
Shyam.VHi,
see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">this</a> and also carry out a search in this forum, this has been asked before.
Regards, Heidi -
WCF service application hosted in IIS for reading Windows server service bus topic/subscription
We have a WCF service application(not web application) which is deployed in IIS 8 pointing to the windows server service bus topic/subscription. We have configured the WCF service with applicationInitialization feature of IIS 8 to warm up.
But the WCF service is not reading any message from the topic/subscription.
configured in web.config file as below
<system.webServer>
<applicationInitialization>
<add initializationPage="/MyService.svc" />
</applicationInitialization>
</system.webServer>
When we run the same from visual studio its reading messages from topic/subscription.
any configuration/settings which we are missing?You probably didn't initialize correctly the auto-start. Btw. I would recommend you to use AppFabric for this feature. It is more transparent in development and production.
Please take a look on following posts:
http://social.technet.microsoft.com/wiki/contents/articles/1284.host-wcf-services-with-service-bus-endpoints-in-iis-and-windows-server-appfabric.aspx
http://developers.de/blogs/damir_dobric/archive/2009/10/11/iis-7-5-and-always-running-web-applications.aspx
http://developers.de/blogs/damir_dobric/archive/2010/06/11/appfabric-issue-with-aoutostart.aspx
Damir Dobric
developers.de
daenet.de
daenet.eu
daenet.com -
Hi,
I have query regarding can TCP service be deployed on Azure with certificate security.
I am fresher to Microsoft Azure and I have questions regarding deploy TCP WCF Service on Azure and is there issues while hosting TCP WCF through Net TCP Binding. Can I develop tcp service with certificate security. Can you please provide me sample
code with detail.
Thanks in advance
Regards,
Amit KhuranaHi,
The below stack overflow thread is similar to the present scenario.
You might want to check this
http://stackoverflow.com/questions/27501683/self-hosted-wcf-service-on-azure-vm-windows-server
Hope this helps !
Regards,
Sowmya -
OSB 11g + DB adapter - best practices
Hello All,
I am creating some data services using OSB 11g+Db adapter to perform operations (Sel,Ins,Upd) from two databases. Most of them are simple queries, however some include complex db operations
1. If I have two separate datasources for databases, are there any option to handle global xa tansaction using OSB service.
2. Couple of interfaces consist large payload (Say xml with 5000 elements -- approx 500kb - 1MB) to be inserted to db. Are there performance tuning tips for these kind of operations.
Please let me know your thoughts on this - any docs/blog also will help.
Thanks,
ARPLThe below URL will help you to have DBAdapter in OSB.
Guido Schmutz, has provided step-by-step tutorial and video tutorial as well.
http://guidoschmutz.wordpress.com/2010/08/08/oracle-service-bus-11g-and-db-adapter-a-different-more-integrated-approach/
http://guidoschmutz.wordpress.com/2010/08/08/oracle-service-bus-11g-and-db-adapter-a-more-integrated-approach-the-video-tutorial/
If you are going to use Sel, Update and Insert to a single table or multiple tables then i would say, try to keep it with in single adapter wsdl with multiple operations, this will help you to have good performance.
Otherwise you can keep all those in a procedure and call the required function but in that case you have to have 3 DBAdapters.
To answer your question,
1. Enable both the datasources as XA enabled. As per 11g, you will be building in Jdeveloper (DBAdapter) and use it inside OSB.
2. You have to control that on multiple levels like jvm memory allocation, datasource threads allocation, timeout seeting on datasource and releasing dead connections.
Thanks,
Vijay -
IIS hosted WCF endpoint url without *.svc file
Is it possible to remove the .svc file from the url of an IIS hosted WCF service? I am familiar with the System.Web.Routing approach but I don't know that it would be a workable solution in my scenario.
I am attempting to move a Windows Service hosted WCF service to be hosted in IIS. The existing endpoint urls have the format <protocol>://<server>:<port>/<endpoint_name>. In the current IIS arrangement the endpoints look like <protocol>://<server>:<port>/<svc_file>/<endpoint_name>.
Is there a way to do this using the Routing approach which would not require me to decorate every method and the existing client configs and proxies would still work? We have many consumers of this service and would like to avoid requiring them to update
their configs to point to a new url.https://technet.microsoft.com/en-us/library/cc771240%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
If you have any more questions about IIS, you can post to the below forum
http://forums.iis.net/default.aspx/41 -
Oracle OSB 11G. Unable to find Oracle Service Bus Configuration Page.
Hi All,
Sorry for the apparent silly question but I am studying and learning the product.
I have the OSB 11G installed and running with a proxy service working and routing requests. The Oracle ESB documentation http://download.oracle.com/docs/cd/E21764_01/doc.1111/e15866/ui_ref.htm#i1327746 at chapter 4.4.2 New Oracle Service Bus Configuration Project Wizard
Use this wizard to create an Oracle Service Bus configuration project. For configuration options, see Section 4.4.3, "Oracle Service Bus Configuration Page."
4.4.3 Oracle Service Bus Configuration Page.
I don't see the configuration page in anywhere in the left pane of the console. Am I missing something? The project creation works fine but I just don't see the configuration Wizard.
Thanks.
Regards
Salvatore IlardoThe link which you are referring is for user interface objects in the Oracle Service Bus plug-ins and OSB plug-ins are used with OEPE (Oracle Enterprise Pack for Ecplise) for OSB development. OEPE is the only supported IDE for OSB development as of now.
Remember, at a time, one and only one Oracle Service Bus Configuration project can be deployed in a OSB domain which may contain desired number of Oracle Service Bus Projects and that's why there is no provision of creating Oracle Service Bus Configuration Project in sbconsole GUI. In IDE, you may create many Oracle Service Bus Configuration Project and that's why it has a Oracle Service Bus Configuration Project Wizard.
Regards,
Anuj -
Error when calling a hosted WCF in Service Application anonymously
Hi,
I have a WCF service hosted in SharePoint 2013 service application, I am able to call this endpoint when i am logged in but after i enabled the anonymous access in sharepoint, i am not able to call the WCF endpoint and the error that i am getting: "The
security token request cannot be completed"
Log Error in Details:
2014-02-13 12:01:52Z Severity:Error
ThreadID:6548 ManagedThreadName:Pool_ef4d_0
Message:System.Web.HttpException (0x80004005): Exception processing request ---> System.Web.HttpException (0x80004005): Exception handling secured request ---> System.InvalidOperationException: The security token request cannot be completed.
at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForServiceContext(Uri contextUri)
at Microsoft.SharePoint.SPChannelFactoryOperations.InternalCreateChannelActingAsLoggedOnUser[TChannel](ChannelFactory`1 factory, EndpointAddress address, Uri via)
at myServiceApp.Service.BaseServiceClient.GetChannel[TChannel](SPServiceLoadBalancerContext loadBalancerContext, Boolean asProcess)
at myServiceApp.Service.BaseServiceClient.ExecuteOnChannel[TChannel](CodeToExecuteOnChannel`1 codeToExecute, Boolean asProcess)
at myServiceApp.Service.Client.MyMethod(IsAllowedRequest request)
As you see, the error is related to the trust relationship between the WCF and the Security Token Service is not able to authenticate the anonymous user. since the last call for a sharepoint method InternalCreateChannelActingAsLoggedOnUser which assume there
is a logged in user.
This is the web.config for my endpoint WCF hosted in the Service App:
Anyone has went through this and could recommend a fix ?
Mostafa ElzoghbiHi Sam,
The correct code for creating a popup window will be:
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'WINDOW_NAME'
* title =
* close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
* close_button = abap_true
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
lo_window->open( ).
Hope this helps.
Regards,
Ram -
WCF service connection forcibly closed by the remote host for large data
Hello ,
WCF service is used to generate excel report , When the stored procedure returns large data around 30,000 records. Service fails
to return the data . Below is the mentioned erorr log :
System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP
response to <service url> This could be due to the service
endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by
the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException:
The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException:
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout).
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at IDataSetService.GetMastersData(Int32 tableID, String userID, String action, Int32 maxRecordLimit, Auditor& audit, DataSet& resultSet, Object[] FieldValues)
at SPARC.UI.Web.Entities.Reports.Framework.Presenters.MasterPresenter.GetDataSet(Int32 masterID, Object[] procParams, Auditor& audit, Int32 maxRecordLimit).
WEB CONFIG SETTINGS OF SERVICE
<httpRuntime maxRequestLength="2147483647" executionTimeout="360"/>
<binding name="BasicHttpBinding_Common" closeTimeout="10:00:00" openTimeout="10:00:00"
receiveTimeout="10:00:00" sendTimeout="10:00:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="0" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647"
maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
WEB CONFIG SETTINGS OF CLIENT
<httpRuntime maxRequestLength="2147483647" requestValidationMode="2.0"/>
<binding name="BasicHttpBinding_Common"
closeTimeout="10:00:00" openTimeout="10:00:00"
receiveTimeout="10:00:00" sendTimeout="10:00:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
Also, you are posting to the wrong forum.
http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf -
How do I build a dynamic business service URL in OSB 11g?
Hello,
I am used to using the business service endpoint URIs that we configure on the Transport tab of our business services in OSB 11.1.1.6. We can add multiple static entries here for load balancing, and we can overwrite these with a Customization File as we migrate through DEV, TEST, PROD. Everything's just fine there.
I now need to start consuming RESTful services with dynamic URLs such as:
http://host:port/customer/{customerId}
that would result in HTTP calls to values like:
http://host:port/customer/12345678
and
http://host:port/customer/55555555
I see that I can build the URI using the Routing Options action in our proxy message flow and throw in all of those variable values at runtime. This is working in DEV just fine. And, effectively, I've overridden the business service endpoint URIs that we configured in the Transport.
But now I want to:
1) Use multiple endpoint URIs for our cluster
2) Deploy to TEST
What is the proper way to do this? I would guess in the business service endpoint URIs in the customization file, but I don't know how to parameterize those. I would also guess customization file find/replace functionality to change the host:port in my Routing Options action, but then that would still be just a single-node endpoint and not a pointer to multiple servers in our cluster.
Can someone please advise the best way to configure these dynamic URLs at runtime while still allowing for clustered endpoints and for customization files to be applied as we promote through our environments?
Thank you,
MichaelFound some old code.
I think you need to do
property_text = "#"^variable_text
then you can do the following
property_list[1][property_text]
That seemed to work.
Maybe you are looking for
-
Credit Control Area incorrectly referenced in billing doc
I have made two credit control areas 1000 and 2000. 1000 is the default cca for the company code. Now for some sales order the cca is correctly determined which is 1000 but when they reach the billing level the cca changes to 2000 which is unbelievab
-
Scriptable relational database?
Is it possible to get a relational data base program for Mac OSX that has an reasonable AppleScript support?
-
ICloud plays only a portion of many songs... Why? How to fix?
After purchasing iCloud, my MacPro started its sync to the cloud. Once uploaded, I turned on iCloud on my iPhone 4, iPad (1), and MacBook Pro. On all these devices, many songs play approx 50% of the song and then stops... If I wait about 5 minutes,
-
no sound in my iphone 4s. I can make calls but no ring tone or lock sound and siri also doesnt talk. My sound settings are ok and it is not in silent mode. Please help
-
9i TNSLSNR.exe Application Error on 2000 Prof.
When I connect to a local database, I seem to be getting TNSLSNR fatal error in which the listener stops working. The following error is returned: TNSLSNR.exe - Application Error The instruction at "0x012cf8d8" referenced memory at "0x02604b1c". The