Jax-ws:  Examples for @ResponseWrapper @RequestWrapper...and Issues!!!

Hi,
i'm trying to use on my web services this annotations:
@ResponseWrapper @RequestWrapper, but without any success!
I have this example
For HelloWorld.java:
package demo.spring;
import javax.jws.*;
import javax.xml.ws.*;
@WebService
public interface HelloWorld {
     // Meta-Attributes//
     @WebMethod(operationName="getSay")
     @RequestWrapper(className = "java.lang.String")
     @ResponseWrapper(className = "demo.spring.AddressWrapper")
     AddressWrapper sayHi(String text);
// END SNIPPET: service
For HelloWorldImpl.java:
import javax.jws.*;
import javax.xml.ws.*;
@WebService(endpointInterface = "demo.spring.HelloWorld")
public class HelloWorldImpl implements HelloWorld {
public AddressWrapper sayHi(String text) {
return new AddressWrapper("Hello " + text);
// END SNIPPET: service
AddressWrapper.java:
public class AddressWrapper {
//Properties//
     String nome;
     public AddressWrapper () {}
     public AddressWrapper (String valor)
          this.nome=valor;
     public String getNome()
          return nome;
     public void setNome(String me)
          nome=me;
     public String toString()
          return nome;
What happens here? The webservice doesn't return anything! But, without @RequestWrapper, @ResponseWrapper, everything is ok!
Why that?
Thanks a lot!
Orlando Agostinho

Updating myself....
I now believe that the <xs:annotation><xs:appinfo> is for when you are modifying the schema so that you don't need the external bindings file. As a result I have modified my xjb as follows:
<bindings xmlns="http://java.sun.com/xml/ns/jaxb"
          xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc"
          xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
          version="2.1">
       <jaxb:globalBindings>
          <xjc:treatRestrictionLikeNewType/>
       </jaxb:globalBindings>
</bindings>This removes the error that xs:annotation is not associated with any schema element but results in the same error -
[ERROR] Base complex type "A" is derived by restriction, while this complex type "B" is derived by extension. This is not currently handled by XJC, but we are seeking input on this issue. Please report this to the JAXB team.So it seems that my bindings file is either being ignored by wsimport or is still just plain wrong. Any suggestions.
Thanks

Similar Messages

  • Hi All,Can any provide an example for SAP MEMORY AND ABAP memory

    Hi All,
          Can any provide me an example for SAP MEMORY AND ABAP memory.
    thanks&regards.
    Bharat.

    HI Bharat
    A simple example of ABAP memory is using the EXPORT/IMPORT statements.
    Here in this program, I get the data, export it to memory,
    clear out the internal table in my progam, then reimport the data into it and write out the data.
    You probably wounldn't do this in a normal program,
    but this is how you can pass data from program a to program b when A Submits program B.
    report zxy_0002 .
    data: it001 type table of t001 with header line.
    select * into table it001 from t001.
    export it001 = it001 to memory id 'ZXY_TEST'.
    clear it001. refresh it001.
    import it001 = it001 from memory id 'ZXY_TEST'.
    loop at it001.
    write:/ it001-bukrs, it001-butxt.
    endloop.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access.
    You can use SAP memory either to pass data from one program to another within a session,
    or to pass data from one session to another.
    Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
    These parameters can be set either for a particular user
    or for a particular program using the SET PARAMETER statement.
    Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
    The most frequent use of SPA/GPA parameters is to fill input fields on screens
    ABAP/4 Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access
    using the EXPORT and IMPORT statements.
    Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling,
    the data needs to be placed in ABAP memory before the call is made.
    The internal session of the called program then replaces that of the calling program.
    The program called can then read from the ABAP memory.
    If control is then returned to the program which made the initial call, the same process operates in reverse.
    SAP memory
    The SAP memory, otherwise known as the global memory,
    is available to a user during the entire duration of a terminal session.
    Its contents are retained across transaction boundaries as well as external and internal sessions.
    The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
    ABAP/4 memory
    The contents of the ABAP/4 memory are retained only during the lifetime of an external session
    (see also Organization of Modularization Units).
    You can retain or pass data across internal sessions.
    The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Set
    http://www.geocities.com/SiliconValley/Campus/6345/set_para.htm
    GET
    http://www.geocities.com/SiliconValley/Campus/6345/get_para.htm
    EXPORT
    http://www.geocities.com/SiliconValley/Campus/6345/export01.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bc4358411d1829f0000e829fbfe/frameset.htm
    Other Imp Help
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    Regards Rk

  • Any charge for free app and issues at Apple Store?

    In case we need to create free issues or even apps for iPad (from a non-profit organization), what will the incurred costs be through the whole process?
    i.e. From the time of development of issues and the app in which the issues may work - is there any registration or license fees involved, till it reaches all customers - provided the package is for free?
    Any charge for free app and issues at Apple Store for iOS apps for iPad?

    You must pay the USD$99 fee to join the Individual Developer Program.
    After that, there is no fee to put free apps into the iOS App Store.

  • Report for Req Material and Issue Material for Project/WBS

    Dear All,
    My client need a report for a WBS element-wise material required and material issue with value.
    Let me know if any standard report avialble for same??
    Or Incase of devlopment which are the tables we can use to Get req qty and issue qty of materials?
    Thanks and Regards,
    Atul R. Rajmane

    Dear Shirkant,
    Thanks for your input. I am using CN52N report.
    I this I have selected Req Qty, Qty Received, Qty Withdrawn, Shortfall Qty. I am getting figures in  Req Qty, Qty Withdrawn, Shortfall Qty but I am not able to get Qty Received figure. Let me know how I can get it i.e. for this any Note is required or any other configuration??
    If I can get this figure than I can use this report for requirement.
    Thanks and Regards,
    Atul R. Rajmane

  • Example for Using WDR_SELECT_OPTIONS and SALV_WD_TABLE in one View

    Hello,
    I need an Example for Using the WD-Components WDR_SELECT_OPTIONS and SALV_WD_TABLE
    in one view. Can anybody help me?
    Thanks
    Toto

    Hello,
    Please see these:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637]
    [/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application]
    [/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
    Regards.

  • Examples for SAP Memory and ABAP Memory

    Hi all,
        can u give me one example of sap memory and abap memory.
                                              Ranjith

    Hi,
    <b>SAP Memory</b>
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program at the time of logon using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens .
    <b>example:</b>
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
    To fill one, use:
    SET PARAMETER ID pid FIELD f
    This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID pid FIELD f.
    This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
    <b>ABAP Memory</b>
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this memory area remains throughout a sequence of program calls, with the exception of LEAVE TO TRANSACTION. To pass data to a program that you are calling, the data needs to be placed in ABAP memory before the call is made from the internal calling session using the EXPORT statement. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory using the IMPORT statement. If control is then returned to the program that made the initial call, the same procedure operates in reverse.If a transaction is called using LEAVE TO TRANSACTION, the ABAP memory and the call stack are deleted. They cannot be used for data transfer.
    Since objects belonging to ABAP objects can only be accessed within an internal session, it does not make sense and is therefore forbidden (from a syntax point of view) to pass a reference to an object to a calling program through the ABAP memory.
    <b>Example:</b>
    Export hello to memory id 'Hello_world'.
    Import hello from memory id 'Hello_world'
    Regards
    Sudheer

  • Example for FM 'ISU_O_STREET_ROUTE_OPEN' and 'ISU_O_STREET_ROUTE_CHANGE'

    Hi all,
    I have to use the function modules 'ISU_O_STREET_ROUTE_OPEN' and 'ISU_O_STREET_ROUTE_CHANGE' to update the street route sequence.
    Can anybody give me the example of how to use these function modules.
    I will apprciate if you give me detail explanation with example of these FMs. I am unable to find the details about these FMs.
    Thanks and regards,
    Praphulla
    Edited by: Praphulla Ramesh Kanade on Feb 15, 2012 2:32 PM

    Hello , regarding your questions I can give you some solutions(questions 2 and 3)
    You can create for the street a cleaning object and for each customer from the street must be created an subordinated cleaning object in this way you will be able to create waste disposal orders for the street , and for all the cleaning objects (streets) in the service frecvency you can alocate the same route.
    About you first questions I will be also happy to find an appropriate solution, but I will try, I'm new in this industry.
    Best, Regards Stelian

  • Alternate idea for XMP storage and issue over RAW-JPG pairs.

    Posted by me first in http://www.adobeforums.com/cgi-bin/webx/.3bc35b1d/16
    >DonRicklin - 3:25pm Mar 10, 07 PST (#16 of 17)
    I'm think that maybe what needs to happen here is not necessarily having the JPEGs show in LR, but when they are present that they are used as the Sidecars to the RAWs for storing the Metadata for both, instead of having a third file, ie XMP sidecars.
    Now for me, my camera does not produce both together, so LR would do the current XMP sidecars, but for others it would use the JPEGs instead, and update them for the preview. Also, if desired, by option show them in a stack with the RAWs. I think this would be much the best option for many that Adobe could provide.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.8 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

    hi all,
    as a professional photojournalist i am with you rory. the fact that i can not import and store both RAW and JPEG at the same time and keep them side by side is really serious oversight on adobe's part. it makes LR all but unusable for me. as i said in my library hell post, i am on tight deadlines and don't have time to mess around. i need to keep and manage both kinds of files for work purposes.
    camera manufactures have implemented the RAW/JEPG combo because the pros have demanded it. canon even allows the RAW and JPEG files to be stored on separate cards as a back up in case one card gets corrupted.
    so, please alex, don't try to market this bug to me as a benefit because adobe has crossed the final frontier of image editing software and i just don't "get" their hip new idea. even a program as humble as iphoto keeps jpegs and raws together without issue. what is the point in having a library at all if images can not be stored and organized in a logical manner?? also, for those who wish to shoot only one format there is a very easy option - don't turn it on in the camera.
    and don, i would be interested to hear more of your idea, though for me i would like to see all files treated equally be they JPEG, RAW. TIFF, PSD. at any rate i think it is really urgent for adobe to address this issue.
    i would like to request that adobe implement the standard storge/organizational scheme with RAWs and JPEGs being imported simultaneously and stored side by side. further, i am requesting that any other file types of the same image also be stored side by side with the master image.
    regards,
    photo_j

  • Using Earmark Budget for Material Reservations and issues

    Hi,
    Can we reserve fund (earmark) for a stock reservation transaction and use the same reserved fund for issuing stock again that reservation (Fund and Stock).
    What settings are required in Funds Management to achive this.
    Regards
    Kuna

    Hi,
    You have to define earmakred fund type (Reservation) and then, while doing goods issue, assign the document to it in account assignment. You can make this field mandatory, so no goods issue will be done without stating earmarked fund. The availability will be checked versus the amount in the earmarked fund.
    Regards,
    Eli

  • Support for an Upgrade and issues with Hard drive full.

    I am on 10.6 Snow leopard and I need to get migrated into something later so I can take on better technology such as the ICLOUD and maybe get more productive. I am out of space on hard drive also and I have an older MAC. What can I do to keep going and maybe get upgraded and also not loose data. ? any suggestions, The Maverick upgrade says my older mac is not compatible.
    Thanks
    Steven Moore PS

    I would be 'careful' and cautious with WD MyBooks anyway, but FW800 can be a great external off line backup.
    What I would do is split two 1TB drives:
    Drive A: OS and apps, 2nd partition for backup of Drive B which has all your media and data files.
    Drive B: most all of your documents, video, music, photo, etc. which gets backed up to the 2nd half of boot drive.
    Also, leave room for a backup of Drive A's OS and applications and for repairs and such like Disk Warrior.
    It makes a "criss-cross." Great for dual drive setup.
    I'd put your 250GB drive in FW case for backup also running Disk Warrior maintenance.

  • The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

  • Examples for Fixed and variable prices for activity type

    Hi,
    Can someone please provide a real life example for the fixed and variable prices of an activity type?
    Moderator: Search SDN and SAP help material

    Hi,
    Fixed Price are those expenditures which remains constant in total amount irrespective of change in Volume of production.Eg Rent will be constant even if your production volume changes.The activity price calculated for such expenditures will also be constant per activity rate even if there is a change in the volume of production.
    Varriable price on the other hand changes with the volume of production .e.g power cost will change if you produce more.the the activity rate say KWH/ton will also change and its price will also change if you produce more.
    Generally activities for service center fixed costs will yield fixed price.
    Once you are done with planning in KP26.these plan amounts are used for standard cost estimate.when you are doing standard cost estimate, cost will calculated from BOM(Materials cost) and Routing(here you have activitype plan cost/hr.no.of hrs to finish goods).
    once you are with standard cost estimate it will update material master.
    To calculate variances(target costs Vs Actual cost),we use target cost.target cost is nothing but your standard cost estimate cost for that particular materials(Finished or Semi -Finished).
    you can check this in OKV6 T.code.
    Thanks,
    Rau

  • Trnsfr Rqmnt created via PP for discontinuation mateiral and follow up mat

    Hi,
    Production order was created and it has PN A which has been set for discontinuation (1) with follow up material B. The effective out date is in the future.
    When generating WM Picklist, TR was created for both parts and issued. On confirmation only the part marked with discontinuation was consumed.
    How can i not generated TR for the follow up part?
    Thanks
    Jithin

    In the production order components details, there is a column for Discontinuation of the components.
    If you do not want the TR to be generated for follow up material, then in the material master(MRP 4) view of the parent component remove the followup material first and then uncheck the Discontinuation column in the order.
    If you want to discontinue the parent component from now with a followup material put "5" into the column it.It also has a option of simple discontinuation as "1" where in TR for the followup material will not be generated.

  • Error from building medrec example for weblogic 10

    Hi,
    I tried to re-build medrec example for weblogic 10 and got error below. What was wrong?
    Any information would be appreciated. Thanks in advance.
    D:\bea\wlserver_10.0\samples\server\medrec\src>ant
    Buildfile: build.xml
    init:
    [echo] #### S T A R T M E D R E C ####
    [echo] Started on December 10 2007 at 0856
    build:
    banner:
    [echo] --------------------------------------------
    [echo] + Building StartBrowser Ear +
    [echo] --------------------------------------------
    build:
    BUILD FAILED
    D:\bea\wlserver_10.0\samples\server\medrec\src\build.xml:26: The following error occurred while exec
    uting this line:
    D:\bea\wlserver_10.0\samples\server\medrec\src\startBrowserEar\build.xml:50: Problem: failed to crea
    te task or type wlcompile
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.

    open a new command window , run setDomainEnv.cmd and in the same window run ant task.

  • Project Risk and Issue link in PDP

    Hi ,
    I need to create issue item in a PDP with the New item form.
    In my organization people don't want go another page for creating issues , risks and deliverable.
    How to integrate with these item in a PDP or how to put direct link for create new item in a PDP.
    Another PDP they need to show the created items also .
    Is there any way to do this scenario?

    Hi,
    You will find below 2 blogs with the procedure for displaying risks and issues lists in a PDP.
    http://nearbaseline.com/blog/2015/03/project-site-risk-list-in-a-pdp-webpart-2013-version/
    https://pwmather.wordpress.com/2014/04/11/want-to-see-risks-and-issues-on-a-projectonline-projectserver-project-detail-page-ps2013-sharepointonline-sp2013-office365-javascript-jquery/
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

Maybe you are looking for

  • RAZR MAXX drops calls "on command" and randomly

    I have a RAZR MAXX (two months old). If I use my Plantronics Pro HD Bluetooth device, the phone will suddenly drops a phone call without any reason. If I don't use the BT device and use only the phone/speaker, everything is working fine. The same goe

  • How to enable your disabled iPhone

    How do I enable my disable iPhone?

  • Clip Book

    Every time i open a webpage, a HP Smart Web Printing Clip Book  window opens up as a left column.  How can I get rid of this? It is so annoying. George Kassis

  • Raw files Adobe Photoshop Elements  & Nikon D7100

    Raw files from my new camera Nikon D7100 is not supported with my current Adobe Photoshop Elements 9. I have uploaded Adobe DNG converter for now but would like to know if I purchase Adobe Photoshop Elements 12, would it support the raw files from my

  • Unable to connect to internet error on torch

    when i try to use the internet i get the error "unable to connect to the internet please try later" i have BIS calls are fine My home wifi broadband is working on my laptop neither home wifi or mobile network connect but both are ticked/enabled it ha