473,656 Members | 2,756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Consuming Web Service + Authentication

Hi all. I need to consume a web service in .NET which were written in
Java. I am able to add them fine as web references in visual studio
as well as create the necessary objects. However, the specs of the
web service require me to authenticate using the Username Token
Profile spec from WS-Security. Any idea on how to do this??

Thanks.

Aug 1 '07 #1
2 2247
Hello rh******@gmail. com,
Hi all. I need to consume a web service in .NET which were written in
Java. I am able to add them fine as web references in visual studio
as well as create the necessary objects. However, the specs of the
web service require me to authenticate using the Username Token
Profile spec from WS-Security. Any idea on how to do this??

Thanks.
Either use WCF, which has built in support for WS-*, or install the Microsoft
Webservice Enhancements to add support fo this Profile spec.

Jesse
Aug 1 '07 #2
Cool I've been playing around with that and some of the examples. I
installed WSE 3.0.

Through my testing I've encountered this error. Any ideas?

Client found response content type of 'multipart/related;
type="applicati on/xop+xml"; start="<so***** *@xfire.codehau s.org>";
start-info="text/xml"; boundary="----
=_Part_7_234319 02.118600712261 1"', but expected 'text/xml'.
The request failed with the error message:

Aug 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1967
by: Jose | last post by:
Hello all I've a problem, I need to develop a component to connect a web service for sending SMS. The web service it's not implemented in .NET.I need to use basic authentication (at least that is what I've been told). The most strange thing is that when I add the web reference in Visual Studio .NET I'm not asked for authentication. Apart from this, it's the web service who tells me I'm not authenticated instead of the server.
1
1416
by: Ezhil | last post by:
Hi All, we have an asp.net application which is consuming a third party java web service.In order to access the web service a login and password are required and they're passed as SOAP headers. We need to include this header in the soap message request. There is no separate method available for authentication in the web service. We have no control over the web service methods. We are just generating the proxy class and using it.
6
2327
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without having to do a httpwebreqeust call.
6
10071
by: Carlos Lozano | last post by:
Hi, as a background I have an Windows application developed with VS 2003 (c#) that needs to transfer securely data to a MySQL database located on a Linux server. I have created a PHP webservice that will receive an xml file with all the data to update an encrypted database. This way all database logic will remain on the Linux server. The web service works OK using a testing PHP client.
2
2036
by: quortex | last post by:
Hi all, I have written a web service using the .net framework 2 and Visual Studio 2005. I consume the managed service by native C++ using the "add web reference" feature. This obviously shells out sproxy.exe to generate the proxy code. All well and good despite the fact sproxy seems seriously in need of an update and from what i can gather on other threads possible not going to. I am in a situation where I cannot use C++/CLI and the...
4
16021
by: Haxan | last post by:
Hi, Im testing a web service from my windows app in C#. I create a soap body and pass to the HttpWebRequest and then get the response as below. private void TestService() { string quotes = "\""; // Set the uri to send the request to
1
2000
by: kelvlam | last post by:
Hello, I'm a brand new web service developer, so forgive me if my question have been asked before. I tried to search online and the only thread I can found in Google Group doesn't have any answer/resolution. This is the only one I'm able to find so far: http://groups.google.com/group/microsoft.public.dotnet.framework.webservices/browse_thread/thread/8ae08c100682b774/7efb09202802d00a I'm trying to integrate with a 3rd party vendor. ...
4
5992
by: Boni | last post by:
I want consuming a webserivce trough a proxy. I use this code. myService s = new myService (); System.Net.WebProxy proxyObject = new System.Net.WebProxy("http://proxyhost:8080"); s.Proxy = proxyObject; It doesn't works, it returns a error HTTP 407: Proxy Authentication Required ( Access is denied. ). But my proxy don't need a user Authentication.
1
1647
by: =?Utf-8?B?R29yZG9u?= | last post by:
Hi; I can consume a web service from an asp.net application with no problem. The web service connects to a remote server through ODBC and returns a data set to the consuming software. When I try to consume the WS from a windows app is gives a 407 error. I didn't think that the consuming application had to worry about connecting
1
3418
by: =?Utf-8?B?VmVua2F0ZXNhbiBT?= | last post by:
Hi, I have a requirement of consuming a connection object returned from a COM component deployed in COM+ application. I have given the need for this requirement end of my query. My component returns a Connection objec to ASP page and then I am trying to use the same Connection object to Command/Recordset object to execute a SP I am getting the error given below ************************************
0
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8717
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8600
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.