Java exception when invoking web service

I am using JDeveloper 10.1.3.04 to deploy a PL/SQL function as a web service to 10gIAS. I can deploy the service, but when invoking it from the endpoint my SOAP output looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
<faultactor>/GetAmountContextRoot/MyWebService1</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Deploying what is essentially the same web service to the OC4J instance that comes with JDeveloper, my SOAP returns the expected value:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://devl29ieda/MyWebService2.wsdl/types/"><env:Body><ns0:returnAmountResponseElement><ns0:result>305249</ns0:result></ns0:returnAmountResponseElement></env:Body></env:Envelope>
I believe the problem is within the Java code created by the Web Service Wizard, but I do not know where.
Any help would be greatly appreciated.
Steven

Hi Steven,
You may want to look at the log on the server side to see if you have any hint that may help you track down where the NPE is comming from.
As you are using PL/SQL function, the other think you want to check is that the datasource information are properly defined in both environment.
Hope it helps,
-eric

Similar Messages

  • "Error while parsing SOAP XML payload: no element found" received when invoking Web Service

    Running PB 12.1 Build 7000.  Using Easysoap.  Error ""Error while parsing SOAP XML payload: no element found" received when invoking Web Service".  This error does not appear to be coming from the application code.  Noticed that there were some erroneous characters showing up within the header portion of the XML ("&Quot;").  Not sure where these are coming from.  When I do a find within the PB code for ""&quot;" it gets located within two objects, whereas they both reference a "temp_xml_letter".  Not sure where or what temp_xml_letter resides???   The developer of this is no longer with us and my exposure to WSDL and Web Services is rather limited.  Need to get this resolved...please.
    This is the result of the search.  Notice the extraneous characters ("&quot;"):
    dar1main.pbl(d_as400_mq_xml)
    darlettr.pbl(d_email_xml)
    ---------- Search: Searching Target darwin for 'temp_xml'    (9:52:41 AM)
    ---------- 2 Matches Found On "temp_xml":
    dar1main.pbl(d_as400_mq_xml).d_as400_mq_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> number </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    darlettr.pbl(d_email_xml).d_email_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> imcnumber </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    ---------- Done 2 Matches Found On "temp_xml":
    ---------- Finished Searching Target darwin for 'temp_xml'    (9:52:41 AM)

    Maybe "extraneous" is an incorrect term.  Apparantly, based upon the writeup within Wiki, the parser I am using does not interpret the "&quot;"?  How do I find which parser is being utilized and how to control it?
    <<<
    If the document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities (see above) can safely be used, although other entities may be used if they are declared in the internal DTD subset.
    If the document is read by an XML parser that does read external entities, then the five built-in XML character entities can safely be used. The other 248 HTML character entities can be used as long as the XHTML DTD is accessible to the parser at the time the document is read. Other entities may also be used if they are declared in the internal DTD subset.
    >>>

  • Connection Reset Error, When invoking Web Services

    I'm trying to invoke a web service using 'Invoke Web Service' Operation. Its works for 8 out of 10 times. Sometime it stalled with "Conneciton Reset' error.
    When retry this stalled action from AdminUI, its works fine.
    Can someone advise on this issue?
    I have attached the error log for reference.
    Thanks,
    Nith

    If you attempt to retry the stalled component through adminui, it will work. Am i correct?
    If so, you can test the following approach.
    1. drag a blank component (e.g a decision point)
    2. connect a line between the exception of the Web Service Invoke operation to the decision point.
    3. Choose java.io.IOException from the eeception drop down.
    4. again connect the decision point back to the web service invoke component. (i mean a looping)
    This approach was working fine with me.
    Please see the attached image shows my routing.
    PS: After a couple of days, I tested without looping and it seems to be working. So I removed the loop now.
    Thanks,
    Nith

  • Java.sql.SQLException: Closed Connection error when invoking web service

    Hi
    I've assembled a simple web service for an Oracle PL/SQL package and deployed it on a Standalone OC4J, when I come to invoke it on the Oracle Enterprise Manager screen I'm getting the following returned within the envelope body:
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (serialization error: java.sql.SQLException: java.sql.SQLException: Closed Connection)</faultstring>
    </env:Fault>
    </env:Body>
    The function that is called within the database returns a user defined object that consists of a RAW value and an XMLTYPE. The function takes a string as a parameter, when I enter a string that I know will not return an object there is no error in the envelope body, only when there is an object to return does the error appear.
    Anyone have any suggestion as to why this is?

    I'm no further forward with this: has anyone assembled, deployed and invoked a web service that returns a XMLTYPE?? I know this should be possible but I think there's maybe some manual intervention required with the classes created with webservicesassembler: I'd really appreciate it if anyone with any experience of this kind of thing could help me think this through.

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Proxy Error When Invoking Web Service

    Hi all,
    i created a web service from a session bean,
    when i invoke the web service from my web browser it works great,
    but when i try to invoke it from a bpel process, i get the following error in the Invoke Activity:
    when invoking endpointAddress 'http://10.0.1.159:8989/EJB-Application2-Model-context-root/updatePayloadServiceSoapHttpPort', (502)Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL). )
    any idea what to do to resolve this issue?
    thanks

    It seems that your proxy server refuses serve requests for your private network (10.0.x.x).
    Try to turn off proxy server in your BPEL. In devel server turn off proxy (or add this address to exceptions) in <ORAHOME>\integration\orabpel\bin\obsetenv.bat
    and if you are using full AS, go to EM a change parameters for these server properties:
    -Dhttp.proxySet=true
    -Dhttp.proxyHost=yourproxy
    -Dhttp.proxyPort=proxyport
    -Dhttp.nonProxyHosts=10.0.1.159|and rest of your exceptions
    Peter

  • How to set clock skew property at client side when invoking web services

    Hello,
    now we're using weblogic 11g, we want to set the clock skew properties.
    in server side, we "Create a Web Service security" to set the "Clock Skew" property, change it value from 60000 to 120000, then we invoke the web service from stand-alone client on another machine, the clock skew between the server machine an client machine is 80000. but it still throw exception:
    javax.xml.ws.soap.SOAPFaultException: Message Created time past the current time even accounting for set clock skew+
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processResponse(TubeFactory.java:241)+
    we think we still need set the clock skew at client side. in webloigc8.1 doc(http://download.oracle.com/docs/cd/E13222_01/wls/docs81/webserv/client.html), we find there's properties such as "weblogic.webservice.security.clock.precision" we can set in client side, but in weblogic 10.3 doc, we can't find these properties.
    now how to set the clock skew at stand-alone client in weblogic 11g?
    Thanks!
    Fred

    Hello,
    now we're using weblogic 11g, we want to set the clock skew properties.
    in server side, we "Create a Web Service security" to set the "Clock Skew" property, change it value from 60000 to 120000, then we invoke the web service from stand-alone client on another machine, the clock skew between the server machine an client machine is 80000. but it still throw exception:
    javax.xml.ws.soap.SOAPFaultException: Message Created time past the current time even accounting for set clock skew+
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processResponse(TubeFactory.java:241)+
    we think we still need set the clock skew at client side. in webloigc8.1 doc(http://download.oracle.com/docs/cd/E13222_01/wls/docs81/webserv/client.html), we find there's properties such as "weblogic.webservice.security.clock.precision" we can set in client side, but in weblogic 10.3 doc, we can't find these properties.
    now how to set the clock skew at stand-alone client in weblogic 11g?
    Thanks!
    Fred

  • Return NULL when invoke Web Service via UTL_DBWS

    Hi all,
    right now, i'm using UTL_DBWS to acces Web Service via database.. but when i'm trying to get data from WEB SERVICE, using utl_dbws.invoke , i got NULL value.
    It happened if The result more than Varchar2 / 32767 byte.
    i'have tried to change code by :
    result := sys.utl_dbws.invoke(l_call, l_input_params);
    P_clob := sys.anydata.accessCLOB(result);
    The Output IS NULL value even if the data was less than Varchar2 or 32767 byte..
    this is my script looks like ::
    declare
    service sys.utl_dbws.SERVICE;
    l_call sys.utl_dbws.CALL;
    result ANYDATA;
    wsdl_url VARCHAR2(1024);
    service_name VARCHAR2(200);
    operation_name VARCHAR2(200);
    input_params sys.utl_dbws.ANYDATA_LIST;
    p_out VARCHAR2(32767);
    p_xml XMLTYPE;
    p_clob CLOB;
    begin
    wsdl_url := 'http://127.0.0.1/Exercise/WSDL2.php?wsdl';
    service_name :='{urn:hellowsdl}hellwsdl';
    operation_name := 'getData';
    service := sys.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(wsdl_url),
    service_name => service_name);
    l_call := sys.utl_dbws.create_call(
    service_handle => service,
    port_name => null,
    operation_name => operation_name
    input_params(1) := ANYDATA.ConvertVarchar2('DOCCODE');
    result := sys.utl_dbws.invoke(l_call, l_input_params);
    p_out := sys.anydata.accessVarchar2(result);
    sys.UTL_DBWS.release_call (call_handle => l_call);
    sys.UTL_DBWS.release_service (service_handle => service);
    end;
    Thanx for Any Help

    The basics are simple:
    - format a valid SOAP envelope
    - use UTL_HTTP to make the call
    - process the response (typically XML output)
    Sample source code in {message:id=4205205}.

  • Exception while invoking web service

    Hi all,
           I am trying to consume a web service which is actually a BAPI which is being exposed as a WS. The BAPI is BAPI_COMPANYCODE_GETLIST. The following is the code that I use to execute the Web service:
    /***************************Code Begins*************************/
              MO_CompanyWS model_inst = new MO_CompanyWS();
              Request_BAPI_COMPANYCODE_GETLIST request_para = new Request_BAPI_COMPANYCODE_GETLIST(model_inst);
              BAPI_COMPANYCODE_GETLIST input_values = new BAPI_COMPANYCODE_GETLIST(model_inst);
              request_para.setBAPI_COMPANYCODE_GETLIST(input_values);
              wdContext.nodeRequest_BAPI_COMPANYCODE_GETLIST().bind(request_para);
              try
                   wdContext.currentRequest_BAPI_COMPANYCODE_GETLISTElement().modelObject().execute();
              catch(Exception exp)
                   wdComponentAPI.getMessageManager().reportException(
                                       "Exception - " + exp,
                                       true);
    /*************************Code Ends**************************/
    I am getting the exception as follows -    java.io.FileNotFoundException: C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
    Can someone help me out in getting the problem solved?
    Here is the detailed exception -
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL ' C:\Documents and Settings\Desktop\ZGetCompanyList.xml' and service factory configuration 'null'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:422)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:326)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:199)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1035)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:248)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
         at com.cts.wsmodel.MO_CompanyWS.<init>(MO_CompanyWS.java:51)
         at com.cts.bapiws.BAPIWSView.wdDoInit(BAPIWSView.java:111)
         at com.cts.bapiws.wdp.InternalBAPIWSView.wdDoInit(InternalBAPIWSView.java:233)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:707)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:91)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:420)
         ... 45 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:147)
         ... 49 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file: C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified) -> java.io.FileNotFoundException:  C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1038)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1125)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 50 more
    Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
         at java.net.URL.openStream(URL.java:913)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:201)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:263)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
         at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
         at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1022)
         ... 52 more
    Thanks in advance.
    ~Subathra M

    Hi,
    Are u deploying your application in another server or local server?
    This FileNottFoundException will be caused if no such file found in specified path..
    Make sure the file is present in the Specified path.. in the server in which you are
    deploying..
    Regards
    LakshmiNarayana

  • CX_SY_CONVERSION_NO_DATE_TIME:XSLT exception when calling Web Service

    I have created a Web Service on our Sandbox SAP server and am attempting to call it from our DEV SAP Server.  The returning structure contains date fields that sometimes are null. A null date field in SAP is equal to 00000000.
    When I call the Web Service and the date values are null, I get the following exception:
    CX_SY_CONVERSION_NO_DATE_TIME:XSLT exception.An error occurred when deserializing in the simple transformation program /1SAI/TXS982F8A669D1A54B7AD0D.
    Value 0000-00-00 is not a valid date in accord with the XML format for ABAP
    I would not expect to see this type of error, sense the call is between two SAP systems. 
    Is there anyway to fix this without moving space to any null date field in the function module?
    That's kind of annoying to do sense I have so many date fields.
    Example:
    IF date1 IS INITIAL.
        MOVE space TO date1.
    ENDIF.
    IF date2 IS INITIAL.
        MOVE space TO date2.
    ENDIF.
    IF date3 IS INITIAL.
        MOVE space TO date3.
    ENDIF.
    IF date4 IS INITIAL.
        MOVE space TO date4.
    ENDIF.

    Hi All,
    I got a solution for this exception. Hope it will help to all facing this problem.
    I was using proxy created from SE80.
    In my proxy for exporting parameters of methods I have changed all date fields.
    Earlier it was having Techn. type under Attributes of fields : XSDDATE_D. I chnaged this to DATS.
    It worked fine.
    Manish

  • Transaction Output when invoked Web Service

    Hi all,
    I have developed a transaction which has an output parameter of type list, derived from the classic ERP BAPI Flight Get List
    When I invoke the transaction as web service from a SOAP test tool I get a SOAP response like:
    <MyTestOutput>
    [[string:FRA], [string:TYO], [string:FCO],  [string:KIX]]
    </MyTestOutput>
    So the output xml element is just one, containing the whole list.
    I don't like this because the web service consumer must parse that element to get all the result items.
    What I would like is a more xml-like output structure, such as:
    <MyTestOutput>[string:FRA]</MyTestOutput>
    <MyTestOutput>[string:TYO]</MyTestOutput>
    <MyTestOutput>[string:FCO]</MyTestOutput>
    <MyTestOutput>[string:KIX]</MyTestOutput>
    Is there a simple way to achieve that?
    In the help/guides I have studied there's no hint about how to do so.
    Thanks, regards
    Vincenzo

    Hi Vincenzo,
    I reopened your thread. 
    Instead of making your output parameter type of List, create an output parameter of type xml.  If you look at most of the transactions available as downloads, you will see numerous examples of the types of structures the xml will accomodate.  And you will not have to convert the outputs back to xml for further processing.
    If you use a repeater to build your xml, you can accomplish the structure you desire.  Alternatively, you can build an MII Document and the format will be
    <Rowsets>
    <Rowset>
    <Row>
    <your Fieldname>
    data1
    </your Fieldname>
    </Row>
    <Row>
    <your Fieldname>
    data2
    </your Fieldname>
    </Row>
    <Row>
    <your Fieldname>
    data3
    </your Fieldname>
    </Row>
    <Row>
    <your Fieldname>
    data4
    </your Fieldname>
    </Row>
    </Rowset>
    </Rowsets>
    Regards,
    Mike
    Edited by: Michael Appleby on Sep 20, 2011 1:29 PM

  • Generic Java client to invoke web service

    Hi,
    1.We have a web service HelloWorld registered in UDDI registry (private) of weblogic.
    2.We have written a client that returns the WSDL URL and it is inturn passed to another piece of code where it invokes the the remote method of webservice.
    In the above case,our problem is that the client we wrote became specific to the webservice(HelloWorld port, HelloWorld everything specific to HelloWorld webservice).
    But our intention os that we have to write a client which should be generic to access any webservice by providing the Service Name and business name.
    The UDDI publishing and querying is going well with a code where it returns the WSDL url after this we have to write generic code to access the remote method on webservice.
    I appreciate anyone give me a solution to solve.
    Thanks
    VR

    hi,
    The WSDL is available at
    http://www.webservicex.net/stockquote.asmx?WSDL.
    This WSDL has multiple ports and bindings.How do I
    now which port/binding I should use?Hmm, hard to find a general answer. Each <port> element is linked to a single <binding> element. So, if you want to handle a certain binding, you have to access the corresponding port. Talking about your WSDL example, if you want to access the web service over, let's say, HTTP/GET you must access the <port name="StockQuoteHttpGet"> element. If you want to send a SOAP message, you must access the <port name="StockQuoteSoap"> element, and so on.
    So depending on what type of message you want/have to send to the server, you have to access the corresponding <port> element.
    In my code I am fetching the list of ports using
    service.getPorts().Then I am iterating thru the list
    and fetching the last port available in the List.I am
    using this port further in my program.Is this the
    right way?Can I use any port among the ports
    available in the service.Generally spoken no! As I explained above, the actual <port> element of interest depends on the type of service you want/have to call. Very seldom the Web Service provider will offer a HTTP version of a certain operation. Mostly you have to hit a SOAP endpoint to get your response.
    When I use the above approach I have a problem with
    the Ouput format.When executing the webservice
    client,the output format received and the output
    format mentioned in the WSDL for that portType are
    different.I mean, I get an Output format defined by
    some other portType than the portType my program is
    binded to.
    When parsing the above mentioned WSDL,my program
    binds to the last port i.e., StockQuoteHttpPost,and
    identifies the output format as "Body" tag.
    But when I print the Output from the webservice it is
    different.It is looks like thisOk, that looks strange indeed. I can't imagine that the web server would respond with a SOAP message to your HTTP/POST request. However, technically it is possible because everything defined in the corresponding WSDL section says that the response will contain an xsd:string. "Body" is the name of the part, to be able to identify it, and does not need to occur in the response. So, the response is probably ok...
    <wsdl:message name="GetQuoteHttpPostOut">
    <wsdl:part name="Body" element="tns:string"/>
    </wsdl:message>Anyway, I would have expected a list of key-value pairs instead:
    Symbol=SBYN
    Last=3. 17
    Date=6/22/2005
    Time=3:59pm
    Change=0.00
    Open=N/A
    High=N/A
    Low=N/A
    Volume=0
    MktCap=2 72.0M
    PreviousClose=3.17
    PercentageChange=0.00%
    AnnRange=2.53 - 4.20
    Earns=0.04
    P-E=79.25
    Name=SEEBEYOND TECH COcheerz, r.

  • Problem when invoke Web Service.

    Hi all.
    I have an interface that receive an IDoc and map it against a Web Services. In SXMB_MONI there is only one record and segment occurrence in XML is 0...1
    In Receiver system's log  figure that the web services was invoked too many times by XI.
    Any Idea about it?
    Thanks & Regards.
    RP

    Hi,
    May be it is because of the ReTry attempt from the integration engine to deliver the messages,,
    Check out the RWB>Message Monitoring>Message Display tool to do the analysis..
    How many messages are there in the SXMB_MONI ? I don't think so, it is because of occurence of the data.. check the message mapping...
    Rgds,
    moorthy

  • Gracefully throwing a error when the web service is down

    Guys,
    I have web service calls in my application. (through web service data control).
    My Appliacation throws exception when the web service is down. i want to my application to throw some meaningful error on the UI.
    How this can be acheived?

    Hi,
    you can use a custom error handler defined in the DataBindings.cpx file or use a declarative exception handler in ADF Controller
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/web_adv.htm#CIHHBEEJ
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/taskflows_complex.htm#BACJCBIC
    Frank

  • Invoking web service in portal

    hi all,
         When invoking web service in a portal, what is the difference between the follwoing?
    Portal Service from WSDL file - client side and
    Portal Service from WSDL file - server side
    Thanks & regards,
    M.Subathra

    Hi Kevin Leung,
    Can you check with this link, i think you get the stuff :
    http://help.sap.com/saphelp_nw2004s/helpdata/EN/86/58cd3b11571962e10000000a11402f/frameset.htm
    Regards,
    S.Manu.

Maybe you are looking for