OSB11gR1 - Invoking WebService with Authentication in Business Service

Hi,
I need to invoke a webservice from my OSB application. I have configured the webservice details in Business Service. I am calling the Business Service fom service callout where I pass the url via Routing Options. But the webservice which I invoke requires some authentication (username & password). Can you let me know how to pass this through service callout to business service
Thanks,
Bals

The HTTP header field which contains the username & password for basic authentication is Authorisation . You may need to use a java callout for populating the value for this field as this has to be base 64 encoded.
Example taken from wiki page for Basic authentication http://en.wikipedia.org/wiki/Basic_access_authentication
For example, given the user name Aladdin and password open sesame, the string Aladdin:open sesame is >Base64 encoded, resulting in QWxhZGRpbjpvcGVuIHNlc2FtZQ==HTTP Header
GET /private/index.html HTTP/1.0
Host: localhost
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Similar Messages

  • ProcessRemoteException when invoke  webservice from Oracle E-Business Suite

    Hi,when i invoke webservice from Oracle E-Business Suite R12.1 – Integrated SOA Gateway’s
    I get following exception.
    fuego.soaptype.SoapExecutionException
    at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java\:750)
    at fuego.soaptype.SoapCall.invoke(SoapCall.java:238)
    at fuego.soaptype.SoapObject.invoke(SoapObject.java:309)
    at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
    at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
    at xobject.Fuego__AutoGen__Screenflows__.__SubmitReport.initializeReport(__SubmitReport.xcdl:30)
    at.......
    this webserivce has been deployed and granted. and I can test it with soapUI.
    my code:
    configuration as Configuration = Configuration("FND_PROGRAM_Service");
    endpoint as HttpEndpoint=HttpEndpoint("http://ep066020.bscdev.net:8002/webservices/SOAProvider/plsql/fnd_program/");
    endpoint.setUsername("sysadmin");
    endpoint.setPassword("sysadmin");
    configuration.endpoint = endpoint;
    usernameTokenPlain as UsernameTokenProfileSecurityPolicy=UsernameTokenProfileSecurityPolicy("sysadmin","sysadmin");
    usernameTokenPlain.usernameTokenPasswordType = UsernameTokenPasswordType.PASSWORD_TEXT;
    policies as SecurityPolicy[];
    policies[]=usernameTokenPlain;
    configuration.securityPolicies = policies;
    service as FND_PROGRAM_Service= FND_PROGRAM_Service(configuration)
    sh as SoaHeader = SoaHeader();
    sh.namespace="";
    sh.responsibilityApplName="SYSADMIN"
    sh.responsibilityName="System Administrator"
    sh.securityGroupName="STANDARD"
    sh.nlsLanguage="AMERICAN"
    pam as InputParameters9 = InputParameters9()
    result as OutputParameters
    pam.application="SQLGL";
    pam.executableshortname="ENABLED"
    do
    logMessage "333333333333333";
    executableexists service
    using header = sh,
    body = pam
    returning result = bodyOutput (throw exception)
    logMessage "2222222222222";
    reportSF.description=String.valueOf(result.fndprogram24executableexists)
    reportSF.comments="11111111111";
    on ex as Any
         logMessage "aaaaaaaaaaaa"+ex
    end

    I've encounter something similar to you're problem and it was resolved by manually creating the object using the web service constructor and inputting user credentials. If you manually instantiate your web service wrapper object and set a a security profile token, it may solve your problem. You can also pass in the web service endPoint URL, if you want.
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy
    I'm not sure how to use UsernameTokenProfileSecurityPolicy, but try something like this:
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy policy = UsernameTokenProfileSecurityPolicy();
    policy.username ="mark";
    policy.password = "password";
    tws = YourWebService();
    response = tws.callWebServiceMethod();
    I realize the security profile isn't tied anywhere to the web service, but try it anyway.
    There is also some fields on the webservice, tws.setRequestHeader() that may allow you to set the username and password on the request, but this doesn't make sense to me. It shouldn't be that hard.
    Edited by: Mark Peterson on Mar 19, 2010 9:14 AM
    Edited by: Mark Peterson on Mar 19, 2010 9:20 AM

  • Publish action not working with JCA based Business Service

    Hi All,
    I have created one BS in OSB that publish the message in AQ. Its working fine as expected when tested from test console.
    I have made one proxy service which after transformation will publish the message to this BS, but the publish action is not invoking.
    I have added log action inside request action of my publish action and log is getting generated for that with correct request.However, I cant see message in DB neither can i see any exception/error logs in OSB.
    I tried replacing publish with route action and its working fine , message is getting published in AQ.Did any one face this type of issue before ???
    Or publish action works only with jms based Business services.
    Appreciate your help.
    Regards,
    Karan

    Bingo !!!
    Setting QOS helped me to find out the exact error. Was passing complete soap envelope to BS instead of passing body part only.
    Thanks a lot for your help mate .
    One more query can you please enlighten me on the use of QOS in OSB, such as in what scenarios we should use QOS.
    Regards,
    Karan
    Edited by: Karan Mann on Mar 14, 2013 3:37 AM

  • Issues invoking webservice hosted on Aqualogic Proxy service.

    Hi,
    This is my first "Hello world..." forum experience.
    I'm facing problems while invoking webservice hosted on Aqualogic Proxy Service in my local machine;
    I'm using Weblogic 10 (Oracle Service Bus 10gR3 ).
    1) I've used weblogic's "weblogic.wsee.tools.anttasks.ClientGenTask" to generate java code from wsdl file
    2) Created a stand-alone client
    code fragment :
    try{
    ServiceActivationNoticationService notificationService = new ServiceActivationNoticationService_Impl("http://localhost:7001/ServiceActivationInterface/FroxyServices/ServiceNotification".concat("?WSDL"));
    ServiceActivationNoticationPortType notificationServicePortType = notificationService.getServiceNotification();
    Empty response = ((ServiceActivationNoticationPortType_Stub)notificationServicePortType).serviceNotification(notification);
    catch(){
    System.err.println(ex.toString());
    logger.debug("Service Notification Exception...", ex);
    throw new Exception("Service Notification Exception...", ex);
    Comiling successfully but when I run I'm getting the follwing exceptions:
    Caused by: java.lang.NullPointerException
         at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameProperty.access$000(ByNameRuntimeBindingType.java:314)
         at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.getMatchingElementProperty(ByNameRuntimeBindingType.java:253)
         at com.bea.staxb.runtime.internal.ByNameUnmarshaller.findMatchingElementProperty(ByNameUnmarshaller.java:71)
         at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:43)
         at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:174)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:212)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalElement(UnmarshalResult.java:227)
         at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalElement(UnmarshallerImpl.java:166)
         at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalElement(LiteralDeserializerContext.java:87)
         at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeElement(BaseDeserializerContext.java:180)
         at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeElement(BaseDeserializerContext.java:115)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:490)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodeReturn(SoapDecoder.java:400)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:170)
         at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:121)
         at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:175)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeOutput(CodecHandler.java:126)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:103)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleResponse(CodecHandler.java:80)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:236)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:220)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:159)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:114)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:331)
         ... 3 more
    But If I create a soap message manully and invoke the same webservice, it works fine.
    Please reply soon....
    Thanks in Advance.

    Hi James,
    Thanks for your reply, and directing me to appropriate threads.
    The problem is with one of wsdl element.
    My requirement is an empty element:
    so I've created
    <element name="empty">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </element>
    when I use this element for output type as below...
    <wsdl:input message="service" type="xxx:service"/>
    <wsdl:output message="emptyResponse" type="xxx:empty"/>
    weblogic clientgen code is able invoke service successfully but the response is causing problem.
    But when I changed empty element to
    <element name="empty">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="abcd" type="xsd:string" minOccurs="0"/> I'll not use this at all.
    </xsd:sequence>
    </xsd:complexType>
    </element>
    Everything is working fine now in this case. ************************************************************************
    But I'm not sure what's wrong with
    <element name="empty">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </element> because specifications says this is the way to define an empty element type.
    What's wrong with this....
    Thanks.... to Hello world! Response....

  • ECATT and Webservices with authentication - PROBLEM

    Hello,
    i'm writting a eCATT-Script, which execute a webservice with authentication.
    It's working fine, but everytime when i run the script i have to put the user and password for the webservice manually. It's not much comfortable, because i will automate the whole script.
    Please let me know, if someone know, how to automate it.
    Thanks!

    Don't know about integrated windows auth but we are using basic authentication for some portlets where we need the credentials in the code. You have to enable the following in your remote code's Web Service (or the remote server if you prefer): "Basic Authentication Settings -> Basic Authentication info sent to Web Service -> User's Basic Authentication Information" And of course enable it in IIS.
    All of our other remote code is set to allow "anonymous access" in IIS.
    Well, not sure if that helps.

  • Can we invoke webservice with multiple parts in wsdl?

    Can we invoke webservice with multiple parts in wsdl?
    Thanks

    Yes we can invoke a web service with multiple parts for the input message.
    You just have to assign to the relevant parts of the partner link input variable before invoking.
    Regards,
    Shanmu.

  • How to keep data integrity with the two business service in OSB 10.3.1.0

    How to keep data integrity with the two business service in OSB 10.3.1.0
    In our customer system, customer want to keep data integerity between two businness service. I thinks this is XA transaction issue.
    Basing customer requirment, I created a testcase but I can't keep data integerity, For detail information, please refer the attached docs.

    Can you please explain what you meant my data integrity in your use case?
    Manoj

  • OSB: Invoking multiple endpoint URIs or business service at same time

    Hi All,
    I want to route the request to two end point URIs or business services using OSB.
    Say for example, I have a BPEL which is deployed in two servers. Using this solution I have to invoke the deployed service in both servers as soon as I receive input.
    Please help.
    Thanks in Advance

    yes you can.
    1. place URIs in a xml. Save XML as a xquery resource say URICollection.xquery.
    2. assign this URICollection.xquery to a variable say URICollectionVariable.
    3. extract desired URIs using a xquery from URICollectionVariable. Two URIs can be stored inside one parent element, which can be output as result.
    4. replace business service URI with desired URI (from result) using "Routing options".
    To propagate request to two different locations, you need to use "for each" action. Run the "for loop" exactly two times, write logic for above item no.4- inside the for loop action.

  • Unable to invoke Webservice with BPEL process

    Hi,
    I wrote a basic WebService in Java and now I want to invoke it with a simple BPEL Process. But it doesn't work. I am using Netbeans 6.5 as IDE and GlassFish V2 as Server.
    Everytime when I try to test my BPEL Process, I got back the following failure message:
    ERROR: Successful execution of Start: NPSProcesstestingApp
    WARNING: (JBIMA0405) Start of service assembly NPSProcesstestingApp succeeded partially; some service units failed to start.
    * Component: sun-http-binding
    ERROR: (SOAPBC_START_1) HTTPBC-E00205: Start failed. java.lang.Exception: LifecycleException: PWC3985: Initialisierung der Protokoll-Behandlungsroutine fehlgeschlagen: java.net.BindException: Address already in use: bind: 8083
    * Component: sun-bpel-engine
    INFO: (JBIMA0409) Lifecycle operation start succeeded for Service Unit NPSProcesstestingApp-NPSProcesstesting.
    I have absolutely no idea why it doesn't work, my webservice is running on localhost at port 8083: http://localhost:8083/numberportingservice, and I deploy it in the following way:
    //NumberPortingService
    NumberPortingServiceImpl npsImpl = new NumberPortingServiceImpl();
    new TestDataGeneratorNPS(npsImpl);
    JaxWsServerFactoryBean sfNPS = new JaxWsServerFactoryBean();
    sfNPS.setServiceClass(NumberPortingService.class);
    sfNPS.setAddress("http://localhost:8083/numberportingservice");
    sfNPS.setServiceBean(npsImpl);
    sfNPS.create();
    That works fine, but it doesn't work with the BPEL process, GlassFish is running on Port 7272 and my webservice on Port 8083, so is the Port 8083 blocked? I checked it, it is not blocked by another application, only my webservice is using it.
    My BPEL Process looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <process
    name="NPStesting"
    targetNamespace="http://enterprise.netbeans.org/bpel/NPSProcesstesting/NPStesting"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="http://enterprise.netbeans.org/bpel/NPSProcesstesting/NPStesting">
    <import namespace="http://enterprise.netbeans.org/bpel/numberportingserviceWrapper" location="localhost_8083/numberportingserviceWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://jaxws/" location="localhost_8083/numberportingservice.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
    <partnerLink name="PartnerLink1" xmlns:tns="http://enterprise.netbeans.org/bpel/numberportingserviceWrapper" partnerLinkType="tns:NumberPortingServiceLinkType" myRole="NumberPortingServiceRole"/>
    </partnerLinks>
    <variables>
    <variable name="StatecountOut" xmlns:tns="http://jaxws/" messageType="tns:statecountResponse"/>
    <variable name="StatecountIn" xmlns:tns="http://jaxws/" messageType="tns:statecount"/>
    </variables>
    <sequence>
    <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink1" operation="statecount" xmlns:tns="http://jaxws/" portType="tns:NumberPortingService" variable="StatecountIn"/>
    <reply name="Reply1" partnerLink="PartnerLink1" operation="statecount" xmlns:tns="http://jaxws/" portType="tns:NumberPortingService" variable="StatecountOut"/>
    </sequence>
    </process>
    The wsdl of my webservice looks like this:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="NumberPortingServiceService" targetNamespace="http://jaxws/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://jaxws/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://jaxws/" xmlns:tns="http://jaxws/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="address" type="tns:address" />
    <xs:element name="check_porting_possible" type="tns:check_porting_possible" />
    <xs:element name="check_porting_possibleResponse" type="tns:check_porting_possibleResponse" />
    <xs:element name="check_porting_status" type="tns:check_porting_status" />
    <xs:element name="check_porting_statusResponse" type="tns:check_porting_statusResponse" />
    <xs:element name="customer" type="tns:customer" />
    <xs:element name="customers" type="tns:customers" />
    <xs:element name="get_porting_result" type="tns:get_porting_result" />
    <xs:element name="get_porting_resultResponse" type="tns:get_porting_resultResponse" />
    <xs:element name="portingRequest" type="tns:portingRequest" />
    <xs:element name="portingResult" type="tns:portingResult" />
    <xs:element name="schedule_batch_porting" type="tns:schedule_batch_porting" />
    <xs:element name="schedule_batch_portingResponse" type="tns:schedule_batch_portingResponse" />
    <xs:element name="statecount" type="tns:statecount" />
    <xs:element name="statecountResponse" type="tns:statecountResponse" />
    <xs:element name="telephoneNumber" type="tns:telephoneNumber" />
    <xs:complexType name="check_porting_possible">
    <xs:sequence>
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    <xs:element name="providerId" type="xs:long" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="customer">
    <xs:sequence>
    <xs:element minOccurs="0" name="id" type="xs:string" />
    <xs:element minOccurs="0" name="name" type="xs:string" />
    <xs:element name="provider" type="xs:long" />
    <xs:element minOccurs="0" name="address" type="tns:address" />
    <xs:element minOccurs="0" name="telephoneNumber" type="tns:telephoneNumber" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="address">
    <xs:sequence>
    <xs:element minOccurs="0" name="area_code" type="xs:string" />
    <xs:element minOccurs="0" name="city" type="xs:string" />
    <xs:element name="door" type="xs:int" />
    <xs:element name="house" type="xs:int" />
    <xs:element minOccurs="0" name="street" type="xs:string" />
    </xs:sequence>
    <xs:attribute name="id" type="xs:string" />
    </xs:complexType>
    <xs:complexType name="telephoneNumber">
    <xs:sequence>
    <xs:element minOccurs="0" name="area_code" type="xs:string" />
    <xs:element minOccurs="0" name="country_code" type="xs:string" />
    <xs:element minOccurs="0" name="id" type="xs:string" />
    <xs:element minOccurs="0" name="number" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="check_porting_possibleResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:boolean" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="check_porting_status">
    <xs:sequence>
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="check_porting_statusResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:boolean" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="get_porting_result">
    <xs:sequence>
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="get_porting_resultResponse">
    <xs:sequence>
    <xs:element minOccurs="0" name="return" type="tns:portingResult" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="portingResult">
    <xs:sequence>
    <xs:element minOccurs="0" name="comment" type="xs:string" />
    <xs:element name="new_provider" type="xs:long" />
    <xs:element name="success" type="xs:boolean" />
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="schedule_batch_porting">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="portingrequests" type="tns:portingRequest" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="portingRequest">
    <xs:sequence>
    <xs:element name="new_provider" type="xs:long" />
    <xs:element name="porting_date" type="xs:long" />
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="schedule_batch_portingResponse">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="xs:anyType" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="statecount">
    <xs:sequence />
    </xs:complexType>
    <xs:complexType name="statecountResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="customers">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="customers" nillable="true" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="InvalidCustomerFault" type="tns:InvalidCustomerFault" />
    <xs:complexType name="InvalidCustomerFault">
    <xs:sequence />
    </xs:complexType>
    <xs:element name="NotFinishedFault" type="tns:NotFinishedFault" />
    <xs:complexType name="NotFinishedFault">
    <xs:sequence />
    </xs:complexType>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="statecountResponse">
    <wsdl:part element="tns:statecountResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_statusResponse">
    <wsdl:part element="tns:check_porting_statusResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="schedule_batch_porting">
    <wsdl:part element="tns:schedule_batch_porting" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_possible">
    <wsdl:part element="tns:check_porting_possible" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="get_porting_resultResponse">
    <wsdl:part element="tns:get_porting_resultResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_status">
    <wsdl:part element="tns:check_porting_status" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="statecount">
    <wsdl:part element="tns:statecount" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="NotFinishedFault">
    <wsdl:part element="tns:NotFinishedFault" name="NotFinishedFault">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="get_porting_result">
    <wsdl:part element="tns:get_porting_result" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_possibleResponse">
    <wsdl:part element="tns:check_porting_possibleResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="InvalidCustomerFault">
    <wsdl:part element="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="schedule_batch_portingResponse">
    <wsdl:part element="tns:schedule_batch_portingResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="NumberPortingService">
    <wsdl:operation name="check_porting_possible">
    <wsdl:input message="tns:check_porting_possible" name="check_porting_possible">
    </wsdl:input>
    <wsdl:output message="tns:check_porting_possibleResponse" name="check_porting_possibleResponse">
    </wsdl:output>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="check_porting_status">
    <wsdl:input message="tns:check_porting_status" name="check_porting_status">
    </wsdl:input>
    <wsdl:output message="tns:check_porting_statusResponse" name="check_porting_statusResponse">
    </wsdl:output>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="get_porting_result">
    <wsdl:input message="tns:get_porting_result" name="get_porting_result">
    </wsdl:input>
    <wsdl:output message="tns:get_porting_resultResponse" name="get_porting_resultResponse">
    </wsdl:output>
    <wsdl:fault message="tns:NotFinishedFault" name="NotFinishedFault">
    </wsdl:fault>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="schedule_batch_porting">
    <wsdl:input message="tns:schedule_batch_porting" name="schedule_batch_porting">
    </wsdl:input>
    <wsdl:output message="tns:schedule_batch_portingResponse" name="schedule_batch_portingResponse">
    </wsdl:output>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="statecount">
    <wsdl:input message="tns:statecount" name="statecount">
    </wsdl:input>
    <wsdl:output message="tns:statecountResponse" name="statecountResponse">
    </wsdl:output>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="NumberPortingServiceServiceSoapBinding" type="tns:NumberPortingService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="check_porting_possible">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="check_porting_possible">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="check_porting_possibleResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="check_porting_status">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="check_porting_status">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="check_porting_statusResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="get_porting_result">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="get_porting_result">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="get_porting_resultResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="NotFinishedFault">
    <soap:fault name="NotFinishedFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="schedule_batch_porting">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="schedule_batch_porting">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="schedule_batch_portingResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="statecount">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="statecount">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="statecountResponse">
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="NumberPortingServiceService">
    <wsdl:port binding="tns:NumberPortingServiceServiceSoapBinding" name="NumberPortingServicePort">
    <soap:address location="http://localhost:8083/numberportingservice" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Have anybody an idea why I got this failure I mentioned above when trying to start the BPEL process?
    Please help me :)
    Thanks a lot!!!
    Steve

    Or can you invoke the service from the 'gui' of the deployed webservice in the glassfish as ?
    you need to check if either the service doesnt work or the invoke of the service from bpel is the problem

  • Need help !!! Regarding invoking Webservices with Basic Auth

    I have a partner who requires me to pass credentials in order to invoke their Webservice.
    I have created a Partner link using a local WSDL (copy of the original partner's WSDL) and assigned the following properties
    <property name="HTTPbasicHeaders">credentials</property>
    <property name="basicUsername">hilal.khan</property>
    <property name="basicPassword">welcome123</property>
    And invoked this partnerlink in a Synchronous BPEL process, the invocation fails with the following error message
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized</summary>
    </part></remoteFault>
    Looks like I am missing the way in which these credentials should be sent, I know for sure that the values being sent are correct - I tried to open the WSDL from a browser and it prompted me with a username/password window and I entered the same credentials and it then took me to the WSDL. Can one of you please help me figure out the issue and resolve it.

    Hi,
    In BPEL.xml file that is built for bpel pass the binding with the httpUsername and httpPassword which you can make anything.
    <partnerLinkBinding name="PartnerLink_SPTel_Register">
    <property name="wsdlLocation">RegisterServiceRef.wsdl</property>
    <property name="httpUsername">dummy</property>
    <property name="httpPassword">dummy</property>
    </partnerLinkBinding>
    and in the BPEL process change the value of httpUsername and httpPassword dynamically to whatever you want.
    <copy>
    <from variable="httpUsername"/>
    <to partnerLink="EventService_Partner" bpelx:property="httpUsername"/>
    </copy>
    <copy>
    <from variable="httpPassword"/>
    <to partnerLink="EventService_Partner" bpelx:property="httpPassword"/>
    </copy>
    This works great if you have to pass different credentials to the same WS depending on who accesses the bpel process.
    hope this helps
    Sandeep

  • OSB with request response MQ business service

    Hi,
    We have OSB webservice whice interacts with MQ via business service. We need to send the request to MQ request queue and get the response from the response queue.
    For this, we have configured a business with MQ transport, request-response is enabled, message id is set for the correlation, auto generate correlation value is chosen.
    The business service sends the message but unable receive the response from the response queue. Failing with the error message like
    The invocation resulted in an error: [WliSbTransports:381918]Failed to receive response, within the configured timeout, for request message with id 42454BD3E5F7647914544E793F9F0000013EC9DF03918057 and correlation id 42454BD3E5F7647914544E793F9F0000013EC9DF03918057.
    But we checked with the end system, the response is sent tot he response queue in no time. We also increased the time out but still same issue.
    We noticed that if we dont send the message id, we are getting the response but not response of the request sent but some other response.
    Please suggest what needs to be done to fix the issue.

    Open your business service and navigate to HTTP Transport configuration page and check what is the http type is enabled.
    Look to me its with GET method, change it to POST and re-try.
    If the above solution is not helping, try to check the Follow HTTP redirects check box below the Advanced Setting in same page.
    Thanks,
    Vijay

  • Problem with JCA-DB in Business Service character

    Hi,
    I'm calling to database with JCA in Business Service, but when output contains the character "*&*" the business show "*&amp*";
    Example
    OUTPUT FROM BD:_
    AMERICA NT & SAN FRANCISCO
    OUTPUT FROM BS_
    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
         <Body>
              <OutputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/SGT/PKG_SGT_OPER/PRC_OPER_SRV_DAT_CON/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                   <OUT>AMERICA NT &amp;amp; SAN FRANCISCO</OUT>
              </OutputParameters>
         </Body>
    </Envelope>

    What should I do to show just only the character &?
    PD: when I select and edit the html to get this output:
    &amp;amp;amp;

  • Problem with JCA-DB in Business Service

    Hi,
    I'm calling to database with JCA in Business Service, but when output contains the character "*&*" the business show "*&amp*";
    For Example
    OUTPUT FROM BD:_
    AMERICA NT & SAN FRANCISCO
    OUTPUT FROM BS_
    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
         <Body>
              <OutputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/SGT/PKG_SGT_OPER/PRC_OPER_SRV_DAT_CON/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                   <OUT>AMERICA NT &amp;amp; SAN FRANCISCO</OUT>
              </OutputParameters>
         </Body>
    </Envelope>
    Edited by: user8674403 on 28-ene-2011 10:51
    Edited by: user8674403 on 28-ene-2011 10:52

    What should I do to show just only the character &?
    PD: when I select and edit the html to get this output:
    &amp;amp;amp;

  • Exception while invoking webservice

    I have created a client jar containing stub and port classe, deployment descritor
    and deployed webservices. Webservices are working fine but while invoking webservice
    with client code i am getting Exception, can somebody please help me to resolve
    it ?
    [2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
    ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    Exception during processing: java.io.IOException: Received a response from url:
    http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
    (see Fault Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
    </bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
    which did not have a valid SOAP content-type: text/html.
    at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
    at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
    at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
    at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
    at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
    at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
    at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
    Thanks
    Ratnakar

    Hello,
    There is not enough information in your post to determine an exact
    cause. When you say the web services are working fine, do you mean from
    the home/test page? What version of WLS? Is this with a static or
    dynamic client. I'm a bit concerned about what seem to be stubs showing
    up on the traceback that would indicate another SOAP stack (com.hp.ws)
    could you tell us a bit more about your configuration.
    Thanks,
    Bruce
    Ratnakar Katre wrote:
    >
    I have created a client jar containing stub and port classe, deployment descritor
    and deployed webservices. Webservices are working fine but while invoking webservice
    with client code i am getting Exception, can somebody please help me to resolve
    it ?
    [2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
    ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    Exception during processing: java.io.IOException: Received a response from url:
    http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
    (see Fault Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
    </bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
    which did not have a valid SOAP content-type: text/html.
    at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
    at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
    at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
    at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
    at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
    at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
    at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
    Thanks
    Ratnakar

  • Convert a Business Service into a DLL

    Hello,
    Anyone aware of how a Business Service can be converted into a DLL file?
    Actually, my purpose of asking is this: We are developing a Business Service, and we would like to conceal its code. We thought that if it is converted into a DLL, we could use SElib.dynamicLink to invoke it.
    Also, how is the code for the Siebel Vanilla BSs concealed? It would be really wonderful if we could do the same with our custom Business Services.
    Thanks a lot,
    Quipick

    Hi Axel,
    Thanks for your comments. You said "....Moving a BS code into a DLL I would not recommend.....". Why is this so?
    Mainly, I want to know if converting it to a DLL is indeed possible in the first place.
    I tried using the code generator to convert it to java. These Java classes I packaged as a Jar file. Then I used the Jbimp utility to try and convert the Jar files to Dll. However the Jbimp utility has some drawbacks and is not sufficient to perform the conversion.
    True, my code is not really rocket science :-).
    However it is a part of ongoing research efforts, and its my job to see it done :(, or atleast provide reasons why it cannot be done.
    These are my questions:
    -Is it possible to convert a BS to a DLL. If yes, how?
    -How has Siebel prevented access to its vanilla BSs
    Thanks,
    Quipick

Maybe you are looking for