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

Tags: Oracle

Similar Questions

  • ODSI web service calls

    Hello

    I want to route the ODSI web service calls to different hosts in different environments. In other words, in my development environment, I don't want to call a quick service to "myosb - dev.mycompany.com:7001", but in production, I don't want to call the same service to the "myosb - prod.mycompany.com:8021".

    I see that I can configure a different port for the Physics Department in the ODSI administration console. However, it is not very practical, since the original WSDL must contain information port for all environments from the get-go. If the service is reinstalled in the production, I need to update the wsdl file and redeploy my data space for moving. This can be a problem due to the cycle of deployment of my app be out of sync with the service that I give the floor.

    My question is: is it possible to configure the addresses to host more dynamically? Is it possible to use a variable to control this information a set of services that are located on the same server?

    Thank you!

    The f

    Go to the Console ODSI. Click your data space. Click the physical Source (at the bottom of the left panel).
    Click on "Web Services" and select the Web service you want to change.

    You will see a place where you can specify a 'new value' for the wsdl file. So if you make a copy of your wsdl and the change of the

    to the other server, you could specify that wsdl.

    It seems you could also copy the "service" element (or just the "port" element) in the original wsdl, and substitute in the ODSI console for the appropriate service or port. I've never tried that. I'm not sure if you also need to copy any elements that refer to the service or port.

    Here's the doc http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/admin/server.html#wp1049919

    Here's a thread about doing this via WLST Dataspace imports with WLST : Full Deployment option?


              
                   
              

         


              
                   
              

         

  • SOAP WITH UTL_HTTP ON HTTPS WEB SERVICE

    Hi all! I'm new there and experimenting with the consumption of web services from database.

    I'm trying to consume a service soap (simple) utl_http via https web with no luck in the Oracle 11 g Release 11.2.0.1.0 - 64 bit Production database.

    When you try to consume a web service soap utl_http over http, I have a great solution. But things goes bad when change the http secure (https) Protocol.

    There are a lot of examples and articles out there on how to do it, but there is nothing, not an integrated solution explained step by step.

    I would like to write the steps that I followed then maybe someone will find what am I missing or what I'm doing wrong.

    1 grant the user permissions of utl_Http.

    2 Confure ACL with

    BEGIN

    DBMS_NETWORK_ACL_ADMIN. ASSIGN_ACL (LCD = > 'utl_http.xml',)

    Home = > 'oracle-www.m-base.org/Sounds.html');

    END;

    /

    COMMIT;

    and check the ACL with

    SELECT *.

    Of user_network_acl_privileges;

    and

    SELECT *.

    OF dba_network_acls;

    3 export certifications of sites web service and import them into the portfolio (https://oracle-base.com/articles/misc/utl_http-and-ssl). Try a to time with different types of key - extensions (with key chains or not)

    4. When you try to consume the service web soap over HTTPS with SOAP UI everything works fine, but I get with utl_http

    ORA-28857: unknown error SSL

    I think keystore loaded successfully, but there is one thing missing in my puzzle. Also, I find this portfolio when run SELECT * FROM v$ encryption_wallet has a closed state.

    WRL_TYPE WRL_PARAMETER STATE

    fileE:\oracle\admin\HOSPITAL\WalletCLOSED

    The web service is trying to run is a simple add you can fid it https://oracle-base.com/webservices/server.php/ws_add

    Please help me to find out what am I do wrong.

    Thank you in advance.

    Working on my db...

    Then try to patch your database...

  • Make a REST Web service call. Error code: 401 Access to the requested resource is not allowed

    Hi all

    I'm having a hard time finding ways to Rest Web service calls.

    I tried this runs directly through the browser and I get an error.

    http:localhost:8080/r EST/bean/atg/userprofiling/ProfileServices/loginUser? [email protected] & arg2 = password

    13:18:20, 613 [RestSecurityServlet] error code: 401

    Access to the requested resource is not allowed: / atg/userprofiling/ProfileServices

    1. atg.rest.RestException: access to the requested resource is not allowed: / atg/userprofiling/ProfileServices

    at atg.rest.processor.RestSecurityProcessor.checkAccess(RestSecurityProcessor.java:546)

    at atg.rest.processor.RestSecurityProcessor.handleGetRequest(RestSecurityProcessor.java:313)

    at atg.rest.processor.RestSecurityProcessor.doRESTGet(RestSecurityProcessor.java:199)

    at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:417)

    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:260)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)

    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:264)

    at atg.rest.servlet.HeadRestServlet.service(HeadRestServlet.java:130)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)

    Documentation, I understand that I need to create a session, the session is needed to access the secure components since this

    method specific 'ProfileServices.loginUser' was declared as non-secure, restSecurityConfiguration.xml

    In addition, there are two different ways in which I can connect

    1. 1. with the help of RestSession.createSession providing the user name and password.
    2. 2. or by using ProfileServices.loginUser or ProfileFormHandler

    Can someone please clarify

    If you call the REST web service from a Java client, you can create a RestSession object using the createSession method. But in your case you seem to be invoking it with an HTTP request, which, by default, would be considered a GET request by application of the REST of the ATG. So either a GET, he would try to get a property "loginUser" of the component/atg/userprofiling/ProfileServices (based on your URL) that would always fail.

    To call the method ProfileServices loginUser() with your argument, you need to tell the system to the REST of the ATG to process your incoming request not GET, but as a demand that you can do to atg-rest-http-method of the parameter control in your application like this

    http:localhost:8080/rEST/bean/atg/userprofiling/ProfileServices/loginUser? [email protected]& arg2 = password & atg-rest-http-method = POST

    It should work in this way, your restSecurityConfiguration.xml is correct.

  • Is it possible to recover all the virtual machines in a cluster in a single web service call?

    I tried to retrieve the list of all virtual machines in a cluster to a single web service call, but to no avail. It seems that there is no direct web service API to achieve this goal. Alternative options must first recover the hosts or data warehouses in the cluster and then recover virtual machines from there. But still, if anyone has an idea how we can do this please let me know. All help information will be greatly appreciated.

    It is possible, if you use the PropertyCollector.

    (It is usually the answer to questions of the form "Is it possible to retrieve the X in a single web service call").

    Call"propertycollector.retrievecontents:

    http://www.VMware.com/support/developer/VC-SDK/visdk41pubs/ApiReference/vmodl.query.PropertyCollector.html#retrieveContents

    allows you to retrieve a whole bunch of stuff in a single call, which you then have to go through and interpret.

    A snippet of code Java VI is not-really-tested to find virtual machines in a ComputeResource (cluster) is attached.

  • Is it possible to set configuration options VMsafe via vSphere Web Service SDK?

    Is it possible to define VMsafe configuration options via the web service of vSphere SDK?

    I noticed that the options in question are 'OptionValue's contained in the property config.extraConfig of the virtual machine, so I tried to edit them using the method ReconfigVM_Task of the SOAP API.

    This fails however, even if the SOAP request appears to be valid:

    & lt;? XML version = "1.0"? & gt;

    " & lt; env:Envelope xmlns:env = ' http://schemas.xmlsoap.org/SOAP/envelope/ "& gt; .

    & lt; env:header / & gt;

    & lt; env:body & gt;

    & lt; N1:ReconfigVM_Task xmlns:n1 = "urn: vim25" & gt;

    & lt; N1:_this type = 'VirtualMachine' & gt; VM - 448 & lt; / n1:_this & gt;

    & lt; N1:spec xsi: type = "VirtualMachineConfigSpec" & gt;

    & lt; N1:extraConfig xsi: type = "n1:OptionValue" & gt;

    & lt; N1:key & gt; vmsafe.enable & lt; / n1:key & gt;

    & lt; N1: value & gt; FAKE & lt; / n1: value & gt;

    & lt; / n1:extraConfig & gt;

    & lt; / n1:spec & gt;

    & lt; / n1:ReconfigVM_Task & gt;

    & lt; / env:Body & gt;

    & lt; / env:Envelope & gt;

    This query generates the following error:

    & lt;? XML version = "1.0" encoding = "UTF-8"? & gt;

    " & lt; soapenv:Envelope xmlns:soapenc = ' http://schemas.xmlsoap.org/SOAP/encoding/ "xmlns:soapenv =" " http://schemas.xmlsoap.org/SOAP/envelope/ "container =" " http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance "& gt; .

    & lt; soapenv:body & gt;

    & lt; soapenv:fault & gt; & lt; faultcode & gt; ServerFaultCode & lt; / faultcode & gt; & lt; faultstring & gt; invalid argument: value & lt; / faultstring & gt; & lt; retail & gt; & lt; InvalidRequestFault xmlns = "urn: vim25" xsi: type = "InvalidRequest" / & gt; & lt; / detail & gt; & lt; / soapenv:Fault & gt;

    & lt; / soapenv:Body & gt;

    & lt; / soapenv:Envelope & gt;

    For help in resolving this issue will be greatly appreciated.

    I'm glad it worked! Don't forget awareness useful or correct points

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Web service call - works locally but not on mobile?

    Hello

    I have a web service call (the service is hosted on the cloud is an external area of permamnent) which works fine when I test locally using the Flex Buritto built in emulator or directly by using my browser.

    But when trying a android phone (tried a few of them - link one, nexus s and galaxy tab) the service is called but never returns anything.

    Is there a good way to trace of call / understand the problem?

    Thank you

    NIR

    Export project based on your device...

    If your developling locally you must do in order to get the remote calls to work

    That should solve your problem

  • Results of long-term with the web service call process

    I'm starting a long-lived process that dragged out variables using a .net web service call. I would like to be able to get these output variables. I find all of the features in the JobManager service to do this... y at - it another way to do this? I am not above querying the Livecycle database...

    Thank you

    Mike

    It will work only after that the process is 'complete'.. then you need to check the status... .and when that is complete, then you can check the results.

    Paul

  • ADF Web Service call

    I try to call a Web ADF SOAPUI or browser Service.

    There are two URLS but one of them is accessible and others it does not. We need to put in place something on cloud of Fusion so that we can access the service?

    https://ebxg-test.fs.em2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?WSDL -does not work

    https://ebcy-test.fin.US2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?WSDL -I could call it from SOAPUI

    All directions?

    Kind regards

    SID

    To elaborate a little more on what Jani said, ". end.«» segment in the second URL means that demand will the field of finance, which is the right place for a web service of financial data.  The '.fs.' in the first URL means "Functional Setup" and is another server (domain) that doesn't have the expanded financial services web service, so it won't work.

    Hope this helps,

    Mr Oliver Steinmeier

    Fusion applications Developer Relations

    https://blogs.Oracle.com/fadevrel

  • [MAF - AMPA] How the custom/override error after the failure of the asynchronous Web service call?

    Hi Experts,

    I am looking for a best practice to make the error handling in the MAF.

    Currently my application is using AMPA and call the REST service.

    However, I would like to know how to handle this kind of error

    1. the device is not connected to the network (can we personalized it?)

    error2.png

    2. the device is connected to the network but cannot call service

    error1.png

    3 and the other exceptions of the asynchronous call to the AMPA

    In addition, how to mark a method call in the exception handler?

    referring to this http://multikoop.blogspot.com/2014/02/adf-handling-exceptions-from_14.html in ADF tf we mark as exception handler.

    Best regards

    Hendry

    Hendry,

    You have several options. It depends on how you want to handle exceptions:

    -If you just want to hide the mistakes of web service end-user call, you can set the showWebServiceInvocationErrors property in the persistence - mapping.xml to false (you want to generally this set to false, by putting your application in production, the default value is true, because during development, it is more convenient to directly see the errors of appeal WS)

    -If you want to display a custom error message, you can create a subclass of RestJSONPersistenceManager, register for this subclass using the property "remotePersistenceManager" in persistence - mapping.xml and override the handleInvokeRestServiceError method.

    It depends also how you want to process POST/PUT/DELETE requests that fail. Do you want the AMPA runtime register this request as pending for the runtime synchronization action automatically tries to return the claim later? Or you just want to display an error message to the end-user with a text like "try again later?

    Steven Davelaar,

    Oracle Mobile A-team.

  • DI Oracle Web Service call

    Hi all

    I have to call ODI requests of web service to execute a Plan of management scenario by a presentation (OBIEE) Web tool.

    After my current setup:

    -R Host: ODI Agent (standalone agent)

    -Host B: OBIEE, Weblogic

    Following up on my question:

    -Can I call web service with an autonomous agent request?

    Thanks in advance

    Hello

    Yes, you can use both the JEE and autonomous agents. It's build-in for both, nothing else to deploy.

    -Standalone Agent: http://:/oraclediagent/odiInvoke? wsdl

    -Java EE Agent: http://://odiInvoke? wsdl

    You can use invokeStartScen, invokeRestartSess and getSessionStatus.

    Integration running process

    It will be useful,

    Kind regards

    JeromeFr

  • UTL_HTTP: ORA-29259: end-of-input reaches the web service call error

    Hi gurus,

    I'm calling the DB using UTL_HTTP webservice, but I keep getting the following error.  Please note that I am calling only HTTP and HTTPS.

    ORA-29273: HTTP request failed

    ORA-06512: at "SYS." UTL_HTTP", line 1369

    ORA-29259: end-of-input reached

    ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 20

    ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 50

    ORA-06512: at line 1

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    Status code: 1

    I call a Web service using the code below

    exec utl_http.set_proxy ("172.10.0.00:1524");

    SET SERVEROUTPUT ON

    EXE DTS_INT_BEM. CALL_BEM();

    and the details of the PL/SQL package is expected at the point.

    create or replace

    package body 'DTS_INT_BEM' as

    PROCEDURE INVOKE_BPEL_WS)

    P_ENDPOINT_URL IN VARCHAR2,

    P_SOAP_REQUEST IN VARCHAR2,

    P_RETURN_STS OUT VARCHAR2)

    IS

    REQUEST_ENVELOPE VARCHAR2 (30000): = P_SOAP_REQUEST;

    RESPONSE_ENVELOPE VARCHAR2 (30000);

    HTTP_REQUEST UTL_HTTP. REQ;

    HTTP_RESPONSE UTL_HTTP. RESP;

    BEGIN

    HTTP_REQUEST: = UTL_HTTP. BEGIN_REQUEST (P_ENDPOINT_URL, 'POST', ' HTTP / 1.1 ');

    UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'Content-Type' ', value = > ' text/xml; charset = utf-8 ');

    UTL_HTTP. SET_HEADER (r = > http_request, name = > 'Content-Length', value = > LENGTH (REQUEST_ENVELOPE));

    UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'SOAPAction', value = > 'Start');

    UTL_HTTP. WRITE_TEXT (R = > HTTP_REQUEST, data = > REQUEST_ENVELOPE);

    dbms_output.put_line (' status code: 1');

    HTTP_RESPONSE: = UTL_HTTP. GET_RESPONSE (r = > HTTP_REQUEST);

    UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);

    P_RETURN_STS: = HTTP_RESPONSE.reason_phrase;

    / * EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);

    WHEN UTL_HTTP. REQUEST_FAILED THEN

    P_RETURN_STS: = ' request failed: ' | UTL_HTTP. GET_DETAILED_SQLERRM;

    WHEN UTL_HTTP. HTTP_SERVER_ERROR THEN

    P_RETURN_STS: = ' Server error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;

    WHEN UTL_HTTP. HTTP_CLIENT_ERROR THEN

    P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;

    WHILE OTHERS THEN

    P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM; * /

    END INVOKE_BPEL_WS;

    --------------------------------

    Procedure CALL_BEM / * (-type_objet_p IN VARCHAR2)

    -p_process_name in varchar2,

    -p_response out varchar2

    )

    */

    IS

    l_endpoint_url VARCHAR2 (200): =' http://172.10.0.00:10101/soa-infra/services/default/ShipmentBusinessRule/BusinessRuleProcess.service?WSDL ';

    l_soap_request VARCHAR2 (30000): = NULL;

    l_bpel_return_sts VARCHAR2 (3000);

    BEGIN

    " l_soap_request: = ' < soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:bus =" " http://xmlns.Oracle.com/BPMN/bpmnProcess/BusinessRuleProcess ' > < soapenv:Header / > < soapenv:Body > < bus: departure > < Transmission xmlns = " http://xmlns.Oracle.com/apps/OTM " "targetNamespace =" http://xmlns.Oracle.com/apps/OTM "> < TransmissionBody > < GLogXMLElement > < PlannedShipment xmlns =" http://xmlns.Oracle.com/apps/OTM "> < delivery > < ShipmentHeader > < ShipmentGid > < Gid > < domain_name > DTS/EXE < / domain_name > < Xid > 01409 < / Xid > < / Gid > < / ShipmentGid > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > DTS/EXE.01409 < / ShipmentRefnumValue > < / ShipmentRefnum > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid '" > < Xid > BM < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > RIAD-000235 < / ShipmentRefnumValue > < / ShipmentRefnum > < TransactionCode > NP < / TransactionCode > < ServiceProviderGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > RIAD < / Xid > < / Gid > < / ServiceProviderGid > < ServiceProviderAlias > < ServiceProviderAliasQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < /. ServiceProviderAliasQualifierGid > < ServiceProviderAliasValue > DTS/DATA. RIAD < / ServiceProviderAliasValue > < / ServiceProviderAlias > < RateServiceGid > < Gid > < domain_name > DTS/PCM < / domain_name > < Xid > VESSEL_SERVICE < / Xid > < / Gid > < / RateServiceGid > < TransportModeGid > < Gid > < Xid > BOAT-CO < / Xid > < / Gid > < / TransportModeGid > < TotalWeightVolume > < WeightVolume > < weight > < WeightValue > 57.0 < / WeightValue > < WeightUOMGid > < Gid > < Xid > KG < / Xid > < / Gid > < / WeightUOMGid > < / weight > < Volume > < VolumeValue > 0.3 < / VolumeValue > < VolumeUOMGid > < Gid > < Xid > CUMTR < / Xid > < / Gid > < / VolumeUOMGid > < / Volume > < / WeightVolume > < / TotalWeightVolume > < TotalShipUnitCount > 8 < / TotalShipUnitCount > < StartDt > < GLogDate > 20140217124300 < / GLogDate > < TZId > Asia/Hong_Kong < / TZId > < TZOffset > + 08:00 < / TZOffset > < / StartDt > < EndDt > < GLogDate > 20140311234300 < / GLogDate > < TZId > America/Chicago < / TZId > < TZOffset > - 05:00 < / TZOffset > < / EndDt > < SourceLocationRef > < LocationRef > < LocationGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > HKHKG < / Xid > < / Gid > < / LocationGid > < / LocationRef > < / SourceLocationRef > < / ShipmentHeader > < / shipping > < / PlannedShipment > < / GLogXMLElement > < / TransmissionBody > < / Transmission > < / bus: start > < / soapenv:Body > < / soapenv:Envelope > ';

    invoke_bpel_ws (l_endpoint_url, l_soap_request, l_bpel_return_sts);

    dbms_output.put_line ('-' | l_bpel_return_sts);

    end CALL_BEM;

    end DTS_INT_BEM;

    Thanks in advance for the help.

    Shobz

    Hi Billy,

    Thanks for the reply. It was with the proxy setting.

    Once UTL_HTTP. SET_PROXY has been set properly, I no longer get the error of end-of-input.

    Thanks for the help...

    Kind regards

    Shobz

  • The secure web service call error.

    Hello

    I try to access a web service secured through a simple BPEL process in SOA Suite 11 g. When I test it through the company Manager, I get the following error. Since this is a guarantee websecure I put the policy(oracle/wss_username_token_client_policy) WS in the external reference and also provided identifying information. If someone had a similar error or know the solution please let me know. Also, I'm not sure if its related to security, or is - the way I am calling the service.

    Error message:
    Error ID reference: 80014
    Lack of time may 22, 2011 12:54:45
    Anomaly of the non-recoverable system:
    javax.xml.ws.soap.SOAPFaultException: 99999: unknown Service

    Error message: {http://schemas.oracle.com/bpel/extension} remoteFault
    Error default/Mocking!1.0*soa_be35cb3e-5f05-49df-a696-a653d5703681/BPELProcess1/30017-BpInv0-BpSeq0.3-3 ID
    Lack of time may 22, 2011 12:54:46

    Anomaly of the non-recoverable system:
    < bpelFault > < faultType > 0 < / faultType > < remoteFault xmlns = "http://schemas.oracle.com/bpel/extension" > < a name = "summary" part > < summary > 99999: unknown Service < / summary > < / part > < part name = "detail" > < details > & lt; con xmlns:Con: fault = "http://www.bea.com/wli/sb/context" > & lt; Con: errorCode > 99999 & lt; / con: error code > & lt; Con: reason > unknown Service & lt; / con: reason > & lt; Con: location > & lt; Con: node > PipelinePairNode1 & lt; / con: node > & lt; Con: pipeline > PipelinePairNode1_request & lt; / con: pipeline > & lt; Con: Stadium > stage1 & lt; / con: Stadium > & lt; / con: location > & lt; / con: fault > < / detail > < / part > < part name = "code" > < SOAP: server code > < / code > < / piece > < / remoteFault > < / bpelFault >

    This occurs if you have several (different webservices) WSDL imported into your project and they share common artifacts(XSD's). In this case, what you do, it's just that you separated from xsd to wsdl and deleted conflicts. This approach is suggested when you do not have control on WSDL that may be provided by different team and they all share common XSD.

    Thank you
    Smail
    http://soadiscovery.blogspot.com

  • Specification of inputs and manipulate outputs Web Service calls

    Hello

    I have created a process in the workbench that will lead a logged in user id, call a web service to obtain the account information and then pre-filling and make a form based on the resulting data. The webservice is an external SOAP webservice, and I'm not sure how to specify a variable as an entry in the SOAP request in process design or how to map data returned in the message in an XML document to use soap for filers of form.

    I saw this link, but am always looking to learn more: http://kb2.adobe.com/cps/499/cpsid_49980.html

    Matthew

    Matthew,

    I created an example that calls a public Web Service, maps the SOAP response to a variable of type 'xml' data and makes a PDF file by using xml.

    I found public Web Services to http://wiki.cdyne.com/wiki/index.php?title=CDYNE_Weather , which exposes the WSDL to the http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl and choose the GetCityWeatherByZIP operation. The operation takes an input string of POSTAL code and produced the SOAP response, below.

    container http://www.w3.org/2003/05/soap-envelope"="http://www.w3.org/2001/XMLSchema"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ""

    http://ws.cdyne.com/WeatherWS/">

    true

    City found

    CA

    Sacramento

    Roseville

    15

    N/A

    91

    10

    MISG

    N/A

    The XML document that I'm after is the encapsulated in the GetCityWeatherByZIPResult child so I built a schema to express the document.

    http://www.w3.org/2001/XMLSchema">

    Then, I built a PDF file, added a data connection to the GetCityWeatherByZIP.xsd schema and added a number of areas related to the scheme. Finally, I got with an ES2 process to call the Web Service, the GetCityWeatherByZIPResult retrieves the SOAP response and make a PDF using the extracted XML construction.

    Web Service settings are described below.

    I created a variable of type entry process 'chain', called zip and added the reference in the Web Service by using XPath query.

    SetValue service retrieves a process variable from type 'xml' called cityWeatherByZIP which I loaded with the GetCityWeatherByZIP.xsd schema. The renderPDFForm FormService then uses the XML cityWeatherByZip to link to the form. I just called the Workbench process which creates a variable of type 'document' output process, described below.

    The Archives of LiveCycle ES2 are attached.

    Steve

  • HOW URL WSDL Web Service: Web Service call in the workflow

    have a 1 step, Web service workflow: call the Web Service.  I wish I could pass a string parameter to the url of the endpoint for the parameter of the URL of the WSDL in the Web service settings dialog box as oppose to the transmission of the actual url (http://machine/some_service.svc?wsdl).

    The reason is that we are moving the workflow between environments DEV, TEST, etc., we do not want to reopen the workflow in each env and update the DEV, TEST endpoint.

    I tried the following without success

    1. create a parameter of type String devURL

    2 by default, set the value on http://machine/some_service.svc?wsdl

    3 Goto service web appeal stage and set the URL of the WSDL to the /process_data/@devURL

    I get the error:

    java.io.FileNotFoundException: \process_data\@devURL

    at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)

    at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)

    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity (unknown Source)

    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion (unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse (unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse (unknown Source)

    at org.apache.xerces.parsers.XMLParser.parse (unknown Source)

    at org.apache.xerces.parsers.DOMParser.parse (unknown Source)

    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse (unknown Source)

    at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)

    at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)

    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)

    to org.apache.axis.wsdl.gen.Parser$ WSDLRunnable.run (Parser.java:361)

    at java.lang.Thread.run(Thread.java:595)

    I don't think that the URL of the WSDL parameter can even accept a parameter as the username + password settings.

    Is this possible?  OR if not, how can this be achieved?

    Under the Service Web Options change 'The Option' use 'variable' instead of 'literal '. Then click the Green + and it will create a variable of type WebServiceSettingBean.

    You can use a setValue before the stage of web service to set this variable.

    Jasmine

Maybe you are looking for

  • Why delete

    How is it that when I want to change the synchronization process on my Macbook/iPad/iPhone do not use iCloud, it offers the possibility to delete the items on the device or to cancel the operation?  Events, bookmarks, contacts, notes, etc. are only o

  • Tecra A8: Impossible to reinstall Vista OS since the recovery CD

    I had problem - os could not start (error kernell)So I formatted the HDD (with XP)but I can not install new OS with recovery dvd boot from the cd (F12)loading files of Windows and the Windows Boot Manager Said Win Boot Manager: could not start window

  • How to get out of Skype? !!! ???

    Help me how f * k out of fu * in ' Skype?

  • Battery won't charge and satellite A75 works on current alternative

    Hello I can't charge the battery and the laptop does not work on current alternative.The power is already checked and is ok. May this be an of faul?And why the laptop does not work without it? Any suggestions? Thank you very much!

  • The family safety activity log shows no data for Facebook

    Original title: Family Safety + Chrome + Facebook The latest version of Live Essentials is installed on Windows 7 Parental controls will not register the Chrome Facebook activity. I see in the activity that children use, for example, 0.5 hours of chr