Webservice Return problem

Hi All,
       I have one doubt regarding webservice return parameter. I wish to return collection of records from Webservice. I tried to set return type as ResultSet, but i couldn't get?. How can i solve it?.
Thanks advance,
Ravi Sankar

Hi Ravi,
Check
Web service with complex java type
Arraylist in Web Service
Best regards, Maksim Rashchynski.

Similar Messages

  • PI SOAP access to third party Webservice,Return ERROR

    Hi Experts,
    I have one soap synchronous scenario access to third party WEBSERVICE,Return error.While testing the wsdl in soap ui, I am getting response, messages showing successfully processed. I think it is pi to send  xmlns:ns1='http://tempuri.org/'  on both sides should not be a single quotation mark, but I don't know how to adjust  PI set. how do you see.
    1、SOAP UI submitted to Webserver XML
    [2014-05-26 08:47:24.662] --- Recv data from SocketId=272 Socket=10880
    POST /MWGate/wmgw.asmx HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: "http://tempuri.org/MongateCsSpSendSmsNew"
    User-Agent: Jakarta Commons-HttpClient/3.1
    Host: 10.0.0.253:8082
    Content-Length: 520
    <soapen:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
        <soapen:Header />
        <soapen:Body>
            <tem:MongateCsSpSendSmsNew>
                <tem:userId>DOA001</tem:userId>
                <tem:password>dennis</tem:password>
                <tem:pszMobis>1313773654</tem:pszMobis>
                <tem:pszMsg>1111</tem:pszMsg>
                <tem:iMobiCount>1</tem:iMobiCount>
                <tem:pszSubPort>*</tem:pszSubPort>
            </tem:MongateCsSpSendSmsNew>
        </soapen:Body>
    </soapen:Envelope>
    2、PI submitted to Webserver XML
    [2014-05-26 08:36:08.725] --- Recv data from SocketId=271 Socket=10704
    POST /MWGate/wmgw.asmx HTTP/1.0
    Accept: */*
    Host: 10.0.0.253:8082
    User-Agent: SAP-Messaging-com.sap.aii.af.sdk.xi/1.0505
    CallingType: SA
    content-id: <[email protected]>
    Content-Type: text/xml; charset=utf-8
    Content-Length: 417
    SOAPACTION: "http://tempuri.org/MongateCsSpSendSmsNew"
        <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
            <SOAP:Header />
            <SOAP:Body>
                <ns1:MongateCsSpSendSmsNew xmlns:ns1='http://tempuri.org/'>
                    <ns1:userId>DOA001</ns1:userId>
                    <ns1:password>dennis</ns1:password>
                    <ns1:pszMobis>13637731567</ns1:pszMobis>
                    <ns1:pszMsg>Constant</ns1:pszMsg>
                    <ns1:iMobiCount>1</ns1:iMobiCount>
                    <ns1:pszSubPort>*</ns1:pszSubPort>
                </ns1:MongateCsSpSendSmsNew>
            </SOAP:Body>
        </SOAP:Envelope>
    3、SXI_MONITOR   Payloads content:
      <ns1:MongateCsSpSendSmsNew xmlns:ns1="http://tempuri.org/">
            <ns1:userId>DOA001</ns1:userId>
            <ns1:password>dennis</ns1:password>
            <ns1:pszMobis>13637731567</ns1:pszMobis>
            <ns1:pszMsg>Constant</ns1:pszMsg>
            <ns1:iMobiCount>1</ns1:iMobiCount>
            <ns1:pszSubPort>*</ns1:pszSubPort>
        </ns1:MongateCsSpSendSmsNew>
    4、PI channel

    Hi Nathan,
    Have you tried the SOAP HTTP Axis function.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b092777b-ee47-2a10-17b3-c5f59380957f?overridelayout=t…
    https://help.sap.com/saphelp_nw04/helpdata/en/45/a39e244b030063e10000000a11466f/content.htm
    Configuring the Receiver Axis SOAP Adapter (SAP Library - SAP Exchange Infrastructure)
    Regards,
    Jannus Botha

  • Webservice returning string (but I need XML for XSLT Tranformation)

    Hello everybody,
    I have configured an ip with a webservice. So far so good - everything works fine.
    Now I want to transform the output of the webservice with xslt. The webservice returns the data as a String in form of XML.
    e.g.
        <!XML>
    <!String>
    <!String> </b>
    </Bill> <!XML>
    But XSLT don't find e.g the node , because it is a String. I think the right way is first to transform the String into XML. I tried this step with Java with the method
    public void execute(InputStream inputStream, OutputStream outputStream)
            throws StreamTransformationException {
    but it doesn't work. I am not sure, if this is the right way.I have searched for a code sample, but I didn't find anything.
    What do you think?
    Do you have a code sample?
    This would be great!
    Best regards,
    Jürgen

    Hello Bhavesh,
    thx very much for your help.
    Here is my Java Mapping:
    public class ModusLebenTransformation implements StreamTransformation
    public static byte[] readStream(InputStream in, boolean close)
        throws IOException
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        int c = in.read();
        while (c > -1)
            out.write(c);
            c = in.read();
        out.flush();
        byte[] result = out.toByteArray();
        out.close();
        if (close)
            in.close();
        return result;
    public void setParameter(Map map) {
    public void execute(InputStream inputStream, OutputStream outputStream)
            throws StreamTransformationException {
       try {
    TransformerFactory tFactory = TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
       StreamResult result = new StreamResult(outputStream);
    String input = new String(readStream(inputStream,true));
    transformer.transform(new StreamSource(input), result);      
      } catch (Exception e) {
                 throw new StreamTransformationException("Mapping failed", e);
    But I don't know if this code is enough to convert the String( from the webservice) into XML.
    And then I would like to use XSLT for transformation in a new mapping step.
    Do you think this is possible?
    Do you have a code sample, that will tranform the String (from the webservice) into XML?
    This would be very helpful!
    regards,
    Jürgen

  • Ugent help with return problem

    Hello everyone,
    please can someone help me with this return problem? I'm getting a retrun error problem with this code
    public static float getVitaminPrice()
              for(int j=0;j<Vitamins.length;j++)
                        if(Vitamins[j].getCode().equals(s))
                             return Vitamins[j].getPriceByBox();               
         }

    OK thanks every one but there are things that I don't fully understand yet, just some exprience but not alot, however I'll take all the advise into consideration. I'm a person who most times only learn from examples. I have some classes called VitaminInfo, and one for Customer apart from the one that contains the main method.
    the following code is all that main contains, what I'll like to accomplish is getting back the vitamin price which was already stored in an array based on the vitamin code the user typed in.
    can you help me with that?
    public static void main(String args[])
              for(int j=0;j<Vitamins.length;j++)
                   String vitaminCode = new String(JOptionPane.showInputDialog("Please Enter the Vitamin Code"));
                   String vitaminDesc = new String(JOptionPane.showInputDialog("Please Enter the Vitamin Description"));
                   int vitaminWeight = Integer.parseInt(JOptionPane.showInputDialog("Please Enter the Vitamin Weight"+"/n" + "Vitamin Weight must be between 50 to 500 grams"));     
                   while(vitaminWeight >500 || vitaminWeight< 50){
                        vitaminWeight = Integer.parseInt(JOptionPane.showInputDialog("Please Enter the Vitamin Weight"+"/n" + "Vitamin Weight must be between 50 to 500 grams"));          
                   int vitaminPrice = Integer.parseInt(JOptionPane.showInputDialog("Please Enter the Vitamin Price"));
                   VitaminInfo vita = new VitaminInfo(vitaminCode , vitaminDesc, vitaminWeight, vitaminPrice);
                   Vitamins[j] = vita;           
              for(int j=0;j<Customers.length;j++)
                   String customerName = new String(JOptionPane.showInputDialog("Please Enter a Customer Name"));
                   String customerAddress = new String(JOptionPane.showInputDialog("Please Enter the Customer's Address"));
                   String postalCode = new String(JOptionPane.showInputDialog("Please Enter the Customer's Postal Code"));
                   Customer cust = new Customer(customerName, customerAddress, postalCode);
                   Customers[j] = cust;
              float  vprice = getVitaminPrice();
              String vcode = getVitaminOrderCode();
              int vamount = getVitaminCount(vcode);
              JOptionPane.showMessageDialog(null,"You have ordered " + vamount + " Vitamin (" + vcode + ")."+ " VitaminPrice (" + vprice + ").","Your Order",JOptionPane.INFORMATION_MESSAGE);
              showCatalog();
              showCustomers();
              System.exit(0);
         }

  • Webservice returned with exception in method 'isConnectionLoopbackAlive'

    Hello,
    during monitoring of last 24 hours logs i found message:
    <b>Webservice returned with exception in method 'isConnectionLoopbackAlive'
    category: /Applications/CAF/KM
    Application:  sap.com/irj
    Location:com.sap.portal.prt.cafkm.com.sap.caf.km.service.ConnectionTestService.isConnectionLookupAlive(String)
    </b>
    can anybody help me? what does it mean?
    Denis
    ip
    Edited by: Denis Yugay on Mar 18, 2008 5:10 AM

    Hello, Vincent.
    Situation is same after rebooting server.
    Denis
    Edited by: Denis Yugay on Mar 20, 2008 5:17 AM

  • Carrier return problems within calculations

    Hi everyone
    Carrier return problems.
    I work with Numbers with Excel users, so I'm a victim of Excel.
    In my calculations I'd like to make carrier returns.
    As I understand it:
    Numbers understands: CHAR(8232)
    Exel understands: CHAR(10)
    Does anyone know of a CHAR() which both applications understand?
    Or
    Does anyone know of a calculation, so I can save it in Excel format troublelfree.
    The problem is, if I use the CHAR(8232) in an export of Excel the whole calculation is gone and only the product is left.
    Any input would be helpfull.
    Thanks.
    Jakob

    Numbers' CHAR function accepts numbers 32 and higher, except 127
    Excel's accepts the numbers 1-127
    The only solution I can think of is an error check.  In Numbers, 8232 will be used. In Excel, 13 will be used:
    IFERROR(CHAR(8232),CHAR(13))
    Note: I used 13 instead of 10 because 10 didn't seem to do anything for me in Excel.

  • Webservices: returning xml document to client

    Can anyone please help me to the following problem.
    1. I have a java bean which i publish as webservice. I want to return an xml document on request from client(for time being my client is normal java client). when i call getDoc() from client i get classload exception. can anyone explain me why?
    public org.w3c.dom.Document getDoc() throws java.rmi.RemoteException {
    Document document = null;
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    try {
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File("C:\\data\\RND\\XmlParser\\XmlParser\\src\\xmlparser\\employer.xml"));
    catch (Exception ex) {
    return document;
    2. if i have to send a xml file to clinet on request using web services(i assume i cant return an document as above), is it feasible(my xml file is a transaction file) to send a xml file as string?
    3. how to transfer a xml file into a string?

    I'm almost sure that the error is because the Document class is not supported by JAX-RPC (see page 384 of the Java Web Services Tutorial).
    Try sending your XML as a String.
    This code may help you to transform between XML and String and viceversa:
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import org.xml.sax.*;
    import org.w3c.dom.*;
    public static Document toXmlDocument(String xml) throws IOException, SAXException, ParserConfigurationException
    StringReader reader = new StringReader(xml);
    InputSource source = new InputSource(reader);
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document xmlDoc = builder.parse(source);
    return ( xmlDoc );
    public static String toXmlString(Node node) throws TransformerConfigurationException, TransformerException
    StringWriter writer = new StringWriter();
    DOMSource source = new DOMSource(node);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer();
    StreamResult result = new StreamResult(writer);
    transformer.transform(source,result);
    return ( writer.toString() );
    }

  • Webservice returns null values (Flex)

    Hi all,
    I created a webservice in abap,
    (a RFC and a Function Web Service).
    It exports a table type and contains data from a Ztable.
    When i request it from Flex, it returns rows, but they contain NULL values, why ?
    I can request and display bapi webservices that comes with in SapNetweaver trial 7.1 but i cant display my own webservice.
    Result like this;
    result     generated.webservices.ZCUSTOMERS_TT (@2205981)     
         [inherited]     
         [0]     generated.webservices.ZCUSTOMERS (@2362c91)     
              CLIENT     null     
              ID     null     
              NAME     null     
         [1]     generated.webservices.ZCUSTOMERS (@23a4129)     
         [2]     generated.webservices.ZCUSTOMERS (@23a42e1)     
         [3]     generated.webservices.ZCUSTOMERS (@23a41c9)     
    it is true that there are 4 rows in table, but all client, id and name is null
    why ?

    thanks for answer but my problem didint solved.
    My webservice can return normal values like integer or decimal and i can read it from flex.
    but when i try to view tables, i always get null values BUT item count is true :=) i have 4 item in z table and 4 rows returns in array from webservice but NULL values :=).
    I can't return structure as well.
    result     mx.utils.ObjectProxy (@211af29)     
         DEGER     1     
         GS_CUSTOMER     generated.webservices.ZCUSTOMERS (@22ce719)     
              CLIENT     null     
              ID     null     
              NAME     null     
         GT_CUSTOMER     mx.collections.ArrayCollection (@210cd01)     
              [inherited]     
              [0]     generated.webservices.ZCUSTOMERS (@22cef61)     
                   CLIENT     null     
                   ID     null     
                   NAME     null     
              [1]     generated.webservices.ZCUSTOMERS (@22ced31)     
              [2]     generated.webservices.ZCUSTOMERS (@22cedd1)     
              [3]     generated.webservices.ZCUSTOMERS (@22cea11)     
              source     Array (@22687e9)     
         object     Object (@22ce8a9)     
         type     null     
         uid     "723117ED-66EC-C93B-9E66-C0FD4F01246C"     
         ZCUSTOMER_TT     generated.webservices.ZCUSTOMERS_TT (@22eb941)     
    What do you use, when declaring variables ?
    Like or type or ref to ? Can it be a problem ?
    here is my function export inteface.
    http://img241.imageshack.us/img241/9258/screenhunter01jun082052.gif
    Edited by: bilen cekic on Jun 8, 2009 8:26 PM

  • DataConnection: Webservice returning array

    Hello,
    I try to get an alternative to the SOAP call working: I have a webservice that returns the content of a row in a database in an array of strings. This works fine as long as I use the SOAP call to access and execute the service.
    However, we run into some problems with the SOAP, so I want to see if we could use the Data View and a data connection to access the webservice instead.
    Is there any way to access the return value of the data connection via JavaScript? Or programmatically at all? I cannot figure out which model I have to use (connectionSet, datasets, data, etc.)
    If I just drag'n drop the return value field with its subforms onto my form, it just shows the first value, but does not multiple itself.
    Is that alternative an alternative at all, or does it not work this way with an array?
    Kind regards, Karin

    Hello,
    I try to get an alternative to the SOAP call working: I have a webservice that returns the content of a row in a database in an array of strings. This works fine as long as I use the SOAP call to access and execute the service.
    However, we run into some problems with the SOAP, so I want to see if we could use the Data View and a data connection to access the webservice instead.
    Is there any way to access the return value of the data connection via JavaScript? Or programmatically at all? I cannot figure out which model I have to use (connectionSet, datasets, data, etc.)
    If I just drag'n drop the return value field with its subforms onto my form, it just shows the first value, but does not multiple itself.
    Is that alternative an alternative at all, or does it not work this way with an array?
    Kind regards, Karin

  • Webservice Import Problem

    Hi,
    I have used the NWDS Wizard to generate a webservice proxy. The Service is "SAP Server" and the runtime is "SAP NetWeaver". I have a service project with the EJBs and a surrounding EAR project to deploy the webservice.
    I have generated a webservice-interface. One
    @WebMethod(operationName="getById")
    and one
    @WebMethod(operationName="getDummy")
    getDummy only returns new String();
    this works fine. But getById calls a ABAP Webservice via the generated proxy. I inject the reference:
    @WebServiceRef(name="ZALINKRFC_Service")
    ZALINKRFC_Service service;
    get the port
    ZALINKRFCWD port = service.getPort(ZALINKRFCWD.class);
    and call port.rfcfunction(...)
    I then get the error
    com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 20 counts of IllegalAnnotationExceptions
    com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET is an interface, and JAXB can't handle interfaces. this problem is
    related to the following location: at com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET
    com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET does not have a no-arg default constructor. this problem is
    related to the following location: at com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET
    com.sap.document.sap.rfc.functions.TABLEOFTBL1024 is an interface, and JAXB can't handle interfaces
    I have absolutely no idea what the problem is. All the mentioned classes were automatically generated by NWDS.
    any ideas?
    thanks in advance

    Please try with IP
    Regards, Anilkumar

  • Webservices return error NosuchMethod

    Hi Masters.
    I am very new in WebServices and WEBDYNPROS on Java.
    I generated an Webservices to connect to MDM repository that generation finished OK .
    the problem is when I trying to executes that WS since SOAIU editor always return the next message of error
    the xlsd I am testing is :
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ZWS_VENDOR_MDMVi" xmlns:urn1="urn:com.sap.mdm.ws.beans.zws_vendor_mdm" xmlns:urn2="urn:com.sap.mdm.ws.beans" xmlns:urn3="urn:com.sap.mdm.core.beans">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:searchMDM_VENDORS>
             <urn:query>
                <!--Optional:-->
                <urn1:criteria>
                   <!--Zero or more repetitions:-->
                   <urn1:namedSearchCriteria></urn1:namedSearchCriteria>
                   <!--Zero or more repetitions:-->
                   <urn1:maskCriteria>1</urn1:maskCriteria>
                   <!--Optional:-->
                   <urn1:logicalOperator>1</urn1:logicalOperator>
                   <!--Optional:-->
                   <urn1:keywordCriteria>
                      <!--Optional:-->
                      <urn2:value>1</urn2:value>
                      <!--Optional:-->
                      <urn2:expressionOperator>1</urn2:expressionOperator>
                   </urn1:keywordCriteria>
                   <!--Optional:-->
                   <urn1:mDM_VENDOR_NUMBER>
                      <!--Optional:-->
                      <urn2:logicalOperator></urn2:logicalOperator>
                      <!--Zero or more repetitions:-->
                      <urn2:constraint>
                         <!--Optional:-->
                         <urn2:value>4300024</urn2:value>
                         <!--Optional:-->
                         <urn2:expressionOperator>EQUALS</urn2:expressionOperator>
                      </urn2:constraint>
                   </urn1:mDM_VENDOR_NUMBER>
                </urn1:criteria>
                <!--Optional:-->
                <urn1:resultDefinition>
                <urn2:fieldListType>ALL</urn2:fieldListType>
             <urn2:retrieveKeyMapping>false</urn2:retrieveKeyMapping>
             <urn2:loadAttributes>false</urn2:loadAttributes>
             <urn2:pageNumber>1</urn2:pageNumber>
             <urn2:pageSize>100</urn2:pageSize>
                </urn1:resultDefinition>
             </urn:query>
             <urn:reposInfo>
                <!--Optional:-->
                <urn3:dataLang>English [US]</urn3:dataLang>
                <!--Optional:-->
                <urn3:destinationName>MDM_Destination</urn3:destinationName>
                <!--Optional:-->
                <urn3:repositoryName>VENDOR_CATALOG</urn3:repositoryName>
                <!--Optional:-->
                <urn3:secureConnection>false</urn3:secureConnection>
                <!--Optional:-->
                <urn3:serverName>led1.la.holcim.net</urn3:serverName>
             </urn:reposInfo>
          </urn:searchMDM_VENDORS>
       </soapenv:Body>
    </soapenv:Envelope>
    the error WS is returned .
      <SOAP-ENV:Body xmlns:rpl="urn:ZWS_VENDOR_MDMVi">
          <rpl:searchMDM_VENDORSResponse xmlns:rn0="java:sap/standard" xmlns:rn1="urn:com.sap.mdm.ws.beans" xmlns:rn2="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rn3="urn:com.sap.mdm.core.base" xmlns:rn4="urn:com.sap.mdm.ws.beans.zws_vendor_mdm" xmlns:rn5="urn:com.sap.mdm.core.beans">
             <Response>
                <rn1:executionStatus>
                   <rn1:status>Fault</rn1:status>
                   <rn1:description>com.sap.mdm.extension.session.ConnectionManagerEx.getMdmDestinationProperties(Ljava/lang/String;)Lcom/sap/mdm/session/NetWeaverMdmDestinationProperties;</rn1:description>
                   <rn1:fault>
                      <rn1:severity>Error</rn1:severity>
                      <rn1:text>java.lang.NoSuchMethodError: com.sap.mdm.extension.session.ConnectionManagerEx.getMdmDestinationProperties(Ljava/lang/String;)Lcom/sap/mdm/session/NetWeaverMdmDestinationProperties;
      at com.sap.mdm.ws.data.connection.AbstractWSConnectionManager.createUserSessionContextFromDestination(AbstractWSConnectionManager.java:101)
      at com.sap.mdm.ws.data.connection.BasicAuthenticationConnectionManagerImpl.createAuthenticatedSessionCtx(BasicAuthenticationConnectionManagerImpl.java:72)
      at com.sap.mdm.ws.data.EJBGateWay.createConnection(EJBGateWay.java:404)
      at com.sap.mdm.ws.data.EJBGateWay.executeOperation(EJBGateWay.java:210)
      at com.sap.mdm.ws.data.EJBGateWay.executeOperation(EJBGateWay.java:147)
      at com.sap.mdm.ws.gen.ejbs.ZWS_VENDOR_MDMBean.searchMDM_VENDORS(ZWS_VENDOR_MDMBean.java:47)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    any idea which is the problem . thanks in advaned.

    Hi Ravi.   thanks for you support.
    I made the test On WebService Navigator but the result was the same nosuchMethot. I am really doubing if componets are the currect version.
    Do you Know a guide over currect versions MDM componets are compatibility acorde My Netweaber 7.2  I have the next componets Installed right Now.
    MDM_EP
    1000.710.711.7.0.20110411202139
    MDM_JAVA_API
    1000.710.0.13.109.20141123194400
    MDM_WEB_SERVICES
    1000.710.710.13.0.20141201183346
    MDM_CONNECTOR
    1000.710.711.8.47.20130404190252
    MDM_WEB_SERVICES_RUNTIME
    1000.710.711.13.0.20141201183341
    MDM_JAVA_WD_FRAMEWORK
    1000.710.711.7.39.20130226190744
    Thanks in Advances

  • SOAPDecoder WebService parsing problem

    This is really urgent for me!
    I encountered the following:
    It seems JavaME WebService API is not able to handle the following
    XML part:
    <!--soap/Message header etc. -->
    <strList>
    <strList>A</strList>
    <strList>Test</strList>
    </strList>
    <!-- soap/Message footer etc. -->
    Is this correct? What can I do to make this work? The next step would be
    to parse myself.
    The Server uses org.apache.axis.encoding.ser.BeanSerializerFactory
    to write the Bean ResultList that only contains a String[] with the name
    strList. However the serializer makes a double strList of it. I generated
    a stub with WTK 2.5 and 2.3.
    This is the server returned XML that is not parsed correct. However
    a PocketPC client handles it correct. Why?
    Please help, I spent 14 hours today and didn't find a solution.
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <getResultListResponse xmlns="http://wherever.de">
    <getResultListReturn>
    <reqDataId>0</reqDataId>
    <strList>
    <strList>This</strList>
    <strList>is</strList>
    <strList>a</strList>
    <strList>test</strList>
    </strList>
    </getResultListReturn>
    </getResultListResponse>
    </soapenv:Body>
    </soapenv:Envelope>

    happyyear wrote:
    I also found this problem.
    Yes, it is a 4 lines text. It includes newline.
    But it is ok when using JDK1.5.
    I wonder if it is a bug of JDK1.6.
    If I replace the line character first as follows, it is ok.
    Scanner s = new Scanner(tl1Msg.replaceAll("\r\n", ""));The problem is why it is ok in JDK1.5.
    Edited by: happyyear on Feb 1, 2008 2:31 AMYou must have changed something else. Can you post some sample code that executes using JDK 1.5 but not JDK 1.6?
    This fails on both 1.5 and 1.6, just as expected
    public class Test {
        public static final String DATA = "08-02-01 03:21:19\r\nA 3923 REPT DBCHG\r\nTIME=03-21-19,WAVELENGTH=NA,:OOS-AUMA,NALMNR&UEQ\r\n;";
        private static final String PST_SST_PATTERN = ":(IS-\\w+|OOS-\\w+),+(.+)";
        public static String[] parsePSTSST(String tl1Msg) {
            String[] res = new String[2];
            try {
                Scanner s = new Scanner(tl1Msg);
                s.findInLine(PST_SST_PATTERN);
                MatchResult result = s.match();
                for (int i = 1; i <= result.groupCount(); i++) {
                    System.out.println("PST_SST=" + result.group(i));
                    res[i - 1] = result.group(i);
                s.close();
            catch (Exception ex) {
                System.out.println(ex);
            return res;
        public static void main(String[] args) {
            parsePSTSST(DATA);
    }Kaj

  • Retry Activity - WebService Code Problem

    Hi all,
    We have an activity when contains a Web-Service Code. This activity calls an external Web-Service by passing parameters and waits for response from the external Web-Service.
    We want this activity which contains the Web-Service Code to retry 2 times before entering into a System Exception when failed.
    We have configured the parameters in the Process Administrator ----> Engine ---> Execution ---> Automatic Execution --> Retry Times = 2.
    But somehow this activity ONLY does not retry 2 times before entering into a System Exception when failed. The other activities which DO NOT have any Web-Service Call code, do retry 2 times before entering into a System Exception when failed.
    Why is this so?
    Is it that an activity having Web-Service Call code cannot be retried when failed before entering into a System Exception?
    How do we rectify this problem?
    Is there any other parameter that we need to change for the retry of an activity that CONTAINS WEB-SERVICE CALL CODE?
    Btw.. I am using Local Variables for calling parameters inside my web-service.. Is that a problem? If I use Instance Variables then the entire process fails to execute and it takes a lot of space too..
    Edited by: user8766631 on May 5, 2010 10:55 AM

    I have tried calling them as webservices through CF and am
    getting the following Error:
    The string "--" is not permitted within comments
    I have turned off integrated Authentication and all the
    methods have Remote for the access property. I have some
    webservices I can call, others that I can't. They all follow the
    same pattern for their source code because of the code generator I
    wrote.
    There are always 2 CFCs involved, once CFC is nothing put
    <cfproperty> tags to create a message format, the DAO cfc
    (the ones I call directly) essentially get some rows from a
    database and return an Array of the CFC messageformat type, those
    are the methods that return no data, but other methods like
    updating and deleting data from the tables does work via a
    webservice, its only calling methods that return data that fails,
    and not for every service, only certain tables, and there is no
    rhym or reason to it thus far.
    Any other ideas? I would hate to have to start using
    .NET.....

  • Zend AMF Data Service Return Problem

    Hi Folks,
    I am working with FB4 and Zend AMF/PHP and MySQL.  I began integrating the PHP stuff using the great article by Mihai Corlan called 'Working in Flash Builder 4 with Flex and PHP.  I followed all the steps exactly, aside from creating my own app-specific PHP classes and functions, etc...  I 'hooked up' the Zend stuff just like the article, created a text datagrid, just like the article, and viola!, it worked.  I then tweaked it a bit and interwove it into my 'real' component.  So far, so good.
    Then I created a second PHP class with a different 'get data' type of function.  It queries a different table in MySQL, but is essentially the 'same' as the query/function in the initial PHP class.
    In FB, in the Data Services window, I choose the 'Connect to Data/Services' function, just like the first time.  I then find/select my PHP class file and FB 'interrogates it' enough to show me the function that exists in the class.  I 'finish' the operation and it adds a new 'service' to the list of services in that window.  Again, so far, so good.
    The problem comes when I try to 'test' the service or 'configure return types' (which basically requires a 'test' operation anyway).  I can enter the 'input' params just fine, but when I try to execute the call, I get the following error:
    InvocationTargetException:There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
    Reason: An error occured while reading response sent by server. Try encoding the response suitably before sending it. e.g. If a database column contains UTF-8 characters then use utf8_encode() to encode its value before returning it from the operation.
    I don't know where to go after this.  Again - the 2nd PHP class is essentially identical to the 1st.  The function in it is essentially identical, differing only by the input params, the name of the function and the actual SQL it sends to MySQL.  There is no special text, no special characters, no image stuff, nothing.  I do not 'encode' the results of the function in the first class - in fact the code in the second class is practically identical to the first.  I do not know what the error is talking about.  My guess is that it's more of a generic message.
    I can debug the PHP code just fine from within a seperate instance of Eclipse.  The function runs/returns just fine - an array of PHP-defined objects (simple strings).
    Any insights or advice would be welcomed.   Thank you,
    -David Baron

    Thank Jorge, but that was not the issue, though, it may be related.
    I checked the mySQL my.ini file, and there was already an entry for:
    [mysql]
    default-character-set=utf8
    I added the 'default-collation=utf8_unicode_ci', like you suggested, but that didn't do anything.
    I checked the Apache httpd.conf file, and added the following line 'under' the "DefaultType text/plain" line:
    AddDefaultCharset UTF-8    but that did not do anything.
    I checked my mySQL database, all the tables involved.  They were already at UTF-8 (default).  However, some of the 'varchar' columns were defined as 'latin 1-default collation'.   I changed them all to utf-8 (default table collation), but that did not help either.
    Finally, I found the problem, though I don't really know if it is "my" problem, or ZendAMF's problem, or Adobe's problem.
    It turned out that 'some' of my data had a 'bad' character in it.  Specifically, I had 'copied and pasted' some data from MS Word into mySQL Workbench.  Some of the data included the 'elipsis' character - you know, when you type "..." (dot dot dot) in MS Word, it replaces the three periods with a single elipsis character.  Although PHP could easily query and assemble this data into a nice object array, I noticed that that character showed up (in PHP's debugger) as a 'box' character, meaning "bad character".  Thus, I guess, Zend AMF and/or FlashBuilder could not 'bring over' and/or deal with this type of character.  As soon as I replace the few instances of that character with three periods, everything began to work perfectly.
    So... what to do about this?  I thought I was through with silly encoding/decoding of data when I left JavaScript and HTML behind in moving to FlashBuilder technology.  Am I really going to have to worry about this kind of thing?  Or might this be a bug/deficiency somewhere in the stack?
    Thanks for your help,
    -David

  • Webservice authentication problem

    Web Service Authentication problem
    Posted: Jun 17, 2005 3:32 PM        Reply      E-mail this post 
    Hi
    I have created a portal service and exposed this service as a webservice. I am consuming this webservice in webdynpro. Portal service contains 2 simple methods putdata() and getdatat().
    When i access the webservice i am getting the following error.
    "javax.xml.rpc.soap.SOAPFaultException: The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.GlobalData or the service was not found"
    My Enterprise portal server is configured for SSO to back end R/3 system. I have checked for portal service availability and it is fine.
    My Webdynpro and Portal are running on different machines. EP is running on AIX with SP11.
    Any help please.
    Regards
    NagaKishore V

    Hi Shahab,
    Can you reproduce the issue if you create 2 applications. One that exposes a secured web service and the other one the one, consumes the web service? This would help to isolate the issue and move forward in case is a bug.
    Thanks,
    Juan Camilo

Maybe you are looking for

  • Album View missing in iTunes 8

    Why did you remove album view? In favor of GRID view? Can't we have BOTH? Please put it back!...

  • How to Validate the Domain for a given email id. Is a valid or invalid

    Hello Frndz, I am trying to validate the domain of a given email as a valid or invalid using the below SQL Block. But the values are hard coded into it. Please suggest me some way to validate the email id Domain dynamically, so that it can be identif

  • FPGA code only works on alternate executions

    Hi, I have some code I wrote for FPGA which, by itself, works fine. I tried to use "Open FPGA VI Reference" as part of a previous (non-FPGA based) VI. However, I find that the full code only works on alternate executions. I thought this may be becaus

  • What is best video card and processor

    I want to upgrade my computer so I can use Final Cut Pro X- so can the community please tell me which one of these will be better for me to buy. Thank you. ps.. I'm not sure how this supported  GDDR5.... memory works could that be explained to me ple

  • Server startup and initialization class

    i have a swing based (non-webbased) application and i want to perform some initializations during server start up. how can i do that ?