Webservice returning bean

Hello All, I have one web service which returns java bean,
this bean internally incorporated different beans so my response is
like this:
<S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:GetConfigResponse xmlns:ns2="
http://service.nms.satpath.com/">
<configuration>
<subnet>
<ncsGatewayIP>50000</ncsGatewayIP>
<ncsID>1</ncsID>
<ncsIPAddr>192.168.1.1</ncsIPAddr>
<ncsSignallingPort>255.255.0.0</ncsSignallingPort>
<ncsSubnetMask>192.168.0.2</ncsSubnetMask>
</subnet>
<groups>
<groupID>1<groupID>
<groupName>myStar<groupName>
<groups>
<resources>
<ID>3<ID>
<Desc>mytransponder</Desc>
<resources>
</configuration>
</ns2:GetConfigResponse>
</S:Body>
</S:Envelope>
I have to pass different beans to different components like I
have sub net component in which I want to pass information from
<subnet> ... </subnet>
how can I do that?
Thanks in advance for all the help and support.

Hello All, I have one web service which returns java bean,
this bean internally incorporated different beans so my response is
like this:
<S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:GetConfigResponse xmlns:ns2="
http://service.nms.satpath.com/">
<configuration>
<subnet>
<ncsGatewayIP>50000</ncsGatewayIP>
<ncsID>1</ncsID>
<ncsIPAddr>192.168.1.1</ncsIPAddr>
<ncsSignallingPort>255.255.0.0</ncsSignallingPort>
<ncsSubnetMask>192.168.0.2</ncsSubnetMask>
</subnet>
<groups>
<groupID>1<groupID>
<groupName>myStar<groupName>
<groups>
<resources>
<ID>3<ID>
<Desc>mytransponder</Desc>
<resources>
</configuration>
</ns2:GetConfigResponse>
</S:Body>
</S:Envelope>
I have to pass different beans to different components like I
have sub net component in which I want to pass information from
<subnet> ... </subnet>
how can I do that?
Thanks in advance for all the help and support.

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

  • 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

  • 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.

  • 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, DAO/Bean Pattern - Help

    All,
    I'm stuck on this one - any help would be much apperciated.
    I'm trying to expose a CFC which uses a DAO/Bean pattern and
    am receiving the following error.
    Could not perform web service invocation "getQuote".
    Here is the fault returned when invoking the web service
    operation:
    AxisFault
    faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: coldfusion.xml.rpc.CFCInvocationException:
    [coldfusion.runtime.UndefinedElementException : Element
    QUOTEDAO is undefined in a Java object of type class
    [Ljava.lang.String; referenced as ]
    Here are my files to give you an idea of what I am working
    with.
    /webservices/application.cfm
    /webservices/quote/quote.cfc (bean)
    /webservices/quote/quoteDAO.cfc (my data access object, has
    crud methods)
    /webservices/quote/quoteService.cfc (service layer, i
    generate my wsdl from this)
    I have unit tested the CFC's by running a test.cfm file
    within the /webservices directory which calls all methods. Works
    fine. Additionally, the WSDL generates fine.
    The problem is when I invoke the service, here is how I am
    invoking it.
    <cfinvoke
    webservice="
    http://localhost/apps/webservices/quote/quoteService.cfc?wsdl"
    method="getQuote"
    returnvariable="Quote">
    <cfinvokeargument name="Quote_ID" value="200"/>
    </cfinvoke>
    It's important to note that within my application.cfm I am
    setting up my quoteDAO and quoteGateway objects within my variables
    scope. I am then setting my quoteService in my application scope,
    like so:
    <cfset variables.quoteDAO =
    createObject("component","apps.webservices.quote.quoteDAO").init(variables.dsn)
    />
    <cfset variables.quoteGateway =
    createObject("component","apps.webservices.quote.quoteGateway").init(variables.dsn)
    />
    <cfset application.quoteService =
    createObject("component","apps.webservices.quote.quoteService").init(variables.quoteDAO,
    variables.quoteGateway) />
    I'm not sure what exactly the error I am receiving is, but
    part of me cringes thinking it might have to do with pathing.
    Any advice?

    Simon,
    Thanks for your reply - I modified the code to manually setup
    those objects in my init like so.
    <cfset variables.dsn = "mydsn" />
    <cfset variables.quoteDAO =
    createObject("component","apps.webservices.quote.quoteDAO").init(variables.dsn)
    />
    <cfset variables.quoteGateway =
    createObject("component","apps.webservices.quote.quoteGateway").init(variables.dsn)
    />
    It solved that initial error but now I am getting:
    Could not perform web service invocation "getQuote".
    Here is the fault returned when invoking the web service
    operation:
    AxisFault
    faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXParseException: Premature end of
    file.
    faultActor:
    faultNode:
    Any ideas?

  • 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

  • Hello World @OneToMany in a WebService Session Bean

    Ladies and Gents,
    I'm trying to setup a simple @OneToMany Hello World type example using SOAP based Web Services.  The setup is fairly straightforward: two entities in a parent/child relationship.  Orders is the parent.  OrderRows is the child.  ALL of this was setup with wizards using JDeveloper 11g.  I did not modify the code other than changing the name of the session bean.
    The problem occurs when I try to express this relationship by including the @OneToMany annotations and the related List operations (set, add, remove) in the Orders.java file.  If I comment those out and do not return the associated List containing OrderRows, all is well.  Include the @OneToMany and nothing returns.  This is probably some kind of simple configuration error, but the problem is I'm not getting any errors in my console when I right-click my session bean and select "Test Web Service", choose the getOrdersFindAll() operation, and click "Send Request".  All I get is a nice little snarky message saying "No content to display."  So I'm just sitting here ... at 2 AM in the morning ... wondering "Whiskey Tango Foxtrot?"
    I've looked over some sites such as http://biemond.blogspot.com/2011/08/expose-your-session-bean-with-jax-ws.html and read through the Java EE 7 tutorial http://docs.oracle.com/javaee/7/tutorial/doc/jaxws.htm#BNAYL all to no avail. 
    Does anyone have any ideas?  Or would anyone have some good websites to get some practical examples?
    MySessionBean.java
    import java.util.List;
        import javax.annotation.Resource;
        import javax.ejb.SessionContext;
        import javax.ejb.Stateless;
        import javax.jws.WebService;
        import javax.persistence.EntityManager;
        import javax.persistence.PersistenceContext;
        @Stateless(name = "MySession", mappedName = "HelloWs-HelloService-MySession")
        @WebService(name = "MySessionBeanService", portName = "MySessionBeanServicePort")
        public class MySessionBean {
            @Resource
            SessionContext sessionContext;
            @PersistenceContext(unitName = "HelloService")
            private EntityManager em;
            public MySessionBean() {
            /** <code>select o from Orders o</code> */
            public List<Orders> getOrdersFindAll() {
                return em.createNamedQuery("Orders.findAll").getResultList();
    My Orders.java Entity
      import java.io.Serializable;
        import java.math.BigDecimal;
        import java.util.List;
        import javax.persistence.Column;
        import javax.persistence.Entity;
        import javax.persistence.Id;
        import javax.persistence.NamedQueries;
        import javax.persistence.NamedQuery;
        import javax.persistence.OneToMany;
        @Entity
        @NamedQueries( { @NamedQuery(name = "Orders.findAll", query = "select o from Orders o")     })
        public class Orders implements Serializable {
            @Id
            @Column(name = "ORDER_ID", nullable = false)
            private BigDecimal orderId;
            @OneToMany(mappedBy = "orders")
            private List<OrderRows> orderRowsList;
            public Orders() {
            public Orders(BigDecimal orderId, String refName) {
                this.orderId = orderId;
            public BigDecimal getOrderId() {
                return orderId;
            public void setOrderId(BigDecimal orderId) {
                this.orderId = orderId;
            public List<OrderRows> getOrderRowsList() {
                return orderRowsList;
            public void setOrderRowsList(List<OrderRows> orderRowsList) {
                this.orderRowsList = orderRowsList;
            public OrderRows addOrderRows(OrderRows orderRows) {
                getOrderRowsList().add(orderRows);
                orderRows.setOrders(this);
                return orderRows;
            public OrderRows removeOrderRows(OrderRows orderRows) {
                getOrderRowsList().remove(orderRows);
                orderRows.setOrders(null);
                return orderRows;
    My persistence.xml.  Note that while the double jdbc looks funky, I'm pretty sure that's not the source of the problem since removing the @OneToMany annotation and related methods works.
        <?xml version="1.0" encoding="windows-1252" ?>
        <persistence xmlns="http://java.sun.com/xml/ns/persistence"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
                 version="2.0">
          <persistence-unit name="HelloService">
            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
            <jta-data-source>java:/app/jdbc/jdbc/HelloConnDS</jta-data-source>
            <class>helloservice.Orders</class>
            <class>helloservice.OrderRows</class>
            <properties>
              <property name="eclipselink.target-server" value="WebLogic_10"/>
              <property name="javax.persistence.jtaDataSource"     value="java:/app/jdbc/jdbc/HelloConnDS"/>
            </properties>
          </persistence-unit>
        </persistence>
    I've also put this question up on stack overflow at http://stackoverflow.com/posts/17769621

    Hi, Thomas!
    For establishing a connection to R/3 you could either Enterprise Connector (as described in <a href="http://help.sap.com/saphelp_nw04/helpdata/de/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm">Enterprise Connector</a>) or the SAP Resource Adapter (see <a href="http://help.sap.com/saphelp_nw04/helpdata/de/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm">Java Resource Adapter</a>) - the JCA way.
    Regards,
    Thomas

  • SOAP Webservice returns Array - how to setup Xcelsius?

    Hello,
    after a lot of tests I have recognized that Xcelsius is not able to handle Webservices which return arrays with an undefined size. So I edited the schema file in the way that the size is defined.
    Here is an extract of the schema file:
    <xsd:sequence>
                <xsd:element name="row0" type="tns:Row" maxOccurs="10" minOccurs="10" ></xsd:element>
    </xsd:sequence>
    With that configuration Xcelsius is able to import the wsdl. But the preview window is showing only one Row Folder, I have excpected "10".  My question is, is my config the right way to handle arrays with Xcelsius and when it is, how I have to set up the range in the Excel Map to make the data avaiable???
    Thank you in advance.
    Best regards,
    Conrad

    Here is an example, you can compare what is different. From the look of it the recipient info is missing from yours. Does it say which INI option is missing when you get an error?
    <doPublishRequest xsi:type="doPublishReq_Import" xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01">
            <LibraryId>CONFIGNAME</LibraryId>
            <DistributionOptions xsi:type="DistributionOptions_ADHOC" source="ADHOC">
              <Priority>REALTIME</Priority>
              <Channel xsi:type="Channel_IMMEDIATE">
                <PublishType>PDF</PublishType>
                <DistributionType>IMMEDIATE</DistributionType>
                <Disposition location="ATTACH" />
                <Recipient name="ORIGINAL">
                  <Props>
                    <Prop name="" />
                  </Props>
                  <Copies />
                  <Story StoryName="" id="" alias="" />
                </Recipient>
              </Channel>
            </DistributionOptions>
            <SourceType>IMPORT</SourceType>
            <Import>
              <ImportFile xsi:type="ImportFile_ATTACH" d6p1:contentType="" location="ATTACH" xmlns:d6p1="http://www.w3.org/2005/05/xmlmime">O05hdXRpbH.......</ImportFile>
            </Import>
          </doPublishRequest>

  • 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

  • Getting WebService return object in BPEL

    I have a simple WebService that returns a DTO object:
    public MyDTO testDTO(String s1, String s2){
    MyDTO myDTO = new MyDTO();
    myDTO.setInput1(s1);
    myDTO.setInput2(s2);
    return myDTO;
    public class MyDTO implements Serializable{
    public MyDTO() {
    private String input1;
    private String input2;
    //getters n setters are here
    I deployed this as AXIS WebService in TomCat successfully.
    <service name="elogService" provider="java:RPC" style="wrapped" use="literal">
    <operation name="testDTO" qname="ns11:testDTO" returnQName="ns11:MyDTOReturn" returnType="ns51:com.MyDTO" soapAction="" xmlns:ns11="http://services.xyz.com" xmlns:ns51="http://dto.abc.com">
    <parameter qname="ns11:s1" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
    <parameter qname="ns11:s2" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
    </operation>
    <parameter name="allowedMethods" value="testDTO"/>
    <parameter name="typeMappingVersion" value="1.2"/>
    <parameter name="className" value="com.TestDTOWS"/>
    <parameter name="wsdlServicePort" value="VisilogAddServicePort"/>
    <parameter name="schemaQualified" value="http://services.xyz.com,http://dto.abc.com"/>
    <parameter name="wsdlTargetNamespace" value="http://services.xyz.com"/>
    <parameter name="wsdlServiceElement" value="elogService"/>
    <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns31:MyDTO" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.MyDTO" xmlns:ns31="http://dto.abc.com"/>
    </service>
    In BPEL. I created a partnerLink and invoked it. In the BPEL Console, on giving inputs "a" and "b", i see the following message on invoke node:
    Invoked 2-way operation "testDTO" on partner "DTOWS_PartnerLink".
    - <messages>
    - <Invoke_1_testDTO_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    - <testDTO xmlns="http://services.xyz.com">
    <s1>a</s1>
    <s2>b</s2>
    </testDTO>
    </part>
    </Invoke_1_testDTO_InputVariable>
    - <Invoke_1_testDTO_OutputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    - <testDTOResponse xmlns="http://services.xyz.com">
    - <MyDTOReturn xsi:type="ns1:MyDTO" xmlns:ns1="http://dto.abc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <input1>a</input1>
    <input2>b</input2>
    </MyDTOReturn>
    </testDTOResponse>
    </part>
    </Invoke_1_testDTO_OutputVariable>
    </messages
    I assigned one of the WebService output variable to the result. At Assign node, i get the following message:
    Error in evaluate <from> expression at line "98". The result is empty for the XPath expression : "/ns1:testDTOResponse/ns1:MyDTOReturn/ns2:input1".
    oracle.xml.parser.v2.XMLElement@199822c
    "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns1:testDTOResponse/ns1:MyDTOReturn/ns2:input1" is empty at line 98, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns1:testDTOResponse/ns1:MyDTOReturn/ns2:input1" is not empty.
    </summary>
    </part>
    </selectionFailure>
    My input1 is not empty. I can see the result at the invoke node. It has "a" content in input1. What am i missing here. What are the places i need to check for.
    Thanks....

    I modified the WebService. Now WSDL file looks as follows:
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://dto.com">
    <element name="s1" type="xsd:string"/>
    <element name="s2" type="xsd:string"/>
    <complexType name="com.MyDTO">
    <sequence>
    <element name="input1" nillable="true" type="xsd:string"/>
    <element name="input2" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <element name="testDTOReturn" type="impl:com.MyDTO"/>
    </schema>
    </wsdl:types>
    However My error still persists:
    Error in evaluate <from> expression at line "98". The result is empty for the XPath expression : "/ns3:testDTOReturn/ns3:input1".
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns3:testDTOReturn/ns3:input1" is empty at line 98, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:testDTOReturn/ns3:input1" is not empty.
    </summary>
    At invoke node this is the message:
    <Invoke_1_testDTO_OutputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="testDTOReturn">
    - <s1Return xsi:type="ns1:com.MyDTO" xmlns="http://dto.com" xmlns:ns1="http://dto.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ns1:input1>1111</ns1:input1>

  • Webservice return type

    Dear All,
    I have a web service with return type as array.
    I need to return dynamic array.Is there any alternate way to this.
    Could anyone help me regarding this.
    Thanks & Regards
    sara

    On xMII XML format via the WebService (WSDLGen) mechanism, but you can return any xMII XML format via the Runner mechanism.
    URL is something like: /Lighthammer/Runner?Transaction=YourTransaction&OutputParameter=DesiredXMLOutputParameter
    There are more complex techniques that can be used to have xMII emulate any webservice with any inputs and outputs, but those involve creation of custom WSDL files and are probably a bit lengthy for an SDN post.
    - Rick
    Message was edited by:
            Rick Bullotta

  • 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 Returning a String

    Maybe I should know this but:
    I'm calling a method of a webservice that returns a string.
    Works great.
    The string is essentially an XML document, but how can I use
    that data (the string being returned from the call) or place that
    data in a properly formatted XML? Because right now I'm getting
    back one long string .. it's an Object but I want it to be
    XML.

    See this FB 2.0.1 help topic:
    Handling results as XML with the e4x result format
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=dataservices_099_17.html
    <mx:WebService
    id="WS"
    destination="stockservice" useProxy="true"
    fault="Alert.show(event.fault.faultString), 'Error'">
    <mx:operation name="GetQuote" resultFormat="e4x">
    <mx:request>
    <symbol>ADBE</symbol>
    </mx:request>
    </mx:operation>
    </mx:WebService>

Maybe you are looking for

  • IPC complex routine

    Hi everybody, I want to refer to another pricing conditions in my IPC routine (OvervriteConditionValue method) I have three pricing conditions (320,330,340) and I want to calculate a new one referred to these three (the addition of these). My code is

  • Image source in itemrenderer

    imglist = arraycollection which contains names of images which are coming from database myimg = array of images all images are stored in newfolder how to use tilelist itemrenderer for images

  • Upgrading from Nano 5G to new ipod Touch.

    Will I need to amend any settings or will itunes automatically sync the new Touch instead of the Nano. Thanks in advance!

  • Minimize LR Window

    How can I minimize the lightroom window? Using Winxp. Please disregard this message

  • Several Phone Call Issues Since Upgrading My iPhone 5 to iOS8

    I have an iPhone 5 and I have upgraded to iOS8. Since I have upgraded, I am having severe issues with telephone calls. I used to be able to make a call, hit the hold button and place the phone in my pocket while walking and talking. I can no longer d