Error in web client connection to a web servcie
hi all,
i have a web service running on https on oc4j....
i have create a proxy client .
when i run the test class, i have the foloowing error
calling https://190.0.0.147:1024/CCOLWS-CCOLWebService-context-root/PWSSoapHttpPort
WARNING: Unable to connect to URL: https://190.0.0.147:1024/CCOLWS-CCOLWebService-context-root/PWSSoapHttpPort due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
java.rmi.RemoteException: ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
at webClient.runtime.PWSSoapHttp_Stub.login(PWSSoapHttp_Stub.java:235)
at com.eska.epps.provisioning.webservice.PWSSoapHttpPortClient.login(PWSSoapHttpPortClient.java:53)
at com.eska.epps.provisioning.webservice.PWSSoapHttpPortClient.main(PWSSoapHttpPortClient.java:30)
Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at webClient.runtime.PWSSoapHttp_Stub.login(PWSSoapHttp_Stub.java:211)
... 2 more
when running the web service on http, the client works fine, but the problem occured when running on https.
i have generated the keystore file manually using keytool....
is there any code must be add to the client.......
i am using a session web service
Hello,
Base on the HTTP error that I see HTTP-502, the error come from your proxy/firewall configuration . You are using Microsoft ISA server and it looks you need to change it sonfiguration to allows SSL with the port you have chosen (1024).
Also be sure when you have done that you have configure correctly the client and added the client certificate to your application to allow a successful SSL handshake.
Regards
Tugdual Grall
Similar Messages
-
Web Acceleration Client Error (513) - Internal Error
The Web Acceleration Client detected an internal error which caused the connection between the Web Acceleration Client and Web Acceleration Server to be broken. Retrying the web page may correct the problem.
I get this error continuously when working in the ancestry.com website. I have to reload the page on almost every search I do on that website. This is the ONLY website that I get this error message on, can work continuously for several hours on other websites and never get this message. I've talked to the people at Ancestry.com support and they made 2 recommendations: turn of antivirus (did not help) or switch to another web browser. I tried both IE 11 and Chrome Version 31.0.1650.63 m and I did not have the problem with either of those 2 browsers getting this error.
Is there a problem with how Firefox and ancestry.com are communicating with each other?Hello byron.lewis, many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
Note: ''This will temporarily log you out of all sites you're logged in to.''
To clear cache and cookies do the following:
#Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
#Under "Time range to clear", select "Everything".
#Now, click the arrow next to Details to toggle the Details list active.
#From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
#Now click the ''Clear now'' button.
Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
Did this fix your problems? Please report back to us!
Thank you. -
OATS: Error Creating datasource client connection
Hi All
When i try to add montiors in the OATS controller machine i am getting the following error .
Error while creating datasource client connection.
i am trying to monitor a linux machine. I am able to ping that machine from controller.
when i tried to do
plink.exe username@hostname i am getting the following error ...
FATAL error : Network error : Connection timed out..
Can anyone please help me on this??
ThanksI'm not sure if this is the same problem but the following thread may help (mentioning the ports that may need opening on your firewalls)...
Re: What are the various ports used by OLT?
oracle.port.rmi=4444
oracle.port.http=8088
oracle.port.empstart=9001
oracle.port.uil2=7071
oracle.port.dataCollector=7073
oracle.port.webservice=8083
oracle.port.jndi.rmi=1098
oracle.port.jndi=1099
oracle.port.https=8433
* 9001 (Agent Comunication Port)
* 1099 (Datacollector Comunication Port)
* 8088 (for running OpenScript scripts) -
Why won't a Windows 7 client connect to my web server?
I've got 5 Mac clients that can connect to my Snow Leopard server. They use file sharing, iCal, and web services.
We're trying to put a Windows 7 client on the network to use just file sharing and web services. Unfortunately, I can't get the Windows client to connect to the server at all.
We're using an Airport Extreme as a local network router. All devices are successfully connecting to this device.
When I try to access web services on the server using the Windows 7 client, I get an error message that the server is inaccessible.
Anyone know what might be different about how the Windows device is accessing the server vs how the Mac devices are?How are you trying to connect to it? Just typing in its web address in a browser?
Is your DNS configured correctly? -
Namespace Error when generating Client Proxy for Java Web Service
Hi.Experts:
When I want to generating a Client Proxy for my WSDL file created by JAVA,it seems that some namespace errors occur.
The error like this:
"Incorrect value: Unknown Namespace http://sql.java
Exception of class CX_SLIB "
I checked all the SOAP runtime,it seems no error.So do I need to create the objects in the Integration Repository??If it is the truth,then how can I do it.
Best Regards
Martin XieHi Martin
I didn't find this options in SAP GUI Create -->Enterprise Service ->Consumer Service ->url/http
Maybe my version is different.
You say that you can select the file ou url.
Did you select the file or url?
If was file, open this file, find the tag that you have the wrong namespace and eliminate this tag.
If was url, access this url, copy the xml and same in one file, then select this file in the step above.
I don't know if works, its only a suggestion.
regards
Marcos -
Web service connection problem via web service data control (SOAP/REST)
Hi
I developed a simple "hello word" web service that I deployed on Integrated WLS.
Web service works fine - I tested it from SoapUI.
I created another application to call "hello word" using "web service data control (SOAP/REST)" in JDeveloper.
When I test it via "Oracle ADF Model Tester" application works as I'm expecting, but when I create JSPX page,
drag and drop webservice method as ADF parameter form and run it receive notification (screenshot):
"WSM-07620 : Agent cannot enforce policies due to either failure in retrieving polices or error in validations, detail= "WSM-02557 The documents required to configure the Oracle Web Services Manager runtime have not been retrieved from the Policy Manager application (wsm-pm), possibly because the application is not running or has not been deployed in the environment. The query "&(@appliesTo~="WS-CONNECTION()")(policysets:global/%)" is queued for later retrieval. "."
What I'm doing wrong?
Why I'm able to access web service from any other application but not from jdeveloper?
RegardsHi,
I am not sure which JDev you are using, but looks like you have some policies setup for WSDC using GPA (global policy attachment) and your policy manager(wsm-pm) is not running. Can you check if the wsm-pm application is properly deployed in your Integrated WLS. You can see this from the list of deployed apps in WLS console.
-Vishal -
Best way to use Sun Web Server connection pooling with Web Application?
I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
Any tips?
dailysun
P.S. For instance, in my tool, I call the interface class in this manner:
Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
Any tips?
dailysun
P.S. For instance, in my tool, I call the interface class in this manner:
Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector. -
Diff. between Mobile Web And Dev. Web Client
Hi,
I have been trying to find the difference between Siebel Mobile Web Client and Siebel Developer Web Client for quiet some time now. As per my understanding below is the difference between the two:
Siebel Mobile Web Client uses the Locally stored siebel executable and it accesses the locally stored dbf. However with the Siebel Developer Web Client (also uses the same executable as Mobile web client) you can connect to the server database.
By default when you launch the Siebel Mobile Web Client you get to choose from Sample and Local dbf. But with the Siebel Developer Web Client you get to choose from Sample, Local and the Server.
Please let me know if my understanding is correct and of anyother differences if anybody is aware off.
Thank you :-)
Edited by: user10788122 on 3/08/2010 23:57Re: Siebel developer web client
-
Integration of BSP application in IC web Client
Hi,
could anyone guide me to a good resource which i could study to find out how one could integrate a bsp application built using htmlb in the IC Web client. Actually, IC Web client uses a set of classes to implement MVC, but i do not want to use the BOL and GENIL components, as i already have a custom controller which has its own model and so on.
Any kind of lead would be highly appreciated.
Regards,
GhufranHi,
Did you check this blog yet?
/people/sap.user72/blog/2005/09/24/ic-web-client--modifying-view-layout--i
Eddy -
Am i on the right track for establishing my client connection with BC4J?
I am developing web-application with BC4J JSP project now. However, I find the auto-generated page not that useful as they are not flexible enough. Then, I decided to write coding by myself. But the first problem is - how to write the coding for client connection? To make maintenance easy, I would like to place those connection code in a class file instead of hard-coding each connection details in my JSP or Servlet page.
Question 1: Through the examples I search in my JDeveloper (Candidate 2) directory, found a file TestClient.java in the \BC4J\samples\Caching\src\demo directory with the following codes:
// Create an instance of the application module by name, using local mode
String _am = "demo.DemoModule"; // Fully-qualified application module name
String _cf = "DemoModuleLocal"; // Configuration name for connection info
ApplicationModule am = Configuration.createRootApplicationModule(_am,_cf);
// Find the Managers view object by name in the application module
ViewObject mgrVO = am.findViewObject("Managers");
// We're done with the AM instance, so release it
Configuration.releaseRootApplicationModule(am,true);
Is it for testing only or really useful for the production environment? Am I doing the right thing if i use such method to establish my web client connection? What's the pros and cons for using this method? Any other better alternatives?
Question 2: As I know BC4J automatically takes care of connection pooling as a default manner since version 3.2. Can I still use the following statement
session.setAttribute("user_name", user_name); //Set session attribute
String user_name = (String) session.getAttribute(user_name); // Get session attribute
to capture and assign client session correctly for individual clients?
Question 3: What codes should I use to achieve 'Transaction' update, which assembles the coding as follows:
Connection.setAutoCommit(false); //disable auto commit
connection.commit();
connection.rollback();
connection.close();
Thanks for answering!!!Question 1: Through the examples I search in my JDeveloper (Candidate 2) directory, found a file TestClient.java in the \BC4J\samples\Caching\src\demo directory with the following codes:
// Create an instance of the application module by name, using local mode
String _am = "demo.DemoModule"; // Fully-qualified application module name
String _cf = "DemoModuleLocal"; // Configuration name for connection info
ApplicationModule am = Configuration.createRootApplicationModule(_am,_cf);
// Find the Managers view object by name in the application module
ViewObject mgrVO = am.findViewObject("Managers");
// We're done with the AM instance, so release it
Configuration.releaseRootApplicationModule(am,true);
Is it for testing only or really useful for the production environment? Am I doing the right thing if i use such method to establish my web client connection? What's the pros and cons for using this method? Any other better alternatives?The Configuration API (createRootApplicationModule, releaseRootApplicationModule) will work. However, please note
that it is intended for java clients that will hold an ApplicationModule reference for a long duration. The BC4J web
frameworks (represented, for example, by the ApplicationModule and ReleasePageResources tags) all use the
SessionCookie interface to acquire/release ApplicationModule instances on a per request basis. This will allow
better scalability. Please see the pooling sample / documentation / javadoc for more information about using these
APIs. The pooling sample servlet is located in \BC4J\samples\Pooling\src\demo\TestPoolServlet.
Question 2: As I know BC4J automatically takes care of connection pooling as a default manner since version 3.2. Can I still use the following statement
session.setAttribute("user_name", user_name); //Set session attribute
String user_name = (String) session.getAttribute(user_name); // Get session attribute
to capture and assign client session correctly for individual clients?BC4J will not interfere with your use of the HttpSession context. How do you intend the "user_name" to be used? Do
you intend it to represent the DB user, JAAS user, etc. If you intend it to be used as the DB user you will need to declare
the "user_name" to BC4J. Please see:
http://technet.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html
Question 3: What codes should I use to achieve 'Transaction' update, which assembles the coding as follows:
Connection.setAutoCommit(false); //disable auto commit
connection.commit();
connection.rollback();
connection.close();ApplicationModule.getTransaction().commit();
ApplicationModule.getTransaction().rollback();
If you are using the Configuration or SessionCookie APIs, as mentioned above, then the connection lifecycle will be
managed for you. So, you should not need to invoke connection.close().
Thanks for answering!!!
Hope this helps.
JR -
How to create web applications with the LabVIEW web server
Wonderful Forum,
I've noticed that sometimes it can be tricky for LabVIEW users to learn how to create their own custom web clients using the LabVIEW web server. I created a LabVIEW web development community group and wrote some tutorials to teach the basics of creating web clients using HTML, Javascript, and AJAX. The idea is that LabVIEW users without any web background can quickly look at some tutorials and examples to get started on their own projects.
https://decibel.ni.com/content/groups/web-services
What do you think?
Joey S.
Software Product Manager
National InstrumentsHi Joey,
A great idea! I recently presented at a local user group meeting about my WebSockets API (see the links in my signature). I've uploaded the presentation and the demo code I gave to our UG here.
I think the barrier to entry is with needing to know the web languages (e.g. html/css/js) as well as writing your LabVIEW code. I have joined the group and look forward to seeing some interesting content on there! Certainly some demos of using AJAX to make requests to Web Services and do something with the data (e.g. display on a graph) would be a good place to start.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
The client connection is not allowed on the internal edge of the Access Edge Server
We are trying to setup Lync 2013 Edge Server, we have a setup as described below
Real IPs for Lync Edge/WebConf/AV
NAT of real IPs through Firewall Juniper to FE IP
Topology with NAT (Firewall IP) IP enabled
Certificates for with SAN for sip.acme.com etc (Both certs are Client Server Auth Templates from Internal MS CA)(Trusted) on Edge
Route 192.215.0.0 255.255.255.0 gateway (=firewall internal ip address)
But when external user connects and we are tracing the connection we are getting below error and lync client is
not able to connect.
TL_INFO(TF_CONNECTION) [1]0AD8.0C30::09/07/2014-08:11:13.091.0000000f
(SIPStack,SIPAdminLog::WriteConnectionEvent:SIPAdminLog.cpp(454))[4150361027] $$begin_recordSeverity: information
Text: TLS negotiation started
Local-IP: 192.215.0.xxx:5061 (Edge IP)
Peer-IP: 192.215.0.xxx:1835 (Firewall IP)
Connection-ID: 0x1100
Transport: TLS
$$end_record
TL_ERROR(TF_CONNECTION) [0]0AD8.0638::09/07/2014-08:12:45.279.0000005d (SIPStack,SIPAdminLog::WriteConnectionEvent:SIPAdminLog.cpp(389))[4150360514] $$begin_record
Severity: error
Text: The client connection is not allowed on the internal edge of the Access Edge Server
Peer-IP: 192.xxx.0.xxx:1322 (firewall ip)
Transport: TLS
Result-Code: 0xc3e93d6b SIPPROXY_E_CONNECTION_INTERNAL_FROM_CLIENT
$$end_recordHi pshetty,
Check the following blog to deploy your Edge Server:
http://jsilverdrake.blogspot.se/2012/04/publishing-lync-with-forefront-tmg-part_25.html
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
sure that you completely understand the risk before retrieving any suggestions from the above link.
You need to create persistent static routes on the internal interface to all internal networks.
Regards,
Lisa Zheng
Lisa Zheng
TechNet Community Support -
SYSTEM 9.2 PLANNING ERROR when trying to connect through web client
<p>Hi ,</p><p> I have created a Planning application on system 9.2version. Whwn i try to access it it gives an error and comesout.However i am able to log into application and refresh databaseusing planning desktop. I do not want to use externalauthentication. So i have bot given CSS url path in Planning CSSpath. When i give the defaul URL path</p><p> </p><p>Like Http:// HSS Server:58080/interop/framework/getCSSConfigfile it gives an error that user does not exist and comes out.After that i created user in HSS . But then the error came thatit's " failed to sync provisioning".</p><p> </p><p>I am not sure if we could add planning application into HSSwithout logging into planning web client?? Is ther any way we canadd planning application into HSS without logging into planning webclinet? </p><p>Any help on this would be of great help as i have wasted 2 dayson this.</p><p> </p><p> </p><p> </p>
<p>Hey azmat thnx for replying but this is not the issue. I hadgenerated properties file (HSP,ESSBASE,HBR)..Infact the applicationname is coming ths drop down list of application on log on webpage... I guess there is some bug with 9.2.0.1 release ..it'sgiving an error in even viewer that could not retrieve version ofhyperion planning ....Anyway i have reverted back to planning 4.0.5release ..i guess i would try to upgrade when system 9.3 releasewould be available...</p>
-
Unable to use the OCWST or Web Client to connect to the calendar Server
While trying to log into the calendar using the web client i am getting the error :
An error occurred during processinig
Information: Cannot retrieve node information
While connecting using the OCWST i am getting the error; I am using WSAD to do the coding. and i have coppied the soap.jar given by apache.
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:144)
at oracle.calendar.soap.client.Calendarlet._$4978(Calendarlet.java:277)
at oracle.calendar.soap.client.Calendarlet.Search(Calendarlet.java:149)
at com.altexia.ocal.test.OCalPimTest.main(OCalPimTest.java:76)
Please help!!!!!!!
JoyceThe full error message while calling
CalendaringResponse response = cws.Search(search.getElement());
is>>>>>>>>>>
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html; charset=iso-8859-1", must be: "text/xml". Response was:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
[email protected] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>Oracle HTTP Server/1.3.22 Server at 192.168.10.128 Port 7777</ADDRESS>
</BODY></HTML>
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:144)
at oracle.calendar.soap.client.Calendarlet._$4978(Calendarlet.java:277)
at oracle.calendar.soap.client.Calendarlet.Search(Calendarlet.java:149)
at com.altexia.ocal.test.OCalPimTest.main(OCalPimTest.java:76) -
Error in ADF Web Service Connection
Hello everyone.
I have the following problem.
Create a "Web Services Proxy" to consume a Web Services outside the application.
Web services require authentication and create a Web ADF Services Connection to authenticate, but when you programmatically use the ADF Web Service Connection I get the following error:
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processParameters(OperationMappingModeler.java:268)
at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processMethod(OperationMappingModeler.java:155)
at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:114)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:106)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:219)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:249)
at oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl.getJaxWSPort(WebServiceConnectionImpl.java:399)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.getDatosBlogsBndQSService(WordPressCliente.java:62)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.getDatosBlogsPortClient(WordPressCliente.java:86)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.getBlogs(WordPressCliente.java:105)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.main(WordPressCliente.java:167)
The code I use to get the connection is:
private DatosBlogsBndQSService getDatosBlogsBndQSService () {
Context ctx;
try {
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("DatosBlogsBndQSService");
System.out.println("wsc:"+wsc.toString());
DatosBlogsBndQSService proxy = wsc.getJaxWSPort(DatosBlogsBndQSService.class); // line 62
return proxy;
} catch (NamingException e) {
e.printStackTrace();
return null;
Finalmente la configuración del recurso es:
<Reference name="DatosBlogsBndQSService" className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl" credentialStoreKey="DatosBlogsBndQSService" xmlns="">
<Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
<RefAddresses>
<XmlRefAddr addrType="WebServiceConnection">
<Contents>
<wsconnection description="URL-XXX" service="{URL-XXX}DatosBlogsBndQSService">
<model name="{URL-XXX}DatosBlogsBndQSService" xmlns="http://oracle.com/ws/model">
<service name="{URL-XXX}DatosBlogsBndQSService">
<port name="DatosBlogsBndQSPort" binding="{URL-XXX}DatosBlogsBnd">
<soap username="transportUserName" password="transportPassword" addressUrl="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<operation name="consultarPosts">
<soap soapAction="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="listarBlogs">
<soap soapAction="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
</port>
</service>
</model>
</wsconnection>
</Contents>
</XmlRefAddr>
<SecureRefAddr addrType="transportPassword"/>
<SecureRefAddr addrType="transportUserName"/>
</RefAddresses>
</Reference>
When the Web Service did not require authentication to work without problem, the error arises when you need to login and use the "ADF Web Services Connection", is there some other way to log in using the Web Service proxy client directly?
Any help is welcome.
Regards.
MarceloHi Shay.
I not use Web service data control, I use only Web Service proxy and the client class for populate data to view object programmatically.
However, in a test class do I have this:
public class WordPressCliente {
private final static Logger logger = Logger.getLogger(WordPressCliente.class);
public WordPressCliente() {
super();
private DatosBlogsBndQSService getDatosBlogsBndQSService () {
Context ctx;
try {
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("DatosBlogsBndQSService");
System.out.println("wsc:"+wsc.toString());
DatosBlogsBndQSService proxy = wsc.getJaxWSPort(DatosBlogsBndQSService.class);
return proxy;
} catch (NamingException e) {
e.printStackTrace();
return null;
private DatosBlogsPT getDatosBlogsPortClient() throws Exception {
URL baseUrl = DatosBlogsBndQSService.class.getResource(".");
URL url = new URL(baseUrl,ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress"));
QName qName = new QName("http://esade.edu/soa/servicio/DatosBlogs/v01_00","DatosBlogsBndQSService");
System.setProperty("http.username", "atsistemas");
System.setProperty("http.password", "atsistemas2011");
DatosBlogsBndQSService integracionWordpress = new DatosBlogsBndQSService(url,qName);
DatosBlogsPT wordpressPT = integracionWordpress.getDatosBlogsBndQSPort();
if (ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.autenticacion").equals("true")) {
System.out.println("hay que validar el WS");
BindingProvider bp = (BindingProvider)wordpressPT;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.usuario"));
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.clave"));
DatosBlogsPT wordpressPT = getDatosBlogsBndQSService().getDatosBlogsBndQSPort();
return wordpressPT;
private DatosItemsPT getDatosItemsPortClient() throws Exception {
DatosItemsBndQSService datosItems = new DatosItemsBndQSService();
DatosItemsPT itemsPT = datosItems.getDatosItemsBndQSPort();
if (ArchivoUtil.getInstance().getPropiedad("ws.integracion.items.autenticacion").equals("true")) {
BindingProvider bp = (BindingProvider)itemsPT;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.usuario"));
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.clave"));
return itemsPT;
public List<Blog> getBlogs() throws Exception {
List<Blog> lista = null;
try {
DatosBlogsPT cliente = getDatosBlogsPortClient();
FiltroBlogs filtroBlog = new FiltroBlogs();
ListarBlogsInput blogInput = new ListarBlogsInput();
HeaderESADE header = new HeaderESADE();
header.setUsernameESADE("");
header.setParentSOAComponent("");
blogInput.setFiltroBlogs(filtroBlog);
lista = cliente.listarBlogs(blogInput,header).getBlogs().getBlog();
} catch (ClientTransportException e) {
logger.error(e.getStackTrace());
e.printStackTrace();
ADFUtils.showMessage(Constantes.TITULO_01, Constantes.MENSAJE_01);
return lista;
public List<Post> getPostsPorBlog(String idBlog) throws Exception {
List<Post> lista = null;
try {
DatosBlogsPT cliente = getDatosBlogsPortClient();
ConsultarPostsInput postInput = new ConsultarPostsInput();
FiltroPosts filtroPost = new FiltroPosts();
HeaderESADE header = new HeaderESADE();
filtroPost.setBlogId(new Long(idBlog).longValue());
filtroPost.setFechaInicio(FechaUtil.getFecha());
filtroPost.setFechaFin(null);
header.setUsernameESADE("");
header.setParentSOAComponent("");
lista = cliente.consultarPosts(postInput,header).getPosts().getPost();
} catch (ClientTransportException e) {
logger.error(e.getStackTrace());
ADFUtils.showMessage(Constantes.TITULO_01, Constantes.MENSAJE_01);
return lista;
public static void main(String[] args) {
WordPressCliente wordPressCliente = new WordPressCliente();
try {
Iterator i = wordPressCliente.getBlogs().iterator();
while (i.hasNext()) {
Blog blog = (Blog)i.next();
logger.debug("Blog Id:" + blog.getId() + " url:" + blog.getUrl() + " nombre:" + blog.getNombre() + " publico:" + blog.isPublico() + " lang:" + blog.getLang());
try {
Iterator j = wordPressCliente.getPostsPorBlog(Long.toString(blog.getId())).iterator();
while (j.hasNext()) {
Post post = (Post)j.next();
logger.debug(" Post Id:" + post.getId() + " autor:" + post.getAutor() + " titulo:" + post.getTitulo() + " size ambitos:" + post.getAmbitos().getAmbito().size() +
" tags:" + post.getTags());
} catch (Exception e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
Maybe you are looking for
-
Wrong exchange rates entered and documents posted need to be updated
Hi Friends, We have a situation where wrong exchange rates were entered at the end of month and lots of documents were posted with the wrong exchange rates. All these documents need to be updated with the correct exchange rate. But system will not al
-
Can't connect to some numbers on iPhone 4s after updating to iOS 8
Since updating to iOS 8, I can successfully call some numbers, but for some I get a message such as "Welcome to Verizon Wireless. Your call cannot be completed as dialed. Please check the number and dial again." There's also a mention of "switch 18
-
Only one public class - why???
Hi I have come across this statement many places - "There can be only one Top-Level 'public' class in a java source file which should have same name as that of the fore mentioned class." I know that the compiler searches for the class with same name
-
Authorisation issue regarding BEX Broadcaster
Hi all Does anyone know why I maybe getting an authorisation issue attempting to broadcast a pdf report via the Bex broadcast tool? The recipient user has all the relevant authorisations and roles attached, and when this report is previewed in Bex Re
-
Question I just downloaded FF4 and now the "SEARCH" tab located at the center of my home page isn't functional. I uninstalled and reinstalled but the result is the same.