Web Service encoding response improperly using the plugin and ssl

We are having a problem with the response from a document style web service. The response is xml but the elements come back as "&lt element &gt" instead of <element>. The return variable is of type String.
Our setup is Iplanet(6.1) frontend using the wl-proxy plugin
to Weblogic 8.1. The webservice is using https. If we use port 7001 (not https) instead of https 443 it works fine.
It appears to me that the plugin when used with ssl has a bug.
In help would be greatly appreciated. This situation did not occur using wls6.1. When we migrated to 8.1 that is when it started happening.
Other screnarios tested: When going right at weblogic 8.1 using ssl no problem.

Hi
When you have generated the client proxy classes from NW DS you can then include the .jar file into your applets code. Then, to actually execute the web service you can use the following code (for example)
String logicalPort = "<logical port defined in WSDL>";
<generate service interface> service = new <generated service implementation>();
<generated proxy class> port = (<generated proxy class>)service.getLogicalPort(logicalPort, <generated proxy class>.class);
String param = "myval";
String result = port.<method>(param);
where everything in the <> represents the relevant client classes that have been generated by NW DS. Bear in mind that you can either create deployed proxies or standalone proxies. Deployed proxies get deplyed to the J2EE server and need to be looked up via JNDI. The implementation classes are not included as part of the proxy generation.
Standalone proxies are created with the implementation classes included and can therefore be included in ANY java application.
I hope this helps
Darrell

Similar Messages

  • What web service & xml will be used for deleting the packged epub/pdf file from Admin Console

    What web service & xml will be used for deleting the packged epub/pdf file from Admin Console?
    I am able to delete the files from Admin console directy but not able to get which web service is calling on deleting the file from admin console:
    Mangal

    Hi Jim,
    I tired following web service and xml to delete the packaged ebook but it is giving me error instead of response:
    Web Service & XML
    http://myserver_url/admin/ManageResourceKey
    <request action="delete" auth="builtin" xmlns="http://ns.adobe.com/adept">
    <nonce>" . $nonce . "</nonce>
    <expiration>'. $expiration .'</expiration>
    <resourceKey>
    <resource>resource_id</resource>
    <resourceItem>1</resourceItem>
    </resourceKey>
    </request>
    Error Message
    <error xmlns="http://ns.adobe.com/adept"
    data="E_ADEPT_DATABASE http://myserver_url/admin/ManageResourceKey
    Cannot%20delete%20or%20update%20a%20parent%20row:%20a%20foreign%20key%20constraint%20fails %20(`adept`.`distributionrights`,%20CONSTRAINT%20`distributionrights_ibfk_2`%20FOREIGN%20K EY%20(`resourceid`)%20REFERENCES%20`resourcekey`%20(`resourceid`))"/>
    Magal Varshney

  • Web Service Tester works perfectly but the Web service is not.

    I have a web service developed in EDQ that works as expected when I check using Web Service tester.
    However when the upstream server sends the request to this web service, the response it gets is not as expected. "
    This difference is only for a particular rule.(if Street Address Line 1 is 'Holiday', then the Customer Status should become 'C')
    All the other rules are working s expected.
    What can this difference be due to?
    Thanks and Regards.
    Ravi

    The only logical explanation is that the client sending the request is sending different data. Perhaps it may be something subtle such as trailing whitespace (with the process you have constructed not coping with this)?
    Mike

  • How configure a primavera web service to return data from the second database?

    Hi everyone,
    We have P6 with first WS deployed on a single server weblogic domain. The first WS return data from the first database instance.
    Then deployed advanced second WS on a separate weblogic domain server with a different port. Configured second WS with <WS2_INSTALL_HOME>/bin/dbconfig.sh, creating a new branch of a configuration that specifies a different second instance of the database. However, this configuration is ignored and second web services return data from the first database.
    We have one domain, which including next servers:
    Name / Host / Port / Deployments
    P6 / localhost / 0001 / P6(v8.3), p6ws1(v8.3)
    p6ws2 / localhost / 0002 / p6ws2(v8.3)
    Now we have two different file BREBootstrap.xml.
    P6 BREBootstrap.xml:
    <Database>
    <URL>jdbc:oracle:thin:@db1:1521:db1</URL>
    <UserName>pubuser</UserName>
    <Password>anycriptopass1</Password>
    <Driver>oracle.jdbc.OracleDriver</Driver>
    <PublicGroupId>1</PublicGroupId>
    </Database>
    <CfgVersion>8.330</CfgVersion>
    <Configurations>
    <BRE name="P6 Config_DB1" instances="1" logDir="anydir/P6EPPM/p6/PrimaveraLogs"/>
    </Configurations>
    p6ws2 BREBootstrap.xml:
    <Database>
    <URL>jdbc:oracle:thin:@db2:1521:db2</URL>
    <UserName>pubuser</UserName>
    <Password>anycriptopass2</Password>
    <Driver>oracle.jdbc.OracleDriver</Driver>
    <PublicGroupId>1</PublicGroupId>
    </Database>
    <CfgVersion>8.330</CfgVersion>
    <Configurations>
    <BRE name="P6 Config_DB2" instances="1" logDir="anydir/P6EPPM/ws2/PrimaveraLogs"/>
    </Configurations>
    ‘P6 Config_DB1’ and ‘P6 Config_DB2’ including Database property for 1 and 2 database respectively.
    How to configure a second web service to return data from the second database?
    Thanks in advance!
    Regards,
    Dmitry

    OK, so I got this to work this morning with Username Token Profile (with little help from Oracle Support).
    I followed your steps 1-4 but in step 2 I didn't add the -Ddatabase.instance=2 because I want to check to see if my code could swap between different instances.
    It appears for Username Token Profile to use Database Instance, you need to set it in the soap header.
    So my soap request looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <s:Header>
            <DatabaseInstanceId xmlns="http://xmlns.oracle.com/Primavera/P6/WS/Authentication/V1">2</DatabaseInstanceId>
            <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <u:Timestamp xmlns:u='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' u:Id='uuid-327b6ed1-b26d-4a61-81d5-e326174c1961-3'>
                    <u:Created>2014-10-23T04:28:01.152Z</u:Created>
                    <u:Expires>2014-10-23T04:29:01.152Z</u:Expires>
                </u:Timestamp>
                <o:UsernameToken u:Id='uuid-327b6ed1-b26d-4a61-81d5-e326174c1961-3' xmlns:u='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'>
                    <o:Username>admin</o:Username>
                    <o:Password Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'>password</o:Password>
                    <o:Nonce EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'>vJBQhCc28bAeszej7gOaiC2tVCQ=</o:Nonce>
                    <u:Created>2014-10-23T04:28:01.152Z</u:Created>
                </o:UsernameToken>
            </o:Security>
        </s:Header>
        <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <ReadProjects xmlns="http://xmlns.oracle.com/Primavera/P6/WS/Project/V2">
                <Field>ObjectId</Field>
                <Field>Id</Field>
                <Field>Name</Field>
                <Field>Status</Field>
                <Field>StartDate</Field>
                <Field>FinishDate</Field>
                <Field>DataDate</Field>
                <Filter>Id = 'EC00515'</Filter>
            </ReadProjects>
        </s:Body>
    </s:Envelope>
    This request pulled the project from the second instance.
    V/r,
    Gene

  • Error while calling .svc web service from pl/sql using utl_dbws

    Hello Folks,
    I am calling a .svc web service from pl/sql using utl_dbws and encountering the following error
    javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    Can you help me find what am I doing wrong?
    Thanks
    Rk

    Hi,
    Here are the details
    1. What version?
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    2. What error message ... we need the full and complete error stack not your interpretation of it.
    ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Messag
    3. "I am calling means what?" We need the full and complete statement showing the values of all parameters.
    The input to the web-service is a xmltype containing address information and the web-service returns a string
    CREATE OR REPLACE FUNCTION get_id
    RETURN VARCHAR2
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.CALL;
    l_wsdl_url VARCHAR2 (32767);
    l_namespace VARCHAR2 (32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return VARCHAR2 (32767);
    BEGIN
    l_wsdl_url := 'http://test.com/test.svc?wsdl';
    l_namespace := 'http://test.org/';
    l_service_qname := UTL_DBWS.to_qname (l_namespace, 'SName');
    l_port_qname := UTL_DBWS.to_qname (l_namespace, 'BasicHttpBinding_ISName');
    l_operation_qname := UTL_DBWS.to_qname (l_namespace, 'Iden');
    l_service :=
    UTL_DBWS.create_service
    (wsdl_document_location => urifactory.geturi
    (l_wsdl_url),
    service_name => l_service_qname
    l_call :=
    UTL_DBWS.create_call (service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname
    l_xmltype_in :=
    SYS.XMLTYPE
    ('<IdenRequest xmlns:i="http://www.w3.org/XMLSchema-instance" xmlns="http://test.org/SNameIden.WCFService">
    <address />
    <zip>12345</zip>
    <state>AA</state>
    <street>W Test </street>
    </address>
    </IdenRequest>'
    l_xmltype_out :=
    UTL_DBWS.invoke (call_handle => l_call,
    request => l_xmltype_in);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    l_return := l_xmltype_out.EXTRACT ('//Iden/text()').getstringval();
    RETURN l_return;
    END;
    /

  • SWA: Web Services call with attachment using 10.1.3 preview?

    Has anyone managed to figure out how to invoke a web service with an attachment (using SWA, SOAP with Attachments) with the new 10.1.3 preview release?
    Or are there any samples/documents that can point me in the right direction on how to do this?
    Thanks!
    ....Andrzej

    Finally got 10.1.3 installed, and sure enough, there is an example for the use of SWA (SOAP with Attachments), both as client and as server.
    But the notes say it won't run with Oracle Lite DB. Makes me wonder why?
    Kinda sucks, since that is what we're using for our proof of concept. <sigh>

  • Mapping of Web Service SOAP response document

    Hi all!
    The XI mapping expects a namespace qualified root element of my web service's response SOAP document. Unfortunately my web service (written with AXIS) only provides the "xmlns"-declaration but no namespace-prefix for this element as expected by XI. For this reason the mapping is not working. I am quite desperate and could need some help how to fix that.
    All child elements are expected to be non-qualified, only the root element is expected to be qualified. I got this information from the test environment of the message mapping when generating a test XML instance.
    Denis

    I just had the same problem and solved it like this: I modified the WSDL slightly by removing the prefix from the reference to the element of the response message, as well as the "targetNamespace" in the xsd:schema segment of the WSDL. Like this, SAP is able to parse the response.
    Philippe

  • Invoke Web Service in 9i database using UTL_HTTP

    I am trying to explore Oracle's UTL_HTTP package to invoke external web service without having to use java stored procedure. I downloaded a demo scripts from OTN web site (http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html) and bumped into problems when invoking it.
    select * from book_quote
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "APPS.DEMO_SOAP", line 71
    ORA-06512: at "APPS.BOOK_SERVICE", line 13
    I checked the wsdl at the given website and it's valid. Is the database machine unable to connect to the internet? If so how can I enable it?
    Can anyone help?
    Thanks,
    Tom

    Hi,
    You need to use Adaptive Web Service Model for that.
    Check the tuorial in the link for accessing web services.
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16
    Regards
    Pankaj

  • A user that consumes a Web service is authorized to use then in BackEnd?

    Hello,
    I need to help me please
    Can you validate that a user that consumes a Web service is authorized to use this service?.
    I mean, I have a backend system, which has an RFC, which we published in PI as Web Services, and a third application consumes it with SOAP Adapter. How I can check that the user is consuming the service is authorized (role / profile) in the backend to run this service?
    I searched SAML, but I will not check certificates, I need to check that the user is authorized in the backend, do I need IDM?
    Thanks in advance.

    Hello,
    Please go to back end system and see the authorization profile of the user consuming the service. He must have SOAP Run time aurhorization for object S_SERVICE for the specific service. Also, the user needs application authorization for the underlying RFC call.
    Thanks,
    Venu

  • How to deploy and debug java web service in eclipes or using any other soft

    Hai,
    can any one tell me how to deploy and debug java web service in eclipes or using any other software.
    i have used tomcat web server and jdk1.4.0 to develop web service.
    we have used web service to interact with MS outlook .
    bye
    sudhakar.m

    Hi Sudhakar,
    If you are used to working with ant then you can very well use eclipse to deploy your web service.
    You would usually have the ant script in the source root working directory. From eclipse if you select the build file from the navigator view and right click you will see a run ant option in the pop up menu.
    Select that option and you would be able to see each targets with a checkbox select option. So define each target maybe one for wsdl2java conversion, one for compilation and one for deploying your web services. You can either make all of them run by having depends option on or you can run them individually as it takes your fancy.
    I am not sure about debugging a web service yet.
    Hope this helps
    Aviroop
    The truth is out there? Does anyone know the URL?

  • Web Service on JCS13.2: InvalidSecurityToken : The security token is not valid.

    Hi,
    I deployed a web service with the security policy @SecurityPolicy(uri = "oracle/wss_username_token_over_ssl_service_policy").  The WSDL file looks fine
    But when I test it with SOAPUI and JDeveloper HTTP Analyzer,  It always throws, InvalidSecurityToken : The security token is not valid.
    The Web Service code is as below,
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import weblogic.wsee.jws.jaxws.owsm.SecurityPolicies;
    import weblogic.wsee.jws.jaxws.owsm.SecurityPolicy;
    @WebService
    @SecurityPolicy(uri = "oracle/wss_username_token_over_ssl_service_policy")
    public class HelloWorld {
        public HelloWorld() {
            super();
        @WebMethod
        public String sayHi( String name ){
            return "Hello, " + name ;
    What's the valid username and password for the web service deployed on JCS?  Any suggestion and help is highly appreciated.

    The SOAP request payload from SOAP UI is:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws/">
       <soapenv:Header>
          <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
             <wsse:UsernameToken wsu:Id="UsernameToken-3">
                <wsse:Username>[email protected]</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>
             </wsse:UsernameToken>
          </wsse:Security>
       </soapenv:Header>
       <soapenv:Body>
          <ws:sayHi>
             <arg0>Paula</arg0>
          </ws:sayHi>
       </soapenv:Body>
    </soapenv:Envelope>
    but the response is,
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
             <faultcode xmlns:ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns0:InvalidSecurityToken</faultcode>
             <faultstring>InvalidSecurityToken : The security token is not valid.</faultstring>
          </ns2:Fault>
       </S:Body>
    </S:Envelope>

  • What Web Services Strobe Media Playback Uses.

    HI,
    Am I posting correct question or I am wrong
    Does strobe media playback uses any web service.
    If it uses or not please let me know .

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

  • I have used the plugin updater to update most of my plugins, but i don't want to update one of them- is there a way to get the plug in manager to stop asking me to?

    i have used the plugin updater to update most of my plugins but i have one that i do not wish to update. is there a way to stop getting the plugin manager to pop up every time i open up firefox? i updated all other plugins except adobe reader- which i have adobe acrobat and wish to use that instead but when inside firefox it always uses reader as default so i just chose not to install the update. can i disable the update manager?

    That is stealing.

  • I have a mac OSX desktop version 10.6.8 and all of a sudden I can't get a full screen view in Safari when I ask for help the response is use the arrows on the top right of the screen ... I don't have them  ... can anyone help?

    I have a mac OSX desktop version 10.6.8 and all of a sudden I can't get a full screen view in Safari when I ask for help the response is use the arrows on the top right of the screen ... I don't have them  ... can anyone help?

    Hi Mary,
    I don't remember those arrows in 10.6, only 10.7 & up!?
    I have 10.6.8, as you do. To make your Safari full screen, make sure you have the left hand side of your safari page moved  all the way to the left.  Then move your cursor to the BOTTOM RIGHT CORNER of the safari page, and simply drag your page towards the lower right hand corner of the screen. NOTE: you will see a series of lines on the bottom right corner of the page, indicating where to place you cursor arrow.
    By wuzradioman here...
    https://discussions.apple.com/thread/4218928?start=0&tstart=0

  • RESTful Web service in ECC without using netweaver gateway

    Can anyone explain how to create RESTful Web service in ECC without using netweaver gateway?

    Hi,
    Follow this link.
    Mobilize ALV Reports - Part 1 Create RESTful service

Maybe you are looking for

  • How to use the windows phone default media player from my app

    hello every one, I build a windows phone 8 app , and i used this code, to play a video in the phone media player (didn't want to use MediaElement) using Microsoft.Phone.Tasks;MediaPlayerLauncher mediaPlayerLauncher = new MediaPlayerLauncher(); i just

  • Connected apple tv comes up with no signal

    just brought a apple tv box and connected it to tv using hdmi cable but keeps coming up with no signal ive disconnected cable five and still happening iknow hdmi cable works as it runs my blueray player

  • Features missing in translation in Here maps/drive

    I just came home from a road trip from sweden to kroatia. Through the trip I used my lumia 920 for maps and navigations. I have done similar trips with my Nokia N8 (symbian belle) before.  Sadly the old N8 did a better job. Don't get me wrong, the lu

  • OS Crashes with 2 monitors while watching video full screen... ?

    Hello Forum I just recently attached a second monitor to my Mac Pro (early 2009). I have only one video card. My setup is as follows: - miniDVI > 1920x1080 monitor - DVI > 1280x1024 monitor (connected through a DVI to VGA adaptor.. it's an old monito

  • ORA-00906: missing left parenthesis

    I'm a newbie trying to run: create table test_table ( col1 varchar2 null, col2 number null ); from: Home>SQL>SQL Commands with the following error message: ORA-00906: missing left parenthesis Can someone point out what I'm doing wrong? Thanks, Tracey