Invoking ALDSP 3.0 Services using Axis

Hi All,
I have exposed some services using ALDSP 3 studio which returns multiple records. These are the steps I followed:
1) Created a Physical Data Service using Relational DB (Oracle 9i). Imported some tables like CUSTOMERS, ORDERS etc.
2) Then opened ORDERS.ds and added a new Operation called getAllOrders() which returns all the orders in the DB.
3) I created a Web Service Map and tested the webservice in ALDSP. It works fine.
4) I created a WSDL out of it and then If I try to access it from Axis Web Service Client as shown below... It blows up with the exception
URL url = new URL("http://10.142.29.3:8001/RetrieveOrderProject/ALDSPWebService/DSP-INF/Logical/OrderDataService.ws");
OrderDataServiceSoapServiceLocator locator = new OrderDataServiceSoapServiceLocator();
OrderDataServicePT order = locator.getOrderDataServiceSoapPort(url);
DSP_INF._MSL_ORDER[] orderArr = order.getAllOrders();
At this point it throws:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ArrayStoreException: [LDSP_INF._MSL_ORDER;
faultActor:
faultNode:
faultDetail:
     {http://xml.apache.org/axis/}stackTrace:java.lang.ArrayStoreException: [LDSP_INF._MSL_ORDER;
     at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:493)
     at org.apache.axis.client.Call.invoke(Call.java:2599)
     at org.apache.axis.client.Call.invoke(Call.java:2366)
     at org.apache.axis.client.Call.invoke(Call.java:1812)
     at DSP_INF.OrderDataServiceSoapBindingStub.getAllOrders(OrderDataServiceSoapBindingStub.java:311)
     at com.verisign.webservice.WebServiceTest.main(WebServiceTest.java:26)
     {http://xml.apache.org/axis/}hostname:BAN5RJKOTY-D1
java.lang.ArrayStoreException: [LDSP_INF._MSL_ORDER;
     at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
     at org.apache.axis.client.Call.invoke(Call.java:1828)
     at DSP_INF.OrderDataServiceSoapBindingStub.getAllOrders(OrderDataServiceSoapBindingStub.java:311)
     at com.verisign.webservice.WebServiceTest.main(WebServiceTest.java:26)
Caused by: java.lang.ArrayStoreException: [LDSP_INF._MSL_ORDER;
     at org.apache.axis.utils.JavaUtils.convert(JavaUtils.java:493)
     at org.apache.axis.client.Call.invoke(Call.java:2599)
     at org.apache.axis.client.Call.invoke(Call.java:2366)
     at org.apache.axis.client.Call.invoke(Call.java:1812)
     ... 2 more
Any help in this regard is appreciated.
Thanks,
Ram

Thanks mreiche,
I have created a logical service with 3 operations and all the 3 operations returns array. The return type in ALDSP is of type SF_CUSOTMERS. This schema is generated by ALDSP for a table SF_CUSTOMERS. When I test this in ALDSP, all the 3 services gives me around 4 to 5 records.
However when I try to access this using axis, it fails.
One more strange thing is the WSDL generated from ALDSP has some bugs in it when I try to validate the WSDL in ALDSP studio. I will send you the WSDL to your personal mail ID. Can you please guide me further and help me in this.
Thanks,
Ram

Similar Messages

  • Creating a java Web Service Using Axis

    I need to write a Java web Service using Axis which send a file as an DIme attachement and It should to be invoked by .NET Client .
    I need to know how to attach a file to Soap response and how to read a file from the response at Client.
    I am new to web Services ,,please help me......

    Hi
    You can use a java web service to publish a Web service from a Java class.
    A wizard creates the WSDL document and deployment files needed to publish your code as a Web service. After you select the class and methods you want to publish, the wizard generates deployment descriptors, a JAX-RPC mapping file, and a WSDL document that can be deployed to an application server.
    You can refer : \bpel\samples\tutorials\102.InvokingProcesses\ws sample to invoke a WS using JAX-RPC Call.
    Hope that helps!
    Cheers
    A

  • Publishing pl/sql as web services using axis

    Hello,
    I am a newbie to web services.
    I want to publish pl/sql packages as web services using axis and tomcat. Can you please tell me where to start - I will appreciate any information, links to tutorials and docs. Can you please tell me what I need to deploy and run the services.
    Thank you very much in advance!
    Eka

    Hello,
    The OracleAS Database Web Service is only available for OracleAS using the Oracle Web Service runtime and tools as documented here.
    If you are not using OracleAS or if you want to use another Web Service stack you can still manually program you Web Service manually using JDBC and is features.
    Here a generic article: http://www.onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html
    and you can use advanced features of JDBC and JPublisher if needed:
    Simplifying Database Access
    Regards
    Tugdual Grall

  • 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

  • 2 way SSL in web services [using Axis]

    Hi,
    Can anyone tell me how to implement 2 way SSL handshake before making a web service call , using Axis.
    This is what i have to start off with:
    1. wsdl, which i use to create the client side files [using eclipse] do meet the business needs.
    2. I also have my [client] key and cert and the servers root cert, required for SSL handshake
    Thanks for the help,
    Sandy

    Hi,
    Do you have created a Service Key provider and attached the same to proxy service.
    Oracle Service Bus verifies that you have associated a service key provider with the proxy service and that the service key provider contains a key-pair binding that can be used as a digital signature.
    Service Key Providers
    Regards,
    Abhinav

  • Web services using axis /eclipse/tomcat

    Hi all
    I am trying to develop web services using apache axis in Eclpise.
    I got an error Unexpected element "wsdl:definitions" definitions
    and even I cant get a target to specify while building.
    Can some one help me out?

    hi,
    ask scott from http://onlinecares.com about Java classes, he would be able to help you out.
    Edited by: jimwar on Nov 20, 2007 4:00 AM

  • Invokation of Oracle J2eeWeb Services using HTTP POST

    I have created Oracle J2ee web service from a Java Class in Oracle Jdeveoper 10g. I want to invoke web methods in the web service using HTTP POST method. Currently, these web methods can be invoked using HTTP GET method which is the default option. Please suggest any solution for this.
    bye

    Vivek,
    If you want to make a call to Web Services from .NET, you have to generate a client proxy in your language of choice: C#, VB.NET, J#, ...
    There are two ways of doing so. a) from the command line using a tool named WSDL.EXE. b) from Visual Studio 2003 using the 'Add Web Reference' command.
    In either case, you will have to point to the WSDL of your service to generate the client proxy. The URL for the WSDL is the same as the URL for the service, with the ?WSDL parameter.
    Hope this helps,
    Eric

  • Reading complex types of a Web Service  using Axis.

    Hi,
      I am trying to read a WSDL using AXis APIs. Lets say I use this WSDL.
    http://www.dataaccess.com/webservicesserver/conversions.wso?WSDL
      This contains 3 complex types and 7 simple types.
    SymbolTable symbolTable = wsdlParser.getSymbolTable();
    BindingEntry bEntry =  symbolTable.getBindingEntry(binding.getQName());
    Collection c = bEntry.getParameters().values();
        Now when I read through the collection I get only 7 simple types contained in the complex types. Can I read the complex types only when they are registered. I expect this to be available because the parser is expected to read the WSDL. I get only these types.
         Urgent !! So please help !!
          (java.util.HashMap$Values) [
    returnParam = (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , NumberToWordsResult, OUT)
    faults = {}
    signature = null
    (inputs, inouts, outputs) = (1, 0, 1)
    list = [(QName:         unsignedLong
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , ubiNum, IN)],
    returnParam = (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , TitleCaseWordsResult, OUT)
    faults = {}
    signature = null
    (inputs, inouts, outputs) = (2, 0, 1)
    list = [(QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , sText, IN), (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , sToken, IN)],
    returnParam = (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , NumberToDollarsResult, OUT)
    faults = {}
    signature = null
    (inputs, inouts, outputs) = (1, 0, 1)
    list = [(QName:         decimal
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , dNum, IN)]]

    Hi Shiva
    just check the following link
    http://wiki.apache.org/ws/FrontPage/Axis/StaticDeployment
    thanks & regards
    Shishir Shah

  • How to get the cookie from a web service using Axis

    I used the AXIS wizard to consume a WSDL and create a bunch of boiler plate code. It works great in that I can talk to the web service and submit requests.
    The problem is that I need to retrieve the cookie from the login request and use it when making subsequent requests. I have been unable to find the cookie and would appreciate a point in the right direction.
    Currently I'm trying something like this
    String cookie = (String)((Stub)service)._getCall().getMessageContext().getProperty(HTTPConstants.HEADER_COOKIE);
    Thanks in advance.

    Answered on my own:
    Just have to use
    x_result = http_client->response->get_data( ).
    instead of
    x_result = http_client->response->to_xstring( ).
    Just don't knwo why the filesize is wrong also - but I can work with this image!

  • Not able to access web service with axis and tomcat

    Dear all
    i am trying to access web service using axis in tomcat.
    i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat.
    i had tested axis, its working fine.
    i had created a simple java class(a sample class from book) and deployed it in axis. i also created a client(a java consol class) for accessing that web service. but its giving error. i have no idea why this is comming.
    plz point me in right direction.
    thanks in advance
    The error is:
    Exception in thread "main" AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/ArithmeticProcessor.jws
    faultActor:
    faultNode:
    faultDetail:
            {}:return code:  404
    <html><head><title>Apache Tomcat/6.0.14 - Error report</tit
    le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
    ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
    color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
    al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
    amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
    y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
    Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
    black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
    d><body><h1>HTTP Status 404 - /axis/ArithmeticProcessor.jws</h
    1><HR size="1" noshade="noshade"><p><b>
    type</b> Status report</p><p><b>message</b> <u&
    gt;/axis/ArithmeticProcessor.jws</u></p><p><b>descriptio
    n</b> <u>The requested resource (/axis/ArithmeticProcessor.jws) is n
    ot available.</u></p><HR size="1" noshade="noshade
    "><h3>Apache Tomcat/6.0.14</h3></body></html>
            {http://xml.apache.org/axis/}HttpErrorCode:404
    (404)/axis/ArithmeticProcessor.jws
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
    ava:744)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at ArithmeticClient.main(ArithmeticClient.java:50)

    Hi ,
    Please go through this link and check in this way only you created the webservice correctly or not. If not follow and do it definitely will get you the webservice access by iphone or any application.
    www.scribd.com/doc/19255987/Web-Services-in-Abap

  • Problem in building schema when try to invoke the another BPEL service

    Hi all,
    Whenever try to Invoke a another BPEL service using the Invoke activiy and Partnerlink, we need to create a variable structure similar to the providing service.
    For this I used create Auto Varible option available in the invoke activity. But after creating the variable, I tried to expand the variable for the copy operation, the error iam getting is Problem in building schema.
    This error never happened to me before. I have no clue.
    Jdev version:10.1.3.3.0
    Soa version:10.1.3.3.0
    Please help me on this.
    Thanks.

    Hi Lokesh,
    Iam not able to understand what you are trying to say. But my Input variable and Invoke Input variable are compatible, no problem on this. I got some clue from your reply.
    Finally I got it worked by doing it in another way.
    In my Invoking BPEL Process(ie. BPEL Process is trying to invoke the another BPEL Process using Partnerlink) wsdl I imported the partnerlink BPEL schema and it get solved my problem.
    eg) <import namespace="http://xmlns.oracle.com/BpelProcessname" schemaLocation="ParnerLinkBPELSchema.xsd"/>
    This can be usefull for others and I never did this to import the schema manually before, but it works without any errors.
    Now only it causing this problem, whether it is any Jdeveloper issue.
    And i tryed this using Jdev version 10.1.3.4.0, but still the same exception.
    This workaround will usefull for others.
    Thanks for your reply.
    bye.....

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

  • Invoking web service using Weblogic Workshop (JCX)

    Invoking web service using Weblogic Workshop
    Posted: 5 Jan 2005 23:31 PM Reply
    Hi,
    I have WSDL from which I have generated a web service control (.jcx) using Weblogic Workshop.
    I need to write a client which will invoke the web service using the control.
    Can someone help me on how to go about this ?
    BTW .. I also tried the clientgen route and tried to generated the proxy jar from the WSDL but wasn't successful because of a existing clientgen bug.
    Refer bug

    Hi,
    if the consumer of the webservice is a control-aware consumer ( pageflow, control, process ) simply drag the control to this consumer and the control variable is ready for use.
    if the consumer is not control-aware, try to generate a proxy using eg. the axis tool, or handcode your proxy class.
    links :
    how to use webservice control
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/conGettingStartedWithJavaControls.html
    axis
    http://ws.apache.org/axis/
    - Anders M.
    - Anders M.

  • 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

  • Invoke Service using SAAJ Client

    Hi,
    I trying to create a SAAJ client to invoke a web service which is already deployed. I am facing some difficulties in constructing the SOAP xml to invoke a method which is deployed. I am using AXIS 1.4 & TomCat 4.1.3.
    For example:
    I have a method validateIPAddress( String ) which is deployed in the server.
    public String validateIP(String ipAddress)
         if ( ipAddress.trim().length() > 0 )
         return "S100";
         else
              return "E100";
    To invoke the above method i wanted to create a SAAJ client. Kindly help me how to construct the SOAP request.
    Thanks in Advance.

    You say above:
    "When I test the service, it defaults to client 800 for authorization."
    Are you testing the service via SICF directly?
    To test from SICF
    Goto: transaction /nsicf   > default host ->                              
    sap -> bc -> gui -> sap -> its -> my_service
    o Select Test service from context menu of the service node         
    i.e: Right Click -> Test Service                                    
    This will launch the webgui service in the browser - from here logon
    to system again. From the OKFilecode type /n(transaction name)      
    What are the GUI Configuration settings of the service?
    Goto: transaction /nsicf   > default host ->                              
    sap -> bc -> gui -> sap -> its -> my_service
    Double click on "my_service"
    Tab: Service Data -> Button: GUI Configuration
    Where have you the client information specified for the service in SICF?
    What is the default client value under the "System Logon Settings"?
    Goto: Tab: Error Pages -> Tab: Logon Errors -> System Logon: Click the "Configuation Button"

Maybe you are looking for