WebService newbie - contenttype problem

Discussion in 'ASP .Net Web Services' started by Peter Heisen, Jun 17, 2004.

  1. Peter Heisen

    Peter Heisen Guest

    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
     
    Peter Heisen, Jun 17, 2004
    #1
    1. Advertising

  2. Peter Heisen

    Jan Tielens Guest

    Can you browse to the web service url with your internet explorer?

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


    "Peter Heisen" <> schreef in bericht
    news:...
    > 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
    >
    >
     
    Jan Tielens, Jun 17, 2004
    #2
    1. Advertising

  3. Peter Heisen

    Peter Heisen Guest

    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" <> wrote in message
    news:%23BH$...
    > Can you browse to the web service url with your internet explorer?
    >
    > --
    > Greetz
    > Jan
    > ________________
    > Read my weblog: http://weblogs.asp.net/jan
    >
    >
    > "Peter Heisen" <> schreef in bericht
    > news:...
    > > 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
    > >
    > >

    >
    >
     
    Peter Heisen, Jun 17, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MJ
    Replies:
    3
    Views:
    6,515
  2. alien2_51

    Response.ContentType

    alien2_51, Jun 26, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    759
    alien2_51
    Jun 26, 2003
  3. Sam
    Replies:
    0
    Views:
    450
  4. Bryan Glennon
    Replies:
    8
    Views:
    2,143
    Steven Cheng[MSFT]
    Jan 2, 2004
  5. =?Utf-8?B?RXlhbCBaaW5kZXI=?=

    Response.ContentType and Viewstate problem

    =?Utf-8?B?RXlhbCBaaW5kZXI=?=, Apr 22, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    456
    =?Utf-8?B?RXlhbCBaaW5kZXI=?=
    Apr 22, 2004
Loading...

Share This Page