473,410 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Problems using SOAP/WSE from VB .Net ! To be exactly I keep getting problems with P

1
I keep getting problems with Proxy Authentication and ContentType when trying to access a webservice (using WSSE) from vb.Net client.

??What is the right way to create my own soap- and proxy-settings (Framework 2.0)??


The current structure I implemented looks like this:

1) VB.Net (WinApp) references a CSharp-Dll (Framework 2.0)

a)Within that WinClient, an object (business-document)) >> its type is being provided by the referenced webservice (published by that csharp-dll) is being created and populated.

b) The winClient calls a public method RunWebService in that CSharpDll and provides the doc as param.


2) That CSharp DLL (Framework 2.0) uses a webreference to access that service.

a) Within that resulting ProxyClass (reference.cs) I added an additional SoapDocumentAttribut to the specific method which I would like to call. That attribute refers to my personal TraceExtension class (derived from soapExtension).

b) When method RunWebService is being called, the webserviceObjVar gets configured, e.g.:
NetworkCredential netCredential = new
NetworkCredential(strLogin, strPassword);
Uri uri = new Uri(myWebServObjVar.Url);
ICredentials credentials =
netCredential.GetCredential(uri, "Basic");
myWebServObjVar.Url = URL;
myWebServObjVar.Credentials = credentials;
myWebServObjVar.SoapVersion =
SoapProtocolVersion.Soap11;

myWebServObjVar.MethodToCall(myBusinessObject);

Because of that method-call my TraceExtension-class gets used.
Mainly the override method "ProcessMessage" creates the soap envelope and header elements (stage AfterSerialze)

On top of that, the soap-message gets serialized for better control.


THE PROBLEM:
I keep getting exceptions like "Client found response content type of 'text/html' but expected 'text/xml'
>> although I tried setting message.contentType accordingly)in BeforeSerialize stage.

WHAT AM I MISSING?
?? Would I need my own derived classes (explicitly of SoapHeader and SoapMessage)?If so, how would I implement them and what kind of attributes wouöd have to be added?

?? Would I have to distinguish between Response and Request?
If so, how would that have to happen???

I would really need some help here... some piece of working code, or...

Thanks a lot for any assistance!!
Mar 14 '14 #1
0 1080

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chefry | last post by:
I'm trying to set up an off the shelf script and keep getting an error. My host set up the mysql on my site and I changed the variables I had to in the settings.php file but I keep getting the...
3
by: Henrik | last post by:
Hi all,,, I need to get a refferece to a XML-webservice, and get some data from it.... But I can't add it like an web-refference... What options does I else have?? I've been told that i've to...
1
by: A.M-SG | last post by:
Hi, Can I view/modify SOAP message at the client proxy side without using soap extensions? Thank you,
0
by: Chad | last post by:
Hi In vb6 I downloaded multiple pages from a website asynchronously by instantiating a dll 3 times that used an inet control with a doevents on the getchunk method when finished I simply raised...
0
by: CAIBird | last post by:
hi, i've been developing a webservice on machine A and one WebMethod of this webservice will connect to SQL Server2000 on machine B using a connect string defined in Web.config as below: <add...
6
by: Vinit | last post by:
Hi I am passing an arraylist to a c#/.net webmethod from a perl client using soap:lite. The trace shows the elements in the xml request. The arraylist input in the webmethod however does not...
2
by: adevikreates | last post by:
Greetings All! I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service. I have the following code in an asp page but I keep getting an error that...
0
by: reco | last post by:
Hi, I am only new to development and have been given a task to convert a Perl script to a Windows Service. The issue I am facing is that the current Perl Script uses a SOAP call to an Apache Web...
0
by: anujitkarmakar | last post by:
I have tried calling web service using SOAP. I tried the following code. But did not work. Its giving the error. Code: protected void btnTestSoap_Click(object sender, EventArgs e) { ...
0
by: ShyamalaBaskar | last post by:
I am using Soap UI tool to test my Rest Web services.... My perspective is to pass different parameters in my URL and test. But if I am using XML rest web service the parameters are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.