ComplexType Elements using Axis

I am creating a dynamic web service client using Axis that can call any operation, given only the WSDL file. Everything was going fine until I had to return a complexType. I am able to retrieve the complexType, however I am unable to get the 'name' of each element.
Here is a snippet of the WSDL:
<complexType name="MyDataType">
<sequence>
<element name="aNumber1" nillable="true" type="xsd:string"/>
<element name="aNumber2" nillable="true" type="xsd:string"/>
<element name="aNumber3" nillable="true" type="xsd:string"/>
</sequence>
</complexType>When I print out the invocation of the Call, I get something like the following:
[15, 10, 100]
Is there any way to retrieve the element name (ex: aNumber1, aNumber2, etc) from the returned object? For this operation, I registered the ArraySerializer/DeserializerFactory but I couldn't find anything to allow me to access the element names.
Thanks.

I am creating a dynamic web service client using Axis that can call any operation, given only the WSDL file. Everything was going fine until I had to return a complexType. I am able to retrieve the complexType, however I am unable to get the 'name' of each element.
Here is a snippet of the WSDL:
<complexType name="MyDataType">
<sequence>
<element name="aNumber1" nillable="true" type="xsd:string"/>
<element name="aNumber2" nillable="true" type="xsd:string"/>
<element name="aNumber3" nillable="true" type="xsd:string"/>
</sequence>
</complexType>When I print out the invocation of the Call, I get something like the following:
[15, 10, 100]
Is there any way to retrieve the element name (ex: aNumber1, aNumber2, etc) from the returned object? For this operation, I registered the ArraySerializer/DeserializerFactory but I couldn't find anything to allow me to access the element names.
Thanks.

Similar Messages

  • Issue with generation of document/literal type WSDL using Axis

    Hi All,
    I am trying to convert some Java code into WSDL using Axis 1.2 framework. I used Document/Literal style for binding.
    One of the methods in my Java code returns an array. This array is described in Axis generated WSDL as follows:
    <complexType name="ArrayOfThings">
    <complexContent>
    <restriction base="soapenc:Array">
    <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Things[]"/>
    </restriction>
    </complexContent>
    </complexType>
    But the end user(client for the web service I am hosting) says " .NET won't allow him to consume my webservice (or generate the proper reference classes) for types that derive from encoded types".
    So my question is "Would it be possible to change the webservice so that it doesn’t use that(soapenc) implementation of the array?"
    The end user is expecting something more like this:
    <s:complexType name="ArrayOfThings">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="Things" nillable="true" type="tns:Things" />
    </s:sequence>
    </s:complexType>
    I am new to Web Services. So any help or guidance would be greatly appreciated.
    Thanks,
    Scott.

    Hi Dragana,
    We definitely support the ability to call a web service that exposes two operations (document/literal or not).
    Glancing through your WSDL, it looks good.
    Could you please try to tunnel the second request and see 1) what data is sent to the service and 2) what data is returned by the service?
    Can you please email us a reproduceable case so that we can help troubleshoot in parallel?
    Thank you,
    Edwin
    [email protected]
    please rename .zip to .zap

  • URGENT: Problem generating Client of BPEL process using Axis WSDL2Java

    Hi,
    I have a BPEL process running fine using BPEL console.
    Now I want to create a Java client to invoke it.
    I try to generate the stub using axis WSDL2Java.
    But i can't generate it. I got the problem
    {http://schemas.xmlsoap.org/ws/2004/08/addressing}Action already exists
    java.io.IOException: Type {http://car.webservices}CarRentalResult is referenced
    but not defined.
    at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
    Table.java:665)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
    a:518)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
    a:495)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
    at java.lang.Thread.run(Unknown Source)
    I have used some complexType of the web services in my BPEL process.
    I guess the parser can't resolve where it is...is it?
    I wonder what I should do to make the parser know where to find that type.
    Do I have to specify anything more in my BPEL process?
    Here is the WSDL of my BPEL process
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    name="TravelPlanner"
    targetNamespace="http://travelplanner.bpel"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://travelplanner.bpel"
    xmlns:car="http://car.webservices"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:hotel="http://hotel.webservices"
    xmlns:flight="http://flight.webservices"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:bill="http://bill"
    >
    <types>
    <schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://travelplanner.bpel"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://bill"/>
    <import location="http://localhost:8080/axis/services/CarRentalService?wsdl" namespace="http://car.webservices"/>
    <import location="http://localhost:8080/axis/services/HotelBookingService?wsdl"
    namespace="http://hotel.webservices"/>
    <import location="http://localhost:8080/axis/services/FlightBookingService?wsdl"
    namespace="http://flight.webservices"/>
    <element name="Hotel" type="hotel:Hotel"/>
    <element name="HotelBookingResult" type="hotel:HotelBookingResult"/>
    <element name="Vehicle" type="car:Vehicle"/>
    <element name="CarRentalResult" type="car:CarRentalResult"/>
    <element name="Flight" type="flight:Flight"/>
    <element name="FlightBookingResult" type="flight:FlightBookingResult"/>
    <element name="TravelPlannerRequest">
    <complexType>
    <sequence>
    <element name="from_airport" type="string"/>
    <element name="to_airport" type="string"/>
    <element name="travel_city" type="string"/>
    <element name="travel_country" type="string"/>
    <element name="leave_date" type="dateTime"/>
    <element name="return_date" type="dateTime"/>
    <element name="no_of_traveler" type="int"/>
    <element name="traveler_firstname" type="flight:ArrayOf_xsd_string"/>
    <element name="traveler_lastname" type="flight:ArrayOf_xsd_string"/>
    <element name="billingInfo" type="bill:Bill"/>
    <element name="flightEndpointURI" type="string"/>
    <element name="hotelEndpointURI" type="string"/>
    <element name="carEndpointURI" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="TravelPlannerResponse">
    <complexType>
    <sequence>
    <element name="flight_go" type="flight:Flight"/>
    <element name="flight_back" type="flight:Flight"/>
    <element name="hotel" type="hotel:Hotel"/>
    <element name="car" type="car:Vehicle"/>
    <element name="paymentInfo" type="bill:Bill"/>
    <element name="charged_amount" type="float"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    <xsd:schema xmlns="http://www.w3.org/2000/10/XMLSchema">
    <xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" schemaLocation="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    </xsd:schema>
    </types>
    <message name="TravelPlannerResponseMessage">
    <part name="payload" element="tns:TravelPlannerResponse"/>
    </message>
    <message name="TravelPlannerRequestMessage">
    <part name="payload" element="tns:TravelPlannerRequest"/>
    </message>
    <portType name="TravelPlanner">
    <operation name="process">
    <input message="tns:TravelPlannerRequestMessage"/>
    <output message="tns:TravelPlannerResponseMessage"/>
    </operation>
    </portType>
    <binding name="TravelPlannerBinding" type="tns:TravelPlanner">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="process">
    <soap:operation style="document" soapAction="process"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="TravelPlanner">
    <port name="TravelPlannerPort" binding="tns:TravelPlannerBinding">
    <soap:address location="http://angel:9700/orabpel/default/TravelPlanner/1.0"/>
    </port>
    </service>
    <plnk:partnerLinkType name="TravelPlanner">
    <plnk:role name="TravelPlannerProvider">
    <plnk:portType name="tns:TravelPlanner"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    Could somebody help me?

    i got it worked out. sorry.
    just forgot to import wsdl files.

  • Any one knows how to use Axis Framework in the SOAP Adapter Modules

    How to use Axis Framework in the SOAP Adapter?
    How to add custom handler modules?
    http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/frameset.htm
    I went through the above link on help.sap.com. But still could not create a working example.
    I have created a wc on some 3ed party app server using apaches axis. I am trying to call that web service from XI using SOAP receiver? I need to add some security related headers to the soap message, SO I am trying to use a handler.  I want to know how to configure this handler in SOAP axis adapter module.
    Thank you
    Moni

    Ravi ,
    I am trying exactly the same. Hers is the scenario.
    ABAP Proxy --> PI (7.0) SP 12 ---> WebService.
    Since This is service is secured, means it is using OASIS web servie securyty user name token,
    I am trying to use AXIS adapter. and I want to configure HandlerBean in which I want to use apache wss4j api to add the userNameToken. I am looking for some documentation on this.
    I need to add SOAP action element too as I can not configure this one on the communication channel.
    Thanks for any inputs in this regard.
    Moni

  • Transmission of XML Documents in a vector via WebService using Axis

    Hello,
    I'm trying to transmit several XML documents (belonging to a DICOM-Study) from WebService Provider to WebService consumer.
    This is my server/provider:
    public static Vector<Document> returnPatientStudies(String PatientID)
    DocumentBuilderFactory factory  = DocumentBuilderFactory.newInstance();
    DocumentBuilder        builder  = factory.newDocumentBuilder();
    File x = new File(PATH + "patient.xml");
    Document document = builder.parse(x);
    DCM2XMLFiles.add(document);This code works fine if it's executed locally in a JAVA class or via http/GET (http://.../axis/services/Gateway?method=returnPatientStudies&PatientID=123456).
    After using Axis' WSDL2Java-Tool I wrote a client:
    public static void main(String[] args) {
    GatewayServiceLocator locator = new GatewayServiceLocator();
    try {
         Gateway gateway = locator.getGateway();
         Vector<Document> documents = Gateway.returnPatientStudies("123456");
    ... Everytime I try to invoke this client-side class, I get an "org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize."
    Obviously the client gets confused by the XML content of the vector I'm trying to transmit (this error also occurs if I transmit XML files constisting only of a single empty element <empty />).
    I think this is a simple problem, since one single XML Document can be transmitted and gets displayed on client side, but I don't have a clue how to solve this vector<Document> problem. Hope someone can help me.
    Thanks

    Hi thanks for your answer.
    I am striving to make this webservice as universal as possible. I have only been returning dumps to my calling page to try and get a view of what's going on inside the component when I call it as a webservice. I wouldn't dream or returnin these back the client.
    The major core of this idea was to create a single component that acts as a facade for a number of other components. Because of this the component needs to accept and return a dynamically variable number of arguments. Because of this I selected xml as this seemed like the ideal solution; I can pass in an out some xml that contains all the arguments. I was hoping to reuse some internal functions to provide external webservices, and use this facade architechture to add a layer of security and logging which doesn't exist with the current functions.
    Do you have any suggestions of how I could best acheive something along these lines? Has someone already created a framework or methodology for creating webservices with Coldfusion which would provide this sort of functionality out of the box?
    Thanks again
    Jim

  • Session in Webservices using Axis 1.3???

    Hi,
    has anyone a link, tip, sample code,... how to create sessions in Webservices using Axis 1.3?
    I've got a Flex frontend...
    Please help me...
    Greetings,
    Chris

    Apparently you don't understand arrays. You've created the array with a space for one reference. You never assign anything into that array element.
    String[] s = new String[1];
    s[0].size(); // The reference is NULL!The above is guaranteed to be a null pointer exception - how could the array element have a String in it? We never create a String (only the array) and what text would it have even if it somehow magically worked?
    Instead you would have to do this:
    String[] s = new String[1];
    s[0] = "Hello";
    s[0].size(); // The reference is NOT nullThe above is exactly analogous to your problem.

  • Calling BPEL service using axis client

    Hi,
    I have created and deployed simple BPEL process and i am trying to invoke this BPEL process using axis client.
    deployed BPEL wsdl is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="SimpleProcess" targetNamespace="http://xmlns.oracle.com/SimpleProcess" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/SimpleProcess" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/SimpleProcess">
    - <types>
    - <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/SimpleProcess" schemaLocation="SimpleProcess.xsd" />
    </schema>
    </types>
    - <message name="SimpleProcessRequestMessage">
    <part name="payload" element="tns:SimpleProcessProcessRequest" />
    </message>
    - <message name="SimpleProcessResponseMessage">
    <part name="payload" element="tns:SimpleProcessProcessResponse" />
    </message>
    - <portType name="SimpleProcess">
    - <operation name="process">
    <input message="tns:SimpleProcessRequestMessage" />
    <output message="tns:SimpleProcessResponseMessage" />
    </operation>
    </portType>
    - <binding name="SimpleProcessBinding" type="tns:SimpleProcess">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="process">
    <soap:operation style="document" soapAction="process" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="SimpleProcess">
    - <port name="SimpleProcessPort" binding="tns:SimpleProcessBinding">
    <soap:address location="http://localhost:9700/orabpel/default/SimpleProcess/1.0" />
    </port>
    </service>
    - <plnk:partnerLinkType name="SimpleProcess">
    - <plnk:role name="SimpleProcessProvider">
    <plnk:portType name="tns:SimpleProcess" />
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    and my soap client code is as follows
    public static void main(String[] args) throws Exception {
         String endpoint =
         "http://ICON-OBCC.asiapacific.hpqcorp.net:9700/orabpel/default/SimpleProcess/1.0 ";
         Service service = new Service();
         Call call = (Call) service.createCall();
         call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://xmlns.oracle.com/TP", "process"));
    String ret = (String) call.invoke( new Object[] { "FFF" } );
         System.out.println("Sent 'Hello!', got '" + ret + "'");
    when i execute this i am getting follwoing error on BPEL console
    Error - OWS-04005 an error occured for port BPEL_OC4j_SOAP_PROVIDER javx.xml.rpc.JAXRPCException java:lang:NullPointerException
    Any indication for resolving this will be great help.
    Thanks in advance
    S

    Hi,
    I have created and deployed simple BPEL process and i am trying to invoke this BPEL process using axis client.
    deployed BPEL wsdl is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="SimpleProcess" targetNamespace="http://xmlns.oracle.com/SimpleProcess" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/SimpleProcess" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/SimpleProcess">
    - <types>
    - <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/SimpleProcess" schemaLocation="SimpleProcess.xsd" />
    </schema>
    </types>
    - <message name="SimpleProcessRequestMessage">
    <part name="payload" element="tns:SimpleProcessProcessRequest" />
    </message>
    - <message name="SimpleProcessResponseMessage">
    <part name="payload" element="tns:SimpleProcessProcessResponse" />
    </message>
    - <portType name="SimpleProcess">
    - <operation name="process">
    <input message="tns:SimpleProcessRequestMessage" />
    <output message="tns:SimpleProcessResponseMessage" />
    </operation>
    </portType>
    - <binding name="SimpleProcessBinding" type="tns:SimpleProcess">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="process">
    <soap:operation style="document" soapAction="process" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="SimpleProcess">
    - <port name="SimpleProcessPort" binding="tns:SimpleProcessBinding">
    <soap:address location="http://localhost:9700/orabpel/default/SimpleProcess/1.0" />
    </port>
    </service>
    - <plnk:partnerLinkType name="SimpleProcess">
    - <plnk:role name="SimpleProcessProvider">
    <plnk:portType name="tns:SimpleProcess" />
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    and my soap client code is as follows
    public static void main(String[] args) throws Exception {
         String endpoint =
         "http://ICON-OBCC.asiapacific.hpqcorp.net:9700/orabpel/default/SimpleProcess/1.0 ";
         Service service = new Service();
         Call call = (Call) service.createCall();
         call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://xmlns.oracle.com/TP", "process"));
    String ret = (String) call.invoke( new Object[] { "FFF" } );
         System.out.println("Sent 'Hello!', got '" + ret + "'");
    when i execute this i am getting follwoing error on BPEL console
    Error - OWS-04005 an error occured for port BPEL_OC4j_SOAP_PROVIDER javx.xml.rpc.JAXRPCException java:lang:NullPointerException
    Any indication for resolving this will be great help.
    Thanks in advance
    S

  • Mapping Package Names using Axis

    Hi,
    I'm trying to do something which I think is pretty straightforward, but am getting no success.
    When running WSDL2Java, A package is getting created called DSAdminService. I would like this to be renamed to com.cs.scs... How do I do this?
    I have tried the tip in topic http://forum.java.sun.com/thread.jspa?forumID=331&threadID=553899 , but this is not helping. Here is my build file at present:
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="engine-daemon-admin" default="make-axis" basedir=".">
            <path id="axis.classpath">
                    <fileset dir="..\lib">
                            <include name="**/*.jar" />
                    </fileset>
            </path>
            <taskdef resource="axis-tasks.properties" classpathref="axis.classpath"/>
            <target name="make-axis">
                    <axis-wsdl2java output="." url="http://s12345.csfb.cs-group.com:8210/livecluster/webservices/EngineDaemonAdmin?WSDL">
                            <mapping namespace="DSAdminService" package="com.cs.test"/>
                    </axis-wsdl2java>
            </target>
    </project>Any help much appreciated !
    Thanks
    Richard
    Message was edited by:
    richard_hawkes

    The namespace attribute in the mapping element takes the value of your WSDL's namespace. So for example, if the source WSDL used in the WSDL2Java task has the namespace "urn:my/wsdl/namespace", and you want the generated code to be placed in the package com.cs.scs, you would use:
    <axis-wsdl2java output="." url="http://s12345.csfb.cs-group.com:8210/livecluster/webservices/EngineDaemonAdmin?WSDL">
                   <mapping namespace="urn:my/wsdl/namespace"
                        package="com.cs.scs"/>

  • Using Axis web service

    Hi,
    are there anyone who use axis webservice in PI. I'm using .Net web service easily but Axis webservice is problem.When i import. It doesn't show all parameter structure therefore it isn't used in message mapping etc.
    thank.

    Hi!
    Like already mentioned there are some restrictions. Unfortunately the PI 7.1 Online Help does not explcitely tell them as you can see here:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm
    But the XI 3.0 documentation contains a hint:
    For technical reasons, proxy generation and the respective editors in the Integration Builder do not support the entire language range of XML schema and WSDL. For an overview of which language elements are supported, see the Excel spreadsheet in the SAP Service Marketplace at service.sap.com/xi ® Media Library ® Documentation: SAP XI 3.0 (SP11) u2013 Supported XML Schema and WSDL (EN).
    Hope this helps.
    Regards,
    Volker

  • JAXB marshalling complexType elements

    Does anyone know why JAXB always marshalls complexType elements with a seperate start and end tag, even if the element has no content?
    i.e.
    Given the schema element declaration:
    <xs:element name="foo" type="fooType"/>
    <xs:complexType name="fooType">
    <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:complexType>
    Why do I get:
    <foo value="bar"></foo>
    Instead of:
    <foo value="bar"/>
    Is their a setting / property to control this behaviour?
    If not then I certainly think there should be because this will bloat the 5Mb XML files I am currently dealing with by quite a lot.
    Cheers,
    Simon

    I have exactly the same trouble here. Did you find a solution? If so, please contact me. I am so afraid of increase the amount space used to store all XML files.
    Thanks in advance
    Julio Garc�a
    [email protected]

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

  • Can I use axis.jar in my custom component

    Can I use axis.jar in my custom component.
    Is there any license need to user this jar ??
    Thanks

    In our UCM setup axis has been implemented in a custom component to consume webservices. As Axis falls under the Apache license you can freely import it in your custom java classes.

  • Error while Creating WBS element using BAPI 'BAPI_BUS2054_CREATE_MULTI'

    Hi Expert,
    I've a requirement to create WBS elements using BAPI. And I am using BAPIs in the following manner.
    CALL FUNCTION 'BAPI_PS_INITIALIZATION'
      CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
        EXPORTING
          i_project_definition = g_pdwbs
      TABLES
        it_wbs_element             = it_wbs_element
       et_return                  = it_return
      EXTENSIONIN                =
      EXTENSIONOUT               =
        CALL FUNCTION 'BAPI_PS_PRECOMMIT'
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    When I do so I am getting the below errors. Please suggest.
    "Individual check for creating the object WBS Element C-497082 required ".
    "Individual check for creating the object WBS Element C-497082-0001 required".
    Please suggest how to correct this error. 
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 18, 2008 5:25 PM

    I am getting the same error, but I cannot figure it out how to detect it and fix it.  Will you please share your solution?
    Thanks,

  • Error invoking bpel process using axis client

    When I am trying to invoke bpel process using axis client I'am having following error:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Bad envelope tag: html
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Bad envelope tag: html
         at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:109)
         at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.oracle.sample.ws.ArrayClient.main(ArrayClient.java:44)
    org.xml.sax.SAXException: Bad envelope tag: html
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.oracle.sample.ws.ArrayClient.main(ArrayClient.java:44)
    Caused by: org.xml.sax.SAXException: Bad envelope tag: html
         at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:109)
         at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         ... 5 more
    My client code is following:
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress(new java.net.URL("http://localhost:9700/orabpel/default/Array"));
    SOAPEnvelope env = new SOAPEnvelope();
    Name bodyName = env.createName("ArrayRequest", "tns", "http://localhost/");
    SOAPBodyElement request = body.addBodyElement(bodyName);
    Name childName = env.createName("input","tns","http://localhost/");
    SOAPElement input = request.addChildElement(childName);
    input.addTextNode("ORCL");
    call.invoke(env);
    MessageContext mc = call.getMessageContext();
    System.out.println("\n============= Response ==============");
    XMLUtils.PrettyElementToStream(mc.getResponseMessage().getSOAPEnvelope().getAsDOM(), System.out);
    I'am having the same error with client generated by wsdl2java.
    Regards

    Hi -
    A few things that you may want to try to troubleshoot this issue:
    1) Run our sample of calling a BPEL process from Axis, located in:
    C:\orabpel\samples\interop\axis\AXISCallingSyncBPEL
    2) Run your client through a TCP tunnel to see the specific SOAP request message that is being sent to the BPEL process and the SOAP response that is being generated. This should help you determine which side of the communication is causing the problem, as well as to rule out proxy server or other issues that are very common problems for this situation.
    Dave

  • Need info about text elements used in Smartform / Sapscript

    Hi experts
    I am working on Smartform / Sapscript i am facing the problem mentioned below
    I want the info regarding all the text elements used in Form / Script
    Can u please suggest me the name of table
    I have already used STXH table but it is not giving me the all text elements
    I mean i want that if i enter some formane ...i should get all the text elment contained in it
    Plz help me
    Thanks

    Hi Gaurav,
        Try out the fn module "READ_TEXT".
    Hope it helps you.
    Regards,
    CS.
    Note: Reward points if helpful.

Maybe you are looking for