Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > WebService newbie - contenttype problem

Reply
Thread Tools

WebService newbie - contenttype problem

 
 
Peter Heisen
Guest
Posts: n/a
 
      06-17-2004
Wrote a very simple webservice. Trying to test with this simple VB Script
client:

dim soapClient
set soapClient = createobject("MSSOAP.SOAPClient")
on error resume next
soapClient.mssoapinit("http://localhost/hdws/service1.wsdl")
if err then
wscript.echo "error 1"
wscript.echo soapClient.faultString
wscript.echo soapClient.detail
end if
wscript.echo soapClient.Subtract(5,2)
if err then
wscript.echo "error 2"
wscript.echo soapClient.faultString
wscript.echo soapClient.detail
end if

The output is:
error 2
Client: Connector - Server returned contenttype other than text/xml.

Also wsdl.exe produces similar message when trying to create proxy class.

Appreciate any help.

Peter Heisen


 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      06-17-2004
Can you browse to the web service url with your internet explorer?

--
Greetz
Jan
________________
Read my weblog: http://weblogs.asp.net/jan


"Peter Heisen" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Wrote a very simple webservice. Trying to test with this simple VB Script
> client:
>
> dim soapClient
> set soapClient = createobject("MSSOAP.SOAPClient")
> on error resume next
> soapClient.mssoapinit("http://localhost/hdws/service1.wsdl")
> if err then
> wscript.echo "error 1"
> wscript.echo soapClient.faultString
> wscript.echo soapClient.detail
> end if
> wscript.echo soapClient.Subtract(5,2)
> if err then
> wscript.echo "error 2"
> wscript.echo soapClient.faultString
> wscript.echo soapClient.detail
> end if
>
> The output is:
> error 2
> Client: Connector - Server returned contenttype other than text/xml.
>
> Also wsdl.exe produces similar message when trying to create proxy class.
>
> Appreciate any help.
>
> Peter Heisen
>
>



 
Reply With Quote
 
 
 
 
Peter Heisen
Guest
Posts: n/a
 
      06-17-2004
Yes. No problem with that. In fact, generated the wsdl file for SOAP
Client object using Save As from http://localhost/hdws/service1.asmx?wsdl.
Certainly looked like well-formulated xml.

"Jan Tielens" <(E-Mail Removed)> wrote in message
news:%23BH$(E-Mail Removed)...
> Can you browse to the web service url with your internet explorer?
>
> --
> Greetz
> Jan
> ________________
> Read my weblog: http://weblogs.asp.net/jan
>
>
> "Peter Heisen" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
> > Wrote a very simple webservice. Trying to test with this simple VB

Script
> > client:
> >
> > dim soapClient
> > set soapClient = createobject("MSSOAP.SOAPClient")
> > on error resume next
> > soapClient.mssoapinit("http://localhost/hdws/service1.wsdl")
> > if err then
> > wscript.echo "error 1"
> > wscript.echo soapClient.faultString
> > wscript.echo soapClient.detail
> > end if
> > wscript.echo soapClient.Subtract(5,2)
> > if err then
> > wscript.echo "error 2"
> > wscript.echo soapClient.faultString
> > wscript.echo soapClient.detail
> > end if
> >
> > The output is:
> > error 2
> > Client: Connector - Server returned contenttype other than text/xml.
> >
> > Also wsdl.exe produces similar message when trying to create proxy

class.
> >
> > Appreciate any help.
> >
> > Peter Heisen
> >
> >

>
>



 
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
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 0 01-26-2006 08:13 AM
Response.ContentType and Viewstate problem =?Utf-8?B?RXlhbCBaaW5kZXI=?= ASP .Net 0 04-22-2004 08:36 PM
ContentType problem - downloading instead of displaying Bryan Glennon ASP .Net 8 01-02-2004 02:57 AM



Advertisments