Problems trying tutorial "Building a GoogleSearch Web Service Portlet"
Hi all
I'm trying the tutorial at the link
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/googleportlet.html
with Sun Java Studio Cerator2 Update1, on a PC with Linux Suse 9.3.
When I try to run the portlet in the pluto portal simulator, I always receive the message:
"HTTP Status-Code 407: Proxy Authentication Required; nested exception is: HTTP Status-Code 407: Proxy Authentication Required"
in the Message Group component of the application.
I'm behind a firewall.
I have setting the proxy configuration parameters both in the IDE and in the browser (Mozzilla), as explained in the tutorial itself, but it dosen't work.
The proxy host server and the proxy port are settings correctly.
Infact, from the IDE, I can go to the SUN Java Studio Creator Update Center, and find the items.
What I'm wrong ?
Thanks
Brembilla Danilo
Hi Marco.
yes normally I need a username and a password ( and I have it ) for the authentication on the proxy.
I have two situation:
1) The browser (Mozzilla)is already launch when I run the simple application.
When I start the browser ( Mozzilla ) it ask to me for user/password information, because my home page is setting on www.sun.com, and I'm behind a firewall.
So, when I launch the simple application from the Cerator, the pluto portal simulator start in a new browser page, and don't ask me usr/pwd again, but it use the previous provided.
Here I have the simple application in run, and I input the word on which I want to call the doSpellingSuggestion() method.
I press the "Spell" button and i receive the message :
"HTTP Status-Code 407: Proxy Authentication Required; nested exception is: HTTP Status-Code 407: Proxy Authentication Required"
2) The browser (Mozzilla)is NOT already launch when I run the application.
The Creator launch the browser opening the simple application in a new browser page WITHOUT asking the username and password (why? Is the error here? ).
I input the word on which I want to call the doSpellingSuggestion() method.
I press the "Spell" button and i receive (obviously) the message :
"HTTP Status-Code 407: Proxy Authentication Required; nested exception is: HTTP Status-Code 407: Proxy Authentication Requir
I have said that function with the IDE, meaning that the username and the password that I have are ok for the proxy, because once I have provided it on the button "Proxy configuration" in "Tools->Updsate Center" in the IDE, and then I choose the "next" button, I 'm be able to connect to the "Sun Java Studio Creator Center"
Thanks
Danilo Brembilla
Similar Messages
-
Unknown error while trying to build and test web service
Hi,
I get this error while building my web service.It says "An unexpected exception
occurred while attempting to process the classes and annotations for this Web Service.
Error: Unknown KNEX string: description.null"
Pasted below is the output on the IDE and the server.
Please help!!
Workshop output
Charges.jws 0 An unexpected exception occurred while attempting to process the classes
and annotations for this Web Service. Error: Unknown KNEX string: description.null
Server output
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:928)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.crackClass(WsdlTypeBagImpl.java:386)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addType(WsdlTypeBagImpl.java:522)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.filter(WsdlTypeBagImpl.java:606)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:940)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addParamHolder(WsdlTypeBagImpl.java:121)
at weblogic.knex.wsdlgen.Schemas.addPartHolder(Schemas.java:45)
at weblogic.knex.wsdlgen.TypeXlatorImpl.createMessage(TypeXlatorImpl.java:221)
at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaOp(TypeXlatorImpl.java:721)
at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaService(TypeXlatorImpl.java:831)
at weblogic.knex.dispatcher.TypeUtils.makeWsdlService(TypeUtils.java:1388)
at weblogic.knex.dispatcher.TypeUtils.makeWsdl(TypeUtils.java:1459)
at weblogic.knex.dispatcher.DispFile.makeDispClass(DispFile.java:2528)
at weblogic.knex.dispatcher.DispFile.makeDispFile(DispFile.java:611)
at weblogic.knex.dispatcher.DispUnit.makeDispUnit(DispUnit.java:50)
at weblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:584)
at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:297)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3032)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Thanks and Regards,
SSNHello,
You might try asking your question to the WebLogic Workshop news group: weblogic.developer.interest.70beta.workshop
Thanks,
Bruce
SSNarayan wrote:
Hi,
I get this error while building my web service.It says "An unexpected exception
occurred while attempting to process the classes and annotations for this Web Service.
Error: Unknown KNEX string: description.null"
Pasted below is the output on the IDE and the server.
Please help!!
Workshop output
Charges.jws 0 An unexpected exception occurred while attempting to process the classes
and annotations for this Web Service. Error: Unknown KNEX string: description.null
Server output
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:928)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.crackClass(WsdlTypeBagImpl.java:386)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addType(WsdlTypeBagImpl.java:522)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.filter(WsdlTypeBagImpl.java:606)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:940)
at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addParamHolder(WsdlTypeBagImpl.java:121)
at weblogic.knex.wsdlgen.Schemas.addPartHolder(Schemas.java:45)
at weblogic.knex.wsdlgen.TypeXlatorImpl.createMessage(TypeXlatorImpl.java:221)
at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaOp(TypeXlatorImpl.java:721)
at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaService(TypeXlatorImpl.java:831)
at weblogic.knex.dispatcher.TypeUtils.makeWsdlService(TypeUtils.java:1388)
at weblogic.knex.dispatcher.TypeUtils.makeWsdl(TypeUtils.java:1459)
at weblogic.knex.dispatcher.DispFile.makeDispClass(DispFile.java:2528)
at weblogic.knex.dispatcher.DispFile.makeDispFile(DispFile.java:611)
at weblogic.knex.dispatcher.DispUnit.makeDispUnit(DispUnit.java:50)
at weblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:584)
at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:297)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3032)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Thanks and Regards,
SSN -
Problems with creating model in Email Web Service tutorial
Hello!
In the moment, I'm trying to follow the tutorial "Using an Email Web Service in Web Dynpro". I followed all the steps in the chapter "Generating a Model from the WSDL Description", but after typing in the mentioned WSDL description "http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService" in the "New Model" wizard, I'm getting the error message, that the WSDL file is not found or not valid and no new model can be created.
So I'm quite stuck. What am I doing wrong? Did anyone encounter the same problems?
Greeting
BärbelHello Baerbel,
I could not reproduce this error and never had this before. What you could do in the meantime is taking the wsdl description from the url and copy and paste it into a notepade file. Then please save it under emailwebservice.xml onto your hard disc and select it from "local file system or url" and take it from the path of your local file system.
Hope that helps!
Best regards,
Karin -
Need Suggestion to build a simple web service demo
I'm planning to build a demo using java packages JAX* for my team using my workstation and another standalone box.
I got a Sun One Web Services Platform DVD from JavaOne, but it only support Win200 or XP, too bad our company still using Win NT SP6.
I only need a very simple web service that will bring data from server DB. I knew I can download the JWSDP1.2, but there is no tutorial right now. And I have tried JWSDP1.1 but not really understand what it is doing(because only Hello world service is working). I need to do some modification to change the default server port from 80 to 81, and I need to modified localhost to [my-machine-name] so that the other machine can talk to the JWSDP server.
My question is how can I build up a web service demo really easy and quick and what tool should I used, any suggestion will be appreciated! Thanks in advance!
Henry1. Use XML Spy Enterprise edition editor.
2. Goto www.xmethods.com, select service you want to create demo of.
3. Get its WSDL url.
4. In XML Spy SOAP menu there is a command 'create new soap request'. Press that, enter the WSDL url. You will get a SOAP request.
5. Edit SOAP request parameters. Type parameters of your choice.
6. Press 'send request to server'. You will get SOAP response. It will contain result from the requested method.
7. Paste that response inside a JSP.
8. Write a local method which will return same response (remote method's return value) that came from remote web service.
9. Paste that method inside abovementioned JSP. Replace static response in that JSP with the response generated by local method. The method parameters will come from client's SOAP request. Parse SOAP request to get request parameters. (As it's your demo, you know the data types of the parameters).
10. Host that JSP on any Servlet/JSP engine.
That makes your Web Service.
You can use any package like Aapche SOAP, AXIS or JAX-RPC to generate a SOAP client. Use the URL of JSP(step 10) as "endpoint".
Note: Indside JSP make sure that there in no endline and carriage return character. Otherwise it won't be a valid SOAP response.
Good luck. -
Error when trying to access a secured web service from Forms 10g 10.1.2.3
Hello,
I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
DECLARE
jo ora_java.jobject;
pdfObject ora_java.jobject;
pdf varchar2(900);
rv varchar2(100);
ex ora_java.jobject;
BEGIN
JO := SEARCHSOAPCLIENT.new;
SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
message(pdf);
message(' ');
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
:error := Exception_.toString(ex);
END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
import oracle.webservices.transport.ClientTransport;
import oracle.webservices.OracleStub;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Stub;
public class SearchSoapClient {
private webservicesproxywebcontent.proxy.SearchSoap _port;
public SearchSoapClient() throws Exception {
ServiceFactory factory = ServiceFactory.newInstance();
_port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
this.setUsername("weblogic");
this.setPassword("welcome1");
System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
* @param args
public static void main(String[] args) {
try {
webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
System.out.println("calling " + myPort.getEndpoint());
} catch (Exception ex) {
ex.printStackTrace();
* delegate all operations to the underlying implementation class.
public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
return _port.quickSearch(queryText, extraProps);
}Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
Kind Regards
CarlosWithout going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.
-
Hi Everyone,
I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load. The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
fine the rest of the day, oddly enough.
A few things about my form:
1). It is web enabled
2). The form submits to a form library on the SP server
3). I use the UserProfileService data connection in the form to auto-populate a few fields
4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
5). The form has been working fine until a few days ago
I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped. Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
have the service account information.
Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
Schema file was already loaded: BuiltInActiveXControls.xsd
FormServer Partial Trust - Proxy operation invoked in the SHIM process.
FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.Hi B.,
You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
Hope this helps.
Daniel Christian (MCTS) -
Generation Error - when trying to publish a Java web service
Hi All,
I keep getting the following Generation Error -- java.util.NoSuchElementException_ when I'm trying to create a Java Web Service using the jdeveloper wizard.
I have 2 entities and 2 stateless session beans acting as their facades. One entity has a One-One(FK) relationship with the other entity. I test out the entities and session beans using the test client and the OC4J embedded container and everything seems to work. When I try to generate a Java WebService from one of the entities I keep getting the "Generation Error". Could someone please provide me with some insight into why I'm facing this problem, because it seemed fine when I published J2EE web services previously and now this happens and I cant seem to publish web services anymore. Everytime I keep getting the same GenerationError. Thanks in advance.Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.
-
An error occurred while trying to connect to a Web service
In infopath 2013 getting current user through web service getting this error in the browser
"An error occurred while trying to connect to a Web service"Hi Jithendar,
If you can send the ULS log entries which has that Correlation ID, it would be more helpful.
The text you send is only the ID of the entries and dont give any clue to us about your problem.
Best regards,
Mustafa Yılmaz
Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz -
How to build, package & deploy web services manually without ant on JWSDP
Hello,
How can I Build, Package & Deploy web services manually without using ant tool on JWSDP 1.3?.
Because I am having difficulties in using ant tool for my own webservices. ant is very tightly coupled with the directory hierarchy & configuration files (as I go throught the examples of JWSDP1.3). Also I need to learn the overall process going on behind the scene.
I have to teach the simplest required steps to build, package & deploy any webservice to any container independent of application server & OS without using ant tool. It would also help me to understand which items are required as specified in the Web Services Specifications & which one are implementation or platform specific.
Any help would be greatly appreciated.
Thanks,
Iftikhar.Just follow the step of the JWSDP1.3 tutorial..
-
Problem generating stubs for Java EJB web service deployed in OAS
I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
Example:
public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
If anyone can help me, it would be greatly appreciated. Thanks!Crossposted:
Problem generating stubs for Java EJB web service deployed in OAS -
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID:5567
Correlation ID:4db21044-cbc4-4f2f-8653-d73e5496b891check the log file first to get detailed information, go to ULS log file, find the related Correlation ID, you will get the error message, the information you provided is less helpful to know this issue.
Qiao Wei
My blog:http://blog.goobol.com -
Hello
I am trying to follow sample application developed in WebLogic 8.1(beta). The tutorial was available in bea.com.
Tutorial shows image from Workshop with "Web Services Portlet".
I don't see that option in my Workshop.
Does anyone help me, how to get "Web Services Portlet" option in Portal for new portlet?
Thanks
KarthikHi there,
Are you trying to connect to a web service and expose it via a portlet? If so you need to first build a control, next generate a PageFlow from control. Once you have a PageFlow you can drop in a portal and get a portlet. Check this article, it may help you:
http://dev2dev.bea.com/products/wlportal81/articles/wlp_Toussaint.jsp
If you are talking about Web Services based Remote Portlets, you may want to look at:
http://dev2dev.bea.com/products/wlportal81/articles/wsrp.jsp
and
http://dev2dev.bea.com/products/wlportal81/articles/wsrp_test_server_at.jsp
Best Regards,
--alex -
Web Service portlet in PDK (Urgent!!!)
I have a .NET web service I would like to consume in the portal and present as a portlet. For several reason I do not want to use OMNI (not the least of the reasons is after 3 weeks of working with oracle tech support on a corresponding I still cant get OMNI and WebClipping running)
Either way, the WS consumption system with xsl/xslt controlled presentation as seen in Web Services sample provide in the PDK suits my needs a lot better.
Now as I mentioned I have a .NET service running and well tested.
I can indeed consume it and even apply XSL, what I cant do however is to pass parameters to web service.
I define portlet with something like:
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>25</id>
<name>Listings</name>
<title>Listings Web Service Portlet</title>
<shortTitle>Phone Listings</shortTitle>
<description>Web Service demonstration portlet.</description>
<timeout>100</timeout>
<timeoutMessage>portlet timed out</timeoutMessage>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<contentType>text/html</contentType>
<charSet>UTF-8</charSet>
<showPage class="oracle.portal.provider.v2.webservice.DocWebServiceRenderer">
<contentType>text/html</contentType>
<logging>true</logging>
<endpointURL>http://myserver.com/webservices/listings.asmx</endpointURL>
<soapAction>http://myserver.com/webservices/getPerson</soapAction>
<literal class="oracle.portal.provider.v2.webservice.LiteralXML"
handler="oracle.portal.provider.v2.webservice.LiteralXML$Handler">
<element name="getPerson">
<attribute name="xmlns">http://myserver.com/webservices/</attribute>
<element name="inputStr"
bind="urlParams/lname"
default="Yu"
prompt="Please enter last name"/>
</element>
</literal>
<escapeOutput>false</escapeOutput>
<responseXSL>listings.xsl</responseXSL>
</showPage>
</renderer>
</portlet>
This actually seem to work and in the _literal.xml log file I can see something like that:
<getPerson xmlns="http://myserver.com/webservices/">
<inputStr xmlns="http://myserver.com/webservices/">Yukh</inputStr >
</getPerson >
(Yukh is what I passed as urlParam)
The problem however is that service that should run a query with WHERE lname LIKE <inputStr>% returns the whole datatable rather then only those records that starts with Yukh in the lname column. In short request parameter is ignored by web service (or not passed)
The only difference between my portlet and samples (most of which dont work as advertised by the way) is that oracle _literal.xml log file doesnt have xmlns in the sub elements
<WhoIs xmlns="http://tempuri.org/">
<DomainName>oracle.com</DomainName>
</WhoIs>
(I have no idea why mine does (I define no attributes for inputStr element)
If you have any idea what I might be missing or doing wrong please let me know!!! Ill greatly appreciate.We tried using Omniportlet. It expects the resultset in ROWSET/ROW format. Our .Net Webservice doesn't return in rowset/row. We tried transforming using XSL, but even then it didn't work.
Thanks -
401 HTTP Response for remote web service portlet
Hi, I am trying to configure IIS web page in ALUI as a remote web service portlet. I have used one of the help HTML pages of IIS server to configure portlet.
http://localhost/IISHelp/iis/htm/core/iiwltop.htm
However, I am getting 401 http response error (You are not authorized to view this page) when i view the portlet. The same URL above works fine if I open in a stand alone browser. Could any one of you help in resolving this please?
Thanks
SampathHi, thanks a lot for your help. I am using windows XP professional. When I set my directory security & grant anonymous access to IUSER the default help site also not coming up, i am geting 401 error.
When I checked the option Integrated Windows Authentication, then in Internet Explorer the help pages are coming up with out asking for user name and password. I installed firefox and checked. In Firefox, a prompt was coming to fill user name and password. I filled in my local windows authentication details and the page was working.
I provided the windows login details for the remote server in Administrator's basic acuthentication information. I was still getting the same error (401 error). Then I went to IIS, drectory security settings and checked Basic Authentication(password is sent in clear text) & unchecked Integrated Windows Authentication, the website pages in IIS were showing up in ALUI. WIth this, my problem is half solved.
The next problem is, I have siebel analytics web application running on IIS. This website requires user name and password if i have to access any report (say). It automatically redirects to my login page. Now I do not want portal user to enter the login details again for accessing siebel reports. But since I have two authentications (now) one for IIS and one for Siebel reporting website, any one know how to configure this?
I was trying to configure different authentication in web service that i was creating in ALUI, but siebel website authentication information I am providing in web service is overriding the IIS authentication and I am getting 401 error (initial problem). I appreciate any auggestions.
Thanks a lot in advance.
-sampath -
Web Service portlet using pdk documentation issue
Hi,
I have followed the instructions in
http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/how.to.build.web.services.portlets.html
on how to build web service portlets.
I have successfully deployed the WS portlet and can happily call my web Service (RPC style) passing a set of parameters which I have formatted using a stylesheet.
However, every time I refresh the page within portal, it recalls the WS with the previously submitted parameters. Also, if I switch between view and edit mode in portal, it again calls the WS with previously entered parameters.
Can I stop this happening either through a setting in portal or code in my Stub class. (Stub class below)
Thanks alot
Joel.
package mypackage;
import oracle.soap.transport.http.OracleSOAPHTTPConnection;
import org.apache.soap.encoding.SOAPMappingRegistry;
import java.math.BigDecimal;
import java.net.URL;
import org.apache.soap.rpc.Call;
import org.apache.soap.Constants;
import java.util.Vector;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;
import org.apache.soap.Fault;
import org.apache.soap.SOAPException;
import java.util.Properties;
* Generated by the Oracle JDeveloper 10g Web Services Stub/Skeleton Generator.
* Date Created: Thu Feb 03 15:38:22 GMT 2005
* WSDL URL: file:/D:/Software/Oracle/NT/jdev_10.1.2/jdev/mywork/blah/CreateSR2/src/LG02/CreateSR2.wsdl
public class CreateSR2Stub
public CreateSR2Stub()
m_httpConnection = new OracleSOAPHTTPConnection();
m_smr = new SOAPMappingRegistry();
public static void main(String[] args)
try
CreateSR2Stub stub = new CreateSR2Stub();
// Add your own code here.
catch(Exception ex)
ex.printStackTrace();
private String _endpoint = "http://myServer:7779/Blah-CreateSR2-context-root/CreateSR2";
public String getEndpoint()
return _endpoint;
public void setEndpoint(String endpoint)
_endpoint = endpoint;
private OracleSOAPHTTPConnection m_httpConnection = null;
private SOAPMappingRegistry m_smr = null;
public String createSrStub(BigDecimal pCitizen, String pAccountType, String pSummary, String pReferral, String pReason, String pHouse, String pRos, BigDecimal pGroup, String pOwner, String pMode, String pFrom) throws Exception
String returnVal = null;
URL endpointURL = new URL(_endpoint);
Call call = new Call();
call.setSOAPTransport(m_httpConnection);
call.setTargetObjectURI("CreateSR2");
call.setMethodName("createSrStub");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
Vector params = new Vector();
params.addElement(new Parameter("pCitizen", BigDecimal.class, pCitizen, null));
params.addElement(new Parameter("pAccountType", String.class, pAccountType, null));
params.addElement(new Parameter("pSummary", String.class, pSummary, null));
params.addElement(new Parameter("pReferral", String.class, pReferral, null));
params.addElement(new Parameter("pReason", String.class, pReason, null));
params.addElement(new Parameter("pHouse", String.class, pHouse, null));
params.addElement(new Parameter("pRos", String.class, pRos, null));
params.addElement(new Parameter("pGroup", BigDecimal.class, pGroup, null));
params.addElement(new Parameter("pOwner", String.class, pOwner, null));
params.addElement(new Parameter("pMode", String.class, pMode, null));
params.addElement(new Parameter("pFrom", String.class, pFrom, null));
call.setParams(params);
call.setSOAPMappingRegistry(m_smr);
Response response = call.invoke(endpointURL, "");
if (!response.generatedFault())
Parameter result = response.getReturnValue();
returnVal = (String)result.getValue();
else
Fault fault = response.getFault();
throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
return returnVal;
public void setMaintainSession(boolean maintainSession)
m_httpConnection.setMaintainSession(maintainSession);
public boolean getMaintainSession()
return m_httpConnection.getMaintainSession();
public void setTransportProperties(Properties props)
m_httpConnection.setProperties(props);
public Properties getTransportProperties()
return m_httpConnection.getProperties();
}Hi Joel,
You can enable caching for your portlet. There are three types of caching you can use: expiry, validation, and invalidation-based caching. You can learn about your options in the Enhancing Portlet Performance with Caching section of the Portal Developer's Guide.
Regards,
Peter
Maybe you are looking for
-
Hi there, I have an iPod Touch 3rd generation (Model A1318). For the last several months I keep trying to update to iOs 5 and it gets stuck during the backup phase and an error message pops up: As half of my songs are not iTunes purchases, therefor n
-
Hi there, Just got a Macbook Pro Retina Mid 2014. I have noticed that when the Macbook is turned off or the lid is closed the green light on the charger is blinking. It seems it does this when the Macbook Pro is fully charged and I am not sure if it
-
How to call function behind the button and update only specific record
Greetings, 1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter, 1 select list : select area 2 select list: select product 3- select list - size of the product i want to
-
Is it possible to find the Equipment for given PP work center?
Hello PM Masters, Is it possible to find the Equipment for given PP work center? Please tell me which table will lend me the EQUNR when I have the PP work center (ARBPL). Thank you.
-
Certification to become MCSA: Windows 7
What certification do I need to require the title MCSA: Windows 7 (after 31th of January 2014)? Do I need to require 70-680 + 70-685 + 70-686