How to apply Authentication for a webservice getting SOAPFaultException :(

Hi ,
I am working with weblogic 10.1.3 and running build.xml in eclipse for EE
I would like to know the steps to include security parameters to authenticate with weblogic server and call webservice
I have written a build.xml that takes input as wsdl , When I run the build.xml it generates
all the necessary stubs and interfaces
I have written a main program that imports generated classes and invoke the webservice method
below are buidl.xml and two classes( main program and one java class) which I used to invoke webservice
Build.xml
=====
<project name="webservices-simple_client" default="all">
<!-- set global properties for this -->
<property name="wls.hostname" value="localhost" />
<property name="wls.port" value="8002" />
<property name="example-output" value="output" />
<property name="clientclass-dir" value="${example-output}/srcclasses" />
<property name="clientclassfiles-dir" value="${example-output}/classfiles" />
<path id="client.class.path">
<pathelement path="${clientclass-dir}" />
<pathelement path="${java.class.path}" />
</path>
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
<target name="clean">
<delete dir="${clientclass-dir}" />
<delete dir="../src/com/bea/wlcp/wlng/ws/presence" />
<delete dir="../src/org/csapi/schema/paralyx/common/v2_1" />
<delete dir="../src/org/csapi/schema/paralyx/presence/consumer/v2_3/local" />
<delete dir="../src/org/csapi/schema/parlayx/presence/v2_3" />
<echo message="Cleaning Completed" />
</target>
<target name="build-client">
<clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL" destdir="${clientclass-dir}" generatepolicymethods="true" packageName="com.bea.wlcp.wlng.ws.presence" />
<javac srcdir="${clientclass-dir}" destdir="${clientclassfiles-dir}" includes="*/.java" />
<copy overwrite="true" todir="../src">
<fileset dir="${clientclass-dir}" />
</copy>
<copy overwrite="true" todir="../src">
<fileset dir="${clientclassfiles-dir}" />
</copy>
<delete dir="${clientclass-dir}" />
<delete dir="${clientclassfiles-dir}" />
<echo message="Building Completed" />
</target>
<target name="all" depends="clean,build-client" />
</project>
======================================================
import java.net.URI;
import javax.xml.rpc.Stub;
import javax.xml.ws.BindingProvider;
import java.net.Proxy;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.List;
import weblogic.webservice.wsdl.WsdlPort;
import weblogic.wsee.connection.transport.http.HttpTransportInfo;
import weblogic.wsee.jaxrpc.ServiceImpl;
import org.csapi.schema.parlayx.common.v2_1.PolicyException;
import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
@SuppressWarnings("deprecation")
public class Main {
@SuppressWarnings("unchecked")
public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
try{
/*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();
UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");*/
SimpleReference rf = new SimpleReference();
rf.setCorrelator("correlatorid");
rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
rf.setInterfaceName("PresenceConsumer");
SubscribePresence sb = new SubscribePresence();
sb.setApplication("sdp");
sb.setPresentity(URI.create("tel:1234"));
sb.setReference(rf);
System.out.println(" Before calling subscribe presence ==" );
//SubscribePresenceResponse spr = pc.subscribePresence(sb);
System.out.println(" Hi There here 2226678565");
System.out.println(" Hi There here 333");
//raja
String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
PresenceConsumer port = (PresenceConsumer) objStub;
String returnVal = "";
System.out.println(" Hi There here 77");
SubscribePresenceResponse spr = port.subscribePresence(sb);
System.out.println(spr);
//ended here
catch(Exception e)
e.printStackTrace();
=======================================
UserCredentialsvalidation.java
import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
import com.bea.wlcp.wlng.schema.ews.common.ServiceException;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import javax.xml.rpc.Stub;
import java.util.ArrayList;
import java.util.List;
public class UserCredentialsvalidation implements PolicyBase {
private String username;
private String password;
public UserCredentialsvalidation(String username, String password) {
this.username = username;
this.password = password;
String sessionManagerURL="http://localhost:8002/session_manager/SessionManager";
SessionManagerService accessservice = null;
try {
accessservice = (SessionManagerService) new SessionManagerService_Impl(sessionManagerURL+"?WSDL");
SessionManager port = accessservice.getSessionManager();
System.out.println(" port >>>>>");
System.out.println(" port >>>>>" +port);
UserCredentialsvalidation pbase = new UserCredentialsvalidation();
pbase.prepareStub((Stub)port,username,password);
} catch (Exception e) {
System.out.println(" helo helo");
// TODO Auto-generated catch block
e.printStackTrace();
public UserCredentialsvalidation() {
// TODO Auto-generated constructor stub
public void prepareStub(Stub stub,String username,String password) throws Exception {
List<ClientUNTCredentialProvider> credProviders = new ArrayList<ClientUNTCredentialProvider>();
System.out.println(" username >>> " + username.getBytes());
System.out.println(" password >>> " + password.getBytes());
credProviders.add(new ClientUNTCredentialProvider(username.getBytes(),
password.getBytes()));
System.out.println("setting standard wssec");
stub._setProperty("weblogic.wsee.security.wss.CredentialProviderList",
credProviders);
System.out.println("Getting property from stub== " + stub._getProperty("weblogic.wsee.security.wss.CredentialProviderList"));
@Override
public void prepareStub(Stub port) throws Exception {
// TODO Auto-generated method stub
=========================================
When I run the main program I am getting below exception
Before calling subscribe presence ==
Hi There here 2226678565
Hi There here 333
Hi There here 77
java.rmi.RemoteException: SOAPFaultException - FaultCode {http://schemas.xmlsoap.org/soap/envelope/}Server FaultString Unable to add security token for identity FaultActor nullNo Detail; nested exception is:
weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
at Main.main(Main.java:62)
Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
... 1 more
Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
... 4 more
==========================================================
I am working for 3 days to solve this issue, but helpless
Please tell me I am going in right way , I read many forums and implemented different ways , but getting same problem, that too before calling webservice method .
Do i need to do anything more apart from adding username and password parameters
Please tell me the exact steps how to perform authentication with webservices
Your answer will help me a lot .
Thanks in Advance
Regards
Rajasekhar

Please find the modified file Main.java
import java.net.URI;
import javax.xml.rpc.Stub;
import javax.xml.ws.BindingProvider;
import java.net.Proxy;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.List;
import weblogic.webservice.wsdl.WsdlPort;
import weblogic.wsee.connection.transport.http.HttpTransportInfo;
import weblogic.wsee.jaxrpc.ServiceImpl;
import org.csapi.schema.parlayx.common.v2_1.PolicyException;
import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
@SuppressWarnings("deprecation")
public class Main {
     @SuppressWarnings("unchecked")
     public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
     try{
     /*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
     //PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();*/
     UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");
     SimpleReference rf = new SimpleReference();
     rf.setCorrelator("correlatorid");
     rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
     rf.setInterfaceName("PresenceConsumer");
     SubscribePresence sb = new SubscribePresence();
     sb.setApplication("sdp");
     sb.setPresentity(URI.create("tel:1234"));
     sb.setReference(rf);
     System.out.println(" Before calling subscribe presence ==" );
     //SubscribePresenceResponse spr = pc.subscribePresence(sb);
     System.out.println(" Hi There here 2226678565");
     System.out.println(" Hi There here 333");
     //raja
     String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
     Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
     objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
     objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
     objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
     PresenceConsumer port = (PresenceConsumer) objStub;
     String returnVal = "";
     System.out.println(" Hi There here 77");
     SubscribePresenceResponse spr = port.subscribePresence(sb);
     System.out.println(spr);
     //ended here
          catch(Exception e)
               e.printStackTrace();
==============================
When I run the main program getting below exception
port >>>>>
port >>>>>com.bea.wlcp.wlng.ws.sessionmanager.SessionManager_Stub@19c0bd6
username >>> [B@1cd280b
password >>> [B@29ac
setting standard wssec
Getting property from stub== [[ClientUNTCredentialProvider: username=sdpai password=is set]]
Before calling subscribe presence ==
Hi There here 2226678565
Hi There here 333
Hi There here 77
java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:
     weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
     at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
     at Main.main(Main.java:62)
Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
     at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
     at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
     at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
     at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
     at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
     at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
     at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
     at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
     at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
     at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
     at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
     ... 1 more
Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
     at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
     at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
     at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
     at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
     at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
     at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
     at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
     at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
     ... 4 more

Similar Messages

  • How to apply license for SSM 7.5 & Netweaver CE 7.1?

    How to apply license for SSM 7.5 & Netweaver CE 7.1?
    My application server java in SAPMMC: appear message: no valid license found.
    Acually we already bought license and download,
    So, how to solve this license problem?

    Chamnap,
    When your NetWeaver license expires, it can be restarted, but will only run for 1/2 hour, to allow installing a new license.
    Step 1- Start NetWeaver CE from the control console
    Step 2 - Log on to NetWeaver Administrator http:///[server]:50000/nwa and go to Configuration tab then Infrastructure sub-tab, then Licenses
    Step 3 -  Make note of your System Number and Active Hardware Key in the System Parameters section
    Step 4 - Navigate to the Service Marketplace http://service.sap.com/licensekey
    Step 5 - You are looking for SAP Business Suite - SAP Products with ABAP Stack, Without ABAP stack (WEB AS Java-J2EE Engine) SAP Enterprise Portal link
    Step 6 - Fill in your Hardware Key and System # -  Make sure you choose this License Type: J2EE Engine - Web Application Server Java (it is not the default selection)
    Step 7 - A message at the bottom of the page will note a new key has been generated and you can Download the txt file needed (you also receive an email with the info as well)
    Step 8 - (Restart NetWeaver CE - if its timed-out) On the Licenses page of nwa click Install from File > Browse to the txt doc you downloaded and ADD
    You now have the new license install. Make note of the date to schedule the time for any future updates, so that service is not interrupted.
    If you cannot access the license key on the Service Marketplace you will need to contact your SAP account representative.
    Regards,
    Bob

  • Very URGENT!! How to apply CRT for support packs?

    Hi falks,
    This is urgent, I'll appreciate your quickest reply. I'm trying to apply Stack_14 ABAP, I'm getting the following errors.
    Conflicts Betwen Add-On CPRXRPM 400 and support pages
    SAP_ABA   700   SAPKA70013     Include CRT
    Conflicts Between Add-On ST 400 and support Packages
    SAP_BASIS  700   SAPKB70012    Include CRT
    SAP_BASIS  700   SAPKB70013    Include CRT
    Please help me how to do approach?..
    Thanks,
    Points will be given for sure.

    Hi Afi
    For your second conflict, you need to download the Support package 15 for SOLMAN.
    This will fix your problem,
    You could check this information in:
    1) https://websmp105.sap-ag.de/ocs-schedules 
    2) click in SAP Solution Manager Support Package Schedule
    3) Search the SAP Solution Manager 4.0 and find the SP 15, in the table you could find that the support package resolves the problem with the component SAP_BASIS SP 14
    I recommend you check this note:
    Note 662441 - Solution Manager: SAP Notes for Support Packages
    and you can check this too:
    Note 619054 - Release strategy for Solution Manager Service Desk (ST-SUP)
    Regards
    P.S. Please reward points
    Edited by: Eydar Del Angel on Feb 21, 2008 5:42 PM

  • Authentication for CAF webservices

    Hi,
           How is User Authentication given to the Application Services which are exposed as WebServices in CAF.

    Hi,
    Please follow this article
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/205afcd0-3d40-2b10-fc91-b6bde33055b7

  • How to apply condition for 3 countries out of 6 counties (in smartforms)

    Moved to correct forum
    hi friends,
    i have a requirement in SMARTFORMS...
    my requirement: i need to implement some logic which should effect only 3 countries out of 6 countries.
    now i implemented my logic but the thing is how to restric only for 3 countries?
    do i need to write the condition in program line like:
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'O110'
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'Y110'
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'W110'
    or
    do i need to write condition like:
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'O110'
    OR
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'Y110'
    OR
    IS_BIL_INVOICE-HD_ORG-SALESORG  = 'W110'
    please guide me...
    thanks in advance,
    Edited by: Matt on Mar 23, 2009 10:09 AM

    Hi,
    your 2 (second) option (with the OR) is the right one.
    Gr., Frank
    added the SAP help for the operands to inform GURU RAM.
    SAP Smart Forms: operand                                                                               
    Specification of a field name or operand                                                                               
    Use                                                                               
    Within a Smart Form a node and all inferior nodes are processed only if
        the respective output condition is true. A condition can either be a   
        logical expression on field values or consist of events or position    
        queries in the form processing.                                                                               
    You can determine a condition as logical expression using a table      
        control. Each line of the table control consists of a field name, a    
        comparison operator, and a comparison value. The comparison value can  
        itself be a field name. As compariosn operators, the ABAP operators  =,
        <>, <, >, <=, >=, CP (contains pattern) and NP (not contains pattern)  
        are allowed.                                                                               
    All lines of the table control are linked with the logical AND. In     
        addition, you can use a pushbutton of the table control to insert an OR
        link for comparisons. In the table control, it is displayed as line with
        gray background. The Check function checks whether all field names that
        appear in the comparisons are declared in the form interface or in the 
        global data of the form.                                                                               
    See also: Determining OutputConditions

  • How to Apply Databank for 2 or more than 2 fields?

    hi,
    Suppose on a form we have 2 fields like First name and Last name . So in .csv file I have given like First Name,Last Name (comma separated) and my databank file gets created.
    But before playing back the application , how can i attach the databank(.csv file) for 2 different script nodes in Tree View?
    If i try to substitue variable , where i have to apply databank then at the time of applying to First Name field it fetches the value for both of the fields value i.e First Name, Last Name
    So at the time of playback the application for First Name field it will fetch the value for both First name, Last Name.

    hi,
    Suppose my form contains the following fields as:
    Project,Category,Start Time,End Time,Task Assigned,Task Description
    and I want to apply databank values for these fields
    Steps which i do are as follows.
    1. First of all i Configure the databank file as:
    Project,Category,Start Time,End Time,Task Assigned,Task Description
    and the values pass are :
    Orgnization Process,General,13: 00,14 : 00,test1,test2(in the first row)
    NMDGF,General,14:00,15:00,test3,test4(in the second row).
    2. After configuring the databank file i have to link with Script node. But since there are more than one fields so how i can link the csv file with script node?
    as for the single variable script node , i just substitute the value and link with the databank file its work perfectly fine and it add the folowing code in java code
    getDatabank("Timesheet Project").getNextDatabankRecord(); in the starting of run function
    3. So i have to add custom code for fetching the value for the next field? As I am not so gud in Java Code so what wil be the code to fetch the values for the next field from CSV file

  • How to use HTTPS for my Webservices

    Hello,
    I'm devoloping one SIte of a Webservice-based Interface.
    - My Webservices have to to consumed using HTTPS
    - My Invoker(Oracle 10g PL/SQL-Procedure) has to invoke a Webservice over HTTPS
    So i have seen how to create Secure-SOAP-Webservices, but I don't find a tutorial, which shows the whole Process: Create the Webserver-Certificate (SAP WAS 6.40), tell the Webservice to use this certificates, etc...)
    It would also be graet, to get a link to tutorial..
    Greetings,
    Chris

    I don't use Oracle PL/SQL, but I can give you an idea how it can be done via eg PHP (pear soap in this case) consumer.
    I presume that you you have on the WAS already an FM which is webservice enabled.
    First you need to set up an array with all credentials
    $proxy = array('user'=>'someuser', 'pass'=>'somepass','proxy_user'=>'someuser', 'proxy_pass'=>'somepass');
    Then you set up the client with the wsdl and this proxy info
    $wsdl=new SOAP_WSDL("https://someuser:somepass@someurl",$proxy);
    $wsdl->proxy=$proxy
    $client->$wsdl->getProxy();
    $result=$client->someFMonWAS();
    It's that easy.

  • How to apply metrics for different platform

    Hi,
    If a metric has different code for different platform, or the metric only runs on some specific type of system, how can we apply it to a group of hosts?
    For example, I have a metric that checks only Sun T3 types of systems. I can create a group of hosts that are T3 type system, but how do I apply the metric to this group?
    The other example is the way to collect data is different for Soaris and Linux platform, can I have 2 metrics, one apply to the group of Solaris machines, and the other apply to the group of Linux machines?
    Thanks.

    Hi,
    You can use EM groups and monitoring templates to accomplish what you want to do. For example, create a group for Solaris hosts and a template to push out appropriate metric settings for the group.
    Documentation links:
    - EM groups:
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/group_management.htm#DAFHBFCB
    - Monitoring templates:
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/monitor_overview.htm#sthref38
    Regards,
    - Loc

  • How to define endpoint for SessionBeans webservice in OC4J 10.1.3.1?

    Hi Gurus,
    I am trying to find solution for defining endpoint in HTTP/SOAP webservice created from SessionBeans based on annotations JSR-181. My problem is that I have cluster of J2EE nodes where my webservice is deployed and each node has its own hostname. when I access WSDL file from particular node I see that endpoint definition is pointing directly to its hostname. For example:
    <service name="CreditService">
    <port name="ValidateCreditCardServiceSoapHttp" binding="tns:ValidateCreditCardSoapHttp">
    <soap:address location="http://node1.site.com:7777/CreditService"/>
    </port>
    </service>
    But this is unwanted behavior, because I am loadbalancing my nodes by HW loadbalancer and I'd like to have this endpoint to pointing to my HW loadbalancer. Like this:
    <service name="CreditService">
    <port name="ValidateCreditCardServiceSoapHttp" binding="tns:ValidateCreditCardSoapHttp">
    <soap:address location="http://hwloadbalancer.hostname/CreditService"/>
    </port>
    </service>
    In normal WebService project I could force this endpoint definition in oracle-webservice.xml by adding this tag to it:
    <oracle-webservices xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/oracle-webservices-10_0.xsd">
    <web-site host="hwloadbalancer.hostname" port="80" />
    But it SessionBeans webmethods I can't do it because I don't have oracle-webservice.xml file. I have just this java file where I specified by annotations webmethods:
    package org.soademo.customerservice.business;
    import java.rmi.RemoteException;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import org.soademo.customerservice.persistence.Customer;
    @WebService(serviceName = "CustomerSvc",
    targetNamespace = "http://www.globalcompany.com/ns/customer")
    public interface CustomerService {
    @WebMethod
    Customer findCustomerById(
    @WebParam(name = "custid",
    targetNamespace = "http://www.globalcompany.com/ns/customer")
    String custid) throws RemoteException;
    @WebMethod
    Customer findCustomerByEmail(
    @WebParam(name = "email",
    targetNamespace = "http://www.globalcompany.com/ns/customer")
    String email,
    @WebParam(name = "password",
    targetNamespace = "http://www.globalcompany.com/ns/customer")
    String password);
    @WebMethod
    String getCustomerStatus(
    @WebParam(name = "CustomerID",
    targetNamespace = "http://www.globalcompany.com/ns/customer")
    String CustomerID);
    @WebMethod
    String addNewCustomer(
    @WebParam(name = "customer",
    targetNamespace = "http://www.globalcompany.com/ns/customer")
    Customer customer);
    Do you have any idea how to do it?
    Any advice is welcomed.
    Thanks
    Peter

    Hello Peter,
    The version of JSR181 (WS Annotations) we have implemented does not provide such feature.
    So Oracle has implemented a proprietary annotation to control the endpoint (context) generation, this is the @Deployment annotation that is documented here
    Regards
    Tugdual Grall

  • How is it possible for iTunes to get worse with every update??

    Seriously this is baffling me.
    I hate the new Get Info box, the auto-fill is terrible because as soon as I hit space bar to finish off the album artist etc. it's like the spacebar acts the same as hitting enter.
    I seem to notice that sometimes album artist or comments will disappear from the get info box despite me picking always show current fields
    I also massively dislike the fact that say if i've searched for a particular album in my library and I wanna just listen to that for a while, as soon as i click on a different playlist like recently added or the itunes store, it will no longer just play my album but will play my entire library, it's like it's forgotten that i had searched just for that particular album, kinda like if on the older versions when you paused a song and went into a different playlist it forgot what you was listening to
    just in general this feels really shoddy and a giant leap back, the only reason i'm reluctant to stop using is because it's easy to sync my iPhone through it and I use iTunes store a fair bit as it's normally quite alot cheaper than beatport etc
    I really hope they have a serious look at improving on this because I just think it's really poorly laid out and not very easy on the eye

    Is this even possible? I would be very surprised if it wasnt.

  • How to apply filters for union all report in OBIEE 11g

    Hi All
    Can we apply saved filters to union reports in obiee 11g?
    I am able to apply saved filters for normal reports but not for union reports.
    The catalog pane is blank, when i click on result columns or each criteria.
    The only option i see is to manually create the filters for each criteria, dont i have any choice to use a saved filter for union report?
    Is this a bug or something i am unaware. Please guide me
    Thanks

    Hi manu,
    Filter is created based on subject area.we can't use save filter in any other subject areas.
    now we can use new filter for union reports.
    if Helps please mark as correct.. :)

  • How to apply patch for MSAHH02_0-10003081.ZIP( xMSA FOR HH (WITH CRM) 5.0 S

    Hi All,
    I am working on xapps for Mobile to implement CRM mobile sales for handheld using  CRMHH 5.0. For that I am using the WAR file MSAHH02_0-10003081.ZIP( xMSA FOR HH (WITH CRM) 5.0 SR02 ) available on SAP marketplace.
    Now I want to apply the patch available for the same i.e. MSAHH02P_4-10003081.ZIP(Patch for MSA FOR HH (WITH CRM) 5.0 SR02 )
    Can anyone please tell the  procedure to apply the patch.
    Thanks & Regards
    Sumit

    HI
    For latest patches you can check at
    http://service.sap.com/swdc -> Support Packages and
    Patches -> Entry by application -> Application Components
    -> SAP ERP -> ERP2004 -> SAP ECC Server
    There are two kinds of kernal files:
    SAPDBEXE and SAPEXE,one is DB dependent and one file is DB independent.
    For downloading the kernal patch:Follow the below path as per your OS and DB combination
    for downloading a kernel patch
    go through following
    service.sap.com/swdc
    downloads-> SAP Support packages -> My Company's Application Components -> SAP KERNEL 32 bit ->SAP KERNEL 4.6D 32-BIT ->SAP KERNEL 4.6D 32-BIT->Windows Server on IA32 32bit -> Select ur database->Windows Server on IA32 32bit
    Reward suitable points

  • How to apply materials or textures and get them to render?

    I'm a bit of a novice, have been totally frustrated by programs like VIZ (cousin to 3DS Max), which seem wholly un-intuitive to me.
    Can someone give me a VERY SIMPLE example of how to put a texture/material onto an object and get it to render? I can only get it show the color.
    The Help file is pretty thin in the help department.
    Any advice is appreciated.

    I'm a bit of a novice, have been totally frustrated by programs like VIZ (cousin to 3DS Max), which seem wholly un-intuitive to me.
    Can someone give me a VERY SIMPLE example of how to put a texture/material onto an object and get it to render? I can only get it show the color.
    The Help file is pretty thin in the help department.
    Any advice is appreciated.

  • How to apply sorting for each level of a hierarchy?

    I'm using SSAS OLAP and I want to apply sorting of the levels of a hierarchy.
    I know that I can sort the whole hierarchy via ORDER function (I have some issues when I'm trying to apply DESC sorting
    on the whole hierarchy), but what I really want to achieve is sorting of a specific level. For example in the [Date].[Calendar] hierarchy (Adventure Works Cube), I want to have ASC sorting
    of years, DESC sorting of Quarter, ASC sorting
    of Months, etc. I do not want to break the hierarchy (using BASC or BDESC), I just need them sorted on the same level. Do you have an idea if this is possible at all?
    My idea is to sort the levels based on their key, not by the measure. For example if we have the following structure:
    -2009
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    -2010
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    I would like to be able to sort the data in the following order (DESC for years, ASC for Quarters, DESC for months):
    -2010
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May
    -2009
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May 
    Thanks in advance for your help!

    Hi Rosen,
    According to your description, you want to sort the different hierarchy members in different order, right? Generally SQL Server Analysis Services doesn't provide a way to sort dimension members in Descending order. SSAS provides only Ascending order. We
    can achieve this sort functionality by using a simple trick. However, the order is used for all the members of different hierarchy under this dimension. So I'm afraid that your requirement cannot be achieved. 
    Reference:Sort Dimension Members in DESCending order
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to disable authentication for weblogic server

    Hi expert,
    I have a web application deployed on weblogic server 12c. And I have a client which connects to the web application.  The client will authenticate with server with digest authentication (challenge\response). We use the default authentication in weblogic server and the authentication is done by weblogic server. And it works fine.
    However, I want to run a performance testing to replay all client requests including the requests for authentication. Since it's challenge/response authentication mechanism, the original requests can not pass authentication and weblogic server replies 401. I want to know is there any way to disable weblogic authentication so that the authentication passes when I replay my original request?
    Thanks very much!
    Regards,
    Yan

    You can disable the security of the application in the web.xml. Here there is a security-constraint configured that tells WebLogic what to do, for example,
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>All</web-resource-name>
    <url-pattern>/faces/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>MANAGER</role-name>
    <role-name>EMPLOYEE</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    If you put the security-constraint in comments, you can access the application, without authentication (note that the application itself probably uses the authentication in order to set certain things, so I do not if this is going to work).

Maybe you are looking for