Access Web Service via POST - missing parameter

I'm trying to access web services using the Http Post method, but I'm System.InvalidOperationExeption: missing parameter: ID

error.

I can access the Web service using HTTP GET, which shows that there is nothing wrong with the Web Service itself successfully.

Here is the code I am trying

String retVal = "";      try       {

          String data = "id='25'"; // parameter of the method           URLEncodedPostData encodedData = new URLEncodedPostData(null,false);          encodedData.append("content", data);

          byte[] postData = encodedData.getBytes();

          HttpConnection connection = (HttpConnection)Connector.open("http://localhost/Service1.asmx/TestService1");            connection.setRequestMethod("POST");          connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");           connection.setRequestProperty("Content-Length", Integer.toString(postData.length));

          OutputStream requestOutput = connection.openOutputStream();           requestOutput.write(postData);            requestOutput.close();

          int responseCode = connection.getResponseCode();

          String contentType = connection.getHeaderField("Connect-type");           ByteArrayOutputStream baos = new ByteArrayOutputStream();                     InputStream responseData = connection.openInputStream();          byte[] buffer = new byte[1000];           int bytesRead = responseData.read(buffer);                     while(bytesRead >0)            {             baos.write(buffer,0,bytesRead);               bytesRead = responseData.read(buffer);            }         baos.close();         connection.close();           return baos.toString();

      }     catch (IOException e)         {         return "ERROR: " + e.getMessage();        }

The line in the "BOLD" throws an exception. HTTP response code I get from server is 500

Any help would be much appreciated.

Nitin

Now, I found the solution.

The problem was the URLEncodedPostData. If I use just string.getbyte (), it works.

Tags: BlackBerry Developers

Similar Questions

  • Safe mode, so I can not access the Services via a Normal startup.

    Services, including Security Center, Windows Update, SuperFetch needs to be restarted but Vista freezes outside Mode safe, so I can't access the Services via a Normal startup.
    CHKDSK shows the hard drive has no bad points and the system works fine in Safe Mode.
    No idea how to deal to freeze shortly after startup? Even McAfee should be started. No idea what order to these programs.
    I've already eliminated at least 10 programs that were part of the start-up, after executing six miracle of Microsoft Diagnostics.

    * original title - problem of catch-22 with Vista freezes *.

    Hello

    1. don't you make changes to the computer until the problem occurred?

    I suggest you to try the steps below and check if it helps.

    Try to put your computer in a clean boot state, and check to see if the same problem happens.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows XP:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Hope this information is useful.

  • German characters problem when calling Web Services via UTL_HTTP

    Dear members,

    I try to call the services of SAP CRM Web of Oracle PL/SQL. I used following code which works very well.
    -- call web service using Oracle UTIL_HTTP packages
    DECLARE
      http_req utl_http.req;
         http_resp utl_http.resp;
         lv_request VARCHAR2(32767);
         lc_response CLOB;
         lv_buffer VARCHAR2(32000);
         lv_name          VARCHAR2(256);
         lv_hdr_value     VARCHAR2(1024);     
         l_xml XMLType;          
    BEGIN     
         utl_http.set_persistent_conn_support(true);
         utl_http.set_transfer_timeout(600);
         
         http_req:= utl_http.begin_request
                                       ( url => 'http://xyz3ni92.server.xyz.com:8045/sap/bc/srt/xip/sap/crm_bupa_custid_qr/011/customersbycrmid/http_binding'
                                       , method => 'POST'                              
                                       );
         lv_request := '<?xml version="1.0" encoding="UTF-8"?>'
         ||'<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/CRM/Global2">'
       ||'<soap:Header/>'
       ||'<soap:Body>'
          ||'<glob:CustomerCRMByIDQuery>'
             ||'<MessageHeader>'
                ||'<ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ID>'
                ||'<UUID></UUID>'
                ||'<ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ReferenceID>'
                ||'<ReferenceUUID></ReferenceUUID>'
             ||'</MessageHeader>'
             ||'<BusinessPartnerSelectionByBusinessPartner>'
                ||'<UUID schemeID="?" schemeAgencyID="?"></UUID>'
                ||'<InternalID>2200117598</InternalID>'
             ||'</BusinessPartnerSelectionByBusinessPartner>'
          ||'</glob:CustomerCRMByIDQuery>'
               ||'</soap:Body>'
         ||'</soap:Envelope>';     
         /*set username and password*/
         utl_http.set_authentication (
                   r => http_req,
                   username => 'WS_USER',
                   password => 'WS_PASSWORD',
                   scheme => 'Basic',
                   for_proxy => false);     
                   
         utl_http.set_header(http_req, 'Content-Type', 'application/soap+xml;charset=UTF-8'); 
         utl_http.set_header(http_req, 'Content-Length', LENGTHB(lv_request));
         utl_http.write_text(http_req, lv_request);
         /*Make HTTP call*/
         http_resp:= utl_http.get_response(http_req);
         
         /*read response text from response*/
         BEGIN
                   LOOP
                             utl_http.read_text(http_resp, lv_buffer);
                             lc_response := lc_response || TO_CLOB(lv_buffer);
                   END LOOP;
         EXCEPTION
                   WHEN OTHERS THEN
                        -- ora-29266 end-of-body reached
                        IF SQLCODE <> -29266 THEN
                                  RAISE;
                        END IF;
         END;
         utl_http.end_response(http_resp);     
         l_xml := XMLType(lc_response);
         /*Log response for testing*/
         DELETE FROM webservice_log;
         INSERT INTO webservice_log (seq_id,xml_response) VALUES (sqe_Webservice_Log.NEXTVAL,l_xml);
    EXCEPTION WHEN OTHERS THEN
              RAISE;
    END;
    However, if there are any German character in SAP, then they are replaced by UNWANTED data when they come to Oracle.

    If I invoke continues the same web service tools like SOAP-UI, then German characters do very well. I've also drawn web service queries and answers of the side SAP, and there response shows fine. When it comes to Oracle, they are themselves corrupt.

    I'm sure it's something to do with the character, but I am not able to find where and what should I fix/change.

    Thank you for your help in advance.

    DB: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    NLS_DATABASE_PARAMETERS
    PARAMETER                      VALUE                                  
    ------------------------------ ----------------------------------------
    NLS_LANGUAGE                   AMERICAN                                 
    NLS_TERRITORY                  AMERICA                                  
    NLS_CURRENCY                   $                                        
    NLS_ISO_CURRENCY               AMERICA                                  
    NLS_NUMERIC_CHARACTERS         .,                                       
    NLS_CHARACTERSET               AL32UTF8                                 
    NLS_CALENDAR                   GREGORIAN                                
    NLS_DATE_FORMAT                DD-MON-RR                                
    NLS_DATE_LANGUAGE              AMERICAN                                 
    NLS_SORT                       BINARY                                   
    NLS_TIME_FORMAT                HH.MI.SSXFF AM                           
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM                 
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR                       
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR             
    NLS_DUAL_CURRENCY              $                                        
    NLS_COMP                       BINARY                                   
    NLS_LENGTH_SEMANTICS           BYTE                                     
    NLS_NCHAR_CONV_EXCP            FALSE                                    
    NLS_NCHAR_CHARACTERSET         AL16UTF16                                
    NLS_RDBMS_VERSION              11.2.0.1.0   
    Kind regards
    Hari

    added other details by: Hari_639 on April 24, 2013 18:45

    I'm not really experienced with utl_http, but maybe you'll read on SET_BODY_CHARSET in the documentation.
    ISO-8859-1 is the default characterset, until you specify the characters in the attribute content_type and text media.
    But your media type is not text, then perhaps affecting the body charset UTF - 8 can help.

    concerning

  • How to access Web Services?

    Are there APIs to access existing exposed web services?

    I services published with their WSDL files and I need to access with SOAP over HTTP.

    How do you take in blackberry? Any API or do use you some kind of libraries third thrid?

    JSR 172 is supported.

    Download the Sun web services tool to generate stubs from the WSDL.

    You searched the Forum? There is a lot of discussion on this topic.

  • BlackBerry, call web services via the SSL protocol

    Hi guys,.

    We are developing an application BlackBerry to OS 4.1 and we test it on the 8330.  This application calls several web services on a remote server via the SSL Protocol (side).  There is a valid certificate from Entrust installed on the remote server - it works properly with all major desktop browsers.  The certificate has not been installed on the BES - is it necessary?  Some BlackBerry devices will be linked to a company BES, others not.

    When the application calls the web service, a window opens with the following message: "you try to open a secure connection, but the server certificate is not approved."  Continue to push works fine, but the window opens again a few moments later.  Pushing view certificate indicates that the certificate is considered invalid ('unverifiable Cert chain').  The same information is given when you navigate to the certificates of the aircraft.  Certificate trust pushing watch a 2nd window asking you the key Store password, which we are not aware of.

    You guys can help us with this?

    Thank you!

    We have solved the problem.  It seems that the BlackBerry device is having a hard time with a certificate signed by the Entrust 2048 bit root certificate.  Give us a new intermediate certificate signed by their 1024-bit root certificate, which we have installed on our Apache server.  While the window 'certificate is not approved' arises at once, pushing "Continue" worked and it never came up again.  To do this, it will probably install the certificate on the BES, something we don't have yet.

    Thank you for taking the time to answer!

  • Unable to access Web services interactive statement

    I have a project in Flash Builder to work where I generate a file of nav that I use to generate an Interactive instruction using a process in Workbench.

    The Interactive statement works very well with all the Flash content and the merged from xml data.

    When I stir using a Web Service in code of Flash Builder project to fill a data grid and regenerate the file nav to generate interactive instruction, interactive instruction gives the following opening security error:

    Security error to access the url

    Destination: DefaultHTTP

    It seems that this problem is bound to go through the policy area or something like that, BUT I don't get this error when:

    1. I ran the Flash Builder directly from Flash Builder project that turns on IE and my flash content works perfectly fine in the HTML wrapper, including the web service call that works very well. It works very well as a bin-release folder of my project in Flash Builder and the bin-debug.

    2. I created an AIR application from scratch and consumed the webservice as well as used in the previous Flash Builder project used to generate the file nav for Interactive instruction. The AIR application also works perfectly well to invoke the web service and doesn't give any errors.

    Question: Why my Interactive statement impossible to access the web service and gives the error as mentioned above when the same web service is accessed and used successfully by the same flash content in a html wrapper and an AIR application. How to make my flash content embedded in the PDF container to access and use the web service?

    Hi Muhammad,

    Acrobat has crossdomain different restrictions.  Try a crossdomain file that looks to test the connection:

    Then there are a few good articles on web service calls:

    http://forums.Adobe.com/message/3784114#3784114

    This http://TV.adobe.com/watch/Flex-in-a-Week-Day-2/Retrieving-and-Handling-Data-using-webservi.

    http://blogs.4Point.com/Brad.White/2008/12/4-ways-to-invoke-a-WebService-in-Flex-with-MXML - and - actionscript.html

    class ebservice http://blog.flexexamples.com/2008/04/14/Calling-a-simple-Web-service-from-Flex-using-the-w.

    Kind regards

    Oana

  • Access Web Service result with Script only multi-line

    Hi all

    I know how to run a web service with the code data connection, but I have no idea how to do to access the result he return without linking it to a dummy field, would like to know is - it possible with LC Designer?

    Concerning

    Bill

    Hi Bill,

    You may be able to use the Acrobat SOAP to access the web service.  By default it will return the result in a JavaScript object, so I find it very easy to deal with.  There are many examples in the Acrobat documentation, such as;

    http://livedocs.Adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/HTML/w whelp.htm? context = Acrobat9_HTMLHelp & file = JavaScript_SectionPage.70.1.html

    Good luck

    Bruce

  • Registration with Web services via printer - officejet 6700 premium

    I jut bought a premium officejet 6700.  I have set up on my wireless network and it works very well and diagnostic results report comes as "no problem found", but when I go to sign upward for Web services (eprint and apps) it says "can not log on to the server and check the internet connection".

    Can someone help me with this problem?

    Thank you for your contribution to this number - it has now been resolved and I eprint services work after following your instructions.

    I know it took some time, but due to the pressure of work it took time to get round to reading and following your instructions.

    Thank you very much

    Strange Su

  • Using the web services via VBScript

    Hello

    I'm very big thing back to the VMware infrastructure.

    (1) in my application, I want to write a VBScript (preferebly) that can consume web services provided by ESX to clone the exsisting images and do some basic operations on, snapshot etc. as powern. Is this feasible?

    (2) according to my understanding, the services web of ESX and vSphere services are the same. Am I wrong?

    (3) services of vSphere web must vSphere is available in fact?

    Please forgive me if any of the issues makes no sense. Kindly guide me further.

    Hi Chaitanya,

    vSphere API provides a way to interface with VMware infrastructure, and these are exposed as services web servers ESX and virtual Center.

    (1) vSphere Web Services SDK facilitates the development of client applications that target the vSphere API. It allows to build SOAP-based applications to control the ESX Servers / vCenter servers and virtual machines running on them.

    You can write client applications in Java or c#. vSphere web services SDK includes files WSDL, examples of code in Java and c#, various libraries and all the necessary components required to work with the vSphere API.

    You can also use vSphere SDK for Perl which provides a script Perl to easy-to-use interface to the vSphere API. SDK comes with utilities and documentation for the creation of vSphere management applications

    (2) are you reason ESX web services are actually vSphere web services. vSphere is bascially the name given for the latest versions of 4.0. Earlier he was VI SDK 2.5/2.0 and now it's vSphere web services SDK.

    (3) vSphere web services are exposed in the ESX servers, so ultimately you need vSphere infrastructure on your side. What is it ask you?

    I hope this information helps!

    -Angela

  • Call Web Service via a Java Application and analyze the response

    I have currently developed a service web (http://nycews.datajump.com/ATMUtilities.asmx/GetReverseGeoCode?Lat=42.9790550&Lng=-78.7856140) as returnes an address in xml format. I need to know what is the best way to call this connection and parse the XML to display the address to the user in a popupscreen.

    Here is a corrected version...

       public String getAddress() {
            String myString = "My String";
            byte[] postData = myString.getBytes();
            String myAddress = null; // address to return
            HttpConnection httpConnection;
            DataOutputStream os;
            Document doc;
    
            String myURLString = "http://www.google.com;interface=wifi"; // use a connection method here
    
            try {
                httpConnection = (HttpConnection) Connector.open(myURLString);
                httpConnection.setRequestMethod(HttpConnection.POST);
                httpConnection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE, "application / requestJson");
                os = httpConnection.openDataOutputStream();
                os.write(postData);
                int rc = httpConnection.getResponseCode();
    
                if (rc != HttpConnection.HTTP_OK) {
                    return "";
                }
    
                httpConnection.getResponseCode();
    
        // The following code was taken from http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800599/How_To_...
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory. newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                docBuilder.isValidating();
                doc = docBuilder.parse(httpConnection.openDataInputStream());
                doc.getDocumentElement ().normalize ();
                NodeList list=doc.getElementsByTagName("*");
                String _node = new String("");
                Node tempNode = null;
    
          //this "for" loop is used to parse through the
          //XML document and extract all elements and their
          //value, so they can be displayed on the device
    
              for (int i=0;i		   
  • Difficulty 'Not connected' Error Messages When you try to access Web Services

    If you are running on an error message on your printer stating that it is "not connected" when you try to access ePrint or your applications, but you know that it is connected to the internet, it probably just means that the printer does not connect to the server properly.

    Here's the first set of markets, I will try, as they seem to solve this problem deliver half the time.

    • The first thing I'd like to try in this situation is a reboot of the system.
    • First, unplug the power cord at the back of your router.
    • Then unplug the power either to the back of the printer or the wall without it first turn.
    • Wait about 30 seconds and reconnect the power cord to your router.
    • Wait about another 30 seconds and reconnect the printer. It should start back up automatically, but if it is not moving forward and press the power button.
    • Once everything is back running, try to access ePrint or your applications.

    If these steps do not work for you, the next thing would be to establish a static IP & DNS for the printer. Before doing this, you want to print a Network Setup page. It varies from a model, but usually found under settings wireless or in reports in the Setup menu. After that you have this page, follow these steps.

    Before we begin, we need a network with your current connection settings configuration page. To do this, press the button on the front of your printer wireless and press 'Print Info' or 'print the State. " This example displays on a page of configuration of the network, which provides information on what we have to finish the next few steps.

    • After that you have, we will need to access the built-in Web server (EWS) printers. You can do this by entering the IP address of printers (from the Network Setup page) browser press and the address bar type.
    • Once there, press the 'Network' tab at the top of the page. From there, you'll want to click on the button "IPv4", on the f-side of the page. It will be there for wireless and wired, so make sure you click the one for you, but you are connected. If you do not see "IPv4", you should see 'Networking', press and press "Network Address (IP).
    • Then, you click the small round button next to "Manual"IP address", and then fill in the IP address, subnet mask and default gateway using the information available on the network configuration page.
    • For the primary or the preferred DNS server, you will want to enter 8.8.8.8.
    • For secondary school or another DNS server, you will want to write 8.8.4.4.
    • Click on apply and when the message appears saying that the changes have been applied, press 'OK '.
    • Press the power button on your printer, wait that it completely power off and press it again to power it on.
    • After doing this, go ahead and try to activate ePrint again.

    These measures should fix this for you. If they don't, then something else can cause this problem for you. Reply in this thread if these steps do not work, and I'll see if I can help figure you out what might be causing the problem.

  • Newbie question: How do I know if the account has access to web services?

    As the title suggests, I'm new to CRMOD, although I have worked with other web Apis.
    Right now I have a CRM account, but get the "capslock" answer in my SOAP call. I think it's because the account is just a regular account and it lacks some rights. How can I tell the admin to grant my account these rights? I don't know how to make such a request in words they understand.

    Hello Daniel,.

    You must identify your role. If you go to mysetup you know your role.

    Ask the administrator to grant 'Activate access Web Services' prvilege to your role.

    This should be good.

    Kind regards

    Paul Swarnapandian

  • Via HTTPS Web service call

    Hi all

    I use Weblogic 9.2 with the default configuration of the keystore & SSL. The Web service client is generated using the 'Clientgen' Ant task, I can invoke Web service using http without problems, but when you use https, it is always rejected, basically I know not what system for the customer properties, here is my last desperate attempt:
    System.setProperty("weblogic.webservice.verbose", "true");
    System.setProperty("java.protocol.handler.pkgs", "weblogic.net");
    System.setProperty("weblogic.security.SSL.trustedCAKeyStore", "config/DemoIdentity.jks");
    System.setProperty("weblogic.security.SSL.ignoreHostnameVerification", "true");
    System.setProperty("weblogic.security.SSL.TrustKeyStore", "DemoTrust");
    System.setProperty("weblogic.webservice.client.ssl.strictcertchecking", "false");
    System.setProperty("ssl.debug", "true");
    
    PaymentGateway service = new PaymentGateway_Impl();
    PaymentGatewayPort port = service.getPaymentGatewayPort();
    Stub.class.cast(port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "https://192.168.56.3:7002/ws/PaymentGateway?WSDL");
    Stub.class.cast(port)._setProperty(Stub.USERNAME_PROPERTY, "weblogic");
    Stub.class.cast(port)._setProperty(Stub.PASSWORD_PROPERTY, "weblogic");
    
    ISODocument isoDoc = new ISODocument();
    isoDoc.setMti(new Integer(200));
    port.balanceInquery(isoDoc);
    And here is the exception that is thrown in the client:
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSL license found
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Not in server, Certicom SSL license found
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Ignoring not supported JCE Mac: SunJCE version 1.5 for algorithm HmacSHA1
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default Mac for algorithm HmacSHA1
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Ignoring not supported JCE Mac: SunJCE version 1.5 for algorithm HmacMD5
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default Mac for algorithm HmacMD5
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Ignoring not supported JCE KeyAgreement: SunJCE version 1.5 for algorithm DiffieHellman
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default KeyAgreement for algorithm DiffieHellman
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default KeyAgreement for algorithm ECDH
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm DESede/CBC/NoPadding
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm DES/CBC/NoPadding
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm AES/CBC/NoPadding
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm RC4
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm RSA
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm RSA/ECB/NoPadding
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSL Session TTL :90000
    <!-------------------- REQUEST FROM CLIENT ---------------->
    URL        :  https://192.168.56.3:7002/ws/PaymentGateway?WSDL
    Headers    :
      Authorization: [Basic d2VibG9naWM6d2VibG9naWM=]
      SOAPAction: [""]
      Content-Type: [text/xml]
    
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Header></env:Header><env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:balanceInquery xmlns:m="http://www.telkomsel.com/PaymentGateway"><iSODocument xmlns:n1="java:com.visitek.pgi.models" xsi:type="n1:ISODocument"><amount xsi:nil="true"></amount><audit_number href="#ID_2"></audit_number><bank_code xsi:type="xsd:string">000151</bank_code><currency_code href="#ID_2"></currency_code><data href="#ID_2"></data><encrypted_pin href="#ID_2"></encrypted_pin><expiration_date href="#ID_2"></expiration_date><institution_code href="#ID_2"></institution_code><institution_data xsi:type="xsd:string">62812006002616</institution_data><local_tracking_id xsi:type="xsd:string">080722163229082127.0.0.1:9595</local_tracking_id><mti xsi:type="xsd:int">200</mti><network_information_code xsi:type="xsd:short">0</network_information_code><original_data_element href="#ID_2"></original_data_element><pan_null_true xsi:type="xsd:string">yes</pan_null_true><pos_entry href="#ID_2"></pos_entry><primary_acc_number xsi:nil="true"></primary_acc_number><response_code href="#ID_2"></response_code><response_terminal_number href="#ID_2"></response_terminal_number><service_code xsi:type="xsd:int">6016</service_code><settlement_date href="#ID_2"></settlement_date><terminal_number href="#ID_2"></terminal_number><transaction_code xsi:type="xsd:int">380000</transaction_code><transaction_data href="#ID_2"></transaction_data><transaction_date href="#ID_2"></transaction_date><transaction_sequence href="#ID_2"></transaction_sequence><transaction_time href="#ID_2"></transaction_time><transaction_timestamp href="#ID_2"></transaction_timestamp></iSODocument></m:balanceInquery><xsd:string xsi:type="xsd:string" id="ID_2"></xsd:string></env:Body></env:Envelope>
    <!-------------------- END REQUEST FROM CLIENT ------------>
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Trusted CA keystore: config/DemoIdentity.jks
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Filtering JSSE SSLSocket
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSLIOContextTable.addContext(ctx): 24864323
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSLSocket will NOT be Muxing
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: write SSL_20_RECORD
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: isMuxerActivated: false
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 SSL3/TLS MAC
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 received HANDSHAKE
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: HANDSHAKEMESSAGE: ServerHello
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: isMuxerActivated: false
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 SSL3/TLS MAC
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 received HANDSHAKE
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: HANDSHAKEMESSAGE: Certificate
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Cannot complete the certificate chain: No trusted cert found
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Validating certificate 0 in the chain: Serial number: -151503846264256045339669576782538934945
    Issuer:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=CertGenCAB
    Subject:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=paymentd
    Not Valid Before:Wed Mar 12 15:39:27 GMT+07:00 2008
    Not Valid After:Mon Mar 13 15:39:27 GMT+07:00 2023
    Signature Algorithm:MD5withRSA
    
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: validationCallback: validateErr = 16
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE:   cert[0] = Serial number: -151503846264256045339669576782538934945
    Issuer:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=CertGenCAB
    Subject:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=paymentd
    Not Valid Before:Wed Mar 12 15:39:27 GMT+07:00 2008
    Not Valid After:Mon Mar 13 15:39:27 GMT+07:00 2023
    Signature Algorithm:MD5withRSA
    
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Warning> <Security> <BEA-090542> <Certificate chain received from 192.168.56.3 - 192.168.56.3 was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <Validation error = 16> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <Certificate chain is untrusted> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <SSLTrustValidator returns: 16> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <Trust status (16):  CERT_CHAIN_UNTRUSTED> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <NEW ALERT with Severity: FATAL, Type: 42
    java.lang.Exception: New alert stack
         at com.certicom.tls.record.alert.Alert.<init>(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
         at com.certicom.tls.record.handshake.ClientStateReceivedServerHello.handle(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
         at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
         at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
         at com.certicom.tls.record.WriteHandler.write(Unknown Source)
         at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
         at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
         at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:153)
         at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:367)
         at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
         at weblogic.net.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:705)
         at java.net.URLConnection.getContentType(URLConnection.java:479)
         at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:230)
         at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:64)
         at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:238)
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:246)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
         at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:306)
         at com.visitek.pgi.client.PaymentGatewayPort_Stub.balanceInquery(PaymentGatewayPort_Stub.java:48)
         at com.visitek.test.pg.TestPGWebservice.testWebserviceSSLInvocation(TestPGWebservice.java:70)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at junit.framework.TestCase.runTest(TestCase.java:164)
         at junit.framework.TestCase.runBare(TestCase.java:130)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:120)
         at junit.framework.TestSuite.runTest(TestSuite.java:230)
         at junit.framework.TestSuite.run(TestSuite.java:225)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    >
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <write ALERT, offset = 0, length = 2> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <close(): 19097823> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read(offset=0, length=8192)> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read returns -1> 
    <!-------------------- RESPONSE TO CLIENT --------------->
    URL           : https://192.168.56.3:7002/ws/PaymentGateway?WSDL
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read(offset=0, length=8192)> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read returns -1> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read(offset=0, length=8192)> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read returns -1> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler threw an exception from its handleResponse method. The exception was:
    javax.xml.rpc.JAXRPCException: java.io.EOFException: Response contained no data.> 
    I'm completely extraneous to this thing HTTPS & SSL & I googled around only to find partial responses. My plan is to use a custom identity, but I first want to make sure that the use of the default work.

    Any help would be greatly appreciated.


    Kind regards

    Setya

    Hello

    To call your web service via the SSL protocol, the simplest is to use only the following code snippet:
    You used the threshold:
    System.setProperty ("weblogic.security.SSL.trustedCAKeyStore", "* config/DemoIdentity.jks" *);

    instead of DemoIdentity.jks, you provide the full path and the file name of the DemoTrust.jks file as below:

    System.setProperty ("weblogic.security.SSL.trustedCAKeyStore", "* D:/wls103/wlserver_10.3/server/lib/DemoTrust.jks*");

    Hope this will solve the problem.

    Thank you
    Sandeep

  • Microsoft Active Directory Web Services - 2008 R2 edition

    Hello

    I'm updating the information for the employee on Active Directory (which is on the 2008 R2 version). My research on ADWS, I realized that there are some available in the version 2008 R2 of ADWS web services that are accessible to the public. But I have not any clear documentation confirm us. We try to access any account management Web service via http or soap

    NET. TCP: / /: 9389, ActiveDirectoryWebServices, Windows, AccountManagement

    via a browser after you connect to the host via the VPN network. But it does not work. What I feel is that this service must be hosted on a Web like IIS server for it to be accessible to the public via the Internet.  Like this instead of net.tcp

    http://: 9389, ActiveDirectoryWebServices, Windows, AccountManagement

    But the client side, host of this service indicates that it is hosted on IIS. Could someone please guide me if something is missing here?

    Thanks a bunch!

    SN06

    Hi SN06.
     
     
     
    The question you have posted is related to Windows Server 2008 R2, this is why I suggest you to contact the TechNet forums for help.
     
     
     
    It may be useful
  • WebService + secure jms (Web Service on the JMS trans).

    Apologize as this post is in the forum of webservice as well but since it's related to both jms I put it here as well.

    I have a web service that uses JMS (@WLJmsTransport Web Service via the JMS transport)

    and everything seems to be ok, but I don't know how to use this function if the JMS is secure.

    Security added on JMS queue what other things I should do for the webservice access the queue?

    (where I specify credentials?)

    @WebService (serviceName = "ASyncService", targetNamespace = "http://axyz.org/notification/v1", endpointInterface ="
    axyz.notification.ASyncPort')
    @WLJmsTransport (= "warn" contextPath, serviceUri = "async_event", portName = "ASyncServicePort", line = "Events", connectionFactory = "cnfct_receiver")

    Thank you!

    Hello

    You can use the annotation @weblogic.jws.security.RolesAllowed in your WebService. This annotation works well with JAXRPC WebService.

    Thank you
    Jay SenSharma
    http://jaysensharma.WordPress.com/2010/01/27/jaxrpc-service-with-wljmstransport/

Maybe you are looking for