Converting from xsd:string into soapenc:string

Hi.
I was successfull in invoking an axis web service with complex type definitions.
However, when building and deploying the process flow, I get a warning message as follows:
" [bpelc] [Warning]: Trying to assign incompatible types
[bpelc] [Description]: in line 53 of "C:\eclipse\workspace\ComplexTypeWSFlow\TimeSheetProcess.bpel", <from> value type "{http://www.w3.org/2001/XMLSchema}string" is not compatible with <to> value type "{http://schemas.xmlsoap.org/soap/encoding/}string".
[bpelc] [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query.
[bpelc]
[bpelc] [Warning]: Trying to assign incompatible types
[bpelc] [Description]: in line 58 of "C:\eclipse\workspace\ComplexTypeWSFlow\TimeSheetProcess.bpel", <from> value type "{http://www.w3.org/2001/XMLSchema}string" is not compatible with <to> value type "{http://schemas.xmlsoap.org/soap/encoding/}string".
[bpelc] [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query."
My question is:
How can I convert between xsd:string and soapenc:string types when using the "assign" activity so I don't keep getting this warning message?
Regards

Hi Paulo,
This warning has been fixed in recent builds. eventhough soapenc:string is different type, it extends xs:string and its simple content. the compiler shouldn't display warnings for this case.

Similar Messages

  • Is there an easy way to convert from a String with a comma, ie. 1,000.00 to

    Is there an easy way to convert from a String with a comma, ie. 1,000.00 to a float or a double?
    thanks,
    dosteov

    Like DrClap said: DecimalFormat. However, make sure you understand the Locale things, as explained at http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html (which refers to NumberFormat as well) and use them explicitly. Like
    public class FormatTest
      public static void main(String args[])
        try
          // see NumberFormat.getInstance()
          DecimalFormat fmt = new DecimalFormat();
          Number num = fmt.parse("1,000.01");
          System.out.println(num.doubleValue());
        catch(ParseException pe)
          System.out.println(pe);
    }most likely seems OK on your system, but may print "1.0" (or even fail) on some non-English platforms!
    When performing calculations, also see http://developer.java.sun.com/developer/JDCTechTips/2001/tt0807.html
    a.

  • Convert from std::string to CString in UNICODE builds

    Actually I tried all ways but they didn't help me. 
    Is there any working code to convert from std::string to
    CString in UNICODE builds?
    Thanks.
    Mirjalal

    Using non-Unicode string literals in VC++ is asking for trouble, the exact result depends on the codepage of the system used to compile the program and the codepage of the system used to run the program. For example on my system I get 2 question
    marks instead of one, one for ş and one for ə.
    I also get to compilation warnings:
    warning C4566: character represented by universal-character-name '\u015F' cannot be represented in the current code page (1252)
    warning C4566: character represented by universal-character-name '\u0259' cannot be represented in the current code page (1252)
    The easiest solution is to use Unicode string literals and std::wstring:
    wstring z = L"nüşabə";
    CString cs(z.c_str());
    nameData.SetWindowTextW(cs);
    If you can't do that things will get complicated. If you need help with this please give more information. Knowing the compiler version and the system codepage would be useful.

  • Converting from spreadshet string to array and then back to spreadsheet string

    My questions is; why is the Spreadsheet string to array function creating more data than the original string had when you change the array back into a spreadsheet string. Im trying to analyze a comma delimited file using array functions since my column and row size is constant, but my data varies. Thus my reason for not using string parsing functions which would get more involved and difficult. So, however, after i convert to a 2D array of data from the comma delimited file I read from, and then I convert back to string using the Array to Spreadsheet String, I get added columns to the file, which prevents another program from receiving these files. Also, the data which I am reading is not all contiguous, it has gaps in some places for empty data. Looking at the file compared to the original after it has gone from string to array and then back to string again, looks almost identical except for the file size which got larger by 400 bytes and where the original file has empty spaces, the new file has a lot of commas added. Any idea?
    Charles

    The result you get is normal when the spreadsheet string contains rows of uneven length. Since the array rows have the same number of elements, nil values are added during the coonversion. And of course, the back to string conversion keep those added values in the string, with the associated commas.
    example : 3 x 3 array
    1,2,3
    4
    5,6,7
    is converted into
    1 2 3
    4 0 0
    5 6 7
    then back to
    1,2,3
    4,0,0
    5,6,7
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to convert from .XSD to .DTD?

    Hello.
    From my Physical Schema i use the JDBC Url read XML files.
    I have a .xsd definition file that i want to use reading my .xml file, and get it into my database.
    As far as i can see i will have to convert the .xsd file to a .dtd file to be able to use the definition file. I can't use the .xsd file directly - right?
    How can i do this operation - transforming my .xsd file to a .dtd file in Data Integrator? Or do I need another tool to do this?
    Thanks for all answers.
    bi

    No, you CAN use XSD file directly. in th URL for your xml file you specify in the /d= parameter the name of the DTD or XSD file which defines the file. No need to convert or anytthing else.

  • Integrate pdf (converted from smart form ) into portal

    Hi,
    My Requirement is as follows,
    We are using FPM framework and the application is developed on Webdynpro Java,
    When a end user fills up the details on this application form and clicks on a Review button,
    it will display the summary of the above details in a PDF format.
    This PDF will be converted from a smart form in backend.
    My question is how do we integrate this PDF at runtime into Portal via WebDynpro Java?
    Thanks in advance,
    ~Veena.

    Hi.
    First tell your abapper to make a RFC for you that returns the binary of the smartform.
    Then import that RFC.
    Create an Interactive Form UI Element.
    -In its properties, select "usePdf" option and then in pdfSource select the attribute where the binary from the zfunction is returned.
    If you dont have problems with encoding the pdf will be shown.
    Wish you luck.
    Bye

  • Converting from a string to InetAddress

    I am reading in a file that contains a line of text, for example:
    192.168.5.2 young
    This line is read in and split up by a string tokenizer. How can I convert the string IP address that is read in as the first token to an actual InetAddress that can be used in network communication.

    I am reading in a file that contains a line of text,
    for example:
    192.168.5.2 young
    This line is read in and split up by a string
    tokenizer. How can I convert the string IP address
    that is read in as the first token to an actual
    InetAddress that can be used in network communication.This code should help you
    byte[] b=new byte[4];
    //how u use getByName
    InetAddress ob1=InetAddress.getByName("abc.xyz.com");
    //how u use getByAddress
    b[0]=new Integer(10).byteValue();
    b[1]=new Integer(200).byteValue();
    b[2]=new Integer(81).byteValue();
    b[3]=new Integer(249).byteValue();
    InetAddress ob2=InetAddress.getByAddress(b);

  • How to convert from windows media into iTunes without creating two albums with one featured song by itself?

    I found out how to convert my windows media player music into my iTunes since I just joined the apple world. I was able to do one CD but I tried to convert Alicia Keys Element of Freedom and all of the songs converted except "Put It In a Love Song" featuring Beyonce. If it's going to do that, how do I keep it from doing all of my albums that have featured artists so it'll be in one album. I don't want the album and then the sole song sitting there. I've tried to find out if anyone's addressed that, but I'm not sure if people are addressing it because it's coming from Windows Media and not the store yet.

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • Can I convert from pdf output into excellsheet in smartforms

    My smartform output is in pdf form now .Can i convert it into excellsheet by using save option.
    Moderator message: please do some own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 12:49 PM

    Video into PDF? Sounds reasonably strange. In any case, the only way to use such files would be to extract the components in Acrobat. Select the actual video with the Touchup Object tool, righ-click, save to disk. Depending oin the specifics of the PDF fiel this may not work, though.
    Mylenium

  • I have just purchased the PDF to word converter and I am trying to convert from PDF to word and keep getting a conversion failure? If this can't be fixed how do I cancel my subscription?

    I keep getting a conversion failure when I try to convert from a PDF into word. Does anyone have any suggestions?

    To use the online service you must upload the file to the service's web site after sign in to your account.
    The ExportPDF and the PDF Pack Services provide for PDF to Word / Excel. 
    Each has its own dedicated user-2-user forum where you'll want to browse and ask questions.
    For ExportPDF:
    https://forums.adobe.com/community/exportpdf 
    For PDF Pack:
    https://forums.adobe.com/community/createpdf 
    Be well...

  • Convert a line read from text file into string

    how to convert a line from text file into string?
    i know how to convert to numbers,
    private int  parseLine1(String line) {
              StringTokenizer tokenizer = new StringTokenizer(line);
                  value1 = Integer.valueOf(tokenizer.nextToken()).intValue();
                  value2 = Integer.valueOf(tokenizer.nextToken()).intValue();
                 return value1;
                     }but what about charactrs?

    ok, here is my problem, i have a file with a bunch of Xs in it but position function doesn't return a correct value, what's going wrong?
    private int positioni(){
           int i=0;
           int j=0;
           int b=0;
           String line="";
            while(line!= null){
                for(int a=0; a<line.length(); a++){
                    if(line.charAt(a)=='X'){
                        i=a;}
                b++;
                j=b;
                t=line.length();
                line=read(gridFileN);
           return i;
    private String read(String ggridFileN){
             TextStreamReader ggridFile = new TextStreamReader(ggridFileN);
             return ggridFile.readLine();

  • How can i store values from my String into Array

    Hi guys
    i wants to store all the values from my string into an array,,,, after converting them into intergers,,,, how i can do this becs i have a peice of code which just give me a value of a character at time,,,,charat(2)...BUT i want to the values from String to store in an Array
    here is my peice of code which i m using for 1 char at time
    int[] ExampleArray2 = new int[24];
    String tempci = "Battle of Midway";
    for(int i=0;i>=tempci.length();i++)
    int ascii = tempci.charAt(i); //Get ascii value for the first character.

    public class d1
         public static final void main( String args[] )
              int[] ExampleArray2 = new int[24];
              String tempci = "Battle of Midway";
              for(int i=0;i<tempci.length();i++)
                   int ascii = tempci.charAt(i);
                   ExampleArray2=ascii;
              for(int i=0;i<ExampleArray2.length;i++)
                   System.out.println(ExampleArray2[i]);

  • How can I convert output data (string?) from GPIB-read to an 1D array?

    Hello all,
    I am reading a displayed waveform from my Tektronix Oscilloscope (TDS3032) via the GPIB Read VI. The format of the waveform data is: positive integer data-point representation with the most significant byte transferred first (2 bytes per data point).
    The output data of GPIB-Read looks like a string(?) where the integer numbers and a sign like the euro-currency sign are seperated by spaces e.g. #5200004C3 4 4 4 4 3C3C3........ (C represents the euro-currency sign).
    How can I convert this waveform data into a 1D/2D array of real double floatingpoint numbers (DBL) so I can handle the waveform data for data-analysis?
    It would be very nice if someone know the solution for this.
    t
    hanks

    Hi,
    First of all, I'm assuming you are using LabVIEW.
    The first you need to do is parse the string returned by the instrument. In this case you need to search for the known symbols in the string (like the euro sign) and chop the string to get the numeric strings. Here are some examples on parsing from www.ni.com:
    Keyword Search: parsing
    Once you parse the numeric strings you can use the "String/number conversion VIs" in the String pallette.
    Hope this helps.
    DiegoF.Message Edited by Molly K on 02-18-2005 11:01 PM

  • Is there an easy way to convert a long string into an array?

    I can convert a long string into a 1-d array by parsing and using build array, but I would like to know if there is a function to make this easier.
    For example:
    from/   aaaaaaaabbbbbbbbccccccccdddddddd         (string of ascii)
    to/       an array that is 1-d with each element having eight characters
              aaaaaaaa
              bbbbbbbb
              cccccccc
              dddddddd
    Thank you.
    Solved!
    Go to Solution.

    Try something like this:
    (If you can guarantee that the string length is an integer multiple of 8, you an drop the two triangular modes in the upper left. )
    Message Edited by altenbach on 03-14-2010 06:40 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ChopString.png ‏9 KB

  • Error "Conversion failed when converting date and/or time from character string" to execute one query in sql 2008 r2, run ok in 2005.

    I have  a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
    USE [Runtime]
    GO
    /****** Object:  UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt]    Script Date: 06/11/2013 08:47:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE   FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)  
    -- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
    RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
    AS  
    BEGIN 
    -- Crea el Cursor
    DECLARE cursorHora CURSOR
    READ_ONLY
    FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
    -- Declaracion de variables locales
    DECLARE @produc_opt_hora int
    DECLARE @produc_opt_parc int
    DECLARE @nsacos int
    DECLARE @time_parc datetime
    -- Inicializamos VARIABLES
    SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
    -- Abre y se crea el conjunto del cursor
    OPEN cursorHora
    -- Comenzamos los calculos 
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    /************  BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR  ************/
    WHILE (@@fetch_status <> -1)
    BEGIN
    IF (@@fetch_status = -2)
    BEGIN
    -- Terminamos la ejecucion 
    BREAK
    END
    -- REALIZAMOS CÁLCULOS
    SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
    -- INSERTAMOS VALORES EN LA TABLA
    INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
    -- Avanzamos el cursor
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    END
    /************  FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR  ***************/
    -- Cerramos el cursor
    CLOSE cursorHora
    -- Liberamos  los cursores
    DEALLOCATE cursorHora
    RETURN 
    END

    You can search the forums for that error message and find previous discussions - they all boil down to the same problem.  Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime.  In general,
    this works in any version of sql server if the runtime settings are correct for the format of the string data.  The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
    the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers. 
    I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion.  It may not be in the function you posted, since that function also executes other functions. 
    You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all. 
    Tibor's site

Maybe you are looking for

  • Date is not getting updated in SQL database.

    Hello Everyone, Regarding my problem, i am using business connector to transfer data from SAP to SQL Server. But in BC, on executing, it shows syntax error for the date field. I used "trim" transformer to convert the date field, bt the error is still

  • Help! Applications won't download?

    So my phone is activated and unbricked at the store. After 7 hours at the mall, I went home and everything was working except the applications. For example, when I tried to download the facebook app... On the iPhone: I clicked install, I signed in an

  • Cant install updates on my lumia 530

    I bought this device with the belief that I would get all the new updates (the commercial itself says that) but the update I trying to install takes 1.1 GB of the phone internal storage, and the system part takes 3.1 gb already, so I can't really ins

  • 'forms' confusion

    Hi I am having difficulty creating a form. I am new to forms and find them very perplexing. I have the below code for one - but cannot figure out what to do with it. Where do I put? how do I attach it to a form even?? do I need to create my own form

  • Problem accessing Team Admin Console

    I'm unable to access the Team Admin Console at https://adminconsole.adobe.com. I can get as far as to the login stage, but after that I get the following error message: "We're sorry, but something seems to be wrong on our end. Please try again later.