Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Call via vb .net fails but soap toolkit works

Reply
Thread Tools

Call via vb .net fails but soap toolkit works

 
 
Simonk
Guest
Posts: n/a
 
      01-18-2006
Hello

I am trying to migrate an asp page that uses the soap toolkit to consume a
web service to vb .net. I've had no problem with other web services, just
this particular one -

The service is hosted on my local pc - I add a web reference by browsing to
the WSDL file and it all seems fine until I attempt to invoke the service -
which fails with "There is an error in XML document (1, 430)." in the
exception messge

The method in question returns a boolean status, and the actual 'result' (a
chunk of XML) comes back in one of the arguments to the call - I'm not sure
whether this is good practice or not (I didn't write the service!) or whether
it is causing the problem - but as I said above, it works fine using the soap
toolkit in asp - I've also created my own .net web service that mimics this
(ie. changes the value of one of the arguments) and I am able to succesfully
call that.

I'm a bit stuck as to how to resolve this - if anyone can help here I'd be
very grateful.

Thanks

Simon
 
Reply With Quote
 
 
 
 
Josh Twist
Guest
Posts: n/a
 
      01-18-2006
Can you post the full exception details? StackTrace, ExceptionType etc?

Josh
http://www.thejoyofcode.com/

 
Reply With Quote
 
 
 
 
Simonk
Guest
Posts: n/a
 
      01-18-2006
Josh

Stacktrace:
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at solaz.localSol.sdcAsk.sdcAsk(String& Method, String& Parameter,
String& Provider, String& Payload, String& Response) in
C:\visualstudioprojects\solaz\Web References\localSol\Reference.vb:line 43
at solaz.Form1.GetAZ() in C:\visualstudioprojects\solaz\Form1.vb:line 105,

ExceptionType:
System.InvalidOperationException

GetBaseException:
System.FormatException: The string was not recognized as a valid Boolean
value.
at System.Xml.XmlConvert.ToBoolean(String s)
at
System.Xml.Serialization.XmlSerializationReader.Re adTypedPrimitive(XmlQualifiedName type, Boolean elementCanBeType)
at
System.Xml.Serialization.XmlSerializationReader.Re adReferencingElement(String
name, String ns, Boolean elementCanBeType, String& fixupReference)
at
System.Xml.Serialization.XmlSerializationReader.Re adReferencingElement(String
name, String ns, String& fixupReference)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read3_sdcAskResponse()

regards

Simon

"Josh Twist" wrote:

> Can you post the full exception details? StackTrace, ExceptionType etc?
>
> Josh
> http://www.thejoyofcode.com/
>
>

 
Reply With Quote
 
Josh Twist
Guest
Posts: n/a
 
      01-18-2006
It doesn't like the value inside your boolean node (should be either
'true' or 'false').

Have you seen what the XML is that's actually travelling across the
wire? If not, maybe try using the Web Service Studio
(http://www.gotdotnet.com/team/tools/...c/default.aspx) to have a
look? The Request/Response tab should show you what the XML is that's
being returned from the service.

Josh
http://www.thejoyofcode.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
http.get call works, but then fails when using debugger Jeff Jortner Ruby 1 11-03-2006 09:00 PM
.Net client times out but SOAP toolkit client does not antopin@hotmail.com ASP .Net Web Services 0 09-19-2006 02:28 PM
.net SOAP toolkit performance for SOAP deserialization Prabhu ASP .Net Web Services 5 11-18-2004 10:42 PM
Returning array Via soap toolkit to vb.net client John Harkin ASP .Net Web Services 0 04-14-2004 01:55 PM
SOAP Client creation in ASP.NET using MS SOAP Toolkit Sham Ramakrishnan ASP .Net 2 07-01-2003 11:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57