Problem in using webservice in My ADF App

hi ,OTN
I used this tutorial http://www.oracle.com/technetwork/testcontent/wsdc-085537.html to have a webservice in my ADF Application that returns Weather Application.I used Jdeveloper 11g 11.1.1.3.0. by follwing this tutorial I could get the weather Info.but the first time I run my page or the first time I press the button getWeatherBy Name after writing the place there is an error Mesage as follows
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error occured when get webservices record ---> System.Data.SqlClient.SqlException: Procedure or function 'GetLatByPlace' expects parameter '@ZipcodeName', which was not supplied. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at WeatherService.WeatherForecast.GetLatLonDataByPlaceName(String PlaceName) --- End of inner exception stack trace --- at WeatherService.WeatherForecast.GetLatLonDataByPlaceName(String PlaceName) at WeatherService.WeatherForecast.GetWeatherByPlaceName(String PlaceName) --- End of inner exception stack trac
when I press ok to this error Message.I could write the name of place and got Weather Info,so How can I prevent this error Message that appear every first Time the user call the page of Weather Forecast?
note : in the tutorial I noticed that it explained that there is an error Message will appear ( On the error window click OK. )
Edited by: Miar on Oct 13, 2010 6:03 AM

hi,frank
yes,the problem is that he asks about his parameter when the page is rendered for the first time,in the tutorial it prevents calling the web service before having
provided the place Name by making the refresh condition of the iterator #{adfFacesContext.initialRender} , although I did this the web Service is called,How I prevent calling it when i run my page ?
thanks shay,I will try it and tell the result
Edited by: Miar on Oct 13, 2010 8:37 AM

Similar Messages

  • The problem of using webservice to transfer binary data

    I want to use webservice to realize downloading file , and then I think we can to transform the whole file to binary data ,and then use webservice to deliver these datas to client. but there is a promble. When the file size is a bit large , such as exceeding 1.5M , then client will receive error report. How to solve this promble. Another I think when server transforming the whole file to binary data , It should apply for much memory , as large as the file. I think this is not a good solution . Any one can give me some ideas ? How to realize download file using webservice(the server is oc4j)

    839507 wrote:
    the picture does not synchronize with sound. Why? Where is the problem??Dear Automotive Mechanic,
    My car won't start, where is the problem?
    Sincerly,
    Captain Foss

  • Problem In using Webservice Tester

    Hi All,
    I am not able to test my webservice using webservice tester. I have created a simple webservice which takes a string as a parameter and return it as response.
    When i am using webservice tester the url field is coming blank an it request side too i am not getting any option of putting my input. Also the send request button is coming disable.
    I am using jdev 11g drop 306. and for creating webservice i am using annoted methods like @webservice and @webmethod
    Rajeev

    If your requirement is to bind two nodes to the same table, than it is not possible. You can bind the nodes to two different tables and change the visiblity of the tables whenever required.
    Hope I have understood your requirement.
    Regards,
    Noufal

  • Problems when using my 3G mobile hotspot app

    Now this used to work fine, now not working.  On my Casio Commando, there is an app that is titled, 3G mobile hotspot.  Now I have used this to connect to the internet using my netbook, work one, when in an area that the Verizon Fob Card does not find a good signal.  About 2 weeks ago while running this app, it keep telling me that there is no internet connection.  Now my netbook tells me that it is connected to my phone, but no internet connection.  Have just tried this same procedure on my home computer, and same thing.  So why am I not able to connect to the internet, but I can tether?  Any help would be greatly appreciated.  P.S. When I try to check the app by using the manage updates, that app is not in the list.  This makes this even more weird.

        stolencode101,
    We want you to be able to enjoy your mobile hotspot on your device. Please try a couple of troubleshooting steps with me. First, please turn on your mobile data, Settings>Wireless & Networks> Mobile Networks> Uncheck Data enabled. Next, turn on airplane mode, Settings>Wireless & Networks>Check Airplane Mode. Then, power cycle your phone. Finally, Make sure Airplane mode is off, Turn mobile data back on, make sure Wi-Fi is off, and turn on 3G mobile hotspot. Let us know if this works.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Problem in using asant tool in Sunone Apps Server 8.0 on Windows XP

    Hi,
    I am using asant.bat tool to build example applications in j2eetutorial14.
    whatever taget i am using to build the examples in sample directory ie,
    <J2EE_HOME>/j2eetutorial14/examples/web/bookstore> asant build
    <J2EE_HOME>/j2eetutorial14/examples/web/bookstore> asant create-db_common
    , etc
    always I am getting the java usage:
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM......................
    This is the new problem I am facing now after using this server quite a time. As far as i knew i had done all the prerequisite before building these samples since this was working for me nicly. Now it is not working with any allternatives. I even re-installed the server again. I am not able to trace out the problem.
    Can any suggest something to resolve this issue.. I am in desperate need of help.
    Regards,
    Sangram

    I was able to compile and build the codes in j2eetutorials14 recently. Now after few days I need to compile the code again .
    But when I am running 'asant build' command as given i tutorials I am getting ''asant' is not recognized as an internal or external command,
    operable program or batch file." error.
    I am not able to find out why suddenly asant is not available???
    Any pointers will be highly appreciated.
    Thanks

  • Problem with using webservice

    Hi all !
    I aim at using a webservice through my SAP server.
    The result of the test of the webservice contains the following :
    Die Anmeldung wurde f[0xc3][0xbc]r den Mandanten 999 und den Benutzer loginXXX      und die Sprache    durchgef[0xc3][0xbc]hrt
    My question is : where is specify these 999 ? because my wsdl is like :
    http://xxxxxx..fr/sap/bc/soap/wsdl11?sap-client=320&services=ZADD
    I need 320 and not 999.
    Thanks for helping !

    I may have find the solution....
    With SICF transaction, I could specify the "mandant" in the description of the soap service.

  • Problem with using webservice wich generated by ALBPM

    I have business process. All Activities in this process are automatic. I generated Web service and wsdl by this process. But now, when I want to use it, I see that there are not only my operation myOperation(java.lang.String sessionId_arg,ArgType1 arg1,ArgType2 arg2), but
    discardSession(java.lang.String sessionId_arg);
    getInstanceStatus(java.lang.String sessionId_arg,java.lang.String instanceId_arg)
    startSession(java.lang.String password_arg,java.lang.String user_arg)
    How should I use my service? Should I invoke only myOperation or I should use other methods too? Can set "1" to sessionId_arg in myOperation , or I should take it from some place?
    Now, when I execute myOperation("1",someArg1,someArg2), I have NullPointerException.
    Edited by: KamilBek on 16.10.2008 23:02

    If you don't want to make two calls (one to get a session id and the second to start/interact with the process) you can enable username/token authentication for the process web services. This way you can just make one call that includes appropriate credentials required for authenication.
    Hope that helps,
    Mike.

  • Problem to deploy to a WebService interface for ADF Business Components to Weblogic Server

    Hi,
      I'm trying to deploy a custom application ,in which i have exposed ADF Business Components through a WebService interface, to a standalone weblogic server.
    Application Module is configured with a Service Interface for ordinary ViewObjects.
    Now I want to create a EAR file of this application to deploy it on the weblogic server.
    But I got an error while deploying it.The error i am getting is shown below.
    ERROR: No Java EE modules detected in EAR archive. Deployment aborted. == (oracle.jdevimpl.deploy.ear.WeblogicAssembler)
    I have followed the steps mention in the below link :
    http://technology.amis.nl/2010/12/29/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components/
    I'm using Jdeveloper 11.1.2.4 on windows.
    Please suggest what i could be doing wrong.
    Regards,
    Himanshu

    Does the deployment profile include Java EE modules?
    Refer
    Java EE Developer: ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.Veto…

  • I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage - I´d like to add an EMail account on top to my mobile number. My password will not be accepted!!!???

    I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage -
    I´d like to add an EMail account on top to my mobile number to use more this services. My password will not be accepted!!!??? I try it and i try it and i try ist, throughout the same problem. Whats on? The user help desk said, i´ve to reset and use the WLAN key new as well as possible - no way!

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    The_Tonmoy wrote:
    I have no communication with my that friend :/ So it means i need to delete those apps? There's no other solution to update those apps?
    No.  purchases are forever tied to the apple ID used to buy them.  Delete them and buy your own copies.

  • Having problem in using RUN_PRODUCT in oracle apps 11.0.3

    I am having problem in using RUN_PRODUCT in oracle apps 11.0.3. Error in oracle apps is
    FRM-40733 PL/SQL built-in RUN_PRODUCT failed
    What could be the possible cause for this error ?

    Hi again;
    I found this please also check this:
    Price List Migration from 11.0.3 to 11.5.10/R12.
    Regard
    Helios

  • On iOS 8.3 using 'Keynote for iPad' the app freezes repeatedly (since the last update of April 21st) while editing slides. 30 sec. later comes alive again, then freezes again after a few editing actions. Anyone with the same problem?

    On iOS 8.3 using 'Keynote for iPad' the app freezes repeatedly (since the last update of April 21st) while editing slides. 30 sec. later comes alive again, then freezes again after a few editing actions. Anyone with the same problem?  I tried everything 'app support' tells me except deleting and reinstalling the App because I have a lot of files that I'd lose.  Recommendations anyone?  [email protected]

    On iOS 8.3 using 'Keynote for iPad' the app freezes repeatedly (since the last update of April 21st) while editing slides. 30 sec. later comes alive again, then freezes again after a few editing actions. Anyone with the same problem?  I tried everything 'app support' tells me except deleting and reinstalling the App because I have a lot of files that I'd lose.  Recommendations anyone?  [email protected]

  • Problem when using Javabeans in ADF?

    Hi,
    I encountered a problem when using ADF.
    Please look at the following 2 classes :
    public class Person
    private String name;
    private String city;
    private int age;
    public Person(String name, int age, String city)
    this.name = name;
    this.age = age;
    this.city = city;
    public Person()
    public void setName(String name)
    this.name = name;
    public String getName()
    return name;
    public void setAge(int age)
    this.age = age;
    public int getAge()
    return age;
    public void setCity(String city)
    this.city = city;
    public String getCity()
    return city;
    public class PersonFactory
    public PersonFactory()
    public List getPersons()
    List list = new ArrayList();
    list.add(new Person("peit", 18, "dalian"));
    list.add(new Person("robin", 22, "shenyang"));
    list.add(new Person("Joe", 30, "York"));
    list.add(new Person("Edi", 23, "Beijing"));
    return list;
    public List getNames()
    List list = new ArrayList();
    list.add("Peit");
    list.add("Robin");
    list.add("Joe");
    list.add("Edi");
    return list;
    public void commit()
    System.out.println("Data commited");
    I created the PersonFactory class as DataControl, so I can use the getPersons() and getNames()(just for test, so they are simple), I drag the names from
    the DataControl palette as Table in a JClientPanel, good luck, it works and displays the 4 Strings in a table, but when I drag the persons from
    the DataControl palette as Table in the same JClientPanel, it does not work and raises exception :
    java.lang.NullPointerException
         at javax.swing.JTable.prepareRenderer(JTable.java:3731)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
         at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
         So, I confused why? How to edit it properly?
         Thanks.
    Message was edited by:
    [email protected]

    Hi, Frank
    Thank you for your reply.
    I am sorry for not explaining well. I mean that the getNames() works fine, but getPersons() does not. The only diferenece between them is the former is simple string and the latter is javabean, but when I made the PersonFactory as DataControl, I set the bean class Person for the getPersons()(list of persons) bean class.
    I debuged the class, the exceptions raised when the table for getPersons() setModel() method called.
    So, where is the problem?
    Thanks.

  • I want to use Xcode to create an app and i need developer tools. so i need to join the devoper program only problem is I'm not 18

    i want to use Xcode to create an app and i need developer tools. so i need to join the devoper program only problem is I'm not 18

    You can get Xcode without joining the developer program. Just go to the App Store and download it (it's free).
    You'd only need to join the Developer program if you want to put your app into the App Store, this is for OS X.
    You will need to join the Developer program if you want to develop for IOS. In that case you will need a parent or guardian.

  • How to generate Webservices.xml using tool in Sun One App Server?

    How to generate Webservices.xml using tool in Sun One App Server?

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

Maybe you are looking for

  • How to configure an Hotmail account with iOS8 ?

    Can't add any account hotmail on Iphone 6. The system says that cannot verify the account but if I enter with safare username and password are correct ! I am selecting Outlook.com when creating, is it wrong ? The funny thing is that I had also anothe

  • Add unique title and description to other Blog pages

    Hi, There's a few pages that I cannot work out how to add a unique title and description tag within the Blog. These are: The page numbers - in the footer of the Blog if you click page 2, 3, 4, etc eg: http://www.cardiotech.com.au/_blog/Latest_Fitness

  • Still having trouble with low internal memory

    LG Vortex - I couldn't even download a 136kb app today.  It says I have 18.6 MB internal storage space available.  All of my big apps are installed on my SD card, NOT on my phone and I have cleared the cache AND all the data on single thing in my man

  • IMovie - Move Everything To External Drive?

    With iPhoto you can very easily move you entire library from your Mac's internal hard drive to an external hard drive, simply by dragging the iPhoto Library package in the Finder. What I'd like to know is, is there a similar way of doing this with iM

  • Download of Reader Error in Program Association

    Ive tried to download reader via firefox and IE.  When installation ends other software programs have adobe icon.  Opening REader or the other infected programs have an error message "this file does not have a program association with it for performi