jbossws webservice endpoint - jbossws

I have developed a simple webservice implementation using top-down approach, created a war and deployed in jboss4.2.2GA, in windows environment.
I am able to see my webservice having registered end point, in http://localhost:8080/jbossws/services. But when i click on the endpoint hyperlink, I am not able to view the wsdl page.
Is it expected behaviour? Is there anyway, i can see the wsdl page on navigating through registered webservice endpoint hyperlink?
Thanks in advance

Are you seeing a blank page when you click the link? You might need to view the page source to see the actual WSDL content. I think IE will display the WSDL by default, but Firefox and Chrome will not.

Related

Is it possible to add a custom error page to an AngularJs 1.X application that is using Web API?

I have an AngularJs application that uses Web API to communicating with a WCF service on the back-end. The requirements are to add a custom error page (web.config settings). The user is to be re-directed to this custom error page whenever an exception occurs in the server code (i.e. C# code). I am not sure this makes sense for a single page application. However, if anyone has done this please help.
You would leave this up to the SPA, not configure this in your Web.config
If your Web API gives you an internal error 5xx you display an error page.

Disable API discovery for API Explorer

I'm new to App Engine and am trying to figure out how to disable the API Explorer from showing all my APIs, which are currently public and available to anyone visiting [MYPROJECT].appspot.com/_ah/api/explorer
Supposedly Snapchat uses AppEngine, however visiting https://apis-explorer.appspot.com/apis-explorer/?base=https://feelinsonice.appspot.com/_ah/api#p/ does not reveal their APIs.
Viewing network activity for that page you'll see that requests are being made to https://feelinsonice.appspot.com/_ah/api/discovery/v1/apis but returning a 404.
How do I do the same?
When visiting the API Explorer using my project ID I see this:
Is this the culprit?
Endpoints is the 'culprit'. I'm assuming you are using endpoints since you've included that tag, and I guess snapchat doesn't use endpoints.
There is nothing you can do to change this other then stop using endpoints.

Programmatically login to site with Apache basic authentication from WPF .net application

We have a requirement to open a web site URL in default browser of the client machine from our WPF application. All this time we were using simple Process.Start(URL) and it was working fine. Until now where one of customer has this "URL" behind basic authentication. The site they want us to browse using URL is hosted on Apache web server. From what I know, if we have https://username:password#domain.com it directly takes us in site without the username/password challenge and it works fine in Chrome and Firefox, however newer version on IE stopped supporting it for security reasons.
Can someone suggest some alternate approach to achieve same considering following objectives ?
List item
Browse to URL with passing in username password.
Open default browser in client's desktop machine.
Don't want to user browser control
At minimum should work in 3 browsers - IE, Firefox and Chrome
We cannot make changes to client desktop's machine, so solution shouldn't require any special settings.
The workaround for developers from the Microsoft Support site : http://support.microsoft.com/kb/834489
Workarounds for application and Web site developers
URLs that are opened by objects that call WinInet or Urlmon functions
For objects that use an HTTP or an HTTPS URL that includes user
information when they call a WinInet or Urlmon function such as
InternetOpenURL, rewrite the object to use one of the following
methods to send user information to the Web site: Use the
InternetSetOption function and include the following option flags:
INTERNET_OPTION_USERNAME INTERNET_OPTION_PASSWORD Note For these
flags, the InternetSetOption option must have a handle returned by the
InternetConnect function. Therefore, if the application uses the
InternetOpenUrl function, modify the application to use the
InternetConnect, HttpOpenRequest and HttpSendRequest WinInet
functions. For more information about how to use these functions,
visit the following Microsoft Web sites:
http://msdn2.microsoft.com/en-us/library/Aa384363
http://msdn2.microsoft.com/en-us/library/Aa384233
http://msdn2.microsoft.com/en-us/library/aa384247.aspx Use the
IAuthenticate Interface. For more information about how to use the
IAuthenticate Interface, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms775080.aspx
Was this option tried ?

Accessing browser history in Silverlight

If I am at site abc.com and I go to my site def.com which hosts a silverlight app. How can I find out which domain I just came from within my silverlight app?
Assuming you got to your site via a link (this does not work if you simply typed in your website address), your hosting ASPX page on def.com will receive a referring URL.
You then just need to pass it into the Silverlight application via the InitParams setting of the Silverlight control.
See the HttpRequest.UrlReferrer Property and this example on how to pass the property to Silverlight.
You can't. You will have to use Javascript for that and even then you won't be able to see from which site the user came, you can just go back to the previous page.
You can do it on the server side by checking the web server logs.

Internet Explorer download notification on HTTPS

I have a Silverlight application deployed on a HTTPS server. My applications generates reports that are saved as PDF files. Whenever a user tries to download a file from my application from IE, he gets a notification under the toolbar asking him if he really wants to download the file. If you agree, then IE reloads the page, sending the user back to the login page of my application. After logging again, the user can download any file, but this is very annoying for the user. How can I resolve this problem? Thanks!
If you know who your users are (condition), you might ask them to put your website under their list of Trusted Sites, which will avoid the annoying notification bars.
You need to trigger the download in such a way that it's obviously a user-initiated action. I'm not sure if Silverlight offers a method for this.

Resources