How to implement Webservices using JSPDynPages?

Hi,
Am currently working with an application where the requirement is that, I need to make a call to the webservice from my JSPDynPage controller, pass the arguements username and password and get the result, a string which authenticates the user. Please let me know how I can do this, and what code I need to include.
With Regards,
Sujana

Hi,
We've had some strange problems with "java.lang.Exception: Deserializer for QName
(http://www.w3.org/2001/XMLSchema, string) not found or not supported" error occuring randomly (but not often ) with portal services consuming webservices.
An OSS was created, and the reply was
"The right and supported way to consume a web service is by creating a deployable or a standalone proxy.
You can read more information in the following link:
http://help.sap.com/saphelp_nw04/helpdata/en/81/12703e5da3e946e10000000a114084/content.htm
Please note, although the "old" framework for consuming web services
exists, it's deprecated in newer versions."
So you need to create a J2EE application inorder to consume or expose webservices.
Regards
Dagfinn

Similar Messages

  • How to call webservice using java client

    Hi,
    I am new to webservice related stuff.Can any body help me.
    How can i call the webservice using simple java programing using jdeveloper tool is very useful for me.
    Thanks
    venuj

    user10394151 wrote:
    Hi,
    I am new to webservice related stuff.Can any body help me.
    How can i call the webservice using simple java programing using jdeveloper tool is very useful for me.
    Thanks
    venujTry this simple webservice client.
    You will need apache-axis.jar in your classpath. The following client is apache axis based. A similiar client can be built also using the JAX-WS only[without apache-axis.jar].
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    public class WEBSERVICE_CLIENT{
    public static void main(String [] args) {
    try {
    String endpoint ="<YOUR WS ENDPOINT>";
            Service  service = new Service();
            Call     call    = (Call) service.createCall();
            // YOU CAN SET VARIOUS PROPERTIES IN THE "CALL" OBJECT...LIKE
            // USERNAME,PASSWORD,PROPERTIES OF HTTP HEADER. SEE "CALL" OBJECT'S API FOR MORE PROPERTIES.
            call.setTargetEndpointAddress( new java.net.URL(endpoint) );
            call.setOperationName(new QName("<YOUR WS SERVICE NAMESPACE>", "<WS SERVICE TO BE INVOKED>"));
            String msg = (String) call.invoke( new Object[] { "data" } );
            System.out.println("RETURNED MESSAGE : "+msg);
          } catch (Exception e) {
            System.err.println(e.toString());
    }

  • How to call webservice using jdev9i

    Hi gurus and experts,
    i need to consume a webservice using oaf. with great effort finally i created stub using axis s/w.
    now i dont know how to use the stub in jdev.where to write the code and what to write.iam strucked :-( .
    since there were no sample tutorial about how to call webservice from jdev9i, iam struggling to make.iam jus a starter.
    and while googling i came to know that stubs can be created using jdev9i .but when i see new-->webservices--web service stub it is greyed out.
    i have 2 questions now:
    1)if stub created using axis can it be used in jdev9i? if yes ,please tell me how? any tutorial links also helps me.
    2)if the stubs should be created only by jdev9i so that webservices can be called using jdev,then please guide me how to make it.
    i need some helping hands from u guys.
    Thanks a lot
    Edited by: 881533 on Oct 25, 2011 2:34 AM
    Edited by: 881533 on Oct 25, 2011 2:37 AM

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" 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">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" 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">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • How to call webservices using soap in xi

    Hello
    I am tring to work  on webserivces,bascially i am not having any knowledge on webservices,i have seen the documentation & i know how to configure soap adapter &  how to define webservice in integration directory.can any one please help me out how to work with webservices  & good documentation on webservices & soap.
    Thanks
    Rajesh

    Hi Rajesh,
    Use server(tomcat server) or plain html coding for defining webservices....
    check sample webservice coding
    Purchase Order Web Application
    dispDate(0)
    Purchase Order Input Parameters:
    Document Type:
    Standard PO
    Vendor Number:
              Purchase Order Date:
    Purchasing Material:
              Delivery Date:
    Quantity:
    NetPrice:
    Unit of Measurement:
    PCs
    PriceUnit:
    Results:
    /code
    And gothrough the following weblogs which will be useful...
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    /people/thomas.jung3/blog/2005/06/05/web-services-the-case-of-the-missing-soap-action-header
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Hope u get some idea...
    Regards,
    Sridhar
    Message was edited by: sridhar reddy kondam

  • How to create Webservice using java

    Hi Experts,
          I am very new to Visual composer, can any one of you suggest how to create a webservice using java so that i can use that webservice in Visual Composer application.If it is possible please give me detailed description about it.
    Regards,
    Prasanna.

    Hi Prasanna,
    See if my article is of any use to you:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10">How to Create a Web Service using an Enterprise JavaBean</a>
    For creating Web Services, you won't need to do the MS SQL Part explained in my doc. You can just concentrate on the part where i explain how to create a Web Service using an EJB.
    Bye
    Ankur

  • How to call webservice using standalone application

    Hi,
    Actually i am trying to connect with one free webservice using client. but i am uanble to get the result and it is throwing the Exception.Exception is Execution failed. Exception: java.net.ConnectException: Connection timed out: connection reset
    i am using the following code.
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    import javax.xml.namespace.QName;
    import java.io.*;
    public class AddFunctionClient {
    public static void main(String [] args) {
    try {
         String endpoint = "http://www.startvbdotnet.com/web/sample2.asmx?wsdl";
         System.setProperty("http.proxyHost", proxyHost);
              System.setProperty("http.proxyPort", portNumber);
         Service service = new Service();
         Call call = (Call) service.createCall();
         call.setTargetEndpointAddress( new java.net.URL(endpoint) );
         call.setOperationName(new QName(endpoint, "add"));
              System.out.println("connected");
              System.out.println("value is"+call.invoke(new Object[]{new Integer(10),new Integer(20)}));
         } catch (Exception e) {
         System.err.println("Execution failed. Exception: " + e);
    can any one help on this

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

  • How to call webservice using flex?

    Hello,
    i want to call webservice in flex.i tryied following code.but it is not giving correct response.what is wrong with this code?
    can anybody tell me ,how to call webservice in flex?
    Code:
    <mx:Script>
            <![CDATA[
    public function button1_clickHandler(event):void
         ws.returnRecord(para1,para2);//i am sending two parameter to returnRecord service here
    public function remotingCFCHandler(event:ResultEvent):void
    trace(event.result);
    ]]>
    </mx:Script>
    <mx:WebService
         id="ws"
         wsdl="http://localhost:8500/flexapp/returnusers.cfc?wsdl">
        <mx:operation name="returnRecords" resultFormat="object"
         fault="mx.controls.Alert.show(event.fault.faultString)"
         result="remotingCFCHandler(event)"/>
    <mx:Button label="Go" fontWeight="bold" click="button1_clickHandler(event)"/>

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" 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">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" 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">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • Solved: ADF BC and primary keys - how to implement without using triggers

    Using the following OBE as an example:
    http://www.oracle.com/technology/obe/obe9051jdev/ADFWorkshop/BuildingADFApplicationsWorkshop.htm
    There is just one view that has CustomerId defined as a primary key, where the value for the primary key comes from the customer_seq sequence.
    How do you create the model using ADF BC entity to create an entity object that has a primary key that needs to be populated by a sequence table when inserted WITHOUT using a trigger?
    Basically I want to just use ADF BC instead of toplink in the OBE. We do not use triggers to insert primary keys, so this example is a good match for what I need.
    Can someone help me out. How do I adjust the model to use just ADF BC - how do I define the entity object to use a sequence. Do I just override the create method in the impl? Is it that simple? Or is there a way to do this point and click in the entity tool.
    Thanks!

    I'm not the dba (or one of several) - so don't shoot the messenger... the dba's do not like to use triggers in the code. I have been told that this has caused too many problems in application development.
    I don't ask why, just deal with the fallout.
    I did try using the following code in a create method:
    protected void create(AttributeList attributeList)
    super.create(attributeList);
    SequenceImpl s = new SequenceImpl("customers_seq", getDBTransaction());
    // this.setCustId(s.getSequenceNumber());
    this.createPrimaryKey(s.getSequenceNumber());
    When I run the test program for the module, I get a new entry with the id empty and greyed out. I was hoping that this would be filled in on the actual insert, but no joy. As soon as I try to commit, I get an error:
    (oracle.jbo.AttrValException) JBO-27014: Attribute CustId in CustomersWSView is required)
    So what needs to be done?
    Message was edited by:
    klee

  • How to Call Webservicer using Visuval composure Ce 7.1 server

    Hi ,
    We are created in ABAP , they r exposed in WSDL , if i have to call That web services using visuval composure please ASAP can u send , how to call WSDL In CE 7.1 Serve
    Thnks & Regards,
    Suresh

    Hi
    you can try this links:
    http://help.sap.com/saphelp_nwce10/helpdata/en/9f/9985f72084483cb316a3c2322fb090/content.htm
    (here look for the therm Creating Web Service Physical Destinations that points to :
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/635dd614d73bdbe10000000a1553f7/content.htm
    best regards,
    v s
    Edited by: v s on Dec 4, 2008 12:22 PM

  • How to implement VOIP using sip in j2me

    hi, i have create sip session. now i want to use it for VOIP using j2m. how can i do this. i mean which APIs are helpful in developing it. i hav following questions
    1. how can i get sound from mic to use in app and in which format
    2. is it ok to buffer sound n then transfer it over network?
    3. voice buffer direclty goes to other client mobile or processed at sipserver before reaching the client mobile.
    4. audio streaming is possible or not for S60 3rd edition.
    if u have some docs and guidelines other then these, plz tell me.

    Why don't you give us the money your Boss pays you.. then we'll see what can be done ;)
    Seriously, it might be smart to start your own research first. Check out what VoiP and SIP are all about, and the check how it fits into J2me.

  • How to implement Captcha using Web Dynpro Java

    Hi Experts,
    Can you please provide any information on CaptchaImplementation using Web Dynpro Java. We are using NWDS 7.01.
    Regards,
    Suvankar

    Hello Suvankar,
    maybe this blog will help. But haven't tryed it myself.
    http://scn.sap.com/blogs/balab/2006/09/25/bid-adieu-to-bots--using-captchas
    Regards,
    Tobi

  • How to implement route cipher using java?

    Hi guys,,,
    I really got a headache solving how to implement route cipher using java lang,,i already got the concept but i really dont get how to implement it using java actually i want to make a presentation of how route cipher works using "adobe flash" but first i will implement it using java coz flash actionscripts are closer to java lang.
    Hope you could post some examples or ideas...i would really appreciate it!
    thank you so much...

    just add an action listener (either keypressed or keytyped) to the frame that you want to record. I did this in NetBeans in about 2 seconds. I can simplify it if you need. As for loging it just write the characters to a file output stream.
    public class test extends javax.swing.JFrame {
        /** Creates new form test */
        public test() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    formKeyTyped(evt);
            pack();
        // </editor-fold>
        private void formKeyTyped(java.awt.event.KeyEvent evt) {
            System.out.println(evt.getKeyChar());
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new test().setVisible(true);
        // Variables declaration - do not modify
        // End of variables declaration
    }

  • How to implement this in Oracle Apps 11i

    Hello Friends
    I am working as a consultant for a manufacturing company.
    They have a format for charging Excise and Sales tax on their products (example below). I dont know how to implement this using oracle apps. Please help me ASAP.
    eg.
    Product A:
    MRP = Rs. 100
    Assessable Value (i.e. the value at which I have contract with the Government to pay Excise Duty) = 60% of MRP = Rs. 60 in this case.
    Excise Duty = 16% of AV =0.16*60 = Rs. 9.6
    Now, let’s suppose I am selling my product to a dealer at 30% discount.
    Therefore, Sale Price = 70% of MRP = Rs. 70
    Sales Tax = 4% of Sale Price = 0.04*70 = 2.8
    Therefore, total revenue from the deal = 70-9.6-2.8 = Rs. 57.6

    you can use Advance Pricing or creating discount or attiribute while calculating.
    this is not much complex, possible even with Advance Pricing too. Thanks
    Shiv

  • How to implement callback?

    Hi all!
    I want to use asynchronous callback between two JBI components.How to implement it using EPR?If EPR is used,must I use WS-Addressing and SOAP message?
    In addition,can another alternative way do it in JBI's message lay?For example,in CORBA,we may send client's ReplyHandler reference to server, so server's response will be delivery to client's ReplyHandler object by ORB.
    thanks!
    Spliu

    The simplest way to implement asynch callback is to use the properties of the MessageExchange instance. Simply attach the callback object to the message exchange instance, and send the instance off to be processed. When the component receives the response in the MessageExchange instance, it can simply retrieve the callback object and invoke it with the response.
    Using EPRs is more difficult, for it requires that both components agree on how such references are passed between them. Any EPR vocabulary (eg, WS-Addressing) can be used; generally only one component "understands" the EPR vocabulary (usually a binding component); the other treats it as an opaque XML fragment that it passes to JBI in exchange for an EndpointReference.

  • How to implement iview for gui of windows ?

    Hi all.
    We are implementing the single sign on, integrate with EP with SAP R/3.
    We create ivew for gui of windows.
    When we sign in the EP, we click on the iview, inside iview, there is a window gui of sap gui.
    Now we meet with the error ' Issuer of SSO ticket is not authorized.
    We want to how to implement it using ticket authoration method. Whats the detailed steps ?
    Thanks a lot, its very urgent.

    Basically you need to logon as Administrator
    Go to ->System Administration -> System Configuration -> Keystore Administration -> Download veryfy.der
    then
    Check backend parameters...
    login/accept_sso2_ticket = 1
    login/create_sso2_ticket = 2
    Logon to Backend, go to transaccion strustsso2 and add the certificate (veryfy.der)
    At the portal, go to ->System Administration -> System Configuration -> System Lanscape -> go to the system and make sure that Logon Method is SAPLOGONTICKET
    That should be pretty much it...
    Hope this help!
    Juan Reyes

Maybe you are looking for

  • How to bypass errors in the control flow in a foreach loop in SSIS?

    Hi All, Can anyone please get me through the solution for the below scenario:  - I have multiple XML files existing in the source system from where I need to read the data from each XML, validate and pull to staging database.  - So, to read the XML f

  • Kernal Panic - please help

    Hi. My screen dimmed and I got the dreaded message "You need to restart you computer" in 4 languages, in white text. I was not doing much when it happened. Had recently restarted and wasn't running many apps. I think I simply moved the cursor and the

  • Advanced password protection with a quit option.

    Hi all. I want to check the password of 5 differents users. The password apears as ******. But I want both a quit option. The idea is : when a user enter "quit" or "QUIT" the vi stop and pass a boolean to 1 (used in an other vi...) I have try to do t

  • 'Ignore Adjustment Layers' when auto selecting

    Auto select - being able to highlight layers based on where you click in the image, is a very useful option. Especially for design based work. What I want is a way to specify the auto-selecting of active layer content only (this could be pixel or vec

  • Has anyone thought to remove the anodized backing of the black iPhone 5?

    Seeing how the raw aluminum handles the scuffgate problem a lot better than anodized. I really like the look of the plain aluminum and if I could get a black iPhone 5 with it I think it would be the sexiest iPhone every. Any thoughts?