Possible Bug: Web Service Results Collection Error

Doing some testing with APEX 4.02 on our development area, and running into an error..
Running a form/report built off of a web service reference, form prompts for an input, data is returned from web service to report just fine, but when I go into session view collections, I am given a report error: ORA-19011 Character string buffer too small.
Is this a known issue with collections and web services? I can confirm this was NOT an issue in 3.2, since we have just updated to 4.02 in past 48 hrs..
Thank you,
Tony Miller
Webster, TX
I cried because I did not have an office with a door until I met a man who had no cubicle.
-Dilbert

Tony:
Thanks for reporting the issue. There was a change in the session pop-up page to include reporting on the new xmltype column in collections. Unfortunately the wrong function is being called on the xmltype column to display its contents. This will be fixed in an upcoming release.
Application Express 4.0 Web service support makes use of this new xmltype column in a collection. Therefore if you call a web service that returns a large XML document, and you click the session toolbar, you will receive the error.
Regards,
Jason

Similar Messages

  • Possible Bug - Web Service Request Not Correct

    Hi,
    I am running ApEx 2.2 and think I may have come across a bug when referencing a web service that has been created using JDeveloper.
    I have created my WSDL in JDev that looks like the following:
    <definitions
    name="MyHelloWorldService"
    targetNamespace="http://helloworldserver/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://helloworldserver/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://helloworldserver/"
    elementFormDefault="qualified" xmlns:tns="http://helloworldserver/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <element name="getCountElement">
    <complexType>
    <sequence/>
    </complexType>
    </element>
    <element name="getCountResponseElement">
    <complexType>
    <sequence>
    <element name="result" type="int"/>
    </sequence>
    </complexType>
    </element>
    <element name="sayHelloElement">
    <complexType>
    <sequence>
    <element name="name" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="sayHelloResponseElement">
    <complexType>
    <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="IHelloWorld_getCount">
    <part name="parameters" element="tns:getCountElement"/>
    </message>
    <message name="IHelloWorld_getCountResponse">
    <part name="parameters" element="tns:getCountResponseElement"/>
    </message>
    <message name="IHelloWorld_sayHello">
    <part name="parameters" element="tns:sayHelloElement"/>
    </message>
    <message name="IHelloWorld_sayHelloResponse">
    <part name="parameters" element="tns:sayHelloResponseElement"/>
    </message>
    <portType name="MyHelloWorldService">
    <operation name="getCount">
    <input message="tns:IHelloWorld_getCount"/>
    <output message="tns:IHelloWorld_getCountResponse"/>
    </operation>
    <operation name="sayHello">
    <input message="tns:IHelloWorld_sayHello"/>
    <output message="tns:IHelloWorld_sayHelloResponse"/>
    </operation>
    </portType>
    <binding name="MyHelloWorldServiceSoapHttp" type="tns:MyHelloWorldService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getCount">
    <soap:operation soapAction="http://helloworldserver//getCount"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="sayHello">
    <soap:operation soapAction="http://helloworldserver//sayHello"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="MyHelloWorldService">
    <port name="MyHelloWorldServiceSoapHttpPort" binding="tns:MyHelloWorldServiceSoapHttp">
    <soap:address location="http://cjbrown-lap:8888/HelloWorld-HelloWorldServer-context-root/MyHelloWorldServiceSoapHttpPort"/>
    </port>
    </service>
    </definitions>
    When referencing this in ApEx it can see the methods getCount and sayHello, and it can also see all the input and output parameters. The problem comes when I test the web service.
    The request generated by ApEx is the following for the sayHello method:
    <?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/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body><namesp1:sayHello xmlns:namesp1="http://helloworldserver/"><namesp1:name xsi:type="xsd:string"></namesp1:name></namesp1:sayHello></SOAP-ENV:Body></SOAP-ENV:Envelope>
    This returns the following message from the webservice:
    <?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://helloworldserver/"><env:Body><env:Fault><faultcode>env:Client</faultcode><faultstring>Caught exception while handling request: unexpected element name: expected={http://helloworldserver/}sayHelloElement, actual={http://helloworldserver/}sayHello</faultstring></env:Fault></env:Body></env:Envelope>
    The correct request should in fact be:
    <?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/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body><namesp1:sayHelloElement xmlns:namesp1="http://helloworldserver/"><namesp1:name xsi:type="xsd:string">Chris</namesp1:name></namesp1:sayHelloElement></SOAP-ENV:Body></SOAP-ENV:Envelope>
    This will return the expected message:
    <?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://helloworldserver/"><env:Body><ns0:sayHelloResponseElement><ns0:result>Hello Chris</ns0:result></ns0:sayHelloResponseElement></env:Body></env:Envelope>
    What ApEx seems to be doing is using the name of the method, rather than what is being detailed in the WSDL as the expected input envelope. It is also not showing the input parameters as an input box in the test instead is shows "Report returned no rows".
    I have managed to get around this issue in a less than ideal way be modifying the NAME column in the WWV_FLOW_WS_OPERATIONS table to sayHelloElement instead of sayHello, and the TYPE_IS_XSD column in the WWV_FLOW_WS_PARAMETERS table to Y instead of N, in the FLOWS_020200 schema.
    It now works fine, but why what could have caused it to not be correct in the first place? The answer to this is very important to me as I am working on a way to call XML Publisher seemlessly, without using a URL link, from ApEx, and then emailing the output document to the user. I don't want to have to modify the underlying tables each time I add a new web service reference in ApEx.
    Any comments, views, assistance is welcome here.
    Many Thank in Advance
    Cj

    Tony:
    Thanks for reporting the issue. There was a change in the session pop-up page to include reporting on the new xmltype column in collections. Unfortunately the wrong function is being called on the xmltype column to display its contents. This will be fixed in an upcoming release.
    Application Express 4.0 Web service support makes use of this new xmltype column in a collection. Therefore if you call a web service that returns a large XML document, and you click the session toolbar, you will receive the error.
    Regards,
    Jason

  • Displaying Web Service Results in a Report

    have a web service registered with APEX (GET_DAY_OF_THE_WEEK).
    It tests fine from the Web Service References Panel.
    I am trying to follow the steps in the Oracle Database Application Express
    User's Guide [Release 2.2 Part Number B28550-01] under the Displaying Web
    Service Results in a Report topic.
    When I get to step 6 = "For Result Tree to Report On, select the portion of the
    resulting XML document that contains the information you want to include in the
    report." ... THERE IS NO PLACE TO -->"...select the portion of the resulting
    XML document that contains the information you want to include in the report".
    Is this a bug? Is there a workaround?
    Steve

    Hi,
    I'm having a similar problem - I have a work_date column and I want to use a date picker to select tasks performed between 2 dates.
    For example, on Page 3 I have a username,client_name and task fields. I have 2 date pickers, one for start date and one for end date, and a submit button.
    I want to be able to select '01-AUG-10' from the start_date, then '31-AUG-10' from the end_date, then redirect to a page (Page 41) when I click the button to run this:
    select username,client_name,task,work_date
    from replicon where
    username = :P3_USERNAME and
    work_date between to_date(:P3_START_DATE,'DD-MON-RR') and
    to_date(:P3_END_DATE,'DD-MON-RR')
    order by work_date
    but I'm getting this error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    The date format is "DD-MON-RR', and the work_date column is a "DATE" data type.
    The button items are "P3_USERNAME","P3_START_DATE" and "P3_END_DATE" with the same values (&P3_USERNAME etc), and the button redirects to page 41.
    I can't see how I can pass the username, start_date and end_date from Page 3 to Page 41. Am I using the correct ITEMS, or is it the query?
    Help appreciated.

  • HotFix 2 breaks web service results of type xsd:anyType

    I have a client that accesses a number of web services that
    return results as type xsd:anyType (the results are complex XML
    hierarchies that change according to db values). Before HotFix 2,
    in in my ResultEvent.RESULT event handler, I could get access to
    the result via the ResultEvent.result property. But since HotFix 2,
    the ResultEvent.result property is always null for web services
    results of type xsd:anyType (for other result types,
    ResultEvent.result is correct).
    This is a major nuisance!! I assume this is a bug, so can
    anyone suggest any workarounds while I wait for Adobe to fix it? I
    can access the result as a string via the EventResult.message.body
    member. And from there, I can parse the XML, and perform an
    XML-to-ValueObject conversion... does that sound reasonable? Does
    anyone have an examples of XML-to-ValueObject conversion code to
    help get me started?
    Any hints or tips would be most welcome ;)
    Thanks!
    Paul C.

    This has become a huge problem for me... it's boken my
    applications in *many* places :(
    Is there no-one with any suggestions?
    Paul C.

  • ORA-02263 when creating Report on Web Service Result

    Hi,
    I'm using Application Express 4.2.1.00.08 and I'm having problems creating a report on web service result.
    This is the tutorial I'm using: http://docs.oracle.com/cd/E14373_01/appdev.32/e13363/web_serv.htm (yes, I realize it's intended primarily for APEX 3.2).
    I am able to create the web service, but when creating a report on web service result, I get the following error in the last step:
    ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
    I have tried creating a report on the same web service result on apex.oracle.com (Application Express 4.2.1.00.08) and I don't get the error, and I am able to create the report.
    The same thing happens with another web service, so I'm puzzled.
    What could be the problem?
    Thank you.

    I wasn't able to solve the original problem, but I was able to recreate the process manually, using APEX_WEB_SERVICE.PARSE_RESPONSE function, documented here:http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_web_service.htm#autoId10
    Thanks again for your help!

  • HP Web Services Setup - Connection error. Check Internet connection.

    I am trying to enable HP Web Services but Connection error. Check Internet connection. .
    I use static ip with Preferred DNS Address: 8.8.8.8 and 8.8.4.4 and it does not work.
    I changed to DHCP also it does not work.
    I have a ZTE home modem router connected to the printer.
    This question was solved.
    View Solution.

    Hi MaBek,
    Can you check if your printers IP address is valid.
    If you have a laptop or PC connected to the same network, open a browser and type the IP address in the address bar and hit enter. 
    This should open a Embedded web Server page if the IP address is valid.
    Here you can navigate to Web Services tab and click on enable to enable web services.
    Regards,
    Oliver
    "Although I work for HP, I'm speaking for myself and not on behalf of HP"--Please mark the post that solves your problem as "Accepted Solution"
    "Say "Thanks" by clicking the Kudos Star in the post that helped you.

  • Consume Web Service In Coldfusion Error

    I'm having a problem using cfinvoke or adding this web service url in the coldfusion admin.
    <cfinvoke returnvariable="returndata" webservice="http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl" refreshwsdl="yes" method="PostData">
    I get the error for cfinvoke
    "Cannot generate stub objects for web service invocation. "
    "Name:
    http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl. WSDL:
    http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl. java.io.IOException: ERROR: Missing element inFault "SQLException" in operation "SQLException", in binding GetRates It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors. "
    and in the administrator
    ""Error creating web service. Please ensure that you have entered a correct Web Service name or URL.""
    The url is 
    http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl
    page loads fine in a browser...
    I do see an issue being brought up here in the wsdl, but I have no idea why...this isnt my wsdl btw..
    <wsdl:operation name="GetRates">
    <wsdl:input message="ns:GetRatesRequest" wsaw:Action="urn:GetRates"/>
    <wsdl:output message="ns:GetRatesResponse" wsaw:Action="urn:GetRatesResponse"/>
    <wsdl:fault message="ns:SQLException" name="SQLException" wsaw:Action="urn:GetRatesSQLException"/>
    </wsdl:operation>
    line 3
    any ideas?
    Thanks for any help...

    Sorry didnt post everything for the sake of space
    I just ended up using .NET to deal with the service..CF just didnt even recognize the url as a valid web service let alone care if I was passing arguments to it.
    On a side note, CF admin doesnt recognize the url as a web service and dreamweaver doesnt recognize the url as a web service either.
    <cfinvoke method="PostLead" returnvariable="returndata" webservice="http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl" refreshwsdl="yes">
    <cfinvokeargument name="SpecVersion" value="0">
    <cfinvokeargument name="ForteId" value="TESTID">
    <cfinvokeargument name="AuthKey" value="guestauthenticationkey">
    <cfinvokeargument name="LastName" value="0">
    <cfinvokeargument name="FirstName" value="0">
    <cfinvokeargument name="Address" value="0">
    <cfinvokeargument name="city" value="0">
    <cfinvokeargument name="state" value="0">
    <cfinvokeargument name="zip" value="0">
    <cfinvokeargument name="year" value="0">
    <cfinvokeargument name="vin" value="0">
    <cfinvokeargument name="make" value="0">
    <cfinvokeargument name="model" value="0">
    <cfinvokeargument name="phone" value="0">
    <cfinvokeargument name="crdate" value="0">
    <cfinvokeargument name="listcode" value="0">
    <cfinvokeargument name="odometer" value="0">
    <cfinvokeargument name="dually" value="0">
    <cfinvokeargument name="commercial" value="0">
    <cfinvokeargument name="convvan" value="0">
    <cfinvokeargument name="coverage" value="0">
    <cfinvokeargument name="term" value="0">
    <cfinvokeargument name="deduct" value="0">
    <cfinvokeargument name="av" value="0">
    <cfinvokeargument name="gps" value="0">
    <cfinvokeargument name="wt" value="0">
    <cfinvokeargument name="sg" value="0">
    <cfinvokeargument name="emis" value="0">
    <cfinvokeargument name="fintype" value="0">
    <cfinvokeargument name="finterm" value="0">
    <cfinvokeargument name="downpay" value="0">
    <cfinvokeargument name="cuscost" value="0">
    <cfinvokeargument name="paymeth" value="0">
    <cfinvokeargument name="cc" value="0">
    <cfinvokeargument name="expdt" value="0">
    <cfinvokeargument name="ccid" value="0">
    <cfinvokeargument name="routing" value="0">
    <cfinvokeargument name="banacct" value="0">
    <cfinvokeargument name="checking" value="0">
    <cfinvokeargument name="fbdt" value="0">
    <cfinvokeargument name="promo" value="0">
    <cfinvokeargument name="timeofday" value="0">
    <cfinvokeargument name="prefmeth" value="0">
    <cfinvokeargument name="email" value="0">
    </cfinvoke>

  • BUG: Web service returns request XML as response when result too large

    Hi,
    sorry for cross-posting, but the Web Services forum seems to be quite abandoned and this is an urgent issue for me.
    I have a web service returning some records of a given type (created using JDeveloper 10.1.3.3). The running environment and the service implementation do not seem to make any difference, as the situation is the same whether running it in embedded OC4J or in AS 10.1.3.1, and whether it is generated from a PL/SQL procedure or a method of a plain Java class.
    The problem is that if the result of this web service is too large (contains a lot of records), then the processing halts in some Oracle class in some web service library, so not in a debuggable generated web service source or in the service implementation itself.
    I think that the XML processing halts because of a "java.lang.OutOfMemoryError: Java heap space".
    Then a more serious problem follows: the service doesn't return a fault message but the original request XML as a response. Obviously, this can lead to some really unexpected errors.
    To reproduce this error:
    1. Create a Java class with a method returning an array of an arbitrary type, of the size specified in an input parameter.
    2. Create a web service from this class.
    3. Call it multiple times increasing the size parameter in every call until you get back the request as response or any error message.
    For example:
    - if you test the web service using the web page generated to access the endpoint, then you can see the response XML - in case you don't get an Internal Server Error (Java heap space).
    - if you use a generated web service proxy for testing, then it will give an error saying "unexpected element name: expected={namespace}someOperationResponseElement
    actual={namespace}someOperationElement".
    Any ideas how to locate / solve this problem?
    Regards,
    Patrik

    Patrik,
    the usual recommendation is to try with 10.1.3.3 instead of 10.1.3.1 to exclude you are hunting down an already fixed issue. From what you describe, the error seems less JDeveloper related than OC4J or OracleAs.
    So in case it reproduces in 10.1.3.3 I suggest to create a testcase and open a service request with support, or try the OC4J forum in case its known there.
    Frank

  • Bug in APEX 4.0.2 when parsing web service results?

    Receiving ORA-19010: Cannot insert XML fragments error in APEX 4.0.2 when trying to create and run a "Form and Report on Web Service" on any Oracle SES 11.1.2 web service operation
    Steps to recreate this error:
    SES
    - Install Oracle SES 11.1.2
    - Create a file source against a directory containing files and then crawl
    - Verify via the built-in SES gui that you can search and retrieve results
    APEX
    - Install APEX 4.0.2
    - Create a new database application from scratch
    - Create a new web service reference:
    shared components ->
    web service references ->
    create ->
    based on wsdl ->
    UDDI search: no ->
    http://[sesip:port]/search/query/OracleSearch?wsdl ->
    create reference
    (That creates a web service to Oracle SES with the default name of OracleSearchService)
    - Test the new web service:
    shared components->
    web service references ->
    test ->
    getAllAttributes (or whatever you want to test) ->
    test ->
    You will see a valid & correct raw XML request and response
    - Create a new web service search form/results using the apex wizard in the following manner:
    create page ->
    form ->
    form and report on web service ->
    next ->
    web reference type: generated from wsdl ->
    next ->
    web service reference: OracleSearchService. Operation: getAllAttributes (....BUT YOU CAN PICK ANY OPERATION - THEY ALL WILL FAIL. See http://download.oracle.com/docs/cd/E14507_01/apirefs.1112/e14433/oracle/search/query/webservice/client/OracleSearchService.html for documentation for all the SES web service operations).
    next ->
    next ->
    result tree to report on: Attributes (or whatever appropriate for the operation you chose) ->
    next ->
    select all columns to display ->
    finish
    - Now run the page, entering nothing or "en" for locale (or whatever is appropriate for the operation you chose) and then Submit
    - No matter what operation is chosen, no matter what parameters are entered, always receive "ORA-19010: Cannot insert XML fragments" error!
    PS - We can (and have) created and used APEX 3.1.2.00.02 against SES 10.1.8.3.0's web services without issue.

    Damir,
    I've tried to replicate this on apex.oracle.com, and could not. I sent a JPG file to my Yahoo account using the name 'Report (2011.05.01).jpg', and didn't encounter any issues. The name of the file received on Yahoo was still 'Report (2011.05.01).jpg'.
    I reviewed the code in APEX_MAIL. There isn't anything in there that would modify the filename as you suggest.
    Is there a chance it's being changed in your SMTP server / relay?
    Joel

  • Testing web service results in no response, but HTTP Error 500

    Hi All,
    I've already solved my problem, but I wanted to share my results. It took two days of pain, so you could imagine how wonderful I felt when it was solved. :)
    Problem: I am exposing PL/SQL procedures as web services, using JDeveloper 10.1.3. I noticed that when I expose procedures that return complex types (like records), it caused all of the web service calls to die silently. I couldn't see any other errors except Apache's HTTP 500 error. But when I ran the web service locally using JDeveloper's OC4J engine, I didn't receive any errors. Everything worked. I looked at the opmn/logs/* dir, and still no signs of the real error. So I set out to learn where I could view more logs, and I eventually found the error inside $ORACLE_HOME/j2ee/MyConatiner/log/MyContainer*/oc4j/log.xml, after I increased the verbosity.
    Solution: I found the "NoClassFound" error after I fiddled with j2ee-logging.xml. The funny part is, the error did not show up in the ERROR or INTERNAL_ERROR module types. Some of the wrapper Java classes that were generated to deal with complex types (records) and even arrays, were not being included in the EAR/WAR file for deployment! That's why when I ran the web service locally using JDeveloper, there were no errors (since the classes were present). Now, before I deploy I always check what is being deployed... :)
    Here's what I learned through the process. Hope it's helpful!
    keywords: http 500 error empty test response reply web service deploy complex data types arrays logs pl/sql procedures functions
    Debugging
    There are several places where logging occurs on Oracle Application Server 10.1.3.
    This is not a complete list, but it covers the main areas. Let's assume our OC4J
    container is called MyContainer:
    OPMN
        * tail -f $ORACLE_HOME/opmn/logs/*MyContainer*
        * To adjust the verbosity, use the Enterprise Manager web interface: click on
          the container, then on the Administration -> Logger Configuration. Now you can
          set the logging level for different components.
    Apache
        * tail -f $ORACLE_HOME/Apache/Apache/logs/*log
        * The file names depend on the ErrorLog? and CustomLog? directives in
           httpd.conf. You can adjust the verbosity by changing the LogLevel
           Apache directive.
    J2EE
        * tail -f $ORACLE_HOME/j2ee/MyContainer/log/MyContainer*/oc4j/log.xml
        * You can adjust the verbosity by editing
           $ORACLE_HOME/j2ee/MyContainer/config/j2ee-logging.xml. Look for the
           <logger> element, and set its 'level' attribute to 'TRACE:32' for the most
           information.
        * From experience, these logs are the best. :-)
    Oracle
        * tail -f $ORACLE_HOME/Apache/Apache/logs/oracle/log.xml
        * To enable and configure this logging system, add the following to your httpd.conf:
          OraLogMode oracle
          OraLogSeverity TRACE:32
          OraLogDir ORACLE_HOME/Apache/Apache/logs/oracle
        * More info: http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b25211/servlog.htm

    Thanks for sharing your tips on this forum, as it will be useful for other users, that run into this issue.
    Feedback like this will also help us improve error reporting in the next release, as missing class files in the packaged application is a common issue when developers are moving from the embeded oc4j instance packaged with JDewveloper to standalone instances.
    -Eric

  • Pl/Sql web service and collections not working

    Hello
    I'm trying to create a web service from a function in a package which returns a collection. The creation of the web service and its deployment seem to work correctly. I do get the following warning :
    WARNING: OWS-00077 The Value Type class: pxWsLang.PamLanguagerecordBase does not have a valid JAVA Bean pattern
    but I don't think this is the source of the problem.
    When I try to test the web service using the endpoint in the wsdl I get the following answer in the browser:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:Server</faultcode><faultstring>Error creating target: pxWsLang.WsLangUser</faultstring><faultactor></faultactor></env:Fault></env:Body></env:Envelope>
    In the DOS window for the OC4J I get the following error :
    2006-11-15 09:21:25.852 ERROR OWS-04005 An error occurred for port: {http://pxWs
    Lang/WsLang.wsdl}wsLangSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creati
    ng target: pxWsLang.WsLangUser.
    The PL/SQL code is as follows :
    Object:
    CREATE OR REPLACE TYPE PAM_LanguageRecord as OBJECT
    NR NUMBER(3),
    SYMBOL VARCHAR2(2)
    Collection:
    CREATE OR REPLACE Type PAM_LanguageTable as Table of PAM_LanguageRecord;
    Package body :
    create or replace package body PAM_TEST is
    function CursorTest return Pam_LanguageTable is
    Res_LangTable PAM_LanguageTable;
    cursor cur is select * from stc_languages;
    begin
    Res_LangTable := new PAM_LanguageTable();
    for Rec in cur loop
    Res_LangTable.Extend(1);
    Res_LangTable(cur%ROWCOUNT) := new PAM_LanguageRecord
    (Rec.NR,
    Rec.SYMBOL
    end loop;
    Return Res_LangTable;
    end;
    end;
    I'm using JDeveloper version 10.1.3.1.0.3984
    How can I get this to work ? (without using Apache Axis or other tools :-)
    Is it supposed to work ?
    Many Thanks
    Paul

    Hi,
    for the "error creating target" problem I found the solution here:
    [WS from a PL/SQL package]: Error creating target
    Hope this helps.
    Regards,
    Patrik

  • BW 3.5 Web Service set up error

    Hello,
    I am trying to set up SAP BI Webservice for XML Query Result Set on BW 3.5.
    When I try to maintain the external aliases (SICF) for my default host, I get the following error:
    Target service not available - repair table
    Message no. SR053
    Does anyone know which table I need to repair? I could not find anything on SDN, or in OSS that referred to this issue
    Cheers! Michael

    I also had similar kind of issues while actiavting the web service. See the attached thread.
    BW 3.5 Query view web service

  • Test web service published returns Error code: InternalError, Http status code: 500

    Further invastigating ther error mentioned here: 
    https://social.msdn.microsoft.com/Forums/azure/en-US/14afa50f-287d-4158-852a-c9532f9f30eb/test-published-web-service-experiment-error-with-status-code-400?forum=MachineLearning
    I have made an even simpler experiment with two python scirpt modules. The experiment again runs fine in Azure ML Studio but fails in the web service test with the error
    Error code: InternalError, Http status code: 500, Request id: 53eef674-190a-4f63-bdc6-a072a45a9c72, Timestamp: Fri, 24 Apr 2015 09:30:37 GMT
    The experiment consists only of two python script modules. The code of the first module:
    import numpy as np
    import pandas as pd
    def azureml_main(dataframe1 = None, dataframe2 = None):
        dataframe1.loc[1] = ["U5000","resB",np.nan]
        dataframe1.loc[2] = ["U5000","resC",2]
        dataframe1.loc[3] = ["U5000","resD",2]
        dataframe1.loc[4] = ["U5000","resE",np.nan]
        dataframe1.loc[5] = ["U6000","resA",np.nan]
        dataframe1.loc[6] = ["U6000","resB",1]
        dataframe1.loc[7] = ["U6000","resC",2]
        dataframe1.loc[8] = ["U6000","resD",np.nan]
        dataframe1.loc[9] = ["U6000","resE",1]
        dataframe1['hasRated'] = pd.Series(1, index=dataframe1.index).astype(bool)
        df_new = pd.DataFrame()
        df_new = pd.DataFrame(dataframe1[["restaurant","rating","hasRated"]])
        return df_new,
    The code of the second module that takes as input the result of the first module:
    def azureml_main(dataframe1 = None, dataframe2 = None):
    return dataframe1,
    A url of a screenshot taken from the experiment.
    http://i.imgur.com/4nrbneA.png
    Please respond. Again I am using a free workspace of Azure ML Studio.
    Thank you very much

    Thank you for your quick reply.
    I hope you will be able to resolve this issue soon.
    asavvopoulos

  • System.Web.Services.Protocols.SoapHeaderException error in script task

    HI,
    My requirement is I have to create a XML of each row from a table and push one XML data of each row to a web services. This is a syncronous call to web services where it will send the response of each row XML.
    The WSDL file is having a method called MATCHXML having 4 parameters namely ControlXML, BatchXML, Username, Password. I have created the ControlXML & BatchXML through code and storing into a string variable seperatly. The WSDL alos contains 4 input called
    RequestUUID, ChannelID, ServiceRequestID & ServiceRequestVersion which has to be send to web services compulsory along with the method. In order to implement this, first I have added Web reference of the Web service URL into library, then invoked the method
    to hit the web services. The code looks likes as below:
    //Initiated an object of the class from the WSDL file
    Matching match = new Matching
    string result = match.MatchXML(controlXML,BatchXML,Username,Password)
    Then, at the above line it display the below error:
    SSIS package "HunterAutomation.dtsx" starting. Error: 0x1 at Generates XML file & Update variable: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapHeaderException:
    Mandatory field is not set in EAI_SOAPINPUT; Element -> Environment.eaiCommon.BTID, Environment.eaiCommon.Header.ChannelID, Environment.eaiCommon.Header.RequestUUID, Environment.eaiCommon.Header.ServiceRequestId, Environment.eaiCommon.Header.ServiceRequestVersion
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.Hunter.Matching.Match(String controlXml, String batchXml, String username, String password) in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\Web References\Hunter\Reference.cs:line
    93 at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.ScriptMain.Main() in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\ScriptMain.cs:line 1307 --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object
    target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle
    typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
    Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
    at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript() Task failed: Generates XML file & Update
    variable Warning: 0x80019002 at For Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of
    errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. Warning: 0x80019002 at HunterAutomation: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised
    (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. SSIS package "HunterAutomation.dtsx" finished: Failure.
    In order to solve the issue i have manual created the soap header code. Now Im not understanding how to send the soap header XML message along with the MATCHXML method. I am trying very hard to solve the issue from last 3 weeks but NO LUCK.
    Could anyone please help me out on this and I'm already running out of my deadlines.

    Ok, from the looks of it you're calling the web service from within an SSIS package. Are you able to call the web service in a stand-alone C# console app and is the error just occurring in the SSIS package or not? If it occurs in both situations, continue
    development in in the C# console app as this will make debugging easier. Also, in order to help you further, are you calling a web service under your control or not, and is the web service a WCF service or not?
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Web Service:  XML Deserialization Error

    Hallo experts
    I call one service on the SAP Applikation server (7.1 Enhancement) and get the following error:
    com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. Empty node passed to deserializer com.sap.engine.services.webservices.jaxrpc.encoding.primitive.DateTimeSD which is not acceptable.&#13;
    If I use the SOAP to call the service I got the answer as following:
    has no value. Is this the reason that causes this problem?  If it is, how can I get the result in this case withoutrthis error. Because we get always Items from the backend that some fields were not filled.
    Thanks a lot and
    Nice regards!
    Ping

    Hi Bala,
    I tried your suggestion but that did not work!
    I am not trying to test that web service via WSNavigator.
    Problem is my service does not come there once i deploy it.
    I am a newbie to WebServices so please correct me where am I wrong in these steps:
    1. I create a Deployable Proxy Project
    2. Then, i create a new Client Proxy Definition
    3. I enter pkg name, Proxy name, choose Local System. Then i give the WSDL location and finally press Finish.
    (It has created several files including ClientAPI.jar)
    4. Lastly, i chose Build EAR and deployed it.
    But i cannot see my web service in that list!
    Can you please help me in checking the request-response cycle for this web service.
    Regards,
    Dev

Maybe you are looking for

  • How can I get iPhoto on my Mac to recognize my new iPhone 6?  (iTunes does recognize it!)

    I got one of the new iPhone 6s (the smaller version) and it's been working great.  I was able to restore an old backup from my 4S and transferred everything over.  iTunes recognizes the new phone and I've had no problems bringing files within apps on

  • How to create database in tomcat

    i am using net bean i want to know how to use mysql in tomcat what stuff i need to install for it . thank!!

  • 1130AG not joining controller - FAILED CRYPTO INIT

    I am trying to join my 1130AG-E-K9 AP to my 2016 WLC, but it is stuck in a boot loop and will not connect to the controller. The error I'm getting is: *Mar  1 00:00:29.584: %CAPWAP-3-ERRORLOG: Could Not resolve CISCO-CAPWAP-CONTROLLER *Mar  1 00:00:2

  • Discussion Forum, Forum doesn't create

    I am trying to use a Discussion Forum in my portal but in admin when I try to create a forum it doesn't create or post. I followed the directions in loading the components and both the user and the admin displays as expected. Discussion Forum works f

  • Client Settings for SM 4.0

    Hi Experts, Can any one explain the client settings in Single SM land scape. My solman is prompting for Transport Request while I do some SPRO settings. What is standard client setting for single solman client. Thanks Samba