How to use a webservice (WebLogic?)

I want my application to use a WebLogic built webservice. The documention says to create aControl from the WSDL, but the only ways it seems to use the control is by dragging it into a pageflow in design view. I need to access it via a POJO. I'm new to Web Services, so I'm not sure how to go about it. I have this in my code
* @common:control
private myWebServiceControl myControl;
But when I try to use myControl it throws a Null Pointer exception. It won't let me do myControl = new myWebServiceControl () or anything like that to initialize it so I don't know what to do about that.

Hi, Iam learning to use weblogic and sevlets. I compiled my first "HelloWorld" program inside WEB-INF, inside WebApp in a directory in C drive. I created a user id and password to use Weblogic.
Then I started the server and opened the file. I added the servlet name and code to "HelloWorld", I then saved, deployed. And tried to run my program in a browser giving,
http://localhost:7001/bbb/HelloWorld
I get an error 404, I wish you guys help me sort my problem. What else I must do to make Servlets work?

Similar Messages

  • How to use a webservice in  JSPDyn page

    hai,
       I have created one webservices but i donot how to use that webservices in JSPDyn page.
      can anyone give solution for this problem
    Rds
    Shanthakumar

    Check out the Axis user's guide at: http://ws.apache.org/axis/java/user-guide.html

  • How to use This webservice in PHP ?

    Hello.
    I'm trying to use this webservice in PHP but there isn't a documentation or something that can help me.
    I have this function, and she returns to me a sessionID :
    function wslogin() {
         global $crmdomain;
         $url = $crmdomain . "/Services/Integration?command=login";
         $page = "/Services/Integration?command=login";
         $headers = array(
         "GET ".$page." HTTP/1.0",
         "UserName: *****",
         "Password: *****",
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL,$url);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
         curl_setopt($ch, CURLOPT_HEADER, true);
         $data = curl_exec($ch);
         if (!curl_errno($ch)) {
              // Show me the result
              $sessionid = substr($data,(strpos($data,"Set-Cookie:")+23),(strpos($data,";")-strpos($data,"Set-Cookie:")-23));
              curl_close($ch);
              return $sessionid;
    Now, i want to retrieve for example an user... i need to get an user, set an user (insert or update), check if a user exist or not...
    I have test this :
    function getContactInfo ($contactid,$sessionid) {
         global $crmdomain;
         $serverpath = $crmdomain . "/Services/Integration;jsessionid=$sessionid";
         $namespace= "urn:crmondemand/ws/contact/10/2004";
         $soapaction = "document/urn:crmondemand/ws/contact/10/2004:ContactQueryPage";
         $param = "<ListOfContact>
         <Contact>
         <IntegrationId>='$contactid'</IntegrationId>
         <MrMrs/>
         <ContactFirstName/>
         <ContactLastName/>
         <JobTitle/>
         <Department/>
         <AccountName/>
         <AccountId/>
         <PrimaryAddress/>
         <PrimaryCity/>
         <PrimaryZipCode/>
         <PrimaryCounty/>
         <PrimaryCountry/>
         <AlternateAddress1/>
         <AlternateAddress2/>
         <AlternateAddress3/>
         <AlternateCity/>
         <AlternateZipCode/>
         <AlternateCounty/>
         <AlternateCountry/>
         <ContactEmail/>
         <WorkPhone/>
         <WorkFax/>
         <CellularPhone/>
         </Contact>
         </ListOfContact>
         $method = "ContactWS_ContactQueryPage_Input";
         $response = getwsresponse($serverpath,$namespace,$soapaction,$method,$param,$debug);
         return $response;
    function getwsresponse($serverpath,$namespace,$soapaction,$method,$param,$headers=""){
         require_once('nusoap-0.9.5/lib/nusoap.php');
         $client = new nusoap_client($serverpath, array('trace' => 1));
         if($headers != ""){
              $client->setHeaders("$headers");
         $response = $client->call($method,$param,$namespace,$soapaction);
         return $response;
    But when i check : var_dump(getContactInfo("Integrationd",wslogin())); i have always false...
    I have no idea how to use this webservice. Can you help me ?
    Thanks !
    Edited by: 990614 on 27 févr. 2013 00:29

    Perhaps a shorter example would be more appropriate to ask about.
    Use bbcode code tag http://www.phpbb.com/phpBB/faq.php?mode=bbcode#5 to enclose code.
    -- cj

  • How to use a Webservice (deployableproxy) within a portal component?

    hi,
    i need to know how to use a webservice using a deployable proxy within a portal component?
    i've created the proxies and they work (with servlets).
    i know how to use them in servletes (context lookup, jndi mapping, application references) but i cant find a way to use them in a portal component.. tried the context lookup way but cant figure out which jndi mapping to use.
    any help?
    thanks in advance,
    constantin

    i've found this document:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cb2e29578c0262e10000000a11466f/frameset.htm
    but it doesn't help...
    i should add a privatesharing resource...
    <property name="PrivateSharingReference" value="SAPJ2EE::rh21.de/pca~wsproxy"/>
    which works
    this is my code
    public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
       try {
         Context context = new InitialContext();
         WSPhonebook obj = (WSPhonebook) context.lookup("/wsclients/proxies/rh21.de/pca~wsproxy/de.rh21.wsproxy.phonebook.WSPhonebook");
         WSPhonebookViDocument phonebook = (WSPhonebookViDocument) obj.getLogicalPort("Config1Port_Document", WSPhonebookViDocument.class);
    } catch.....
    now the lookup works (i guess, no messages about that anymore), but i catch ClassNotDefFoundError-Exceptions, but the classes are there, i can strg+click them in the editor, they are in the used dc's etc.
    any help? its quite uurgent :/

  • How to use SPML Webservice.xml template in VDS(Virtual Directory Server) ?

    Hiii all,
    How to use SPML Webservice.xml template in VDS(Virtual Directory Server) ? In my case , i am researching and wanting to add,search,delete an user object request from Web Services Client to SPML webservice in VDS by SPML request. anybody has documents or tutorials please share to me.
    Thanks

    Hiii all,
    How to use SPML Webservice.xml template in VDS(Virtual Directory Server) ? In my case , i am researching and wanting to add,search,delete an user object request from Web Services Client to SPML webservice in VDS by SPML request. anybody has documents or tutorials please share to me.
    Thanks

  • How to use amazon webservice in jsp-netbeans

    hi all,
    i want to use amazon free webservice in my project......
    i read lots of articles and other helps from net but m not able to do it......
    it needs the wsdl link which m unable to trace
    plz help me soon

    Hi,
    According to your post, my understanding is that you wanted to use UserGroup WebService in Sharepoint Designer 2013.
    SharePoint 2013 has Nintex Workflow 2013 App, I recommend to add User to SharePoint Group Using NINTEX Workflow.
    There is an article for your reference, although it is about the SharePoint 2010, it still works for SharePoint 2013.
    http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-add-user-to-sharepoint-group-using-nintex-workflow/
    More information: SharePoint 2013 has Nintex Workflow 2013 App
    http://benprins.wordpress.com/2012/08/09/sharepoint-2013-has-nintex-workflow-2013-app/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to use ABAP Webservice to Trigger the start of BPMN

    Hello,
    My scenario is that i define a webservice in the SAP ECC system and import it in the process composer as the service interface. As to the start event, i set the above service interface and operation as the trigger service.
    After then, i call this webservice in the user exit of a T-Code. However, the BPMN is not started by this webservice call.
    Anyone can explain on this and tell me how to use the ABAP webservice as the starting event service interface?
    Thanks in advance
    Erick

    Hi Erick,
    When you develop a process model and use some arbitrary service interface in the message start event then this will be exposed on the Java / BPM system you deploed the process definition on.
    That allows you to start the process via this web service once you know its endpoint.
    So in case you want to start your process from the ABAP side you would need to call this endpoint on the Java side out of your ABAP system.
    Simply calling the web service / code on your ABAP system and hoping that this will also invoke the Java stack won't work I AFAIK.
    Best regards,
    Martin

  • How to use Adaptive WebService Model with CAF WebService and Complex Type

    Hi All,
    I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
    Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
    Help is appreciated..
    Thanks, Johannes

    Thanks Mukesh.
    It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
    I did not find any information about how to return complex types in AWS.. in this document???
    Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
    Thanks, Johannes

  • How to use ADF with weblogic Portal 10.3.2

    Hello All,
    I want to use ADF with Weblogic Portal 10.3.2. Can anyone guide me ?
    Thanks,
    *(' ')sman*

    Hello,
    To use ADF with WLP 10.3.2 you will need a WebCenter WSRP producer running the portlet, which you can then consume as a remote portlet in WLP. The documentation on how to do that is here:
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14235/chap_webcenter_interop.htm#BABDBJBD
    Kevin

  • How to use WCF Webservice in flash

    hi friends
    is it possible to use asp.net WCF webservcie in Flash CS4/CS5 Actionscript 3.0, if yes then please tell me HOW?
    it is very important for me!!
    help me, thnx in adv..........

    Hi Sampath,
    Please use this Help article to learn how to use Bind Tool.
    http://help.adobe.com/en_US/flash/cs/using/WS58BD3A02-DA25-488f-B534-AE5463A24833.html
    Please let me know if you would need more help.
    Thanks,
    Suhas Yogin

  • How to use a WebService Model with String Arrays as its input  parameter

    Hi All,
    I am facing the following scenario -
    From WebDynpro Java i need to pass 2 String Arrays to a Webservice.
    The Webservice takes in 2 input String Arrays , say, Str_Arr1[] and Str_Arr2[] and returns a string output , say Str_Return.
    I am consuming this WebService in WebDynpro Java using WEB SERVICE MODEL. (NWDS 04).
    Can you please help out in how to consume a WSModel in WD where the WS requires String Arrays?

    Hi Hajra..
    chec this link...
    http://mail-archives.apache.org/mod_mbox/beehive-commits/200507.mbox/<[email protected]>
    http://www.theserverside.com/tt/articles/article.tss?l=MonsonHaefel-Column2
    Urs GS

  • How to use CMP in Weblogic 9.2 with MySQL?

    Hello all...
    So I've been tasked wiith moving an Oracle/Weblogic installation to a MySQL/Weblogic platform. Things are moving along well, except that in my CMP (Container-Managed Persistence) descriptors, the database-type is set to "Oracle" and there are references to columns of type "OracleBlob" and "OracleClob".
    I changed database-type to "MySQL" and those columns to "Blob" and "Clob", but it doesn't work -- Weblogic reports that MySQL doesn't support Blobs and Clobs (which is untrue, but perhaps Weblogic 9.2 doesn't know how to deal with MySQL Blobs and Clobs).
    Has anyone encountered this before? Is there a workaround? I've Google'd it and looked here, and it doesn't seem like many people use this combination of MySQL and Weblogic, so there's not much discussed on this topic.
    Any help would be much appreciated!
    - Tim Bessie

    First you need to make sure that you are using supported configuration. CMP (WebLogic feature) is supported with MySql4 with Connect/J
    http://edocs.bea.com/platform/suppconfigs/configs92/92_over/supported_db.html#1177621
    Thanks,
    Jayesh
    Yagna Sys

  • How to use jstl in weblogic 8.1

    I tried to use JSTL in my jsp file and I add
              <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> at the top line. But the server reported
              java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver
              how to solve this problem?

    WebLogic 8.1 supports JSP 1.2, which doesn't natively implement the JSTL or the expression language. If you download the Jakarta Taglibs implementation of the JSTL (for JSP 1.2, not JSP 2.0), then you can use the JSTL taglib as a normal taglib. Note that this doesn't give you the ability to use the other JSP 2.0 tag features, like using the expression language in body content.
              Make sure that you use the uri value specified in the tld that you're using. I believe the values are different between the JSP 1.2 and JSP 2.0 versions.

  • How to use jsp in weblogic 5.1

    Hi all,
    We have PeopleSoft application running on
    Weblogic 5.1 SP12.
    How do we use JSP files in this weblogic version ?
    We are trying to use a custom jsp file.
    Quick help is much appreciated..
    Thanks
    Maddy

    WebLogic 8.1 supports JSP 1.2, which doesn't natively implement the JSTL or the expression language. If you download the Jakarta Taglibs implementation of the JSTL (for JSP 1.2, not JSP 2.0), then you can use the JSTL taglib as a normal taglib. Note that this doesn't give you the ability to use the other JSP 2.0 tag features, like using the expression language in body content.
              Make sure that you use the uri value specified in the tld that you're using. I believe the values are different between the JSP 1.2 and JSP 2.0 versions.

  • How to use log4j into weblogic 10.3

    Hi,
    I am migrating an enterprise application from JBoss 4.3 + JBossCache to WebLogic 10.3+Coherence.
    I am blocked since I can't get log4j to work inside WL.
    I enabled log4j inside the administration console, as stated in the user guide.
    Googling I've also found that I have to copy these 2 jars
    wllog4j.jar
    llog4j-1.2.14.jar
    inside my domain lib directory (that is C:\Oracle\Middleware\user_projects\domains\base_domain\lib), and I did it.
    Now where should I put the log4j.xml configuration file and how can I tell to WL to use that xml as log4j configuration ?
    To give you more information, my classes use log4j in this way:
    Logger log = Logger.getLogger(MyClass.class);
    And I am constantly getting this error:
    log4j:WARN No appenders could be found for logger (it.ltm.ejba.session.EjbAServiceBean).
    log4j:WARN Please initialize the log4j system properly.
    I hope someone can help me.
    I apologize for this stupid question, but really I didn't find a good guide/tutorial on the net.
    Thanks in advance.
    Edited by: e.gherardini on 3-mar-2010 3.16

    Hi Jay, thanks for helping me.
    In fact what I am trying to do is a server-wide log4j configuration.
    Your solution implies writing-deploying-maintaining 1 log4j configuration file for each application developed inside the application server.
    This is not what I want to do.
    Digging around WL 10.3 installation folders, I've found a log4j.properties file inside the medrec example application (C:\Oracle\Middleware\wlserver_10.3\samples\domains\medrec).
    It uses this properties file setting a startup parameter to the server (file setDomainEnv.cmd):
    set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dlog4j.configuration=file:%LOG4J_CONFIG_FILE%
    I would like to do the same starting the server from eclipse 3.5.
    I am working on this, I hope you can give some hints.
    Thanks a lot

Maybe you are looking for