Two way WCF Service with default response

Hello All,
I have one schema that i need to expose as a WCF-Service. However, i want to send a response back to the caller (default response). This is just to acknowledge the caller.
Now how to create a two-way service that sends a default response always?
I can do this by creating a new response schema and defaut some value for that particualr field.
But without creating the response schema, is that possible to send response back to the caller?
Thanks
SKGuru

Hi
I was reading
this article.
As per my understanding ,I would try following
Create a request schema
Create a response schema ( any basic structure just a template to publish)
Use the Wizard to publish the schema
I would use my service operation method as "two way"
I will select the request schema as Request
It will select the response schema as response
It will generate a request response, two way receive port
I will write a custom pipeline to generate a blank response and try to configure it on the response. I think as per the notes we can configure the custom pipelines as notes says:
When using the wizard to create receive locations, the wizard creates the receive locations using the default values. The default value for the receive pipeline is the
Microsoft.BizTalk.DefaultPipelines.PassThruReceive pipeline. If messages received through the published WCF services require any special pipeline processing (for example, validation, correlation/property promotion, or inbound/outbound maps)
then you should set the receive pipeline to Microsoft.BizTalk.DefaultPipelines.XMLReceive, or to a custom pipeline by using the BizTalk Administration console.
I will try this and let you know.
HTH, Naushad (MCC/MCTS)
http://alamnaushad.wordpress.com, My New TechNet Wiki Article
“BizTalk Server: Performance Tuning & Optimization"
If this is
helpful or
answers your question -
please mark accordingly! Please
"Vote As Helpful" if this was useful while resolving your question!

Similar Messages

  • Expose an orchestration as WCF service with a Request-Response port set to Direct Binding

    Hello , 
      I'm trying to expose an orchestration as a WCF service (while the Request-Response port is set to Direct binding) . Is this possible ? (the issue will be correlating back the response to the synchronous WCF request after the response is posted back
    to the Message Box by the Direct Send logical port).
    I have no problem in exposing the orchestration while I'm setting the Binding port to 'Specify Later' (What I'm trying to do actually is to expose a orchestration using different adapters (like Http and Wcf ) in the same time ).
    Thanks

    Yes, you can publish an orchestration as WCF/Web service which has direct bound request-response port.
    Subscription works based on “EpmRRCorrelationToken”
    and “RouteDirectToTP”. When you enlist the orchestration which
    has the direct bound request-response port (also published as service), its subscription are based on above two context properties and they take care of correction.
    And also the response matches to the request part of the port due to the nature of two-way communication protocol.
    Create an Orchestration with direct-bound request-response port and publish it as service. This will work. Give it a try
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Error calling a BizTalk WCF Service with WCFTestClient

    I have published schema as a wcf service (WCF-CustomIsolated). I can browse to the wsdl from the local server and from my PC. I can call the service from a console application running on my pc, but when I attempt to add the service from the wcf test client,
    I get the message:
    Warning: No code was generated.If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or servicesor because all contracts/services were discovered to exist in /reference assemblies. Verify
    that you passed all the metadata documents to the tool.Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.
    Was there a configuration step I missed?

    Hi Jeremy, probably not a configuration issue. I remember reading somewhere the inability of the client to consume the service in such scenarios. I am assuming metadata publishing is enabled. Will try and search the article I read.q
    Praveen Behara
    MCST : BizTalk Server 2006 R2, 2010
    Yup, metadata publishing is enabled. I can browse to the wsdl.   This is a pure message solution, so I'm using a custom disassembler pipeline component to receive the request and generate a response.  When the wcf test client tries to add
    the service, the execute method of my pipeline fires, which seems odd to me, because we're not actually making a request at this point,  only trying to get the meta data I would think.
    When adding the service, wcf test client's request has an action of
    http://schemas.xmlsoap.org/ws/2004/09/transfer/Get with an empty body like this:
    POST http://myserver/MyService/test.svc HTTP/1.1
    Content-Type: application/soap+xml; charset=utf-8
    Host: myserver
    Content-Length: 512
    Expect: 100-continue
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
    <s:Header>
    <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action>
    <a:MessageID>urn:uuid:8bd3f321-0a94-44f1-9eb4-5575068cc408</a:MessageID>
    <a:ReplyTo>
    <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
    <a:To s:mustUnderstand="1">http://myserver/MyService/test.svc</a:To>
    </s:Header>
    <s:Body/>
    </s:Envelope>
    I'm assuming somehow the BizTalk receive location would have to be configured to behave differently under this circumstance instead of passing the message to the pipeline component...

  • OfficeJet 8500-A910 unable to establish two-way communicat​ion with the device

    I have an HP OfficeJet 8500 A910 installed a couple months ago.  On first install the HP software could communicate with it from two computers--one XP and one Win7.  Now I can scan to the locations I setup before and print from both computers, but when I try to run the HP software that was installed and working on either computer, I get "...unable to establish two-way communication with the device".  I have tried all the troubleshooting and downloaded the diagnostic tool.  I have disabled both the Norton and Windows Firewalls. 
    Any suggestions would be appreciated.

    I have a similar problem. Brand new HP Officejet Pro 8500A Plus, wire-connected to router.
    I am unable to print/scan/fax on my Windows XP when Symantec Endpoint Protection is turned on.  I have to disable it to be able to print/scan/fax. 
    I can do all capabilities with my Win7 computers.  This seems to be a Win XP related problem.
    I have checked for HP PML service...not listed.  I show HP Port Resolver and HP Status Server and PML Driver HPZ12 started.
    Doesn't bode well for keeping Viruses and other malware at bay.  Any suggestions?

  • Biztalk schema exposing as WCF service with multiple operations

    Hi,
    I am working on a design pattern to expose the BizTalk schema as a WCF service and thought of taking expert’s advice. I have a single schema with 30 different nodes and each one is a different message type. For this 30 message types we need to expose WCF
    endpoints to customer for consuming from their application.
    When I exposed this schema as WCF service, a single receive location got created in BizTalk application and in IIS there is one .svc file. I defined 30 operations for this while exposing the endpoint with wizard.
    Currently I came up with the below 2 approaches but I did not like them as there is more redundancy
    Create 30 different orchestrations and each orchestration subscribes to Message Box direct binding with message type as filter.
    Create a single orchestration that binds to single receive location( this location got created by wizard..) and access the operation/message type in the expression shape. Based on this value create 30 IF conditions for each message type. For this the
    single orchestration receive shape should have a message type of xml document and then access the type. Is it possible?
    I don’t like the above approaches as it is very difficult to maintain and also difficult to add for any new message type.
    Does anyone has good ideas for doing this?
    Thanks
    JB

    "Canonical Schemas" are used where multiple source messages need to be addressed by a SINGLE Operation !!!
    Every operation anyway translates to a separate process. Forget that we're dealing with BizTalk for a minute, when you're writing plain we services, you introduce new service contracts (operations) when you deal with different data contracts. To come back,
    in BizTalk your data contracts are your schemas. So when you have multiple schemas, each requiring different processing then you need different orchestrations.
    Let us for a minute assume you've defined a single service schema (very possible with a service header and a service details where the service data contract could differ). Now you use this schema to expose ONE service endpoint (good till now). In that service
    you're suggesting to ADD decisions (something like a switch statement where you'll do 'x' set of activities is the message is of 'x' type and so on... How is this sustainable? Every time you introduce an new operation, you'll have to tear down and redeploy
    the new orchestration which will affect all other operations. During the introduction of ONE op you may touch other parts of the orchestration (multiple branches in a parallel shape anyways make the orchestration very unwieldy from a code management/support
    standpoint) and introduce errors in existing ops.
    Regards. 

  • HP Laptop Computer, computer is unable to establish two way communicat​ion with the device (printer)

    HP Laptop Computer, Windows 7-64bits, no changes made to the system before issue occured.
    Printer: HP Photosmart Plus all-in-one B210a series.
    When I click onto my Ink Levels for my printer in my computer it goes to 63% and stops. Then it says; The computer is unable to establish two way communication with the device. All systems are up and running and there is no reason I should be having a problem.
    I can print, Fax and Scan, I don't get blank paper from printer, printer is not jammed, nothing in Queue to stop it from printing. It just won't show my Ink Levels from my computer.
    This question was solved.
    View Solution.

    @marymay222, I will be glad to assist you on how to uninstall the software and drivers for the printer. 
    1. Click on the start menu
    2. Choose all programs
    3. Select the HP folder
    4. Highlight the printer name
    5. Select the UNINSTALL tab
    This will uninstall the software and drivers. After it completes, reboot the computer. 
    When it comes back on, insert the CD, if you still have it. If you do not have the CD, you can download the drivers from the website. 
    http://www8.hp.com/us/en/support-drivers.html
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Two-way video chat with other (audio-only) participants?

    Is it possible to have a five-way chat in iChat with
    . - myself and one other participant via video, and
    . - three other participants via audio only?
    I know there's an option for one-way video conferencing, where only one person in a conference has video and the other(s?) have audio, but what about two with video and the others with audio?
    And if we did this, could the three audio participants see the two video participants even if the three don't participate via video?
    Message was edited by: Quelque

    Hi,
    You can start A One Way Video chat with a Buddy without a Camera.
    You can add others up to the standard 4 people (you and three others) and some can be audio Only.
    You do have to have a Mac of a G4/1Ghz dual or above and have a Upload speed of 256 k at the very Least (Apple Specs say 384k) although more is preferable when you are Host.
    Ideally the Host should be the fastest Mac with the fastest connection.
    Invite Camera able Buddies first then Audio Only Buddies by clicking on the green A/V icon they are showing in the Buddy list.
    8:20 PM Saturday; April 18, 2009

  • Synchronous Composite Services with Immediate Response

    Hi
    The paltform is currently SOA 11.1.1.2.0 which is to be moved to SOA 11.1.1.3.0 once environments are complete
    Essentially I have a requirement by where the way we build some of our composites needs to apply to a certain pattern. This patterm is a synchronous request - response by where an immediate response to the client / calling service is provided. By this I mean a client / service will call a SOA composite, the callled composite will receive the message and reply imemdiately with some tracking information and then the called service will carry on its processing. However in terms of the client / callee service the interaction is complete. (e.g. do not provide further updates).
    The above is an adaptation of Fire and Forget however we desire to pass back some meaningful trascking / support information to the client.
    Following implementation of this in development, we have noticed that the interaction is essentially blocked until all services are complete. Therefore A --> B --> C, even though B has responded to A and then called C, A remains running until all composites are complete
    I'd envisage this is related to transactions and threads etc, however I was wondering if there were any properies thats could be set to alleviate this problem. I have considered using bpel.config.transaction etc.
    Currently placing a checkpoint (by no means ideal) after the reply resolves the issue. Presumeably as this forces dehydration
    Any thoughts would be appreciated
    Regards Dave

    Hello Dave,
    From my point of view, you should pass the message (immediately after receiving) to a intermediate storage (AQ, JMS, FILE/FTP) and then reply back with required info to the client. Let process C poll the intermediate location for incoming messages and perform rest of the processing. So calls will be like -
    A--> B --> Storage (JMS/AQ/FILE/FTP)
    Storage --> C
    Above solution would be good in case the frequency of messages from client is high. I don't know whether it fits in your requirement but this is an option.
    Regards,
    Anuj

  • How to use two sets of books with one responsibility

    Does anyone know if it is possible to run reports in the General Ledger business area of the Oracle EUL against two or more sets of books with the same responsibility? For example, I want a regional finance manager to be able to run a Discoverer GL report for both Bolivia and Peru using their South America GL Manager responsibility. It looks like you can do that for AR using HR security profiles but I'm not sure how to do it for GL. Thanks.
    Greg

    Hi,
    There are two types of security: business areas security which allows a user to access the folders in a BA and is controlled through Discoverer; and data security which filters the data returned in the report. The data security is usually implemented as a condition in the views mapped in the EUL, though it can be implemented as mandatory conditions in the EUL. The data security is controlled by Application system profiles.
    In your case you will have conditions in the database views which only returning data for the set of books defined in the profile for the current responsibility. To bypass this security so that a responsibility can report on multiple sets of books you need to create new folders in the EUL that map onto database view or tables that do not have the data security.
    Hope that helps,
    Rod West

  • HT1386 I am unable to get a two way calendar sync with my iPhone 4s and my mac's ical.  iTunes syncs my mac's calendar to the phone, but not the other way.  I do not use iCloud and I cannot find any menu for removing sync history as described by others.

    I have spent 3 hours trying to get my ical updated on my mac with events added to my iphone calendar. Itunes will sync the calendars from the mac to the phone, but not vice versa.  I have read every post which relates to this problem, but I do not use iCloud, there is no iSync app on my mac, and there is no menu to delete sync history under system preferences.  My mac is fairly new and is running Mac OS X 10.7.4.   I tried to delete the iphone from itunes and start over, but can't even do that.   Now what?  Any advice short of throwing both devices out the window?

    For resetting the sync history on a Mac running Lion - 10.7.x if needed.
    http://support.apple.com/kb/TS1627
    If you see the Sync menu in the menu bar, skip to step 3: 
    If you do not see the Sync menu in your menu bar, skip to step 7.
    Hold the Option key on your keyboard, then click the Sync menu in the menu bar:   
    if you see the Sync menu but you are unable to open it, skip to step 8.
    Choose Reset Sync Services.
    Click Reset Sync History.
    Test for the original issue. If the issue persists, or if you are unable to open the Sync menu, follow these steps:
    In the Finder, choose Utilities from the Go menu.
    Open Terminal.
    In the Terminal window, type or paste the following command on a single line:
    /System/Library/Frameworks/SyncServices.framework/Versions/A/Resources/resetsync .pl full
    Press Return.
    Quit Terminal after the operation has completed (when Terminal returns to the command prompt with a $).

  • Hp officejet 4500 g510n-z computer is unable to establish two-way communicat​ions with the device

    Control panel shows the printer is ready and online.  Error says computer is unable to establish communication with the device?  Solution Center says 'disconnected'? Windows firewall is disabled.

    If you are using Snow Leopard, Lion or Mountain Lion and have HP software for pre-Snow Leopard (either from a CD not marked as compatible with 10.6 -10.8 or you recently upgraded to Snow Leopard, Lion or Mountain Lion and had the HP software on your Mac before you upgraded - even if you did a standard uninstall of the old software or installed new software over the top of it) you must uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall <<<< This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Restart your Mac
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Unable to establish two way communicat​ion with this device

    I have an HP Officejet 6500A Plus E710n-z. When I try to check the ink levels, it gives me this message on my computer. It used to work, but now it doesn't. My husband's computer is also hooked to this printer, and he cannot check the levels either.

    Hi,
    Does it happen again after you reboot your PC
    Although I am an HP employee, I am speaking for myself and not for HP.
    ***Say thanks by clicking the "Kudos! Star" which is on the left***
    **Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.**

  • Problem in run Wcf service that published with Wizard

    hi
    i published my orchestration as wcf service with biztalk wcf service publishing wizard .it located in my IIS . but  any time  i try to access to tis wcfservice with my browser i just recive this error .
    where is the problem?
    Error:
    Server Error in '/BizTalk_Server_Project5' Application.
    Login failed for user 'IIS APPPOOL\DefaultAppPool'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\DefaultAppPool'.
    Source Error: 
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace: 
    [SqlException (0x80131904): Login failed for user 'IIS APPPOOL\DefaultAppPool'.]
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    Microsoft.BizTalk.TransportProxy.Interop.IBTTransportProxy.RegisterIsolatedReceiver(String url, IBTTransportConfig callback) +0
    Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfIsolatedReceiver`2.RegisterIsolatedReceiver(Uri uri) +675
    Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHostFactory`3.CreateServiceHost(String constructorString, Uri[] baseAddresses) +231
    System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440
    System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615
    [ServiceActivationException: The service '/BizTalk_Server_Project5/WcfService_BizTalk_x0020_Server_x0020_Project5.svc' cannot be activated due to an exception during compilation. The exception message is: Exception has been thrown by the target of an invocation..]
    System.Runtime.AsyncResult.End(IAsyncResult result) +679246
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190
    System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +300622
    System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +8837348
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    You get this error because your published orchestration (WCF service) is running in an application pool (IIS) which security user is not a member of the BizTalk Isolated Host Users group.
    To solve this issue create an application pool with a security user that is part of the BizTalk Isolated Host Users Group or check the current application pool and add the user to the BizTalk Isolated Host Users.
    Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu

  • Adding Silverlight-enabled WCF Service failed with error code 50

    Hello everyone,
    I am very new to Silverlight ,and I am working on silverlight with WCF.
    When I tried to add a silverlight-enabled WCF service. I kept getting the error
       Method failed with unexpected error code 50.
    I am working with Silverlight 5 and VS 2013 ,I have no idea about it. I appreciate that if anyone can help?
    Thank you

    Hi,
    Please make sure your wcf is valid.
    Here are some resources which could help you:
    https://msdn.microsoft.com/library/cc838234(VS.95).aspx
    http://www.codeproject.com/Articles/262164/Using-WCF-Service-with-Silverlight#_articleTop
    Best Regards,
    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.

  • Messaging only: WCF-BasicHTTP adapter Request-Response correlation

    Hi,
    we have a solution where we make a soap web service call to a third party.
    we do not want to use orchestrations.
    we are in need to pass a value to the third party service and we would
    like to have that value passed back to us in the response.
    However, the third party is not guaranteeing this.
    as an alternative, i tried promoting  a property into the context
    before the outbound call and check if this is still available in the context when the response come thru.. but no luck here.
    IS there any other way to achieve this?
    regards,
    MS

    Hi MS,
    What is your question? When you use Request-Response (Receive) port and solicit-Response (send) port, the correlation would happen out-ob-box with the help of EpmRRCorrelationToken, CorrelationToken and RouteDirectToTP
    properties.
    Are your not using the solicit-Response (send) which would take care of the correlation to  Request-Response (Receive) port. Ensure you're using the XML-Transit (on send) and XML-Receive (on receive) pipelines on these two way ports (in both Request-Response
    (Receive) port and solicit-Response (send) port)
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for

  • Aperture 3.3 and Outlook

    Hi I have Aperture 3.3.2 and mountain lion on my new mac book retina but I can not email photos using Outlook 2011. When I click 'SHare' outlook opens up an email with the title called 'Files' but no files are attached.

  • Error in executing wilcard query, strange!!!

    Select c1.docid from S3TSTPUBG.cmdoccontents c1,S3TSTPUBG.cmdocuments c2 where (contains(CONTENTDATA, ' ( (%mad% WITHIN searchkeywords ) WITHIN en ) ', 1 ) > 0 ) gives 0 results ....(valid query) whereas Select c1.docid from S3TSTPUBG.cmdoccontents c

  • Configuring max no. of open pipes

    I'm getting a problem with a customer application which fails with "Error 24 popen() too many open pipes". What is the maximum that is being hit ( I'm guessing 255?) and is it configurable i.e. can it be increased. I'm looking for a workaround in the

  • Missing camera and lens profiles in CS6 upgrade

    I have just upgraded from CS5 to CS6 on OSX 10.7.5 and am running the latest software (ie CS6 13.05 and ACR 8.2.0.94).  My old Canon 7D profiles are available in CS6 but I can't see any profiles for the latest cameras like the Canon 6D or Ricoh GR (a

  • Hard Drive for Mac Pro

    I am looking for suggestions for another internal Hard Drive. I currently have 250GB and it is reaching its capacity. I would like to have another 320-500GB drive. No raid configuration, just another hard drive mounted on my desktop to store my VHS a