Connect to webservice using https

vagueante

Active member
Joined
Feb 20, 2009
Messages
28
Location
Portugal
Programming Experience
10+
Hi,

I've already conected to several webservices (http) with no problem.

Now i have to connect to an https webservice, i have the wsdl file and the user and password.

When i try to add a new web reference, it just asks the webservice link, and does not have a place to put the user and password, and gives error (attached file).

I add the wsdl with the "Add service reference" option, and it showed one operation (Dataclaim entry, which is what it's meant to be).
Now i have an XML sample file which has in "soapenv:Header" tag the following childs: credentials, username and password.

VB.NET:
<soapenv:Header>                                                                                                                                                                                                                           
         <credentials xmlns:teu-sec-crd="http://somesite.com/security/credentials/1.0">
         <username>user</username>
         <password>12345</password>
      </credentials>                                                                                                                                                                                                                         
 </soapenv:Header>
and then in the body section has the sample data to test the service

How can i send this file for the service i have added?
When that works, i just have to create the xml files following the xsd definition.

Thanks for any help
 

Attachments

  • WebServiceError.txt
    476 bytes · Views: 24
Why is this post moved ?

It's not a ASP.net solution, but a windows application, that i have to make, that has to connect to a webservice, it has nothing to do with a web application
 
Usually there is some header class you have to fill out before you call out the the web service.

read about asp.net webservice headers.

or check out this

ASP.NET Web Services QuickStart Tutorial

Hi, thanxs for your reply.

My problem is that the webservice that i'm trying to connect i don't know where or in what language/platform is been developed.

I just have the WSDL, XML sample file and 2 xsd files, user and password.

My application has to be a windows application, so at the moment, i just have the wsdl added as a service reference, and after importing the namespace i can instantiate the service name, but after that, i have no idea how to send the xml sample file for test purposes
 
Back
Top