Simple web service authentication question

I'm using the application server included with Sun ONE Identity Server 6.1 (and Apache Axis) to deploy a very simple sample web service. Accessing it from a web browser works fine. (After entering the url to my service, I'm redirected to the authentication page. After authenticating, my service is executed as expected.)
The problem comes when I attempt to execute this same web service from a Java application (using Apache Axis). I authenticate programmatically and have a valid SSOToken. How do I pass my authentication information along to the IS server when invoking the web service programmatically? Can I do this somehow with the SSOToken I have? Every time I invoke the service programmatically, a "(302)Moved Temporarily" HTML response is received.
Thanks for your help.
David

This solved the problem for me (using Axis):
     call.setProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE,
                      "iPlanetDirectoryPro=" + token.getTokenID().toString());
     call.setMaintainSession(true);Hope this helps.

Similar Messages

  • Web Service Authentication Question

    Hello,
    I'm trying to integrate ApEx with my company's ticketing system. The ticketing system provides web services that are defined in the http://server/folders/webservices.asmx file.
    When I try to add a web service reference to that file I get the following error message after entering the WSDL location: "This WSDL requires authentication credentials. Please supply the username and password below."
    I've tried to enter the username/password many different ways but I always get the same response. When I looked in the documentation for our ticketing system I found some information about it authentication method. This seemed interesting... "WebServices.asmx is installed requiring Integrated Windows authentication. This means that in order to use webservices.asmx the calling application must pass a Windows credential with the HTTP request. That credential must have NTFS Read permission on the WebServices.asmx file."
    Can ApEx work with this? I don't know much about the differences between basic and integrated authentication...
    Thanks in advance for any help!
    Regards,
    Dan

    Jason,
    Yes I am logged into my pc and a member of the domain. If I open the URL in IE the credentials are passed thru. If I open the URL in Firefox, I get a challenge and with the correct credentials I'm allowed to view the page. Subsequent visits to the page do not challenge.
    However, when creating the web service, the browser makes no difference. I always get the "Requires auth" message.
    Dan

  • SOAP Web Service Authentication configuration

    Hello,
    I've got a little problem with Web Service authentication configuration.
    I'm working on the SAP NetWeaver CE EHP1 7.11. I also have a XMII application deployed on the server and there are some SOAP Web Services(over XMII Transactions) that require basic authentication.
    I use all Web Services in the EJB layer. So, I've generated proxy using SAP NetWeaver as a Web Service Runtime for generation. And Iuse an injection mechanism to get a service implementation:
    @WebServiceRef(name="GetBatchListService")
    private XacuteWS batchListWS;
    In this case I could use Single Service Administration application in the NetWeaver Administrator@SOA Management@Application and Scenario Communication to configure basic authentication for EVERY Web Service. And this configuration disappears after every redeploy.
    The question is how and where could I configure authentication for all web services?
    I've read a lot of documentation, but, unfortunately, I haven't found needed one. I could see 2 direction of searching now, it might help:
    1) Destination: Configure HTTP Destination or Web Service Template Destination and use it in all Web Services proxies somehow.
    2) Find Configuration way: Create a configuration group or anything else to configure all services from one screen.
    Best Regards,
    Dmitry

    Dimtris,
    If your WSDL url is pointing to the URL of the Adapter Engine as shownin the Hot to Use the SOAP adapter there is no option. You cannot add it to the SOAP Url.
    But, if you change the SOAP Url to the Url shown in this blog by Stefan Grube then you can add the user id and pasword to the url by adding sap- user=userid and sap-password = password.
    The optin shown ion the blog by Grube can be used as long as you do not have to use SOAP attachments and in this  case you would not need both sender SOAP adapter and a sender agreement.
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    Regards
    Bhavesh
    Regards
    Bhavesh

  • Need Suggestion to build a simple web service demo

    I'm planning to build a demo using java packages JAX* for my team using my workstation and another standalone box.
    I got a Sun One Web Services Platform DVD from JavaOne, but it only support Win200 or XP, too bad our company still using Win NT SP6.
    I only need a very simple web service that will bring data from server DB. I knew I can download the JWSDP1.2, but there is no tutorial right now. And I have tried JWSDP1.1 but not really understand what it is doing(because only Hello world service is working). I need to do some modification to change the default server port from 80 to 81, and I need to modified localhost to [my-machine-name] so that the other machine can talk to the JWSDP server.
    My question is how can I build up a web service demo really easy and quick and what tool should I used, any suggestion will be appreciated! Thanks in advance!
    Henry

    1. Use XML Spy Enterprise edition editor.
    2. Goto www.xmethods.com, select service you want to create demo of.
    3. Get its WSDL url.
    4. In XML Spy SOAP menu there is a command 'create new soap request'. Press that, enter the WSDL url. You will get a SOAP request.
    5. Edit SOAP request parameters. Type parameters of your choice.
    6. Press 'send request to server'. You will get SOAP response. It will contain result from the requested method.
    7. Paste that response inside a JSP.
    8. Write a local method which will return same response (remote method's return value) that came from remote web service.
    9. Paste that method inside abovementioned JSP. Replace static response in that JSP with the response generated by local method. The method parameters will come from client's SOAP request. Parse SOAP request to get request parameters. (As it's your demo, you know the data types of the parameters).
    10. Host that JSP on any Servlet/JSP engine.
    That makes your Web Service.
    You can use any package like Aapche SOAP, AXIS or JAX-RPC to generate a SOAP client. Use the URL of JSP(step 10) as "endpoint".
    Note: Indside JSP make sure that there in no endline and carriage return character. Otherwise it won't be a valid SOAP response.
    Good luck.

  • X.509 Web Service Authentication for ABAP AS Web Service Interaction

    We are trying to use X.509 web service authentication with SAP Web AS ABAP between 2 different SAP installations. Company 1 is trying to consume a web service set up by Company 2.
    Company 1 has installed Company 2's public key, generated the client proxy using Company 2's WSDL and created a corresponding lpconfig entry.
    Then company 2 has set up the profile parameter ICM/HTTPS/verify_client to accept certificates and imported Company 1's SLL client certificate and mapped the user in USREXTID.  Note that Company 1 uses self-signed certificates, so it does not have a root certificate, which is what the documentation says should be imported into the PSE instead of the SSL client certificate.
    When Company 1 tries the web service call, it receives a request to authenticate the web service from Company 2. (basic authentication logon screen, even though the web service configuration is set to X.509 Client Certificate.
    Should this work or is there a problem because Company 1 uses self-signed certificates or is there something else we are missing?

    >
    Connie Begovich wrote:
    > We are trying to use X.509 web service authentication with SAP Web AS ABAP between 2 different SAP installations. Company 1 is trying to consume a web service set up by Company 2.
    >
    > Company 1 has installed Company 2's public key, generated the client proxy using Company 2's WSDL and created a corresponding lpconfig entry.
    >
    > Then company 2 has set up the profile parameter ICM/HTTPS/verify_client to accept certificates and imported Company 1's SLL client certificate and mapped the user in USREXTID.  Note that Company 1 uses self-signed certificates, so it does not have a root certificate, which is what the documentation says should be imported into the PSE instead of the SSL client certificate.
    >
    > When Company 1 tries the web service call, it receives a request to authenticate the web service from Company 2. (basic authentication logon screen, even though the web service configuration is set to X.509 Client Certificate.
    >
    > Should this work or is there a problem because Company 1 uses self-signed certificates or is there something else we are missing?
    I think that the problem is in Service Authentication (in transaction sicf). You have to consume web-service, transmitting user-password for access.

  • Web services - few questions

    Hi!,
    I'm new to JDev. My Jdev ver: JDEVADF_11.1.2.3.0_GENERIC_120914.0223.6276.1
    I would like to create simple web service using ADF BC. A want create custom method witch take a custom data type ( eg. java class ). As i research web, I found information that, i can create only custom method witch take simple or serializable attributes. I try create simply class witch implements java.io.Serializable interface, but it didn't work ( Service Interface Custom Methods didn't display function ). I found some infos at: Passing a custom data type to a custom service method in the AM that serialization not working in 11g.
    How can I create function witch take class as a parameter and auto generate Complex Type in (xsd) and binding,ports (wsld) as it works when i use methods taken simply types.
    Taking this opportunity i would like to ask, about selecting database connections. I want to change in runtime database connections depending on received parameter.

    refer to : Multiple Database Connections in ADF?

  • SAP Sybase ESP - Error: Invalid URI at Example: Using a Simple Web Services (SOAP) Input Adapter

    Hello all,
    we need our help regarding the StockTrader example project that is delivered with SAP Sybase Event Stream Processor (Sybase ESP 5.1).
    we want to build a simple Web Service and follow the instructions as described in the Sybase Infocenter. We have attached a screenshot ("Sybase InfoCenter") that contains the described steps (as copying the URL always lead to a wrong page).
    We have problems with Step 10 ("Start the ESP project by running the start_project.bat or start_project.sh script."). We get the error message "Invalid URI" as you can see in screenshot "[error] Invalid Uri". Previously we started the "start_node.bat" (Step 9) - see also screenshot "[error] Invalid Uri".
    Like in steps 6 and 7 mentioned, we have changed the parameters "USER" and "PASSWORD" of the adapter_config.xml files and the parameters "ADAPTER_EXAMPLE_USERNAME"and "ADAPTER_EXAMPLE_PASSWORD" of the
    set_example_env.bat files. Here, we were a bit confused wether we should change these parameters in all those files as there are 4 adapter_config.xml and 4 set_example_env.bat files. Please refer to the attached screenshot ("changed files").
    Does anyone know why this error occurs and how to continue to complete the Web Service?
    Later we want to push data with this Web Service into a SAP HANA database table.
    We are thankful for any input and help.
    Regards, Andreas

    Hello Neal,
    thanks a lot for your help.
    The solution for us was to change the column names inside Sybase ESP Studio to the column names in StockTraderMappings.xml.
    After compiling and running the project we could see the data and were also able to push it to SAP HANA.
    This is the CCL Code that worked for us:
    CREATE SCHEMA tradesSchema (
        transaction_buyerId INTEGER,
        transaction_sellerId INTEGER,
        transaction_supervisorIds INTEGER,
        transaction_tradeTime LONG,
        transaction_trades_amount INTEGER,
        transaction_trades_price FLOAT,
        transaction_trades_symbol STRING
    CREATE INPUT STREAM tradesIn SCHEMA tradesSchema;
    CREATE OUTPUT STREAM tradesOut SCHEMA tradesSchema
         AS  SELECT * FROM tradesIn;
    * mapFilePath is currently ignored and must be set via the mappingFile configuration parameter
    * in the given adapter configuration file (configFilePath).
    ATTACH INPUT ADAPTER Web_Services_SOAP_Input_Adapter TYPE soapinput TO tradesIn PROPERTIES configFilePath =
    'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/adapter_config.xml' ,
    mapFilePath = 'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/stockTraderMappings.xml' ,
    jdkHome = 'C:/Software/Java/jdk' ,
    discoveryWsdl = 'http://localhost:8080/axis2/services/StockTraderService?wsdl' ,
    discoveryWorkingDir = 'C:/tmp/adapter/soap' ,
    discoveryServiceName = 'StockTraderService' ;
    Regards, Andreas and Maik

  • Another simple web service w/ database

    hi all, can anyone tell me where i can find another simple web services( w/ database) article just like http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/
    Thanks

    hi all, can anyone tell me where i can find another
    simple web services( w/ database) article just like
    http://java.sun.com/developer/technicalArticles/WebSer
    vices/getstartjaxrpc/
    ThanksThis tutorial covers Oracle and Apache Axis:
    http://www.orindasoft.com/public/axisdemotwo.php4
    David Rolfe

  • Make simple web service

    Hi all, I'd like to make simple web service. I made a desktop (swing) application, which requires access to database. The database is not accessible from outside of the server.
    But I have web application on this server, so I can create a servlet (or jsp), which could operate as web service. Afterwards I can create a connection in my desktop application directed to this service page. The page downloads required data and grants them for my desktop application.
    But I don't know the way I could do it. Can you help me please? Thank you :-).

    Hi again, after several days, I'm back. It seems to be very good solution for me, but I have a problem. I can't catch it :-(. I've read the manual pages maybe twenty-times and I've looked for another tutorials and so on. Nothing helped. I don't know, how I can run it :-(. I create following:
    My web.xml:<web-app version="2.4"
               xmlns="http://java.sun.com/xml/ns/j2ee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
               http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <servlet>
              <servlet-name>EOTService</servlet-name>
              <servlet-class>services.EOTService</servlet-class>
              <init-param>
                   <param-name>enabledForExtensions</param-name>
                   <param-value>true</param-value>
                   <description>Sets, whether the servlet supports vendor extensions for XML-RPC.</description>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>EOTService</servlet-name>
              <url-pattern>/service</url-pattern>
         </servlet-mapping>
    </web-app>In package services I have two .java files. The first one, Calculator.java:package services;
    public class Calculator {
         public int add(int a, int b) {
              return a + b;
         public int sub(int a, int b) {
              return a - b;
    }and the second one, EOTService.java:package services;
    import org.apache.xmlrpc.*;
    import org.apache.xmlrpc.common.*;
    import org.apache.xmlrpc.server.*;
    import org.apache.xmlrpc.webserver.*;
    public class EOTService extends XmlRpcServlet {
         private boolean isAuthenticated(String pUserName, String pPassword) {
              return pUserName.equals("username") && pPassword.equals("password");
         protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException {
              PropertyHandlerMapping mapping = (PropertyHandlerMapping) super.newXmlRpcHandlerMapping();
              AbstractReflectiveHandlerMapping.AuthenticationHandler handler =
                   new AbstractReflectiveHandlerMapping.AuthenticationHandler() {
                        public boolean isAuthorized(XmlRpcRequest pRequest) {
                             XmlRpcHttpRequestConfig config = (XmlRpcHttpRequestConfig) pRequest.getConfig();
                             return isAuthenticated(config.getBasicUserName(), config.getBasicPassword());
              mapping.setAuthenticationHandler(handler);
              try {
                   mapping.addHandler("Calculator", Class.forName("services.Calculator"));
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
              return mapping;
    }In the myapp/WEB-INF/lib I have these files:xmlrpc-common-3.1.3.jar
    xmlrpc-server-3.1.3.jarAnd now, I'd like to connect to this servlet and download data. So I have another application and in main method of the application I call this:public static void main(String[] args) {
    try {
                XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
                config.setServerURL(new URL("http://127.0.0.1:8080/service"));
                XmlRpcClient client = new XmlRpcClient();
                client.setConfig(config);
                Object[] params = new Object[]{new Integer(33), new Integer(9)};
                Integer result = (Integer)client.execute("Calculator.add", params);
                System.out.println("33 + 9 = " + result);
            } catch (java.net.MalformedURLException e) {
                System.out.println(e.getMessage());
            } catch (org.apache.xmlrpc.XmlRpcException e) {
                e.printStackTrace(System.out);
    }But following exception is thrownException in thread "main" java.lang.NoClassDefFoundError: org/apache/ws/commons/serialize/DOMSerializer
            at org.apache.xmlrpc.serializer.NodeSerializer.<clinit>(NodeSerializer.java:30)
            at org.apache.xmlrpc.common.TypeFactoryImpl.<clinit>(TypeFactoryImpl.java:88)
            at org.apache.xmlrpc.common.XmlRpcController.<init>(XmlRpcController.java:31)
            at org.apache.xmlrpc.client.XmlRpcClient.<init>(XmlRpcClient.java:51)
            at main.Main.main(Main.java:51)
    Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.serialize.DOMSerializer
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 5 moreI'm trying to implement it for five days and my failure is very stressful. Help me please... please :-[.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • BPEL Process Manager says that My Simple Web Service returns null !

    Hi every body,
    I am deploying a process which invokes a simple web service (TheaterWS) running on Tomcat.This service simply accepts a string input and returns it concatenated with other string . I tested it with a client that I made with JDeveloper, every thing is O.K, But after deploying the process to a BPEL server, I got the following Assign Activity error on BPEL Console:
    ( Error in <assign> expression: <from>-Value is empty in row "43".The part "return" is Null, as shown in the following snippet:
    <Invoke_Theater_getBooked_OUT>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="return">null</part>
    </Invoke_Theater_getBooked_OUT>
    Here is my files:
    The TheaterBP.bpel
    <process name="TheaterBP" targetNamespace="http://xmlns.oracle.com/TheaterBP" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:client="http://xmlns.oracle.com/TheaterBP" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:TheaterBP" myRole="TheaterBPProvider" partnerRole="TheaterBPRequester"/>
    <partnerLink name="TheaterPartnerLink" partnerRole="TheaterWS_Role" partnerLinkType="ns2:TheaterWS_PL"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:TheaterBPRequestMessage"/>
    <variable name="outputVariable" messageType="client:TheaterBPResponseMessage"/>
    <variable name="Invoke_Theater_getBooked_IN" messageType="ns2:getBookedRequest"/>
    <variable name="Invoke_Theater_getBooked_OUT" messageType="ns2:getBookedResponse"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:TheaterBP" operation="initiate" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:TheaterBPProcessRequest/client:input"/>
    <to variable="Invoke_Theater_getBooked_IN" part="a"/>
    </copy>
    </assign>
    <invoke name="Invoke_Theater" partnerLink="TheaterPartnerLink" portType="ns2:TheaterWS" operation="getBooked" inputVariable="Invoke_Theater_getBooked_IN" outputVariable="Invoke_Theater_getBooked_OUT"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_Theater_getBooked_OUT" part="return"/>
    <to variable="outputVariable" part="payload" query="/client:TheaterBPProcessResponse/client:result"/>
    </copy>
    </assign>
    <invoke name="callbackClient" partnerLink="client" portType="client:TheaterBPCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    </definitions>
    The TheaterPartenerLink1.wsdl
    targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <import namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" location="http://139.25.6.39:8080/axis/TheaterWS.jws?wsdl"/>
    <plnk:partnerLinkType name="TheaterWS_PL">
    <plnk:role name="TheaterWS_Role">
    <plnk:portType name="intf:TheaterWS"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    and here is the TheaterWS.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="http://139.25.6.39:8080/axis/TheaterWS.jws-impl" xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:message name="getBookedResponse">
    <wsdl:part name="return" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getBookedRequest">
    <wsdl:part name="a" type="xsd:string"/>
    </wsdl:message>
    <wsdl:portType name="TheaterWS">
    <wsdl:operation name="getBooked" parameterOrder="a">
    <wsdl:input message="intf:getBookedRequest"/>
    <wsdl:output message="intf:getBookedResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TheaterWSSoapBinding" type="intf:TheaterWS">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getBooked">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:input>
    <wsdl:output>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TheaterWSService">
    <wsdl:port binding="intf:TheaterWSSoapBinding" name="TheaterWS">
    <wsdlsoap:address location="http://139.25.6.39:8080/axis/TheaterWS.jws"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    I apprecitae any hints,

    Hi every body,
    I am deploying a process which invokes a simple web service (TheaterWS) running on Tomcat.This service simply accepts a string input and returns it concatenated with other string . I tested it with a client that I made with JDeveloper, every thing is O.K, But after deploying the process to a BPEL server, I got the following Assign Activity error on BPEL Console:
    ( Error in <assign> expression: <from>-Value is empty in row "43".The part "return" is Null, as shown in the following snippet:
    <Invoke_Theater_getBooked_OUT>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="return">null</part>
    </Invoke_Theater_getBooked_OUT>
    Here is my files:
    The TheaterBP.bpel
    <process name="TheaterBP" targetNamespace="http://xmlns.oracle.com/TheaterBP" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:client="http://xmlns.oracle.com/TheaterBP" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:TheaterBP" myRole="TheaterBPProvider" partnerRole="TheaterBPRequester"/>
    <partnerLink name="TheaterPartnerLink" partnerRole="TheaterWS_Role" partnerLinkType="ns2:TheaterWS_PL"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:TheaterBPRequestMessage"/>
    <variable name="outputVariable" messageType="client:TheaterBPResponseMessage"/>
    <variable name="Invoke_Theater_getBooked_IN" messageType="ns2:getBookedRequest"/>
    <variable name="Invoke_Theater_getBooked_OUT" messageType="ns2:getBookedResponse"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:TheaterBP" operation="initiate" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:TheaterBPProcessRequest/client:input"/>
    <to variable="Invoke_Theater_getBooked_IN" part="a"/>
    </copy>
    </assign>
    <invoke name="Invoke_Theater" partnerLink="TheaterPartnerLink" portType="ns2:TheaterWS" operation="getBooked" inputVariable="Invoke_Theater_getBooked_IN" outputVariable="Invoke_Theater_getBooked_OUT"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_Theater_getBooked_OUT" part="return"/>
    <to variable="outputVariable" part="payload" query="/client:TheaterBPProcessResponse/client:result"/>
    </copy>
    </assign>
    <invoke name="callbackClient" partnerLink="client" portType="client:TheaterBPCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    </definitions>
    The TheaterPartenerLink1.wsdl
    targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <import namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" location="http://139.25.6.39:8080/axis/TheaterWS.jws?wsdl"/>
    <plnk:partnerLinkType name="TheaterWS_PL">
    <plnk:role name="TheaterWS_Role">
    <plnk:portType name="intf:TheaterWS"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    and here is the TheaterWS.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="http://139.25.6.39:8080/axis/TheaterWS.jws-impl" xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:message name="getBookedResponse">
    <wsdl:part name="return" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getBookedRequest">
    <wsdl:part name="a" type="xsd:string"/>
    </wsdl:message>
    <wsdl:portType name="TheaterWS">
    <wsdl:operation name="getBooked" parameterOrder="a">
    <wsdl:input message="intf:getBookedRequest"/>
    <wsdl:output message="intf:getBookedResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TheaterWSSoapBinding" type="intf:TheaterWS">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getBooked">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:input>
    <wsdl:output>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TheaterWSService">
    <wsdl:port binding="intf:TheaterWSSoapBinding" name="TheaterWS">
    <wsdlsoap:address location="http://139.25.6.39:8080/axis/TheaterWS.jws"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    I apprecitae any hints,

  • Web Service Security Question

    I have created a web service in the NetWeaver portal using a Portal Service.  I have marked the service as requiring basic http authentication.  However, when I call the web service from the Enterprise Portal Web Services Checker in NWDS it just let's me supply the params of the web service and no authentication.  Any ideas?
    I also noticed that my web service does not appear under the Web Services Container or Web Services Security section in Visual Administrator.  Anybody have any idea why this is?
    Thanks in advance.
    Curtis

    Hi Curtis,
    My guess is that since you are logged into the Portal while calling this web service, it will use the current session cookie to authenticate automatically. I'm not sure on the second question, tried a restart?
    Regards,
    Raj

  • Web Services Authentication Error - AUTH_0005

    Authentication via the AuthenticationService is successful, returning a  valid Session ID.  Authentication via passing an AuthenticationToken in  the SOAP Header fails with an error of AUTH_0005 The user name header is  invalid ....
    We are calling newScale web  services from an external application.  Making a call to the  AuthenticationService using this SOAP request is successful:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.api.newscale.com">
        <soapenv:Header/>
        <soapenv:Body>
           <aut:authenticate>
              <aut:userName>username</aut:userName>
              <aut:password>password</aut:password>
           </aut:authenticate>
        </soapenv:Body>
    </soapenv:Envelope>
    The return data is:
    <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:Header>
           <AuthenticationToken>
              <Username>username</Username>
              <SessionId>1FD9023262278342CACF63D0D6C5A8F2</SessionId>
           </AuthenticationToken>
        </soap:Header>
        <soap:Body>
           <ns1:authenticateResponse xmlns:ns1="http://authentication.api.newscale.com">
              <ns1:personInfo>
                 <active xmlns="http://authentication.api.newscale.com">false</active>
                 <email xmlns="http://authentication.api.newscale.com">[email protected]</email>
                 <employeeCode xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <firstName xmlns="http://authentication.api.newscale.com">user</firstName>
                 <homeOrganizationalUnitName xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <lastName xmlns="http://authentication.api.newscale.com">name</lastName>
                 <localeName xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <login xmlns="http://authentication.api.newscale.com">username</login>
                 <managerEmail xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <managerName xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <managerPhone xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <placeName xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <status xmlns="http://authentication.api.newscale.com">0</status>
                 <timeZoneName xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
                 <title xsi:nil="true" xmlns="http://authentication.api.newscale.com"/>
              </ns1:personInfo>
           </ns1:authenticateResponse>
        </soap:Body>
    </soap:Envelope>
    However,  when we pass credentials in an AuthenticationToken when accessing any  of the other services, we get an error.  For example:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://requisition.api.newscale.com">
        <soapenv:Header>
           <req:AuthenticationToken>
              <req:Username>username</req:Username>
              <req:Password>password</req:Password>
           </req:AuthenticationToken>
        </soapenv:Header>
        <soapenv:Body>
           <req:getServiceDefinition>
              <req:initiatorLoginName>username</req:initiatorLoginName>
              <req:customerLoginName>username</req:customerLoginName>
              <req:serviceName>VMSpinup</req:serviceName>
           </req:getServiceDefinition>
        </soapenv:Body>
    </soapenv:Envelope>
    Yields this error:
    <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>
           <soap:Fault>
              <faultcode>soap:Server</faultcode>
              <faultstring>The user name header is invalid. It is  either not present or empty!. Please send a valid  header.</faultstring>
              <detail>
                 <RequisitionFault xmlns="http://requisition.api.newscale.com">
                    <errorCode>AUTH_0005</errorCode>
                    <errorMessage>The user name header is invalid. It  is either not present or empty!. Please send a valid  header.</errorMessage>
                 </RequisitionFault>
              </detail>
           </soap:Fault>
        </soap:Body>
    </soap:Envelope>
    Unfortunately,  I cannot find any details on the meaning of this error or what its  cause is.  There appears to be a valud SOAP header.  Is it talking about  the HTTP header instead?
    Thanks.

    I posted this same question here on the form, bottom line this does not work. You need to pass in the username and password each time
    https://supportforums.cisco.com/message/3492955#3492955

  • Java web services basic question

    Hi all,
    I'm new to web services programming, and I'm having trouble getting my head around a few conceptual ideas about web services. I'm in a graduate class right now where our project needs to use web services to create a distributed system. We're using Axis2 and jUDDI for development.
    In terms of distributed systems, I am a CORBA programmer, and so when I'm given a problem, my mind immediately goes to how I would implement it in CORBA. Web services seem similar (the WSDL is like an IDL, an jUDDI is like the CORBA naming service, etc) but I'm having difficulty figuring out how to instantiate two (or more) web services that implement the same interface.
    From the simple 'hello, world' web services I've done, I have created a java class, compiled it, packaged it into a .aar, and deployed tye aar using Axis2 on Tomcat, my application server (which somehow creates the WSDL file - I'm not exactly sure how that happens either). From there, it's simple to write a client to connect to the web service, which seems to always be running in the application server.
    Now, for the system I'm working on, we need to have multiple 'instances' of a service. For example (note this isn't the actual project assignment), say there is a 'GPS_Service' web service with a simple interface with two methods: getLocation(), and setLocation(point p). In my 'application', I want to deploy 15 'instances' of GPS_Service, and set and view their location independently.
    Here's where my lack of knowledge hurts. From my point of view, I would need 15 different java classes (i.e. GPS_Service0, GPS_Service1, etc) and 15 different .aar files. Each .aar file would go into the application server, and I would access each service at a different web address.
    In CORBA, this is much easier. Classes implement a CORBA interface, and your 'main' method can instantiate as many 'GPS_Service' objects as it wants. This seems to be because CORBA doesn't have an 'application' server where the object is always running.
    Does anyone have any suggestions for me, or does anyone have an example of what I'm trying to do?
    Thanks,
    Eric

    I forgot to answer your question.
    You have to consume the webservice :
    http://gerardnico.com/wiki/ide/eclipse/eclipse_how_to_consume_a_webservice_with_wtp
    It will create for you the package
    com.siebel.analytics.web.soap.v5
    See my example. I think it's enough complete.
    Success
    Nico

  • Consuming Web Service | Authentication

    Hello Friends,
    I'm having some trouble configuring a Web Service regarding authentication.
    I created a remote function in SE80 and a web service with it, then I went to SOAMANAGER and configured the authentication section with the 'no authentication' option and added the user/pass in the 'ABAP Service User'.
    In SICF the service is active and seams OK(the user/pass is set), but every time I try to open the WSDL in the browser I get 'A username and password are being requested by SAP Web Application Server'...
    I tested the service with SOAPUI and it also requests the User/Pass for SAP, so it seams that the problem is to enter in SAP WAS and not to access the web service.
    Please advice.
    Thank you.
    PT

    Hello Paulot,
                         You are confused with the WSDL URL and the Webservice Binding URL.
    WSDL URL :
                      This gives the description about the Interface defination for that Webservice interface and it also contains the Binding url in the SOAP Address tag . This the the url , whick will be called on consuming the webservice from external interfaces.
    Binding URL:-
                    This is the URL , whick will be called on consuming the webservice from external interfaces.
    Let me know if you ahve any questions.

  • Simple Web Service

    Hi people,
    I am fairly new to labview and having not been on any training as of yet am somewhat a fish out of water once things get a little more complex.
    All I am trying to do is send a value to a SOAP web service and then show the web services response in a textbox. It doesn't seem overly complex but I must be getting something wrong as its not working (good reasoning eh?).  Ive tried this using the "Import Web Service" under tools.  Imports fine etc but once it comes to adding a control and running the program I fairly rapidly get a 1172 error message which seems somewhat generic.
    Am I asking a lot of labview here?
    Cheers in advance for any help/advice
    Rik
    That glass?
    Thats glass is neither half full or half empty....
    Its twice the size it needs to be
    Solved!
    Go to Solution.

    Well go figure...
    I left after posting here and struggling along.  Then I stumbled onto this site:
    http://stackoverflow.com/questions/1522782/net-obj​ects-in-labview
    I then used the import web service feature as before and voila! A working web service
    Now I just have to figure why the one my boss has written isn't working the same way...
    Im free to answer any questions (keep them simple for now please!!!) also any hints and tips are still appreciated ofcourse.
    If I have any new developments I will update as necessary
    That glass?
    Thats glass is neither half full or half empty....
    Its twice the size it needs to be

Maybe you are looking for

  • Process Chain Red 'X', Exec Infopckg Yellow, Infopckg monitor/data correct

    Dear and respectable colleagues of the forum, I am experiencing a problem in a process chain when executing infopackages. The process chain has 6 "Execute infopackage" processes. Sometimes (1 of 4 attempts average) my process chain ended with red col

  • File Download Without User Interaction

    Hello, basically i want to transfer a file from one server to the other. I have a fixed source URL and a ready file handler .jsp at the destination server. In the past I did a lot with FileReference and their Browse() and Download() methods. Now i wa

  • How do we know if adapter is installed?

    Hi all, Except IDOC adapter, no adapter is working(FILE/RFC/HTTP.,). The error I get is "INVALID ADAPTER NAME". How do I know if an adapter is installed or not? We are using XI3.0, is it we have to install the adapter seperately? I appreciate your re

  • Table display in Visual Web JSF (Project woodstock)

    Hi... I am trying to display a table(Quota) from a database in Visual Web JSF(project woodstock) and it works fine, as in I am able to run the project and a browser opens up dislaying the page with the date from the table. However when I try to displ

  • Safari Among other programs slow down!

    I need help, my machine is brand-spanking new, and I am experiencing severe slow down. Safari seems to freeze up my entire computer for a couple minutes before loading up the home page. Any help will be greatly appreciated !