AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Rizwan Muhammad Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience
Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > XML WebServices through SOAP error

Topic: VB.NET



Expert: Syed Rizwan Muhammad Rizvi
Date: 7/31/2006
Subject: XML WebServices through SOAP error

Question
Thank you again
After enabling the GET and POST Protocol it now generates the proxy file.
There are two matters now:
1-I want to send a DataSet through this service but the proxy file that is generated using HTTPGET protocol does not conatain the methods having DataSet type in its argument like this:

<WebMethod(BufferResponse:=True,         Description:="Update the Given Table Records", _
EnableSession:=True)> Public Function Update(ByVal Carrier As DataSet, ByVal R_ID As String) As Object

2-Using HttpPost method still doesn't create methods having DataSet(or object datatypes),also
after callig simple methods like "HelloWorld" it throws the same error as SOAP.

now do you have any suggestion why I can't use SOAP or any other(better) way to send a dataset?
I also tried WSE2 and it failed.
Thank you very much
MuhammadReza Javaheri

-------------------------

Followup To

Question -
Thank you for your fast reply
I checked my service on GoDaddy server via browser using httpget and it worked fine,but as I try to generate proxy file using wsdl.exe with protocol:HttpGet or HttpPost I get the System.Exception that "HttpPost is not supported",
and SOAP is the only protocol that works.
Would you please tell me how can I make my proxy use HttpPost or HttpGet to connect to my service?

-------------------------

Followup To

Question -
Dear Muhammad
I have developed a XML WebService using VB.Net and published that on Godaddy Shared Windows hosting. When I try to connect to it remotely I get the following error messege:

------------------------
An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll

Additional information: Client found response content type of 'text/html', but expected 'text/xml'.
------------------------

I've tested the service locally and it works fine. Godaddy claims that WSE 2 SP3 is supported on their servers.
What is your suggestion?

Thank you
MuhammadReza

Answer -
try accessing the web service using the browser from the GoDaddy server, it might be possible that services are returning some HTML due to an error.

Also check to see if you have set HTTP Get to be allowed in the web services web.config file.
Try changing the protocol to SOAP or Post only and then test.

Answer -
wsdl /language:VB /protocol:HTTPGET http://url/service.asmx

are u using similar command? and if it dong it certainly means that the web service doesnt support HTTPGET, can you send me the code in web.config to review, or you can try enabling the protocols explicitly in the web.config.

did u try disco as well? is it working?

Answer
does the proxy contain references to all required namespaces for data manipulation (System.Data)?

And the signatures would be translated as objects, in the code you will find that object types has been explicitly casted into datasets using CType statement. or you can do it in your stubs as well.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.