Web Services with two different "headers" for Request and Response

Hello,
I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
I know exist an atribute called "SoapHeaderAttribute", the problem is his direction, just has one direction or two (in and out) but the same "header".
I hope you can help me.
Thanks in advance.

Hi MaxLeyton,
Thank you for posting in the MSDN forum.
>>I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
Since it is related to the Web, to help you resolve this issue as soon as possible, you could post this issue to the ASP.NET forum.
http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
Best Regards,
Jack
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.

Similar Messages

  • Split valuation for  material with two different price indicator S and V

    Hello Gurus,
    Is it possible to maintain split valuation for same material with two different price indicator S and V.
    For Ex. Material A is manufactured can be manufactured in house ,  procured from outside vendor and can be purchased from subcontracting vendor by providing raw material.
    We want to keep  Price control V for same material " A"  which is procured from outside vendor.
    And price control S for inhouse produced same material " A".
    Besically this material is semifinished and having BOM for subcontracting.
    Please advice.

    Hi
    When the material is split valuated, you maintain the accounting view for the material 1st with valuation category, here the price control should be V.
    When you will extend the material to valuation type "Inhouse mfgd" maintain the price control as S, for valuation type "Procured form outside vendor" maintain it as V.
    Regards
    Prasad

  • Best Practice for WSDL Generate Proxy Class for Web Service with Two Versions

    Dear All
    Thank you in advance for you help.
    I would like to generate proxy classes for same function but with two versions.
    Old version web service (v23.2) is used for stable modules in a project which is not going to modify.
    However, enhancement is added in new version web service (v24) and is going to use in any future modules.
    For example,
    wsdl.exe -o="TestProxy.cs" -l:CS -n:Test -sharetypes https://community.workday.com/custom/developer/API/Notification/v23.2/Notification.wsdl https://community.workday.com/custom/developer/API/Notification/v24.0/Notification.wsdl
    It generates similar classes with an '1' added at the end of the class name.
    ublic partial class Event_TargetObjectType {
    private Event_TargetObjectIDType[] idField;
    public partial class Event_TargetObjectType1 {
    private Event_TargetObjectIDType1[] idField; ...}
    Since the function inside some class is the same, is it possible for WSDL.exe to generate proxy classes automatically that if the class is the same, then generate one class only (sameFunction())  but if it detects the class is different, then add '1'
    to the end of class name (differentFunction() and differentFunction1())
    i.e.
    public class sameFunction()
    public class differentFunction()
    private int a;}
    public class differentFunction1()
    { private int b;
    Best Regards
    mintssoul

    Hi  mintssoul,
      As per this case, I have shared corresponding details below :
    1.As far as I know, WCF doesn’t support method overloading directly
    2.Because WSDL doesn’t support method overloading (not OOPs).
    3.WCF generates WSDL which specifies the location of the service and the operation or methods the service exposes.
    4.WCF use Document/Literal WSDL Style : Microsoft proposed this standard where the soap body element will contain the web method name.
    5.By default all the WCF services conform to the document literal standard where the soap body should include the method name.
    6.but you can differ the method in the same manually by using Name attribute like below 
    For example:
        [OperationContract(Name="Integers")]
        int Display(int a,int b)
        [OperationContract(Name="Doubles")]
    double Display(double a,double b)
    7. Or I suggest you that can use svcutil to map multiple namespaces for generating wcf service proxies .
        for more information about this, refer here :
    http://stackoverflow.com/questions/1103686/use-svcutil-to-map-multiple-namespaces-for-generating-wcf-service-proxies

  • Web Service Usage Discussion - Both for request and response.

    Hi,
    I have some discussion questions ( by the way i have done my search in the forums )
    1) How would you solve the problem of registering user from iphone application without making the user to enter a security code to prevent spam?
    ( We use graphical captchas to minimize the risk in web.. but what would you do or what are you doing to make a proper registration from iphone directly to the web server? ) I can request, user, pass,email and register the user, but i can not want him to click on the confirmation code that i've sent to his/her email.. He'll leave my application, click the link,... safari will open.. etc etc...
    2) How would you authenticate the user and send commands according to that session?
    Would you send user and pass in plaintext, like many web pages' login system..?
    And after that would you just get a session id from response and after that, would you use only that code to send new commands according to that authenticated user? like ( http://myserver.com/?cmd=message&text=hi&session_id=34524534 ) ? How would you implement, or you are implementing this in iphone application?
    3)What would you use to send commands to server? You use simple url request? ( maybe somewhat REST ) or would you send xml to the server? And how would you get the response? As an XML? as comma seperated simple mode, as JSON to parse? Or would you return property list recognized by iphone? Or.... Or?? What would you use, or what are you using? What's your idea to do it in a proper way? (I know that this can change from people to people, but at least we can see what everyone is telling.. )..
    What response type you prefer and why do you prefer it? For example, you are trying to avoid xml to stay away from parsing it without standard libraries... OR... ?
    I'll be glad if you share your ideas/experiences with us? We may learn new things/we may improve our selves/we may change the way we do these things, we may be happy together (:

    Hi MaxLeyton,
    Thank you for posting in the MSDN forum.
    >>I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    Since it is related to the Web, to help you resolve this issue as soon as possible, you could post this issue to the ASP.NET forum.
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
    Best Regards,
    Jack
    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.

  • One MIRO document with two different vendors for two different line items

    Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors.
    MIRO document needs:
    GR/IR Clearing    Dr.
    Freight Clearing  Dr.
    Vendor RM(X)         Cr.
    Vendor Freight(Y)   Cr.
    Is it possible to post the above document at a time not individually for each condition.

    Hi,
    Yes, It is possible to post Material and delivery cost in one document.where in material supplier is different than the Frieght vendor.
    Itm PK  BusA Acct no.   Description                    Tx     Amount in   USD   
    001 89       130001     Stock-Ingredients               244 0            880.00 
    002 96       320001     GR/IR Account - Ing.            244 0          1,200.00-
    003 86       520002     Ingredients - PPV               244 0          3,297.87 
    004 50       320008     GR/IR Account - Duty            244 0            797.87-
    005 50       320009     GR/IR Account - Fre.            244 0          2,180.00-
    Thanks
    Dinabandhu

  • Web Service with Drop Down Lists for database selections

    Hello,
    I want to define a Web Service with the JDeveloper which can do the following.
    I´ve got a database table with several columns which represents a customer adress and name.
    On a WebSite I like to have three Drop Down Lists to search in that table. The first list should include the field "name". When I select a name there the second list should show all streets (field "street") where people with the selected name live. When I select the street the third list should show me the house numbers (field "hn") of the customers with the selected name and street.
    What have I to do to define a application, a project and so on?
    Many Thanks!

    Hello,
    This question is not directly related to Web Services, since in this case you can consider that the Web Service is your "model" providing data to your view (JSP). One of the question I would like to ask you is: why do you want to use a Web Service to do that? and how you want to deploy this?
    In a general manner, if you use Web Service it is to be able to reuse the business logic in other projects, so based on this statement I would create a specific project that will contain you "model" so all your services.
    The to consume it from your JSP you have different ways:
    - create a Java proxy, or use @WebServiceRef to call the client
    - use Javascript to call the service directly from the HTML page, take a look to the Oracle Web Service endpoint page, where you can see some Javascript stub links.
    Please give more details about your project and needs and I will try to give you a proper answer.
    Regards
    Tugdual Grall

  • Calling a web service with two tables

    Hello all,
         I am having a problem calling a web service in VC which has data of the format order and orderitems.
    that is I have a record of information a recordset is part of that information. Please point to any blogs or any info available on SDN.
       I appreciate all your help
    Thank You
    Shekar

    Hi,
    Please check the below links.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/vc71/webServiceDestination.
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4679. [original link is broken] [original link is broken] [original link is broken]
    Govindu

  • Do we need to create two different home for UCM and WC?

    Hi All,
    I am trying to create Webcenter VM(oracle linux 5) with ECM I used 11.1.1.5.0 version for all installable.for creating this VM.
    here do we need to create separate Home for webcenter and UCM installations.
    any one give me some proper directions to installation of the same
    thank you!
    Siva

    yes i saw those folders but while installing I installed weblogic server in fmw folder.then Installed UCM on top of the i installed WC,but while installing WC its showing ora home is already exits select another or override. like that i am getting so i override. when i am creating domain its completed but i am not able to see startWeblogic.sh in bin folder of the domain.
    I realized that i did mistake while installation.
    can you please give me best infrastructure for web-center installation with all features(portal,sites spaces and content) I have sufficient memory to run multiple VMs.
    Thank you!
    Siva

  • Different Namespaces in request and response of a webservice in BPEL

    Hello I have created  a  piece of code in BPEL in JDeveloper where i invoke a partner link. The namespaces of the request differs from the name space of response of the wsdl.I have tried to just change the namespace of output variables to the required one in the wsdl and xsd .But it results in errors.
    Can some one suggest me a way of doing this.
    Regards
    Sam.
    PS:I am new to BPEL

    This is my wsdl
    <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions name="testprojectMS" targetNamespace="http://abcd.org/testprojectMS" xmlns:oldtns1="http://www.xyz.net" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://abcd.org/testprojectMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mrm1="http://abcd.org/testprojectMS">
    <wsdl:types>
    <xsd:schema targetNamespace="http://abcd.org/testprojectMS" xmlns:mrm="http://abcd.org/testprojectMS">
    <xsd:import namespace="http://www.xyz.net" schemaLocation="testproject.xsd"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="testproject_in">
    <wsdl:part element="oldtns1:testprojectIn" name="testprojectIn"/>
    </wsdl:message>
    <wsdl:message name="testproject_out">
    <wsdl:part element="oldtns1:testprojectOut" name="testprojectOut"/>
    </wsdl:message>
    <wsdl:portType name="testprojectMSPortType">
    <wsdl:operation name="testproject">
    <wsdl:input message="tns:testproject_in" name="testproject_Input"/>
    <wsdl:output message="mrm1:testproject_out" name="testproject_Output"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="testprojectMSSOAP_HTTP_Binding" type="tns:testprojectMSPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="testproject">
    <soap:operation soapAction=""/>
    <wsdl:input name="testproject_Input">
    <soap:body parts="testprojectIn" use="literal"/>
    </wsdl:input>
    <wsdl:output name="testproject_Output">
    <soap:body parts="testprojectOut" use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="testprojectService">
    <wsdl:port binding="tns:testprojectMSSOAP_HTTP_Binding" name="testprojectPort">
    <soap:address location="http://myhost/testprojectService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Please let me know where it went wromg

  • Compile build.xml with Ant for web service with annotations

    Hi Friends,
    I have a web service with annotations, using javax.annotation.PostConstruct, and javax.annotation.PreDestroy.
    I have a build.xml to create a EAR for this web service.
    When I run the ant task, the build complete successfully but the .war file cannot be deployed on the WLS server. Taking a closer look, I see that the required files such as, webservices.xml, weblogic.xml, weblogic-webservices.xml, Provision.wsdl files are not generated.
    Following is the build.xml file:
    <?xml version="1.0" encoding="windows-1252" ?>
    <project default="jwsc">
    <property file="build.properties"/>
    <property name="weblogic.jar.classpath"
    value="C:/bea_jDev/wlserver_10.3/server/lib"/>
    <property name="oimclient.jar.classpath"
              value="C:/_data/Project_Dc/OIM_jars" />
         <property name="com.jar.classpath" value="C:/JDeveloper/mywork/Service_Test/lib" />
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath>
    <path id="weblogic.classpath">
    <pathelement path="WEBLOGIC_HOME"/>
    <fileset dir="${weblogic.jar.classpath}">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    </classpath>
    </taskdef>
    <target name="all" depends="clean,build-service,deploy"></target>
    <target name="build-service">
         <jwsc srcdir="${src.home}" destdir="ear_directory" >
    <classpath>
    <path id="oim.classpath">
    <pathelement path="OIM_HOME"/>
    <fileset dir="${oimclient.jar.classpath}">
    <include name="**/*.jar"/>
    </fileset>
    <fileset dir="${com.jar.classpath}">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    </classpath>
    <jws file="${jws.home}" type="JAXWS" />
    </jwsc>
    </target>
    <target name="deploy">
    <!--add wldeploy task here -->
    </target>
    <target name="clean">
    <delete dir="output" />
    </target>
    </project>
    Can you please point out what else is to be done and where exactly am I going wrong in writing the build.xml file.
    Let me know if some else information is required.

    This is what I get when I run the ant task:
    Buildfile: C:\JDeveloper\mywork\ProvisioningService_Test2\Provision\resource\build.xml
    build-service:
    [jwsc] JWS: processing module /com/fox/provision/webservice/endpoint/impl/ProvisionEndPointImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /com/.../provision/webservice/endpoint/impl/ProvisionEndPointImpl
    [jwsc] [JAM] Warning: failed to resolve class org.apache.xmlbeans.XmlObject
    [jwsc] [JAM] Warning: failed to resolve class com.bea.xml.XmlObject
    [jwsc] [JAM] Warning: failed to resolve class javax.xml.rpc.holders.Holder
    [jwsc] JWS: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\endpoint\impl\..EndPointImpl.java Validated.
    [jwsc] Processing 1 JAX-WS web services...
    [jwsc] warning: Specified AnnotationProcessorFactory, 'com.sun.istack.ws.AnnotationProcessorFactoryImpl', not found on search path.
    warning: No annotation processors found but annotations present.
    2 warnings
    [jwsc] Compiling 2 source files to C:\DOCUME~1\....\LOCALS~1\Temp\_lsgijm
    [jwsc] Building jar: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\deploy\ear_directory\com\fox\provision\webservice\endpoint\impl\...EndPointImpl.war
    [jwsc] Created JWS deployment outputFile: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\deploy\ear_directory\....\...\provision\webservice\endpoint\impl\..EndPointImpl.war
    [jwsc] [EarFile] Application File : C:\..\...\..\...\code\ProvisioningService\src\com\.....\provision\webservice\deploy\ear_directory\META-INF\application.xml
    [AntUtil.deleteDir] Deleting directory C:\DOCUME~1\....\LOCALS~1\Temp\_lsgijm
    BUILD SUCCESSFUL
    Total time: 7 seconds
    Due to some limitations, I edited the path in the build.xml files.
    Please let me know what can be done. Thanks.
    Edited by: user9112073 on Nov 22, 2011 9:52 PM

  • How to use web services with Dynamic url behaviour

    Hi,
    IView created by me currently uses some web services whose url behavior is static but i want to give a dynamic url behavior. i.e. i want to use the url which user provides. So here are my questions
    1. How I shall assign the url supplied by the user to IView?
    2. If I want to set some config variables during runtimes how I shall do it?
    Thanks in advance,
    Vishvesh

    Hi,
    1. I'm guessing you mean the webservice's url the user provides is pointing to an identical webservice to what you used to create your proxy... otherwise I think it will be very hard to do (I can imagine creating the proxies using the wsdl tool in run time or using code dome.. but that can't be what you want, right?).
    So if what you wanted is to use the same web service with a different url, then the web service's proxy class you created has API for doing this in code! (it inherits it)
    2. you can't, simply since the portal application doesn't ever use the config file... it isn't even deployed to the portal... so dynamic properties are "out of the question" here, sorry... see 1 again
    Regards,
    Ofer

  • Wether can invoice have with two different VAT rates, 16%

    Dear SDN team,
    I have a requirement like a invoice should have two different VAT rates.
    Situation is below:
    A rebate agreement is created and it was settled partially and final settlement is also carried out.
    Rebate agreement nº  XXXXXXXX, with a validity period between the 01.05.2010 until 31.07.2010. This rebate agreement created the credit memo XXXXXXXXX with the VAT rate of 18%.
    Mean time the VAT rate was changed from 1st July from 16% to 18%.
    There are invoice created in the first half and others belonging to the second half.  Invoice created during the First Half it was created the VAT value with 16% (Before July)and the Invoice created with the Second Half it was created with 18% (After July1st).
    But customer request is to have an invoice with two different VAT rates, 16% and 18%. However, the invoice only takes into account the 18%.
    And i have suggested the below resolution - But user still needs to have two different VAT rates in one invoice for the line item this is for the have a legal precept which force me to have a different VAT rates depending on the original invoice date
    Please let me advice how to resolve this issue.
    Looking forward for your favorable reply.
    Thanks and Regards,
    Jana
    Suggested Solution:
    But having two different VAT rates in one single invoice or credit note is not possible at all.
    Further if you would liked to have different VAT rates for the two separate ivoices - This can be done by doing the Rebate agreement with partial settlement for the First half that is before 30.06.2010 and final settlement after 01.07.2010. By doing this rebate agreement will have two different invoices created with two different VAT rates.  But now this is not possible for the RA where it is done with final settlement.
    So, You can not have two different VAT rate in one single invoice.

    Dear,
    In order to solve this issue with wrong VAt rates I propose you to proceed as follow:
    1) Cancel the CN (Credit Note)
    2) In the CMR (Credit Memo Request) set the tax classification of the materials with wrong VAT % to 0 (inside the CMR in item-billing document).
    3) Maintain for the access sequence of MWST a higher access than the normal one for tax classification 0 with the old tax percentage (E.g.: 16% in your case)
    4) Determine a new pricing for the CMR (via menu path: Edit > New pricing document)
    At this stage your items will have some 18% and some 16% of VAT. When you create the CN those percentages will be kept.
    If you are satisfied with the result it is now a matter of making sure the program that prints your invoice is mentioning the different VAT rates of the items. As you didn't specify anything about this point, I seize the opportunity to advice you about. No matter of the type of print program you are using (SAP script, PDF or Smartforms), you need TO BE SURE that when the CN is created (with two different types of VAT %) also your PRINTOUT is properly created mentioning the two different rates and relative values.
    If not printed correctly because you did not foresee to have different percentages it is easy to solve it with a programmer.
    In case of questions or doubts do not hesitate to post back your answer.
    Regards,

  • Web services with XFire.

    Hi,
    I am completely new to web service with XFire topic and want to work on any sample application to get some idea on web services with XFire.

    check your Tomcat documentation and try to test with relative path
    Edited by: RezaRavasizadeh on Sep 2, 2008 5:40 PM

  • Two Extractor logics for full and delta?

    Hi,
    I have a situation where in the logics for full upload and delta uploads are drastically dfifferent!
    What is best way to deal it?
    shuould i have two different extractors for full and delta ?
    Raj

    Hi Raj,
    I hope that u are working with the Generic Extractors. If the volume of the posting is too high then u need to restrict the data definitely from R3 side interms of the performance. And u need to maintain the Delta Functionality for the same.
    If u cannt maintain the Delta from the R3 side then atleast try to restrict the same from BW side at the infopack level where u can extract the data based on the changed on and created with the two different IP's and update the same to the ODS(here make sure all the objects are with the overwrite).... and then u can maintain the Delta load from ODS to the Cube easily..
    If the volume of the data is pretty less then u can use Full load to the ODS and then Delta to the Cube.
    Thanks
    Hope this helps..

  • Web service in LV2013: Change answer for "Bad Request", "Access Error"...

    Hi there,
    I am building a large application in LabVIEW 2013. I use a Web Service Server in LabVIEW to communicate to other systems. All in all the new Web Service functions in LV2013 work pretty fine and Web Services are easy to implement. In case any Web Service is unknown or parameters (in the URL) are wrong, it returnsto the client a default error message (like: "Access Error: 404 -- Not Found" or "Access Error: 400 -- Bad Request"). Is there a possibility to change this default messages and its format (all answers in my application are in JSON, but errors appear in HTML)? I really need this feature.
    I spent a lot of time in the internet for finding an answer - but it seems that I am the first who need this feature. Thank you very much for any ideas.
    Attachments:
    AnswerOk.PNG ‏4 KB
    BadRequest.PNG ‏6 KB

    Hi Andy,
    I found a workaround: I added some additional resources using a link "http://localhost:8079/"NAME"/:x/:x/:x/:x/:x/:x/:x​/:x/:x/:x/:x/:x/:x/:x/:x/:x" for each type (PUT, GET, POST, DELETE) where I handle the error message with the "Set HTTP Response Code VI"
    Attachments:
    ws_error.PNG ‏9 KB

Maybe you are looking for

  • Adobe Premiere Pro 5.5 Crashes on start up

    I was editting on a Mac in Premiere 5.5. I was in one project, saved and exited and created another project. I finished it and tried reopening the first one, and now Premiere crashes after I choose a project from the opening splash page every time I

  • Photo Sharing not showing all photos via Apple TV 3rd Gen

    Hi Have Apple TV, 3rd gen, latest update of the software. Running 10.8.5 on a mid 2009 MacBookPro. When I select a few smart albums from iPhoto 09 (v. 8.1.2) and then select those albums to share/stream to my Apple TV via iTunes (11.1.3) only a few o

  • I paid for Adobe export PDF and only got one download.

    None of the links to help work. My subscription is clearly marked as currently but the programme is telling me I need to upgrade. Please help...

  • 2014 MAC MINI Expectations

    Greetings, after seeing Windows 8 and were Windows 10 is going I am jumping ship and moving over to mac. So I ordered the base line 2014 Mac Mini with 4gb 500gb. My intended usage is web Itunes light office work etc. No gaming video or photoshop work

  • Photoshop CC quits immediately upon startup

    I purchased the $9.99 photography membership last night and for some reason reason PS CC doesn't work. When I go to launch it, it boots up fine and then just suddenly quits, no error message or anything. I reinstalled everything a few times and it's