FileAdapter to JaxRpc web service, all or nothing

I've managed to use the File Adapter to read batch files (both positional and delimited) and for each record invoke a synchronous Web Service exposed by my J2EE app to update that application with my data. Now I would like to do the same thing, but have the entire system reject/rollback all updates from an inbound file if ANY of the records encounter errors (either during the reading/transformation or during the WS call).
Is this possible, and if so, how would I go about doing it? FWIW the application is using OC4J,TopLink,Struts,Spring,Axis. The web services in question have been created specifically for this purpose, so can be modified if required.
Thanks,
Richard

I discussed with Dev Group on this feature. Here is the response below.
Yes, "all or nothing" was the old default behavior. We introduced a notion of "uniqueDelimiter" in order to have "reject only bad records" functionality. Richard should just be able to remove the "uniqueDelimiter" in his nxsd file to revert to "all or nothing" functionality. Otherwise please ask him for his nxsd file and we can take a look.
if you need further details, please send your requirement to [email protected]

Similar Messages

  • PL/SQL web service--all users share the same database session

    Hi, Is anyone else running into this? If I set a package variable in a pl/sql package through the web service from one client and then connect with another client, I can see the value of the package variable set by the first client. So it appears that instead of being 'stateless', as the documentation claims, that all users are actually connecting to the very same session--and sharing the same memory and variable values.
    When I test my application by myself, I don't run into any problems. But the application I'm working on allows over 1000 students to select dorm rooms concurrently. The timing for that large a group is fine enough that I do have more than one person executing the same section of code simultaneously. This is a serious problem! I'm going to try using pragma serially reuseable on my packages to see if that will take care of it.
    Has anyone else run into this problem? What do you do about it? Is this an issue with the web service? Or the application server?

    Hello!
    I have a question. You seem to be getting somewhere. In the reference (in your post) there is no mention of web.xml Is it a generated file or a file created by you? I am getting IOException error when generating EAR file. What could be wrong? Please help
    TAI
    habeeb

  • Apex 4.1 Form and Report on Web Service Report displays nothing

    Hello I created and tested a webservice using the test feature in Apex 4.1.
    I know the results is a string of 1 row.
    I created a Form and Report on Web Service. When I run the form there is nothing displayed in the Reports section its just blank.
    If I run the sql from the results region I get no data found.
    Is the problem the returned data is not stored in the collection?
    Edited by: Oracle Primavera on Oct 26, 2011 3:32 PM

    What would be the reason for the following.
    Testing the webservice in apex returns values.
    However when I run Form and Report on Web Service Report if I query the collection it is always empty?
    Does anyone have any experience on this issue? Is it a bug? Please some hints I have been trying for two weeks without success.

  • MS Office Research JAXRPC web service disconnect

    I'm trying to create a custom MS Office Research service using JAXRPC in jwsdp1.6. I've got my service returning a Registration response that looks structurally/semantically equivalent to that of the sample Google service. However MS Word is rejecting my response. There are a few differences having to do with the response headers and how namespaces are declared. The headers of the Google service look like this:
    HTTP/1.1 200 OK
    Server: Microsoft-IIS/5.1
    Date: Thu, 20 Oct 2005 22:19:37 GMT
    X-Powered-By: ASP.NET
    X-AspNet-Version: 1.1.4322
    Cache-Control: no-cache
    Pragma: no-cache
    Expires: -1
    Content-Type: text/xml; charset=utf-8
    Content-Length: 1802
    while my JAXRPC service response headers look like this:
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    SOAPAction: ""
    Content-Type: text/xml;charset=utf-8
    Date: Thu, 20 Oct 2005 23:45:04 GMT
    Connection: close
    Is there any header (present or missing) in the JAXRPC list which would cause Registration to fail?
    Also, the Google SOAP Envelope and Body tags start off this way:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body>
    <RegistrationResponse xmlns="urn:Microsoft.Search">
    <RegistrationResult>
    while my Envelope and Body tags start this way:
    <?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:enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:ns0="urn:Microsoft.Search">
    <env:Body>
    <ns0:RegistrationResponse>
    <ns0:RegistrationResult>
    Could Microsoft possibly have a problem with the differing methods of declaring and using namespaces?
    Finally, is there any way to get more information from MS Word about why it's failing? Maybe a log somewhere or a verbose message setting?
    Thanks for any advice!
    Jim Sweeney

    Ok, I've narrowed the problem down to the ns0 namespace alias on the RegistrationResponse and RegistrationResult tags. MSWord does not like that these names are prefixed with the alias. Is there any way to modify the WSDL or other jax-rpc inputs so that the Envelope tag declares the default namespace as xmlns="urn:Microsoft.Search" instead of declaring the alias xmlns:ns0="urn:Microsoft.Search" when my jax-rpc service writes the response?
    Thanks!

  • Web Service call to BPM to call another Web Service - all synch

    HI all,
    I have a webservice call to GetDocument from external system. In BPM I like to call another ws (SearchDocument) to retrieve metadata, which I need to complete the first GetDocument webservice. All synch if possible.
    Any idea how to achieve this with (or mayby without) BPM ??

    Thanks for your reply. Can you elaborate on that a bit more ?
    My first WS call is to get a document..but because I need to add some metadata in order to have a succesful call I need to call another WS first to the same system to get the required metadata. Then I need to use this metadata to complete the first - GetDocument- call....
    Hope this clarifies the scenario...
    Is it maybe possible to do this another way..in sequence..using response data to populate another ws call ??
    all help appreciated !
    cheers,

  • [jaxrpc] defining web services and WSDL spec

    Greetings,
    I'm starting in JAXRPC web service's concepts and its WSDL specification. After I tested some samples from the jaxrpc tutorial, I tried to make my custom web service, but, I have problems when I deploy the web service and I tried to see in my browser the endpoint url - I got a internal server exception! I pick up the hello sample, I added to it my custom core sample web service functionality - using the same operations, the same signatures methods - and it worked fine!!
    So, what' is wrong? The main difference between them is that I have differents configuration files for xrpcc that will give a wsdl files for each one. Whats changes? The service name? The interface/package name? Is there some kind of limitation in the package name convention with the service names beyound the basic ones in the xrpcc (jaxrpc) specification?
    thanks,
    Pedro Salazar.

    I upgraded webservices developer pack to 1.0 version (final) and I solved my problems!
    Pedro Salazar

  • Adobe forms with Web Service - nothing happens when clicking button.

    Hi,
    I am trying to develop adobe forms with web service. The web service
    WSDL location is :- [http://www.webservicex.net/uklocation.asmx?wsdl]
    I have created a new dataconnection with the above URL, drag & drop fields & button onto the form & save the form.
    when I open the PDF on my local machine, enter the post code and push button, nothing happens. no error/warning message.
    I also downloaded a web service example PDF from [http://partners.adobe.com/public/developer/tips/index.html]
    This form also has button to execute a web service but again nothing happens?
    Any clues why this is happening? I turned off my firewall thinking it might be blocking but no joy
    I am using Adobe Life cycle Designer 8 & Adobe reader 8.
    Thanks,
    Pankaj
    Edited by: PANKAJ ARORA on Jan 15, 2009 5:28 AM

    Hi Pankaj,
    While you are creating Webservice from Java file, select the Aunthenticationtype as SimpleSOAP instead of Basic SOAP (Bydefault BasicSOAP is selected, Change it to SimpleSOAP).
    There are some steps after you create a Webservice.
    First Download WSDL on your Local Machine from WAS.
    After that when you open the zip file you get 3 WSDL's.
    There we need to combine the 3 wsdl's and make it into one wsdl after you do this process.
    Incorporate the WSDL in your interactive form and drag and drop the button onto the form.
    Please don't try to edit any of the method because it will not work if you try to change any feature.
    If you want to write Javascript for that method write it in "enter" method, script type:Javascript.
    If you have any queries you can ping.
    (The below link helps for you i guess)
    [Interactive Forms and Web Service Integration|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26]

  • Please Help! Unable to create a web service.

    Hi all,
    I have created a deployable proxy, a EJB with a stateless session bean, and a enterprise application project with the above ejb added. I add the deployable proxy into ejb, so that i can utilize the interface(web service) provided by the external party. After i implement the code to call the web service from external party in stateless session bean, i should create a web service by right click on session bean>New>Web Service. However, nothing was happened while a pop up window of web service creation wizard should appear. NWDS showed "End Point Doesn't Exist" when i tried to create the web service by File>New>Others>Web Service>Web Service (New VI and WSD).
    Anybody have any idea of it? Your help will be apperciated.
    Warmest Regards,
    Jane

    Hi all,
    I notice that once i implement the interface from deployable proxy, the problem of "SEI doen't exist" appeared.
    Anyone can help pls? anyone encounter the same problem before? It is urgent.
    Thank in advance.
    Warmest Regards,
    Jane

  • ORA-01403: no data found when calling a web service from HTMLDB

    I am working through Section 6 How to Implement a Web Service of the HTML DB 2 Day Developer tutorial. I can get the first example to work but not the second one. I am able to add the web reference and create the form and report. However, when I run the page and click submit, I get ORA-01403: no data found.
    When I test the service, this is what shows in the Message Request:
    <?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:Header><namesp1:Header xmlns:namesp1="http://www.xignite.com/services/"><namesp1:Username xsi:type="xsd:string"></namesp1:Username><namesp1:Password xsi:type="xsd:string"></namesp1:Password><namesp1:Tracer xsi:type="xsd:string"></namesp1:Tracer></namesp1:Header></SOAP-ENV:Header><SOAP-ENV:Body><namesp1:ListFuturesByExchange xmlns:namesp1="http://www.xignite.com/services/"><namesp1:Exchange xsi:type="xsd:string">NYMEX</namesp1:Exchange></namesp1:ListFuturesByExchange></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Nothing shows in the Message Response.
    I have also tried to call a simple web service that I created in .NET. It exhibits the same behavior. I am able to add the reference and create the form. But when I click the submit button, I get ORA-01403: no data found.
    Windows 2000
    HTMLDB 2.0.0.00.49
    Oracle9i 9.2.0.6.0
    Any help will be greatly appreciated.

    I'm having a similar problem!, Although, distressing as it is to observe the lack of response this thread has had for 9 months, I'm still seeking help here!
    I created a web service reference according to the following WSDL : "http://OgAppExpress:[email protected]:5555/invoke/OgAdminUtils.pub:WSDL_HLR" (operation name="getSubscriberInfoByMSISDN") and a form on that web service, all of which went very nicely. But! When I ran the form, inserted the value ("3546933599") into the parameter and pressed submit.... => "ORA-01403: no data found"
    The debug action displays very limited information and sheds no light on the problem :( Multiple attempts, on recreating the project from scratch, have resulted in the same utter failure! Needless to say, this nulls the affect of my Prozac proscription....
    Is there anybody out there who can help me and defend APEX's reputation?

  • Web Service Returns Object[ ] but it used to return List Object ??? Why?

    Hi All I have found a way around my problem but am really stumped as to why it is even happening???
    So I have a simple we service that returns a ListOfAllEmployees List<Employee> and the Site for which a particular employee works.
    Thursday I added a method to search employeesByName which would return a List<Employee> that matched the query.
    I then consumed this method in my Proxy which read it as a List<Employee> and everything was perfect.
    So now Friday I decide I want to add more functionality to my Web Service by adding a few more methods, like findEmployeesBySite.
    So not to do to much at one time I code the method, test on the webservice side and then deploy the Web service, all is well.........
    Now I try to update my proxy and I get a Cast error because now my Web Service does not return a List<Employee> but rather an Employee[ ]???????????????????????????
    What did I do? All I did was add a toplink query, test and redeploy my webservice, nothing else. On the proxy side all the code is generated by a wizard so I assume that it is correct?
    Anyway like I said I found a workaround so no big deal but I would like to understand why it changed from a List<Employee> to an Employee [ ]?
    Here is the fix I have employed untill I get an answer, I just convert the Array to a Typed List.
    (List<Employee>)Arrays.asList(port.findEmployeesByName(FName, LName));

    ColdFusion sometimes has some problems connecting to
    webservices using HTTPS.
    Try Daverms's suggestion first. Recreating or refreshing the
    webservice in the CFADMIN might fix your problem. Otherwise, if
    that doesn't work I suggest:
    Try saving the WSDL to a local location and running the
    webservice off the local WSDL. The WSDL should have the location of
    the actual webservice in it (I think the tag is <ServicePort>
    or something like that), so it doesn't really matter where the WSDL
    resides.

  • Web Services (Catalog Links) seems to be dead

    Sorry for the bad formating but the forum did not allow anything to format
    Hi experts,
    I'm facing an strange problem within our SRM 7 Portal integration.
    When I open the transaktion "shopping" to display all anabled web services/catalogues it's looks alll normal.
    But when clicking on the link of an web service there happens nothing. There is no difference at the behavior when clicking the internal SRM MDM Catalog link or an external punch out catalog link.
    When typing the URL of the catalog manually in the browser the page opens as intended.
    I did a http trace so see what happens when i'm clicking one of the links. But now I have some data I can't read. So maybe you can help me to find out the defect.
    Edited by: Rico Scharm on Feb 16, 2010 5:58 PM

    Here is the Trace Data:
    ADRESS DATA:
    00:09:45.299     0.069     1763     4943     POST     200     text/xml     https://mpgsrmdev.mpg.orga.de:8443/sap/bc/webdynpro/sapsrm/wda_l_fpm_gaf/;sap-ext-sid=OhB9kX6PcHIKc*BT5s59Og--a3k76*GA5DabEhHwpacEcA--?sap-contextid=SID%3aANON%3aMPGSRMDEV_S15_00%3a4ocZXKryvS2WaXra0dWl0sFAWktQFxenORqKLgeM-NEW
    HEADER
    (Request-Line)     POST /sap/bc/webdynpro/sapsrm/wda_l_fpm_gaf/;sap-ext-sid=OhB9kX6PcHIKcBT5s59Og--a3k76GA5DabEhHwpacEcA--?sap-contextid=SID%3aANON%3aMPGSRMDEV_S15_00%3a4ocZXKryvS2WaXra0dWl0sFAWktQFxenORqKLgeM-NEW HTTP/1.1
    Host     mpgsrmdev.mpg.orga.de:8443
    User-Agent     Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
    Accept     text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
    Accept-Language     de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding     gzip,deflate
    Accept-Charset     ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive     300
    Connection     keep-alive
    Content-Type     application/x-www-form-urlencoded; charset=UTF-8
    Referer     https://mpgsrmdev.mpg.orga.de:8443/sap/bc/webdynpro/sapsrm/wda_l_fpm_gaf/;sap-ext-sid=OhB9kX6PcHIKcBT5s59Og--a3k76GA5DabEhHwpacEcA--
    Content-Length     172
    Cookie     SAPWP_active=1; SAPPORTALSDB0=urn%253Acom.sapportals.appdesigner%253Aframework%2526isPersonalizeMode%3Dfalse; MYSAPSSO2=AjExMDAgAA1wb3J0YWw6UlNUT0xMiAATYmFzaWNhdXRoZW50aWNhdGlvbgEABlJTVE9MTAIAAzAwMAMAA1c2OAQADDIwMTAwMjE2MTYwMgUABAAAAAgKAAZSU1RPTEz%2FAQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA1c2ODENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTAwMjE2MTYwMjI0WjAjBgkqhkiG9w0BCQQxFgQUZH45Jcp1XEYPdSGem83vModAe3cwCQYHKoZIzjgEAwQvMC0CFBTRRtn4Nd9RrsJ9d2r5aIdWq5j2AhUApndso5qHevXdOeVHMKjLJi3hKYs%3D; JSESSIONID=(J2EE5962500)ID0535623050DB10446789244228800476End; sap-usercontext=sap-language=DE&sap-client=100
    Pragma     no-cache
    Cache-Control     no-cache
    Edited by: Rico Scharm on Feb 16, 2010 5:59 PM

  • Facing problem while going to  catch return result from web-services.

    Hi everybody,
    I am new to BPEL. I am facing problem while going to catch the attributes of resultsets returning from web-services(QAS). As far as my knowledge, two types of results it should return - XML entities and another is attributes which is coming as the part of XML entitites. I am able to catch the XML entities, but can't catch the attributes under it. Even, I am not able to see whether web-services returning something within that field.
    When, I tried to catch the attribute and store to a temporary varilable using the following code:
    *<assign name="AssignQASDoGetAddress1">*
    *<copy>*
    *<from variable="InvokeQAS_DoSearch_OutputVariable"*
    part="body"
    query="/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded"/>
    *<to variable="temp"/>*
    *</copy>*
    *</assign>*
    but, I am facing the following selectionFailure errors after running it:
    *"{http://schemasxmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.*
    -<selectionFailure xmlns="http://schemasxmlsoap.org/ws/2003/03/business-process/">
    -<part name="summary">
    *<summary>*
    empty variable/expression result.
    xpath variable/expression expression "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')" is empty at line 269, when attempting reading/copying it.
    Please make sure the variable/expression result "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')"is not empty.
    *</summary>*
    *</part>*
    *</selectionFailure>*
    Getting this error it seems to me that web-service is returning nothing, but, it returns something as it has been catched using a method called isPostcodeRecoded() Java Code in Oracle ADF. This method has been used as it should return boolean whereas for catching the xml entities using java code we used the method like getPostcode(), getMoniker().
    For your information, we are using Jdeveloper as the development tool for building the BPEL process.
    Am I doing any syntax error. Please consider it as urgent and provide me asolution.
    Thanks in advance.
    Chandrachur.

    Thanks Dave and Marc, for your suggestions. Actually what I found is QAS web-service is returning nothing as attributes when the attributes are set to the default value. For example, following is the part of the wsdl of the result which QAS webservice returns.
    <xs:element name="QASearchResult">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="QAPicklist" type="qas:QAPicklistType" minOccurs="0" />
    <xs:element name="QAAddress" type="qas:QAAddressType" minOccurs="0" />
    </xs:sequence>
    <xs:attribute name="VerifyLevel" type="qas:VerifyLevelType" default="None" />
    </xs:complexType>
    </xs:element>
    <xs:complexType name="QAPicklistType">
    - <xs:sequence>
    <xs:element name="FullPicklistMoniker" type="xs:string" />
    <xs:element name="PicklistEntry" type="qas:PicklistEntryType" minOccurs="0" maxOccurs="unbounded" />
    <xs:element name="Prompt" type="xs:string" />
    <xs:element name="Total" type="xs:nonNegativeInteger" />
    </xs:sequence>
    <xs:attribute name="AutoFormatSafe" type="xs:boolean" default="false" />
    <xs:attribute name="AutoFormatPastClose" type="xs:boolean" default="false" />
    <xs:attribute name="AutoStepinSafe" type="xs:boolean" default="false" />
    <xs:attribute name="AutoStepinPastClose" type="xs:boolean" default="false" />
    <xs:attribute name="LargePotential" type="xs:boolean" default="false" />
    <xs:attribute name="MaxMatches" type="xs:boolean" default="false" />
    <xs:attribute name="MoreOtherMatches" type="xs:boolean" default="false" />
    <xs:attribute name="OverThreshold" type="xs:boolean" default="false" />
    <xs:attribute name="Timeout" type="xs:boolean" default="false" />
    </xs:complexType>
    <xs:complexType name="PicklistEntryType">
    - <xs:sequence>
    <xs:element name="Moniker" type="xs:string" />
    <xs:element name="PartialAddress" type="xs:string" />
    <xs:element name="Picklist" type="xs:string" />
    <xs:element name="Postcode" type="xs:string" />
    <xs:element name="Score" type="xs:nonNegativeInteger" />
    </xs:sequence>
    <xs:attribute name="FullAddress" type="xs:boolean" default="false" />
    <xs:attribute name="Multiples" type="xs:boolean" default="false" />
    <xs:attribute name="CanStep" type="xs:boolean" default="false" />
    <xs:attribute name="AliasMatch" type="xs:boolean" default="false" />
    <xs:attribute name="PostcodeRecoded" type="xs:boolean" default="false" />
    <xs:attribute name="CrossBorderMatch" type="xs:boolean" default="false" />
    <xs:attribute name="DummyPOBox" type="xs:boolean" default="false" />
    <xs:attribute name="Name" type="xs:boolean" default="false" />
    <xs:attribute name="Information" type="xs:boolean" default="false" />
    <xs:attribute name="WarnInformation" type="xs:boolean" default="false" />
    <xs:attribute name="IncompleteAddr" type="xs:boolean" default="false" />
    <xs:attribute name="UnresolvableRange" type="xs:boolean" default="false" />
    <xs:attribute name="PhantomPrimaryPoint" type="xs:boolean" default="false" />
    </xs:complexType>
    here the attributes like FullAddress, PostcodeRecodedare , etc. are not being return by the web-service when it is getting the default value false. But, if it gets true then , it is being displayed at the BPEL console.
    Do you have any idea how can I catch the attributes and its value even when it gets the default value which is already set. Previously, it was returning(it was not being displayed at the console).
    Thanks once again for your valuable suggestions...!!!
    Chandrachur.

  • Create a web service in jdev from an EJBSessionBean

    Hi,
    can someone tell me how to create a web service from an EJBSessionBean.java in jdev?
    I do like the EJBSessionBean was a simple java class but the web service doesn't work
    thanks

    hi again,
    i m going to tell you what i ve done:
    1- i created an entity bean from existing table(table users)
    2- then i create the session bean (methods are just the CRUD ones)
    3- after that i add a java service facade wich i use to generate a web service(all is good, generation is done and deployement of the web service is done without errors)
    4- then i run my web service. for exemple if i invoke the queryusersfindall it should display the data on the table, but what i get is an error:
    <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://oracle.model/"
    xmlns:ns1="http://www.oracle.com/webservices/internal/literal">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (Caught exception while handling request: java.lang.IllegalArgumentException: NamedQuery of name: Users.findAll not found.)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    ----------------------------------------------------------------------

  • "end-of-body reached" Error when consuming web service from 10GR1

    Hi all,
    Im consuming a number of web services, all of which work fine apart from one which returns the error:
    29266. 00000 - "end-of-body reached"
    *Cause:    The end of the HTTP response body was reached.
    *Action:   If the end of the HTTP response is reached prematurely, check if
    the HTTP response terminates prematurely. Otherwise, end the
    HTTP response.
    I don't understand why this is happening and would really appreciate some help. I have checked the invoke procedure and there is a ' utl_http.end_response(http_resp);' call which online searching suggests can be a cause of the problem (if not used). The procedure which calls the service is:
    function Events_Insert(id varchar2, pwd varchar2) return clob as
    req opf_portal.pkg_call_web_services.request;
    resp opf_portal.pkg_call_web_services.response;
    aEventRecord varchar2(4000);
    begin
    req := opf_portal.pkg_call_web_services.new_request('Events_Insert', 'xmlns="<removed>');
    aEventRecord:='<Options>
    <EventOptionRecord>
    <Comments>None</Comments>
    <Quantity>1</Quantity>
    <OptionID>53</OptionID>
    </EventOptionRecord>
    <EventOptionRecord>
    <Comments>None</Comments>
    <Quantity>1</Quantity>
    <OptionID>53</OptionID>
    </EventOptionRecord>
    </Options>
    <Badges>
    <EventBadgeRecord>
    <Company>Oracle</Company>
    <JobTitle>Consultant</JobTitle>
    <Name>GregCox</Name>
    <EventBadgeRecord>
    </Badges>
    <SpecialRequirements>
    <EventSpecialRequirementRecord>
    <Notes>bob</Notes>
    <Pvkey>110606</Pvkey>
    <RequirementCode>VEG</RequirementCode>
    </EventSpecialRequirementRecord>
    </SpecialRequirements>
    <Pvkey>110606</Pvkey>
    <DelegateType>DELEGATE</DelegateType>
    <EventID>524938</EventID>';
    opf_portal.pkg_call_web_services.add_parameter(req, 'userid', 'xsd:string', id);
    opf_portal.pkg_call_web_services.add_parameter(req, 'password', 'xsd:string', pwd);
    opf_portal.pkg_call_web_services.add_parameter(req, 'aEventRecord', 'xsd:complexType', aEventRecord);
    resp := opf_portal.pkg_call_web_services.invoke(req, '<removed>', '<removed>');
    return resp.doc.getstringval();
    end;

    Incase anybody else encounters this problem, it was my XML that was invalid:
    <EventBadgeRecord>
    <Company>Oracle</Company>
    <JobTitle>Consultant</JobTitle>
    <Name>GregCox</Name>
    <EventBadgeRecord>
    was missing '/' in closing tag

  • Multiple Web Services in one Jdeveloper project

    Hi all,
    I'm currently trying to implement a series of web services, all relating to one application. I'm using the top-down approach, where I generate the web service from a WSDL file, and add my implementation to the generated classes. The WSDL file imports all sorts of XML Schemas (xsd-files) and Jdeveloper correctly generates all the necessary java-classes for me. Lets call the first web service I create WS-1.
    This all works fine and I'm a happy panda. I can call the web service, it works, I can modif the wsdl and regenerate the web service to e.g. change the input etc. All this works.
    Just until the point where I want to create a second web service (lets call this WS-2). This new web service doesn't use all the XML Schemas that the first web service does, it is more simple with regards to in-/output. The problem arises when I modify WS-2 and Jdeveloper regenerates the Web service files (.java and the files in the WEB-INF/wsdl-directory). When I do this, it deletes the imported xsd-files that WS-1 uses (removes them from WEB-INF/wsdl).
    And when I regenerate WS-1 to get my xsd-files in again, then when I regenerate WS-2 it imports all the unnecessary xsd-files into the wsdl for WS-2.
    Something tells me, that there is a connection or shared library between all web services in one Jdeveloper project. That they all imports and uses the xsd-files in WEB-INF/wsdl.
    Is this true? Can't I have multiple web services (and wsdl-files) using different types (schema definitions) in the the same Jdeveloper project?
    One solution I can think of, is to have all my web services in different projects under the same application. But is this really necessary?
    I'm using Jdeveloper 10.1.3.3.0.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

Maybe you are looking for